Browse Source

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

tags/v0.9.3
Michael Brown 19 years ago
parent
commit
bc85cf756d
1 changed files with 3 additions and 2 deletions
  1. 3
    2
      src/include/isa_ids.h

+ 3
- 2
src/include/isa_ids.h View File

35
  * Extract product ID and revision from combined product field
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
 /* Functions in isa_ids.c */
42
 /* Functions in isa_ids.c */
42
 extern char * isa_id_string ( uint16_t vendor, uint16_t product );
43
 extern char * isa_id_string ( uint16_t vendor, uint16_t product );

Loading…
Cancel
Save