From: Michael Brown Date: Thu, 14 Apr 2005 11:47:30 +0000 (+0000) Subject: We need the ISA product ID mask available separately for 3c509.c. X-Git-Tag: v0.9.3~1972 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bc85cf756dc83e7477b3a2b742fbf33aa6e32ac3;p=thirdparty%2Fipxe.git We need the ISA product ID mask available separately for 3c509.c. --- diff --git a/src/include/isa_ids.h b/src/include/isa_ids.h index 0eaa3da12..f21a093be 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 );