summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci/pci_private.h
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_private.h
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_private.h')
-rw-r--r--sys/dev/pci/pci_private.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/pci/pci_private.h b/sys/dev/pci/pci_private.h
index f0387d0..fb85e60 100644
--- a/sys/dev/pci/pci_private.h
+++ b/sys/dev/pci/pci_private.h
@@ -72,4 +72,5 @@ int pci_child_location_str_method(device_t cbdev, device_t child,
char *buf, size_t buflen);
int pci_child_pnpinfo_str_method(device_t cbdev, device_t child,
char *buf, size_t buflen);
+int pci_assign_interrupt_method(device_t dev, device_t child);
#endif /* _PCI_PRIVATE_H_ */
OpenPOWER on IntegriCloud