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