diff options
author | Casey Leedom <leedom@chelsio.com> | 2010-06-25 14:11:05 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-06-29 08:59:34 +0200 |
commit | 17edf2594fef0c7ff186720915a9a73f77fee96b (patch) | |
tree | e839350c6a427a77bb2a7add3de5ebb5154e4ed9 /drivers/net/cxgb4/t4_regs.h | |
parent | cxgb4vf: update to latest T4 firmware API file (diff) | |
download | linux-17edf2594fef0c7ff186720915a9a73f77fee96b.tar.xz linux-17edf2594fef0c7ff186720915a9a73f77fee96b.zip |
cxgb4vf: Add new macros and definitions for hardware constants
Add new macros and definitions for hardware constants.
Signed-off-by: Casey Leedom
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/cxgb4/t4_regs.h')
-rw-r--r-- | drivers/net/cxgb4/t4_regs.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/cxgb4/t4_regs.h b/drivers/net/cxgb4/t4_regs.h index 8fed46df886c..bf21c148fb2b 100644 --- a/drivers/net/cxgb4/t4_regs.h +++ b/drivers/net/cxgb4/t4_regs.h @@ -93,12 +93,15 @@ #define PKTSHIFT_MASK 0x00001c00U #define PKTSHIFT_SHIFT 10 #define PKTSHIFT(x) ((x) << PKTSHIFT_SHIFT) +#define PKTSHIFT_GET(x) (((x) & PKTSHIFT_MASK) >> PKTSHIFT_SHIFT) #define INGPCIEBOUNDARY_MASK 0x00000380U #define INGPCIEBOUNDARY_SHIFT 7 #define INGPCIEBOUNDARY(x) ((x) << INGPCIEBOUNDARY_SHIFT) #define INGPADBOUNDARY_MASK 0x00000070U #define INGPADBOUNDARY_SHIFT 4 #define INGPADBOUNDARY(x) ((x) << INGPADBOUNDARY_SHIFT) +#define INGPADBOUNDARY_GET(x) (((x) & INGPADBOUNDARY_MASK) \ + >> INGPADBOUNDARY_SHIFT) #define EGRPCIEBOUNDARY_MASK 0x0000000eU #define EGRPCIEBOUNDARY_SHIFT 1 #define EGRPCIEBOUNDARY(x) ((x) << EGRPCIEBOUNDARY_SHIFT) |