diff options
author | tmm <tmm@FreeBSD.org> | 2003-07-01 14:08:33 +0000 |
---|---|---|
committer | tmm <tmm@FreeBSD.org> | 2003-07-01 14:08:33 +0000 |
commit | e8331fe2626d7026214cc367d516271b160e1eb0 (patch) | |
tree | b5480064abfcffaff06714c0eb461a58c67df3b6 /sys/dev/acpica/acpi_pci.c | |
parent | 18ac6e463e26994f023ddbddfd54825f2a1c7a92 (diff) | |
download | FreeBSD-src-e8331fe2626d7026214cc367d516271b160e1eb0.zip FreeBSD-src-e8331fe2626d7026214cc367d516271b160e1eb0.tar.gz |
Add a new PCI interface method, assign_interrupt, to determine the
interrupt to be used for a device. This is intended solely for internal
use of PCI bus implementations, and exists so that PCI bus drivers
implementing special interrupt assignment methods which require
additional work at the bus level to work right can be easily derived
from the generic driver (or any other one) without resorting to hacks.
It will be used in the sparc64 ofw_pcibus driver, which will be
committed shortly.
Make use of this method in the generic implementation, and add it to
the method table of bus drivers derived from the PCI one.
Reviewed by: imp, -hackers
Diffstat (limited to 'sys/dev/acpica/acpi_pci.c')
-rw-r--r-- | sys/dev/acpica/acpi_pci.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/acpica/acpi_pci.c b/sys/dev/acpica/acpi_pci.c index 2448b62..04319b6 100644 --- a/sys/dev/acpica/acpi_pci.c +++ b/sys/dev/acpica/acpi_pci.c @@ -111,6 +111,7 @@ static device_method_t acpi_pci_methods[] = { /* XXX: We should override these two. */ DEVMETHOD(pci_get_powerstate, pci_get_powerstate_method), DEVMETHOD(pci_set_powerstate, pci_set_powerstate_method), + DEVMETHOD(pci_assign_interrupt, pci_assign_interrupt_method), { 0, 0 } }; |