diff options
author | Michael Brown | 2005-04-14 13:47:30 +0200 |
---|---|---|
committer | Michael Brown | 2005-04-14 13:47:30 +0200 |
commit | bc85cf756dc83e7477b3a2b742fbf33aa6e32ac3 (patch) | |
tree | ca2b39c5f048a6c21d2862b08c727384a905dd0b /src | |
parent | Always include compiler.h. (diff) | |
download | ipxe-bc85cf756dc83e7477b3a2b742fbf33aa6e32ac3.tar.gz ipxe-bc85cf756dc83e7477b3a2b742fbf33aa6e32ac3.tar.xz ipxe-bc85cf756dc83e7477b3a2b742fbf33aa6e32ac3.zip |
We need the ISA product ID mask available separately for 3c509.c.
Diffstat (limited to 'src')
-rw-r--r-- | src/include/isa_ids.h | 5 |
1 files 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 ); |