diff options
author | Hariprasad Shenai <hariprasad@chelsio.com> | 2013-12-03 12:35:57 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-12-03 22:55:40 +0100 |
commit | 70ee366689bd6d81f7f25553fc81efddc07eb65b (patch) | |
tree | 694622639455f111090bb23674360f06b22aee3e /drivers/net/ethernet/chelsio/cxgb4 | |
parent | cxgb4: Much cleaner implementation of is_t4()/is_t5() (diff) | |
download | linux-70ee366689bd6d81f7f25553fc81efddc07eb65b.tar.xz linux-70ee366689bd6d81f7f25553fc81efddc07eb65b.zip |
cxgb4vf: added much cleaner implementation of is_t4()
Signed-off-by: Hariprasad Shenai <hariprasad@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/chelsio/cxgb4')
-rw-r--r-- | drivers/net/ethernet/chelsio/cxgb4/t4_regs.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/net/ethernet/chelsio/cxgb4/t4_regs.h b/drivers/net/ethernet/chelsio/cxgb4/t4_regs.h index a7d81899a0fc..0a8205d69d2c 100644 --- a/drivers/net/ethernet/chelsio/cxgb4/t4_regs.h +++ b/drivers/net/ethernet/chelsio/cxgb4/t4_regs.h @@ -1204,4 +1204,13 @@ #define EDC_STRIDE_T5 (EDC_T51_BASE_ADDR - EDC_T50_BASE_ADDR) #define EDC_REG_T5(reg, idx) (reg + EDC_STRIDE_T5 * idx) +#define A_PL_VF_REV 0x4 +#define A_PL_VF_WHOAMI 0x0 +#define A_PL_VF_REVISION 0x8 + +#define S_CHIPID 4 +#define M_CHIPID 0xfU +#define V_CHIPID(x) ((x) << S_CHIPID) +#define G_CHIPID(x) (((x) >> S_CHIPID) & M_CHIPID) + #endif /* __T4_REGS_H */ |