diff options
author | Hariprasad Shenai <hariprasad@chelsio.com> | 2013-12-03 15:35:56 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-12-04 01:55:40 +0400 |
commit | d14807dd8e7eaa41a8fee5fc3acbdaf2a0258b76 (patch) | |
tree | 069fd7c30e44064cb7235ab35bb3d25a84445ce0 /drivers/net/ethernet/chelsio/cxgb4/t4_regs.h | |
parent | 1b85ee09aac2f32f24b8db72eb152089b92ace87 (diff) | |
download | linux-d14807dd8e7eaa41a8fee5fc3acbdaf2a0258b76.tar.xz |
cxgb4: Much cleaner implementation of is_t4()/is_t5()
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/t4_regs.h')
-rw-r--r-- | drivers/net/ethernet/chelsio/cxgb4/t4_regs.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/ethernet/chelsio/cxgb4/t4_regs.h b/drivers/net/ethernet/chelsio/cxgb4/t4_regs.h index ef146c0ba481..a7d81899a0fc 100644 --- a/drivers/net/ethernet/chelsio/cxgb4/t4_regs.h +++ b/drivers/net/ethernet/chelsio/cxgb4/t4_regs.h @@ -1092,6 +1092,11 @@ #define PL_REV 0x1943c +#define S_REV 0 +#define M_REV 0xfU +#define V_REV(x) ((x) << S_REV) +#define G_REV(x) (((x) >> S_REV) & M_REV) + #define LE_DB_CONFIG 0x19c04 #define HASHEN 0x00100000U |