summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMichael Brown2007-01-08 04:32:41 +0100
committerMichael Brown2007-01-08 04:32:41 +0100
commit79c5f0ba04064d530a5d639f101bf988ed08d450 (patch)
treecd8402ca6b5ceb2496fd4b65f450df7c327c5215 /src
parentAdded support for wildcard device/vendor ID matches (diff)
downloadipxe-79c5f0ba04064d530a5d639f101bf988ed08d450.tar.gz
ipxe-79c5f0ba04064d530a5d639f101bf988ed08d450.tar.xz
ipxe-79c5f0ba04064d530a5d639f101bf988ed08d450.zip
Added PCI_BASE_CLASS() macro
Diffstat (limited to 'src')
-rw-r--r--src/include/gpxe/pci.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/include/gpxe/pci.h b/src/include/gpxe/pci.h
index 801bf2ccd..a27d6f1f1 100644
--- a/src/include/gpxe/pci.h
+++ b/src/include/gpxe/pci.h
@@ -311,6 +311,8 @@ struct pci_driver {
#define PCI_SLOT( devfn ) ( ( (devfn) >> 3 ) & 0x1f )
#define PCI_FUNC( devfn ) ( (devfn) & 0x07 )
+#define PCI_BASE_CLASS( class ) ( (class) >> 16 )
+
/*
* PCI_ROM is used to build up entries in a struct pci_id array. It
* is also parsed by parserom.pl to generate Makefile rules and files