aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/be2iscsi/be_cmds.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/be2iscsi/be_cmds.h')
-rw-r--r--drivers/scsi/be2iscsi/be_cmds.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/drivers/scsi/be2iscsi/be_cmds.h b/drivers/scsi/be2iscsi/be_cmds.h
index 60d144550f76..b0b36c6a145f 100644
--- a/drivers/scsi/be2iscsi/be_cmds.h
+++ b/drivers/scsi/be2iscsi/be_cmds.h
@@ -596,6 +596,28 @@ struct be_cmd_hba_name {
596 u8 initiator_alias[BEISCSI_ALIAS_LEN]; 596 u8 initiator_alias[BEISCSI_ALIAS_LEN];
597} __packed; 597} __packed;
598 598
599struct be_cmd_ntwk_link_status_req {
600 struct be_cmd_req_hdr hdr;
601 u32 rsvd0;
602} __packed;
603
604/*** Port Speed Values ***/
605#define BE2ISCSI_LINK_SPEED_ZERO 0x00
606#define BE2ISCSI_LINK_SPEED_10MBPS 0x01
607#define BE2ISCSI_LINK_SPEED_100MBPS 0x02
608#define BE2ISCSI_LINK_SPEED_1GBPS 0x03
609#define BE2ISCSI_LINK_SPEED_10GBPS 0x04
610struct be_cmd_ntwk_link_status_resp {
611 struct be_cmd_resp_hdr hdr;
612 u8 phys_port;
613 u8 mac_duplex;
614 u8 mac_speed;
615 u8 mac_fault;
616 u8 mgmt_mac_duplex;
617 u8 mgmt_mac_speed;
618 u16 qos_link_speed;
619 u32 logical_link_speed;
620} __packed;
599 621
600int beiscsi_cmd_eq_create(struct be_ctrl_info *ctrl, 622int beiscsi_cmd_eq_create(struct be_ctrl_info *ctrl,
601 struct be_queue_info *eq, int eq_delay); 623 struct be_queue_info *eq, int eq_delay);
@@ -615,6 +637,7 @@ int be_poll_mcc(struct be_ctrl_info *ctrl);
615int mgmt_check_supported_fw(struct be_ctrl_info *ctrl, 637int mgmt_check_supported_fw(struct be_ctrl_info *ctrl,
616 struct beiscsi_hba *phba); 638 struct beiscsi_hba *phba);
617unsigned int be_cmd_get_initname(struct beiscsi_hba *phba); 639unsigned int be_cmd_get_initname(struct beiscsi_hba *phba);
640unsigned int be_cmd_get_port_speed(struct beiscsi_hba *phba);
618 641
619void free_mcc_tag(struct be_ctrl_info *ctrl, unsigned int tag); 642void free_mcc_tag(struct be_ctrl_info *ctrl, unsigned int tag);
620/*ISCSI Functuions */ 643/*ISCSI Functuions */
@@ -879,6 +902,7 @@ struct be_cmd_get_all_if_id_req {
879} __packed; 902} __packed;
880 903
881#define ISCSI_OPCODE_SCSI_DATA_OUT 5 904#define ISCSI_OPCODE_SCSI_DATA_OUT 5
905#define OPCODE_COMMON_NTWK_LINK_STATUS_QUERY 5
882#define OPCODE_COMMON_MODIFY_EQ_DELAY 41 906#define OPCODE_COMMON_MODIFY_EQ_DELAY 41
883#define OPCODE_COMMON_ISCSI_CLEANUP 59 907#define OPCODE_COMMON_ISCSI_CLEANUP 59
884#define OPCODE_COMMON_TCP_UPLOAD 56 908#define OPCODE_COMMON_TCP_UPLOAD 56