Skip to content

Commit 424174f

Browse files
Vasundhara Volamdavem330
authored andcommitted
bnxt_en: Update firmware interface spec to 1.10.1.68.
Main changes is to extend hwrm_nvm_get_dev_info_output() for stored firmware versions and a new flag is added to fw_status_reg. Reviewed-by: Edwin Peer <edwin.peer@broadcom.com> Signed-off-by: Vasundhara Volam <vasundhara-v.volam@broadcom.com> Signed-off-by: Michael Chan <michael.chan@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent d3a6987 commit 424174f

File tree

1 file changed

+21
-3
lines changed

1 file changed

+21
-3
lines changed

drivers/net/ethernet/broadcom/bnxt/bnxt_hsi.h

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -373,6 +373,7 @@ struct cmd_nums {
373373
#define HWRM_TF_SESSION_RESC_FLUSH 0x2cfUL
374374
#define HWRM_TF_TBL_TYPE_GET 0x2daUL
375375
#define HWRM_TF_TBL_TYPE_SET 0x2dbUL
376+
#define HWRM_TF_TBL_TYPE_BULK_GET 0x2dcUL
376377
#define HWRM_TF_CTXT_MEM_ALLOC 0x2e2UL
377378
#define HWRM_TF_CTXT_MEM_FREE 0x2e3UL
378379
#define HWRM_TF_CTXT_MEM_RGTR 0x2e4UL
@@ -486,8 +487,8 @@ struct hwrm_err_output {
486487
#define HWRM_VERSION_MAJOR 1
487488
#define HWRM_VERSION_MINOR 10
488489
#define HWRM_VERSION_UPDATE 1
489-
#define HWRM_VERSION_RSVD 65
490-
#define HWRM_VERSION_STR "1.10.1.65"
490+
#define HWRM_VERSION_RSVD 68
491+
#define HWRM_VERSION_STR "1.10.1.68"
491492

492493
/* hwrm_ver_get_input (size:192b/24B) */
493494
struct hwrm_ver_get_input {
@@ -8272,7 +8273,7 @@ struct hwrm_nvm_get_dev_info_input {
82728273
__le64 resp_addr;
82738274
};
82748275

8275-
/* hwrm_nvm_get_dev_info_output (size:256b/32B) */
8276+
/* hwrm_nvm_get_dev_info_output (size:640b/80B) */
82768277
struct hwrm_nvm_get_dev_info_output {
82778278
__le16 error_code;
82788279
__le16 req_type;
@@ -8287,6 +8288,22 @@ struct hwrm_nvm_get_dev_info_output {
82878288
u8 nvm_cfg_ver_maj;
82888289
u8 nvm_cfg_ver_min;
82898290
u8 nvm_cfg_ver_upd;
8291+
u8 flags;
8292+
#define NVM_GET_DEV_INFO_RESP_FLAGS_FW_VER_VALID 0x1UL
8293+
char pkg_name[16];
8294+
__le16 hwrm_fw_major;
8295+
__le16 hwrm_fw_minor;
8296+
__le16 hwrm_fw_build;
8297+
__le16 hwrm_fw_patch;
8298+
__le16 mgmt_fw_major;
8299+
__le16 mgmt_fw_minor;
8300+
__le16 mgmt_fw_build;
8301+
__le16 mgmt_fw_patch;
8302+
__le16 roce_fw_major;
8303+
__le16 roce_fw_minor;
8304+
__le16 roce_fw_build;
8305+
__le16 roce_fw_patch;
8306+
u8 unused_0[7];
82908307
u8 valid;
82918308
};
82928309

@@ -8627,6 +8644,7 @@ struct fw_status_reg {
86278644
#define FW_STATUS_REG_CRASHDUMP_ONGOING 0x40000UL
86288645
#define FW_STATUS_REG_CRASHDUMP_COMPLETE 0x80000UL
86298646
#define FW_STATUS_REG_SHUTDOWN 0x100000UL
8647+
#define FW_STATUS_REG_CRASHED_NO_MASTER 0x200000UL
86308648
};
86318649

86328650
/* hcomm_status (size:64b/8B) */

0 commit comments

Comments
 (0)