summaryrefslogtreecommitdiffstats
path: root/sys/dev/cardbus
diff options
context:
space:
mode:
authortmm <tmm@FreeBSD.org>2003-07-01 14:08:33 +0000
committertmm <tmm@FreeBSD.org>2003-07-01 14:08:33 +0000
commite8331fe2626d7026214cc367d516271b160e1eb0 (patch)
treeb5480064abfcffaff06714c0eb461a58c67df3b6 /sys/dev/cardbus
parent18ac6e463e26994f023ddbddfd54825f2a1c7a92 (diff)
downloadFreeBSD-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/cardbus')
-rw-r--r--sys/dev/cardbus/cardbus.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/cardbus/cardbus.c b/sys/dev/cardbus/cardbus.c
index 1559712..5c34c85 100644
--- a/sys/dev/cardbus/cardbus.c
+++ b/sys/dev/cardbus/cardbus.c
@@ -387,6 +387,7 @@ static device_method_t cardbus_methods[] = {
DEVMETHOD(pci_disable_io, pci_disable_io_method),
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}
};
OpenPOWER on IntegriCloud