diff options
author | Venkat Duvvuru <venkatkumar.duvvuru@broadcom.com> | 2018-12-20 11:38:47 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-12-20 19:26:16 +0300 |
commit | 5c209fc82159f2f71e2772f28cd1d447b821e98d (patch) | |
tree | f5f808398d7faa949ad714615a0d12205f8b5f33 /drivers/net/ethernet/broadcom/bnxt/bnxt.h | |
parent | 89455017fb8dd5dff0d088ecb82bccf9f9b715cd (diff) | |
download | linux-5c209fc82159f2f71e2772f28cd1d447b821e98d.tar.xz |
bnxt_en: Introduce bnxt_get_hwrm_resp_addr & bnxt_get_hwrm_seq_id routines.
These routines will be enhanced in the subsequent patch to
return the 2nd firmware comm. channel's hwrm response address &
sequence id respectively.
Signed-off-by: Venkat Duvvuru <venkatkumar.duvvuru@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/broadcom/bnxt/bnxt.h')
-rw-r--r-- | drivers/net/ethernet/broadcom/bnxt/bnxt.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/net/ethernet/broadcom/bnxt/bnxt.h b/drivers/net/ethernet/broadcom/bnxt/bnxt.h index 57598164830c..214af8fe84c2 100644 --- a/drivers/net/ethernet/broadcom/bnxt/bnxt.h +++ b/drivers/net/ethernet/broadcom/bnxt/bnxt.h @@ -1673,6 +1673,19 @@ static inline void bnxt_db_write(struct bnxt *bp, struct bnxt_db_info *db, } } +static inline void *bnxt_get_hwrm_resp_addr(struct bnxt *bp, void *req) +{ + return bp->hwrm_cmd_resp_addr; +} + +static inline u16 bnxt_get_hwrm_seq_id(struct bnxt *bp) +{ + u16 seq_id; + + seq_id = bp->hwrm_cmd_seq++; + return seq_id; +} + extern const u16 bnxt_lhint_arr[]; int bnxt_alloc_rx_data(struct bnxt *bp, struct bnxt_rx_ring_info *rxr, |