summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci/pcivar.h
diff options
context:
space:
mode:
authormsmith <msmith@FreeBSD.org>2002-02-12 01:28:49 +0000
committermsmith <msmith@FreeBSD.org>2002-02-12 01:28:49 +0000
commit03a880e06db6aa0eb1a01712a3acccf3f560ea10 (patch)
treea9471a2bf344ae1f66ed26f8f2bc9b714e56baa9 /sys/dev/pci/pcivar.h
parent1e9b142f057cb83c192f14b46c2be0501900710c (diff)
downloadFreeBSD-src-03a880e06db6aa0eb1a01712a3acccf3f560ea10.zip
FreeBSD-src-03a880e06db6aa0eb1a01712a3acccf3f560ea10.tar.gz
Don't claim to have routed an interrupt when the method actually returned an
error.
Diffstat (limited to 'sys/dev/pci/pcivar.h')
-rw-r--r--sys/dev/pci/pcivar.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/dev/pci/pcivar.h b/sys/dev/pci/pcivar.h
index 432f885..0b8cf14 100644
--- a/sys/dev/pci/pcivar.h
+++ b/sys/dev/pci/pcivar.h
@@ -246,6 +246,11 @@ PCIB_ACCESSOR(bus, BUS, u_int32_t)
#undef PCIB_ACCESSOR
/*
+ * PCI interrupt validation.
+ */
+#define PCI_INTERRUPT_VALID(x) (((x) != 0) && ((x) != 255))
+
+/*
* Convenience functions.
*
* These should be used in preference to manually manipulating
OpenPOWER on IntegriCloud