diff options
author | Casey Leedom <leedom@chelsio.com> | 2010-06-25 16:09:38 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-06-29 10:58:54 +0400 |
commit | 1704d74894912b8ecc3e95cecd7bde336a0b1bf2 (patch) | |
tree | 4081867356b4afa7825eefd5f014342803e5166a /drivers/net/cxgb4/t4_hw.h | |
parent | a71e8329170ece5f684aa363dfa69828cbfd5184 (diff) | |
download | linux-1704d74894912b8ecc3e95cecd7bde336a0b1bf2.tar.xz |
cxgb4vf: small changes to message processing structures/macros
Split cpl_tx_pkt_lso into core message structure and encapsulated message,
make RSPD_LEN macro match other response descriptor macros.
Signed-off-by: Casey Leedom
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/cxgb4/t4_hw.h')
-rw-r--r-- | drivers/net/cxgb4/t4_hw.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/cxgb4/t4_hw.h b/drivers/net/cxgb4/t4_hw.h index f886677b93ec..98c02bedc02d 100644 --- a/drivers/net/cxgb4/t4_hw.h +++ b/drivers/net/cxgb4/t4_hw.h @@ -88,11 +88,13 @@ struct rsp_ctrl { }; #define RSPD_NEWBUF 0x80000000U -#define RSPD_LEN 0x7fffffffU +#define RSPD_LEN(x) (((x) >> 0) & 0x7fffffffU) +#define RSPD_QID(x) RSPD_LEN(x) #define RSPD_GEN(x) ((x) >> 7) #define RSPD_TYPE(x) (((x) >> 4) & 3) #define QINTR_CNT_EN 0x1 #define QINTR_TIMER_IDX(x) ((x) << 1) +#define QINTR_TIMER_IDX_GET(x) (((x) << 1) & 0x7) #endif /* __T4_HW_H */ |