Browse Source

Added PCI_BASE_CLASS() macro

tags/v0.9.3
Michael Brown 18 years ago
parent
commit
79c5f0ba04
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      src/include/gpxe/pci.h

+ 2
- 0
src/include/gpxe/pci.h View File

311
 #define PCI_SLOT( devfn )	( ( (devfn) >> 3 ) & 0x1f )
311
 #define PCI_SLOT( devfn )	( ( (devfn) >> 3 ) & 0x1f )
312
 #define PCI_FUNC( devfn )	( (devfn) & 0x07 )
312
 #define PCI_FUNC( devfn )	( (devfn) & 0x07 )
313
 
313
 
314
+#define PCI_BASE_CLASS( class )	( (class) >> 16 )
315
+
314
 /*
316
 /*
315
  * PCI_ROM is used to build up entries in a struct pci_id array.  It
317
  * PCI_ROM is used to build up entries in a struct pci_id array.  It
316
  * is also parsed by parserom.pl to generate Makefile rules and files
318
  * is also parsed by parserom.pl to generate Makefile rules and files

Loading…
Cancel
Save