aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorMichael Brown <mcb30@etherboot.org>2007-06-30 15:56:00 +0100
committerMichael Brown <mcb30@etherboot.org>2007-06-30 15:56:00 +0100
commit4472e22b5e8fee18f592b68250d47732d728de7b (patch)
tree0c9d7ea18c1d4979318676124fd44ccc1a253cf3 /src/include
parentd05d8edd428efeff6c08dbd2423572de8e89ce06 (diff)
downloadipxe-4472e22b5e8fee18f592b68250d47732d728de7b.zip
ipxe-4472e22b5e8fee18f592b68250d47732d728de7b.tar.gz
ipxe-4472e22b5e8fee18f592b68250d47732d728de7b.tar.bz2
Implement the two UNDI API calls used by RIS.
Diffstat (limited to 'src/include')
-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 eaa1560..70f0423 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