summaryrefslogtreecommitdiffstats
path: root/src/include/acpi/acpi_device.h
diff options
context:
space:
mode:
authorKapil Porwal <kapilporwal@google.com>2022-11-26 19:10:57 +0530
committerSubrata Banik <subratabanik@google.com>2022-11-29 19:48:27 +0000
commitddc52a6481f2529c6f7a676f20f9f35853aac48b (patch)
treeb3f56839c629e803ece641449d78d2a9c5b3c831 /src/include/acpi/acpi_device.h
parent3fd1174e768b440640f0f1b398bbb85ab6d926e1 (diff)
downloadcoreboot-ddc52a6481f2529c6f7a676f20f9f35853aac48b.tar.gz
coreboot-ddc52a6481f2529c6f7a676f20f9f35853aac48b.tar.bz2
coreboot-ddc52a6481f2529c6f7a676f20f9f35853aac48b.zip
acpi: Create a common method to add DmaProperty
Create a common method to add DmaProperty. BUG=b:259716145 TEST=Verified SSDT on google/osiris. Signed-off-by: Kapil Porwal <kapilporwal@google.com> Change-Id: I75b3f22ad29f90f3c3b251bd0d70bae9d75f71fe Reviewed-on: https://review.coreboot.org/c/coreboot/+/70022 Reviewed-by: Subrata Banik <subratabanik@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/include/acpi/acpi_device.h')
-rw-r--r--src/include/acpi/acpi_device.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/include/acpi/acpi_device.h b/src/include/acpi/acpi_device.h
index 71809eb6d46e..1493cb4cc9b7 100644
--- a/src/include/acpi/acpi_device.h
+++ b/src/include/acpi/acpi_device.h
@@ -588,4 +588,13 @@ 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.
+ */
+void acpi_device_add_dma_property(struct acpi_dp *dsd);
+
#endif /* __ACPI_ACPI_DEVICE_H__ */