Przeglądaj źródła

Added PCI_BASE_CLASS() macro

tags/v0.9.3
Michael Brown 18 lat temu
rodzic
commit
79c5f0ba04
1 zmienionych plików z 2 dodań i 0 usunięć
  1. 2
    0
      src/include/gpxe/pci.h

+ 2
- 0
src/include/gpxe/pci.h Wyświetl plik

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

Ładowanie…
Anuluj
Zapisz