浏览代码

We need the ISA product ID mask available separately for 3c509.c.

tags/v0.9.3
Michael Brown 19 年前
父节点
当前提交
bc85cf756d
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 3
    2
      src/include/isa_ids.h

+ 3
- 2
src/include/isa_ids.h 查看文件

@@ -35,8 +35,9 @@
35 35
  * Extract product ID and revision from combined product field
36 36
  *
37 37
  */
38
-#define ISA_PROD_ID(product)	( (product) & 0xf0ff )
39
-#define ISA_PROD_REV(product)	( ( (product) & 0x0f00 ) >> 8 )
38
+#define ISA_PROD_ID_MASK	( 0xf0ff )
39
+#define ISA_PROD_ID(product)	( (product) & ISA_PROD_ID_MASK )
40
+#define ISA_PROD_REV(product)	( ( (product) & ~ISA_PROD_ID_MASK ) >> 8 )
40 41
 
41 42
 /* Functions in isa_ids.c */
42 43
 extern char * isa_id_string ( uint16_t vendor, uint16_t product );

正在加载...
取消
保存