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_acpi.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_acpi.c')
-rw-r--r-- | sys/dev/acpica/acpi_pcib_acpi.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/sys/dev/acpica/acpi_pcib_acpi.c b/sys/dev/acpica/acpi_pcib_acpi.c index 5857fdf..d809723 100644 --- a/sys/dev/acpica/acpi_pcib_acpi.c +++ b/sys/dev/acpica/acpi_pcib_acpi.c @@ -62,6 +62,7 @@ struct acpi_hpcib_softc { static int acpi_pcib_acpi_probe(device_t bus); static int acpi_pcib_acpi_attach(device_t bus); +static int acpi_pcib_acpi_resume(device_t bus); static int acpi_pcib_read_ivar(device_t dev, device_t child, int which, uintptr_t *result); static int acpi_pcib_write_ivar(device_t dev, device_t child, int which, uintptr_t value); static u_int32_t acpi_pcib_read_config(device_t dev, int bus, int slot, int func, int reg, int bytes); @@ -76,7 +77,7 @@ static device_method_t acpi_pcib_acpi_methods[] = { DEVMETHOD(device_attach, acpi_pcib_acpi_attach), DEVMETHOD(device_shutdown, bus_generic_shutdown), DEVMETHOD(device_suspend, bus_generic_suspend), - DEVMETHOD(device_resume, bus_generic_resume), + DEVMETHOD(device_resume, acpi_pcib_acpi_resume), /* Bus interface */ DEVMETHOD(bus_print_child, bus_generic_print_child), @@ -180,6 +181,14 @@ acpi_pcib_acpi_attach(device_t dev) return (acpi_pcib_attach(dev, &sc->ap_prt, sc->ap_bus)); } +static int +acpi_pcib_acpi_resume(device_t dev) +{ + struct acpi_hpcib_softc *sc = device_get_softc(dev); + + return (acpi_pcib_resume(dev, &sc->ap_prt, sc->ap_bus)); +} + /* * Support for standard PCI bridge ivars. */ |