ACPI: add support for CSRT table
PATCH v3 1/1 ACPI: add support for CSRT table
Core System Resources Table (CSRT) is a proprietary ACPI table that contains resources for certain devices that are not found in the DSDT table. Typically a shared DMA controller might be found here.
This patch adds support for this table. We go through all entries in the table and make platform devices of them. The resources from the table are passed with the platform device.
There is one special resource in the table and it is the DMA request line base and number of request lines. This information might be needed by the DMA controller driver as it needs to map the ACPI DMA request line number to the actual request line understood by the hardware. This range is passed as IORESOURCE_DMA resource.
---
Changes to v2:
- instead of initcall we call acpi_csrt_init() directly from acpi_scan_init.
drivers/acpi/Makefile | 1 + drivers/acpi/csrt.c | 159 +++++++++++++++++++++++++++++++++++++++++++++++ drivers/acpi/internal.h | 1 + drivers/acpi/scan.c | 1 + 4 files changed, 162 insertions(+) create mode 100644 drivers/acpi/csrt.c
drivers/acpi/Makefile +1 -0
@@ -38,6 +38,7 @@ acpi-y += processor_core.o acpi-y += ec.o acpi-$(CONFIG_ACPI_DOCK) += dock.o acpi-y += pci_root.o pci_link.o pci_irq.o +acpi-y += csrt.o acpi-y += acpi_platform.o acpi-y += power.o acpi-y += event.o
drivers/acpi/csrt.c new file +159 -0
159 lines not on this page · raw message
drivers/acpi/internal.h +1 -0
@@ -26,6 +26,7 @@int init_acpi_device_notify (void );int acpi_scan_init (void );int acpi_sysfs_init (void ); +void acpi_csrt_init (void );#ifdef CONFIG_DEBUG_FS extern struct dentry *acpi_debugfs_dir;
drivers/acpi/scan.c +1 -0
@@ -1737,6 +1737,7 @@ int __init acpi_scan_init(void) }acpi_pci_root_init (); +acpi_csrt_init ();/* * Enumerate devices in the ACPI namespace.
Signature · 1 line
1.7.10.4