diff options
author | iwasaki <iwasaki@FreeBSD.org> | 2002-10-05 02:01:05 +0000 |
---|---|---|
committer | iwasaki <iwasaki@FreeBSD.org> | 2002-10-05 02:01:05 +0000 |
commit | 8db9ba4b9ebc6b87f8d4c61d99b1d193ec872bfb (patch) | |
tree | 3d27e27383645f53353354346d52ffe95f624f97 /sys/dev/acpica/acpi_pcib.c | |
parent | c9d55a4efc04afdb6fc4279b71a0a924a4d65a2b (diff) | |
download | FreeBSD-src-8db9ba4b9ebc6b87f8d4c61d99b1d193ec872bfb.zip FreeBSD-src-8db9ba4b9ebc6b87f8d4c61d99b1d193ec872bfb.tar.gz |
Add code for ACPI PCI link object manipulation.
This allocate the best IRQ to boot-disable devices (have IRQ 0).
Allocated IRQ will be used for PCI interrupt routing when ACPI is
enabled.
Note that verbose messaging enabled for the time being so that
people can easily notice the strange behavior if it happened.
Diffstat (limited to 'sys/dev/acpica/acpi_pcib.c')
-rw-r--r-- | sys/dev/acpica/acpi_pcib.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/dev/acpica/acpi_pcib.c b/sys/dev/acpica/acpi_pcib.c index 10a1a2f..5bdf50a 100644 --- a/sys/dev/acpica/acpi_pcib.c +++ b/sys/dev/acpica/acpi_pcib.c @@ -87,9 +87,17 @@ acpi_pcib_attach(device_t dev, ACPI_BUFFER *prt, int busno) /* * Now go scan the bus. */ + acpi_pci_link_config(dev, prt, busno); return_VALUE(bus_generic_attach(dev)); } +int +acpi_pcib_resume(device_t dev, ACPI_BUFFER *prt, int busno) +{ + acpi_pci_link_resume(dev, prt, busno); + return (bus_generic_resume(dev)); +} + /* * Route an interrupt for a child of the bridge. * |