From 7543627f1bffbfccb2d061ff9a095dd3c6445a8d Mon Sep 17 00:00:00 2001 From: Kapil Porwal Date: Mon, 28 Nov 2022 17:25:48 +0530 Subject: acpi: Helper functions to add certain _DSD properties BUG=b:259716145 TEST=Verified SSDT on google/rex. Signed-off-by: Kapil Porwal Change-Id: I5bb432dd4e8f320d2c0d7f378dc2d7b3a770b541 Reviewed-on: https://review.coreboot.org/c/coreboot/+/70063 Reviewed-by: Tarun Tuli Tested-by: build bot (Jenkins) --- src/include/acpi/acpi_device.h | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'src/include') diff --git a/src/include/acpi/acpi_device.h b/src/include/acpi/acpi_device.h index 1493cb4cc9..9ce5e0a3b1 100644 --- a/src/include/acpi/acpi_device.h +++ b/src/include/acpi/acpi_device.h @@ -588,13 +588,16 @@ void acpi_dp_write(struct acpi_dp *table); */ void acpi_device_write_pci_dev(const struct device *dev); -/* - * Helper function to add DmaProperty to _DSD in the current scope. - * - * dsd - Pointer to a _DSD object. - * Append to existing _DSD object if not NULL. - * Create new _DSD object and flush it if NULL. - */ +/* Helper function to add ExternalFacingPort to _DSD in the current scope */ +void acpi_device_add_external_facing_port(struct acpi_dp *dsd); + +/* Helper function to add HotPlugSupportInD3 to _DSD in the current scope */ +void acpi_device_add_hotplug_support_in_d3(struct acpi_dp *dsd); + +/* Helper function to add DmaProperty to _DSD in the current scope */ void acpi_device_add_dma_property(struct acpi_dp *dsd); +/* Helper function to add StorageD3Enable to _DSD in the current scope */ +void acpi_device_add_storage_d3_enable(struct acpi_dp *dsd); + #endif /* __ACPI_ACPI_DEVICE_H__ */ -- cgit v1.2.3