summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci/pci_if.m
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/pci/pci_if.m
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/pci/pci_if.m')
-rw-r--r--sys/dev/pci/pci_if.m5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/dev/pci/pci_if.m b/sys/dev/pci/pci_if.m
index bd19565..635005d 100644
--- a/sys/dev/pci/pci_if.m
+++ b/sys/dev/pci/pci_if.m
@@ -77,3 +77,8 @@ METHOD int disable_io {
device_t child;
int space;
};
+
+METHOD int assign_interrupt {
+ device_t dev;
+ device_t child;
+};
OpenPOWER on IntegriCloud