From bc85cf756dc83e7477b3a2b742fbf33aa6e32ac3 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Thu, 14 Apr 2005 11:47:30 +0000 Subject: [PATCH] We need the ISA product ID mask available separately for 3c509.c. --- src/include/isa_ids.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/include/isa_ids.h b/src/include/isa_ids.h index 0eaa3da1..f21a093b 100644 --- a/src/include/isa_ids.h +++ b/src/include/isa_ids.h @@ -35,8 +35,9 @@ * Extract product ID and revision from combined product field * */ -#define ISA_PROD_ID(product) ( (product) & 0xf0ff ) -#define ISA_PROD_REV(product) ( ( (product) & 0x0f00 ) >> 8 ) +#define ISA_PROD_ID_MASK ( 0xf0ff ) +#define ISA_PROD_ID(product) ( (product) & ISA_PROD_ID_MASK ) +#define ISA_PROD_REV(product) ( ( (product) & ~ISA_PROD_ID_MASK ) >> 8 ) /* Functions in isa_ids.c */ extern char * isa_id_string ( uint16_t vendor, uint16_t product );