diff options
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_def.h')
-rw-r--r-- | drivers/scsi/qla2xxx/qla_def.h | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/drivers/scsi/qla2xxx/qla_def.h b/drivers/scsi/qla2xxx/qla_def.h index 6734453ea28a..139ea0e27fd7 100644 --- a/drivers/scsi/qla2xxx/qla_def.h +++ b/drivers/scsi/qla2xxx/qla_def.h | |||
@@ -608,7 +608,9 @@ typedef struct { | |||
608 | #define MBC_SERDES_PARAMS 0x10 /* Serdes Tx Parameters. */ | 608 | #define MBC_SERDES_PARAMS 0x10 /* Serdes Tx Parameters. */ |
609 | #define MBC_GET_IOCB_STATUS 0x12 /* Get IOCB status command. */ | 609 | #define MBC_GET_IOCB_STATUS 0x12 /* Get IOCB status command. */ |
610 | #define MBC_GET_TIMEOUT_PARAMS 0x22 /* Get FW timeouts. */ | 610 | #define MBC_GET_TIMEOUT_PARAMS 0x22 /* Get FW timeouts. */ |
611 | #define MBC_TRACE_CONTROL 0x27 /* Trace control command. */ | ||
611 | #define MBC_GEN_SYSTEM_ERROR 0x2a /* Generate System Error. */ | 612 | #define MBC_GEN_SYSTEM_ERROR 0x2a /* Generate System Error. */ |
613 | #define MBC_READ_SFP 0x31 /* Read SFP Data. */ | ||
612 | #define MBC_SET_TIMEOUT_PARAMS 0x32 /* Set FW timeouts. */ | 614 | #define MBC_SET_TIMEOUT_PARAMS 0x32 /* Set FW timeouts. */ |
613 | #define MBC_MID_INITIALIZE_FIRMWARE 0x48 /* MID Initialize firmware. */ | 615 | #define MBC_MID_INITIALIZE_FIRMWARE 0x48 /* MID Initialize firmware. */ |
614 | #define MBC_MID_GET_VP_DATABASE 0x49 /* MID Get VP Database. */ | 616 | #define MBC_MID_GET_VP_DATABASE 0x49 /* MID Get VP Database. */ |
@@ -618,6 +620,9 @@ typedef struct { | |||
618 | #define MBC_GET_LINK_PRIV_STATS 0x6d /* Get link & private data. */ | 620 | #define MBC_GET_LINK_PRIV_STATS 0x6d /* Get link & private data. */ |
619 | #define MBC_SET_VENDOR_ID 0x76 /* Set Vendor ID. */ | 621 | #define MBC_SET_VENDOR_ID 0x76 /* Set Vendor ID. */ |
620 | 622 | ||
623 | #define TC_ENABLE 4 | ||
624 | #define TC_DISABLE 5 | ||
625 | |||
621 | /* Firmware return data sizes */ | 626 | /* Firmware return data sizes */ |
622 | #define FCAL_MAP_SIZE 128 | 627 | #define FCAL_MAP_SIZE 128 |
623 | 628 | ||
@@ -1997,7 +2002,6 @@ struct isp_operations { | |||
1997 | uint32_t); | 2002 | uint32_t); |
1998 | 2003 | ||
1999 | void (*fw_dump) (struct scsi_qla_host *, int); | 2004 | void (*fw_dump) (struct scsi_qla_host *, int); |
2000 | void (*ascii_fw_dump) (struct scsi_qla_host *); | ||
2001 | 2005 | ||
2002 | int (*beacon_on) (struct scsi_qla_host *); | 2006 | int (*beacon_on) (struct scsi_qla_host *); |
2003 | int (*beacon_off) (struct scsi_qla_host *); | 2007 | int (*beacon_off) (struct scsi_qla_host *); |
@@ -2041,6 +2045,7 @@ typedef struct scsi_qla_host { | |||
2041 | uint32_t enable_led_scheme :1; | 2045 | uint32_t enable_led_scheme :1; |
2042 | uint32_t msi_enabled :1; | 2046 | uint32_t msi_enabled :1; |
2043 | uint32_t msix_enabled :1; | 2047 | uint32_t msix_enabled :1; |
2048 | uint32_t disable_serdes :1; | ||
2044 | } flags; | 2049 | } flags; |
2045 | 2050 | ||
2046 | atomic_t loop_state; | 2051 | atomic_t loop_state; |
@@ -2238,6 +2243,11 @@ typedef struct scsi_qla_host { | |||
2238 | struct sns_cmd_pkt *sns_cmd; | 2243 | struct sns_cmd_pkt *sns_cmd; |
2239 | dma_addr_t sns_cmd_dma; | 2244 | dma_addr_t sns_cmd_dma; |
2240 | 2245 | ||
2246 | #define SFP_DEV_SIZE 256 | ||
2247 | #define SFP_BLOCK_SIZE 64 | ||
2248 | void *sfp_data; | ||
2249 | dma_addr_t sfp_data_dma; | ||
2250 | |||
2241 | struct task_struct *dpc_thread; | 2251 | struct task_struct *dpc_thread; |
2242 | uint8_t dpc_active; /* DPC routine is active */ | 2252 | uint8_t dpc_active; /* DPC routine is active */ |
2243 | 2253 | ||
@@ -2303,11 +2313,12 @@ typedef struct scsi_qla_host { | |||
2303 | uint16_t fw_seriallink_options24[4]; | 2313 | uint16_t fw_seriallink_options24[4]; |
2304 | 2314 | ||
2305 | /* Firmware dump information. */ | 2315 | /* Firmware dump information. */ |
2306 | void *fw_dump; | 2316 | struct qla2xxx_fw_dump *fw_dump; |
2317 | uint32_t fw_dump_len; | ||
2307 | int fw_dumped; | 2318 | int fw_dumped; |
2308 | int fw_dump_reading; | 2319 | int fw_dump_reading; |
2309 | char *fw_dump_buffer; | 2320 | dma_addr_t eft_dma; |
2310 | int fw_dump_buffer_len; | 2321 | void *eft; |
2311 | 2322 | ||
2312 | uint8_t host_str[16]; | 2323 | uint8_t host_str[16]; |
2313 | uint32_t pci_attr; | 2324 | uint32_t pci_attr; |