bnxt: Update firmware header file with the latest one
hsi_struct_def.h file contains all firmware (HWRM) data struct's, updated that with the latest one which was released on 30'th Aug. After this upgrade, HWRM version will be 1.8.1.5 (earlier it was 1.4.0). Submitted by: Bhargava Chenna Marreddy <bhargava.marreddy@broadcom.com> Reviewed by: shurd, sbruno Approved by: sbruno (mentor) Sponsored by: Broadcom Limited Differential Revision: https://reviews.freebsd.org/D12203
This commit is contained in:
parent
96b2e63f10
commit
8705464353
@ -1478,12 +1478,12 @@ bnxt_hwrm_port_phy_qcfg(struct bnxt_softc *softc)
|
||||
goto exit;
|
||||
|
||||
link_info->phy_link_status = resp->link;
|
||||
link_info->duplex = resp->duplex;
|
||||
link_info->duplex = resp->duplex_cfg;
|
||||
link_info->pause = resp->pause;
|
||||
link_info->auto_mode = resp->auto_mode;
|
||||
link_info->auto_pause = resp->auto_pause;
|
||||
link_info->force_pause = resp->force_pause;
|
||||
link_info->duplex_setting = resp->duplex;
|
||||
link_info->duplex_setting = resp->duplex_cfg;
|
||||
if (link_info->phy_link_status == HWRM_PORT_PHY_QCFG_OUTPUT_LINK_LINK)
|
||||
link_info->link_speed = le16toh(resp->link_speed);
|
||||
else
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -930,7 +930,7 @@ bnxt_init(if_ctx_t ctx)
|
||||
softc->def_cp_ring.v_bit = 1;
|
||||
bnxt_mark_cpr_invalid(&softc->def_cp_ring);
|
||||
rc = bnxt_hwrm_ring_alloc(softc,
|
||||
HWRM_RING_ALLOC_INPUT_RING_TYPE_CMPL,
|
||||
HWRM_RING_ALLOC_INPUT_RING_TYPE_L2_CMPL,
|
||||
&softc->def_cp_ring.ring,
|
||||
(uint16_t)HWRM_NA_SIGNATURE,
|
||||
HWRM_NA_SIGNATURE, true);
|
||||
@ -956,7 +956,7 @@ bnxt_init(if_ctx_t ctx)
|
||||
softc->rx_cp_rings[i].last_idx = UINT32_MAX;
|
||||
bnxt_mark_cpr_invalid(&softc->rx_cp_rings[i]);
|
||||
rc = bnxt_hwrm_ring_alloc(softc,
|
||||
HWRM_RING_ALLOC_INPUT_RING_TYPE_CMPL,
|
||||
HWRM_RING_ALLOC_INPUT_RING_TYPE_L2_CMPL,
|
||||
&softc->rx_cp_rings[i].ring, (uint16_t)HWRM_NA_SIGNATURE,
|
||||
HWRM_NA_SIGNATURE, true);
|
||||
if (rc)
|
||||
@ -1054,7 +1054,7 @@ bnxt_init(if_ctx_t ctx)
|
||||
softc->tx_cp_rings[i].v_bit = 1;
|
||||
bnxt_mark_cpr_invalid(&softc->tx_cp_rings[i]);
|
||||
rc = bnxt_hwrm_ring_alloc(softc,
|
||||
HWRM_RING_ALLOC_INPUT_RING_TYPE_CMPL,
|
||||
HWRM_RING_ALLOC_INPUT_RING_TYPE_L2_CMPL,
|
||||
&softc->tx_cp_rings[i].ring, (uint16_t)HWRM_NA_SIGNATURE,
|
||||
HWRM_NA_SIGNATURE, false);
|
||||
if (rc)
|
||||
@ -1154,7 +1154,7 @@ bnxt_media_status(if_ctx_t ctx, struct ifmediareq * ifmr)
|
||||
else
|
||||
ifmr->ifm_status &= ~IFM_ACTIVE;
|
||||
|
||||
if (link_info->duplex == HWRM_PORT_PHY_QCFG_OUTPUT_DUPLEX_FULL)
|
||||
if (link_info->duplex == HWRM_PORT_PHY_QCFG_OUTPUT_DUPLEX_CFG_FULL)
|
||||
ifmr->ifm_active |= IFM_FDX;
|
||||
else
|
||||
ifmr->ifm_active |= IFM_HDX;
|
||||
@ -2288,7 +2288,7 @@ bnxt_report_link(struct bnxt_softc *softc)
|
||||
|
||||
if (softc->link_info.link_up) {
|
||||
if (softc->link_info.duplex ==
|
||||
HWRM_PORT_PHY_QCFG_OUTPUT_DUPLEX_FULL)
|
||||
HWRM_PORT_PHY_QCFG_OUTPUT_DUPLEX_CFG_FULL)
|
||||
duplex = "full duplex";
|
||||
else
|
||||
duplex = "half duplex";
|
||||
|
Loading…
Reference in New Issue
Block a user