ソースを参照

Added PCI_BASE_CLASS() macro

tags/v0.9.3
Michael Brown 18年前
コミット
79c5f0ba04
1個のファイルの変更2行の追加0行の削除
  1. 2
    0
      src/include/gpxe/pci.h

+ 2
- 0
src/include/gpxe/pci.h ファイルの表示

@@ -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

読み込み中…
キャンセル
保存