From eeb8e74944488ffbb7aa9a16fb28cc84beb6c353 Mon Sep 17 00:00:00 2001 From: Patrick Rudolph Date: Tue, 20 Aug 2019 08:20:01 +0200 Subject: arch/x86/acpi: Add acpi_device_hid Allow a driver to return device specific _HID, which will be consumed by acpigen in order to generate proper SSDTs. Change-Id: Ibb79eb00c008a3c3cdc12ad2a48b88a055a9216f Signed-off-by: Patrick Rudolph Reviewed-on: https://review.coreboot.org/c/coreboot/+/35006 Reviewed-by: Philipp Deppenwiese Tested-by: build bot (Jenkins) --- src/include/device/device.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/include/device') diff --git a/src/include/device/device.h b/src/include/device/device.h index ebf8314096..b2221ccea2 100644 --- a/src/include/device/device.h +++ b/src/include/device/device.h @@ -62,6 +62,8 @@ struct device_operations { void (*acpi_fill_ssdt_generator)(struct device *dev); void (*acpi_inject_dsdt_generator)(struct device *dev); const char *(*acpi_name)(const struct device *dev); + /* Returns the optional _HID (Hardware ID) */ + const char *(*acpi_hid)(const struct device *dev); #endif const struct pci_operations *ops_pci; const struct i2c_bus_operations *ops_i2c_bus; -- cgit v1.2.3