summaryrefslogtreecommitdiffstats
path: root/src/include/gpxe/pci.h
diff options
context:
space:
mode:
authorMichael Brown2007-06-30 16:56:00 +0200
committerMichael Brown2007-06-30 16:56:00 +0200
commit4472e22b5e8fee18f592b68250d47732d728de7b (patch)
tree0c9d7ea18c1d4979318676124fd44ccc1a253cf3 /src/include/gpxe/pci.h
parentImplement the "overwrite TFTP filename" Microsoft RIS bug workaround. (diff)
downloadipxe-4472e22b5e8fee18f592b68250d47732d728de7b.tar.gz
ipxe-4472e22b5e8fee18f592b68250d47732d728de7b.tar.xz
ipxe-4472e22b5e8fee18f592b68250d47732d728de7b.zip
Implement the two UNDI API calls used by RIS.
Diffstat (limited to 'src/include/gpxe/pci.h')
-rw-r--r--src/include/gpxe/pci.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/include/gpxe/pci.h b/src/include/gpxe/pci.h
index eaa1560b..70f0423f 100644
--- a/src/include/gpxe/pci.h
+++ b/src/include/gpxe/pci.h
@@ -312,7 +312,9 @@ struct pci_driver {
#define PCI_FUNC( devfn ) ( (devfn) & 0x07 )
#define PCI_BUSDEVFN( bus, devfn ) ( ( (bus) << 8 ) | (devfn) )
-#define PCI_BASE_CLASS( class ) ( (class) >> 16 )
+#define PCI_BASE_CLASS( class ) ( (class) >> 16 )
+#define PCI_SUB_CLASS( class ) ( ( (class) >> 8 ) & 0xff )
+#define PCI_PROG_INTF( class ) ( (class) & 0xff )
/*
* PCI_ROM is used to build up entries in a struct pci_id array. It