aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/lpfc/lpfc_hw4.h
diff options
context:
space:
mode:
authorJames Smart <james.smart@emulex.com>2010-02-12 14:41:27 -0500
committerJames Bottomley <James.Bottomley@suse.de>2010-02-17 18:40:29 -0500
commitecfd03c6a99ad98fea5cb75ec83cd9945adff8d9 (patch)
tree9c480ef51f00384e616a68c6a6fc8a8f4b7c8795 /drivers/scsi/lpfc/lpfc_hw4.h
parent1dfb5a47bc76c700969e41cdc2df6d1bf0adeb62 (diff)
[SCSI] lpfc 8.3.9: Discovery changes to the lpfc driver.
- Add init_vpi mailbox command before re-registering VPI. - Add Fast FCF failover support. Signed-off-by: James Smart <james.smart@emulex.com> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/lpfc/lpfc_hw4.h')
-rw-r--r--drivers/scsi/lpfc/lpfc_hw4.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/drivers/scsi/lpfc/lpfc_hw4.h b/drivers/scsi/lpfc/lpfc_hw4.h
index ae0c53dba845..999e49f6071e 100644
--- a/drivers/scsi/lpfc/lpfc_hw4.h
+++ b/drivers/scsi/lpfc/lpfc_hw4.h
@@ -797,6 +797,7 @@ struct mbox_header {
797#define LPFC_MBOX_OPCODE_FCOE_ADD_FCF 0x09 797#define LPFC_MBOX_OPCODE_FCOE_ADD_FCF 0x09
798#define LPFC_MBOX_OPCODE_FCOE_DELETE_FCF 0x0A 798#define LPFC_MBOX_OPCODE_FCOE_DELETE_FCF 0x0A
799#define LPFC_MBOX_OPCODE_FCOE_POST_HDR_TEMPLATE 0x0B 799#define LPFC_MBOX_OPCODE_FCOE_POST_HDR_TEMPLATE 0x0B
800#define LPFC_MBOX_OPCODE_FCOE_REDISCOVER_FCF 0x10
800 801
801/* Mailbox command structures */ 802/* Mailbox command structures */
802struct eq_context { 803struct eq_context {
@@ -1297,6 +1298,19 @@ struct lpfc_mbx_del_fcf_tbl_entry {
1297#define lpfc_mbx_del_fcf_tbl_index_WORD word10 1298#define lpfc_mbx_del_fcf_tbl_index_WORD word10
1298}; 1299};
1299 1300
1301struct lpfc_mbx_redisc_fcf_tbl {
1302 struct mbox_header header;
1303 uint32_t word10;
1304#define lpfc_mbx_redisc_fcf_count_SHIFT 0
1305#define lpfc_mbx_redisc_fcf_count_MASK 0x0000FFFF
1306#define lpfc_mbx_redisc_fcf_count_WORD word10
1307 uint32_t resvd;
1308 uint32_t word12;
1309#define lpfc_mbx_redisc_fcf_index_SHIFT 0
1310#define lpfc_mbx_redisc_fcf_index_MASK 0x0000FFFF
1311#define lpfc_mbx_redisc_fcf_index_WORD word12
1312};
1313
1300struct lpfc_mbx_query_fw_cfg { 1314struct lpfc_mbx_query_fw_cfg {
1301 struct mbox_header header; 1315 struct mbox_header header;
1302 uint32_t config_number; 1316 uint32_t config_number;
@@ -1859,6 +1873,7 @@ struct lpfc_mqe {
1859 struct lpfc_mbx_read_fcf_tbl read_fcf_tbl; 1873 struct lpfc_mbx_read_fcf_tbl read_fcf_tbl;
1860 struct lpfc_mbx_add_fcf_tbl_entry add_fcf_entry; 1874 struct lpfc_mbx_add_fcf_tbl_entry add_fcf_entry;
1861 struct lpfc_mbx_del_fcf_tbl_entry del_fcf_entry; 1875 struct lpfc_mbx_del_fcf_tbl_entry del_fcf_entry;
1876 struct lpfc_mbx_redisc_fcf_tbl redisc_fcf_tbl;
1862 struct lpfc_mbx_reg_fcfi reg_fcfi; 1877 struct lpfc_mbx_reg_fcfi reg_fcfi;
1863 struct lpfc_mbx_unreg_fcfi unreg_fcfi; 1878 struct lpfc_mbx_unreg_fcfi unreg_fcfi;
1864 struct lpfc_mbx_mq_create mq_create; 1879 struct lpfc_mbx_mq_create mq_create;
@@ -1975,6 +1990,7 @@ struct lpfc_acqe_fcoe {
1975#define LPFC_FCOE_EVENT_TYPE_FCF_TABLE_FULL 0x2 1990#define LPFC_FCOE_EVENT_TYPE_FCF_TABLE_FULL 0x2
1976#define LPFC_FCOE_EVENT_TYPE_FCF_DEAD 0x3 1991#define LPFC_FCOE_EVENT_TYPE_FCF_DEAD 0x3
1977#define LPFC_FCOE_EVENT_TYPE_CVL 0x4 1992#define LPFC_FCOE_EVENT_TYPE_CVL 0x4
1993#define LPFC_FCOE_EVENT_TYPE_FCF_PARAM_MOD 0x5
1978 uint32_t event_tag; 1994 uint32_t event_tag;
1979 uint32_t trailer; 1995 uint32_t trailer;
1980}; 1996};