diff options
author | Michael Brown | 2007-06-30 16:56:00 +0200 |
---|---|---|
committer | Michael Brown | 2007-06-30 16:56:00 +0200 |
commit | 4472e22b5e8fee18f592b68250d47732d728de7b (patch) | |
tree | 0c9d7ea18c1d4979318676124fd44ccc1a253cf3 /src/include/gpxe/pci.h | |
parent | Implement the "overwrite TFTP filename" Microsoft RIS bug workaround. (diff) | |
download | ipxe-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.h | 4 |
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 |