Selaa lähdekoodia

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

tags/v0.9.3
Michael Brown 19 vuotta sitten
vanhempi
commit
bc85cf756d
1 muutettua tiedostoa jossa 3 lisäystä ja 2 poistoa
  1. 3
    2
      src/include/isa_ids.h

+ 3
- 2
src/include/isa_ids.h Näytä tiedosto

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

Loading…
Peruuta
Tallenna