diff options
author | Casey Leedom <leedom@chelsio.com> | 2010-06-25 12:11:05 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-06-28 23:59:34 -0700 |
commit | 17edf2594fef0c7ff186720915a9a73f77fee96b (patch) | |
tree | e839350c6a427a77bb2a7add3de5ebb5154e4ed9 /drivers/net/cxgb4/t4_regs.h | |
parent | 81323b74a83d4144367184926a80e030e2354d25 (diff) | |
download | kernel_samsung_aries-17edf2594fef0c7ff186720915a9a73f77fee96b.zip kernel_samsung_aries-17edf2594fef0c7ff186720915a9a73f77fee96b.tar.gz kernel_samsung_aries-17edf2594fef0c7ff186720915a9a73f77fee96b.tar.bz2 |
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 8fed46d..bf21c14 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) |