浏览代码

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

正在加载...
取消
保存