aboutsummaryrefslogtreecommitdiffstats
path: root/src/include/ipxe/pci.h
diff options
context:
space:
mode:
authorMichael Brown <mcb30@ipxe.org>2011-11-11 21:30:50 +0000
committerMichael Brown <mcb30@ipxe.org>2011-11-11 21:32:09 +0000
commita05b89ef454d3eba2de00f75dd7a78c68b3cfdf5 (patch)
tree70bbb9e0a06a92c16f515cd20b110621b69d6e7b /src/include/ipxe/pci.h
parentbe90241ec292ba561562827b2685d2881bc92b5e (diff)
downloadipxe-a05b89ef454d3eba2de00f75dd7a78c68b3cfdf5.tar.gz
[undi] Ensure that native drivers are tried before the UNDI PCI driver
Suggested-by: Alessandro Salvatori <sandr8@gmail.com> Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include/ipxe/pci.h')
-rw-r--r--src/include/ipxe/pci.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/include/ipxe/pci.h b/src/include/ipxe/pci.h
index 960454d69..520c8a027 100644
--- a/src/include/ipxe/pci.h
+++ b/src/include/ipxe/pci.h
@@ -343,6 +343,9 @@ struct pci_driver {
/** Declare a PCI driver */
#define __pci_driver __table_entry ( PCI_DRIVERS, 01 )
+/** Declare a fallback PCI driver */
+#define __pci_driver_fallback __table_entry ( PCI_DRIVERS, 02 )
+
#define PCI_BUS( busdevfn ) ( ( (busdevfn) >> 8 ) & 0xff )
#define PCI_SLOT( busdevfn ) ( ( (busdevfn) >> 3 ) & 0x1f )
#define PCI_FUNC( busdevfn ) ( ( (busdevfn) >> 0 ) & 0x07 )