This commit adds support for writing ACPI _PLD structures that describe the physical location of a device to the OS.
This can be used by any device with a physical connector, but is required when defining USB ports for the OS.
A simple function is provided that generates a generic _PLD structure for USB ports based on the USB port type.
3e7197a59e acpi: Add support for writing ACPI _PLD structures
src/arch/x86/Makefile.inc | 1 +
src/arch/x86/acpi_pld.c | 169 +++++++++++++++++++++++++++++++++++
src/arch/x86/acpigen.c | 11 +++
src/arch/x86/include/arch/acpi_pld.h | 120 +++++++++++++++++++++++++
src/arch/x86/include/arch/acpigen.h | 2 +
5 files changed, 303 insertions(+)