Просмотр исходного кода

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

tags/v0.9.3
Michael Brown 19 лет назад
Родитель
Сommit
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 );

Загрузка…
Отмена
Сохранить