summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci/pcivar.h
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2006-12-14 19:57:06 +0000
committerjhb <jhb@FreeBSD.org>2006-12-14 19:57:06 +0000
commita33da981f55b2454aab9ef03532f0a6453126fa2 (patch)
treec5b250fc397348ea29fa02e850b78a53c320cfa2 /sys/dev/pci/pcivar.h
parentc18cdc85cac392ad941d4145ebde21bf85d03a7d (diff)
downloadFreeBSD-src-a33da981f55b2454aab9ef03532f0a6453126fa2.zip
FreeBSD-src-a33da981f55b2454aab9ef03532f0a6453126fa2.tar.gz
Add a first pass at a way to blacklist MSI on systems where it doesn't
work: - A new PCI quirk (PCI_QUIRK_DISABLE_MSI) is added to the quirk table. - A new pci_msi_device_blacklisted() determines if a passed in device matches an MSI quirk in the quirk table. This can be overridden (all quirks ignored) by setting the hw.pci.honor_msi_blacklist to 0. - A global blacklist check is performed in the MI PCI bus code by checking to see if the device at 0:0:0 is blacklisted. Tested by: jdp
Diffstat (limited to 'sys/dev/pci/pcivar.h')
-rw-r--r--sys/dev/pci/pcivar.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/pci/pcivar.h b/sys/dev/pci/pcivar.h
index 846f99a..eca13ef 100644
--- a/sys/dev/pci/pcivar.h
+++ b/sys/dev/pci/pcivar.h
@@ -417,6 +417,7 @@ void pci_enable_msix(device_t dev, u_int index, uint64_t address,
void pci_mask_msix(device_t dev, u_int index);
int pci_pending_msix(device_t dev, u_int index);
void pci_unmask_msix(device_t dev, u_int index);
+int pci_msi_device_blacklisted(device_t dev);
#endif /* _SYS_BUS_H_ */
OpenPOWER on IntegriCloud