From 08a942fd32d23b940b8671e35e94f88062d7859f Mon Sep 17 00:00:00 2001 From: Duncan Laurie Date: Wed, 29 Apr 2020 12:13:14 -0700 Subject: acpi/device: Add a helper function to write SoundWire _ADR This change adds a help function to write a SoundWire ACPI address object that conforms to the SoundWire DisCo Specification Version 1.0 The SoundWire address structure is defined in include/device/soundwire.h and provides the properties that are used to form the _ADR object. BUG=b:146482091 Signed-off-by: Duncan Laurie Change-Id: I6efbf52ce20b53f96d69efe2bf004b98dbe06552 Reviewed-on: https://review.coreboot.org/c/coreboot/+/40885 Reviewed-by: Tim Wawrzynczak Tested-by: build bot (Jenkins) --- src/include/acpi/acpigen.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/include') diff --git a/src/include/acpi/acpigen.h b/src/include/acpi/acpigen.h index 895433546e..a99489de1f 100644 --- a/src/include/acpi/acpigen.h +++ b/src/include/acpi/acpigen.h @@ -374,6 +374,8 @@ void acpigen_write_pld(const struct acpi_pld *pld); void acpigen_write_ADR(uint64_t adr); void acpigen_write_ADR_pci_devfn(pci_devfn_t devfn); void acpigen_write_ADR_pci_device(const struct device *dev); +struct soundwire_address; +void acpigen_write_ADR_soundwire_device(const struct soundwire_address *address); /* * Generate ACPI AML code for _DSM method. * This function takes as input uuid for the device, set of callbacks and -- cgit v1.2.3