diff options
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_def.h')
-rw-r--r-- | drivers/scsi/qla2xxx/qla_def.h | 28 |
1 files changed, 21 insertions, 7 deletions
diff --git a/drivers/scsi/qla2xxx/qla_def.h b/drivers/scsi/qla2xxx/qla_def.h index 8dd600013bd1..f25f41a499e5 100644 --- a/drivers/scsi/qla2xxx/qla_def.h +++ b/drivers/scsi/qla2xxx/qla_def.h | |||
@@ -25,7 +25,6 @@ | |||
25 | #include <linux/firmware.h> | 25 | #include <linux/firmware.h> |
26 | #include <linux/aer.h> | 26 | #include <linux/aer.h> |
27 | #include <linux/mutex.h> | 27 | #include <linux/mutex.h> |
28 | #include <linux/semaphore.h> | ||
29 | 28 | ||
30 | #include <scsi/scsi.h> | 29 | #include <scsi/scsi.h> |
31 | #include <scsi/scsi_host.h> | 30 | #include <scsi/scsi_host.h> |
@@ -864,7 +863,8 @@ struct link_statistics { | |||
864 | uint32_t prim_seq_err_cnt; | 863 | uint32_t prim_seq_err_cnt; |
865 | uint32_t inval_xmit_word_cnt; | 864 | uint32_t inval_xmit_word_cnt; |
866 | uint32_t inval_crc_cnt; | 865 | uint32_t inval_crc_cnt; |
867 | uint32_t unused1[0x1b]; | 866 | uint32_t lip_cnt; |
867 | uint32_t unused1[0x1a]; | ||
868 | uint32_t tx_frames; | 868 | uint32_t tx_frames; |
869 | uint32_t rx_frames; | 869 | uint32_t rx_frames; |
870 | uint32_t dumped_frames; | 870 | uint32_t dumped_frames; |
@@ -1544,7 +1544,6 @@ typedef struct fc_port { | |||
1544 | int login_retry; | 1544 | int login_retry; |
1545 | atomic_t port_down_timer; | 1545 | atomic_t port_down_timer; |
1546 | 1546 | ||
1547 | spinlock_t rport_lock; | ||
1548 | struct fc_rport *rport, *drport; | 1547 | struct fc_rport *rport, *drport; |
1549 | u32 supported_classes; | 1548 | u32 supported_classes; |
1550 | 1549 | ||
@@ -2109,7 +2108,7 @@ struct scsi_qla_host; | |||
2109 | 2108 | ||
2110 | struct qla_msix_entry { | 2109 | struct qla_msix_entry { |
2111 | int have_irq; | 2110 | int have_irq; |
2112 | uint16_t msix_vector; | 2111 | uint32_t msix_vector; |
2113 | uint16_t msix_entry; | 2112 | uint16_t msix_entry; |
2114 | }; | 2113 | }; |
2115 | 2114 | ||
@@ -2155,6 +2154,12 @@ struct qla_chip_state_84xx { | |||
2155 | uint32_t gold_fw_version; | 2154 | uint32_t gold_fw_version; |
2156 | }; | 2155 | }; |
2157 | 2156 | ||
2157 | struct qla_statistics { | ||
2158 | uint32_t total_isp_aborts; | ||
2159 | uint64_t input_bytes; | ||
2160 | uint64_t output_bytes; | ||
2161 | }; | ||
2162 | |||
2158 | /* | 2163 | /* |
2159 | * Linux Host Adapter structure | 2164 | * Linux Host Adapter structure |
2160 | */ | 2165 | */ |
@@ -2166,7 +2171,6 @@ typedef struct scsi_qla_host { | |||
2166 | struct pci_dev *pdev; | 2171 | struct pci_dev *pdev; |
2167 | 2172 | ||
2168 | unsigned long host_no; | 2173 | unsigned long host_no; |
2169 | unsigned long instance; | ||
2170 | 2174 | ||
2171 | volatile struct { | 2175 | volatile struct { |
2172 | uint32_t init_done :1; | 2176 | uint32_t init_done :1; |
@@ -2234,6 +2238,8 @@ typedef struct scsi_qla_host { | |||
2234 | #define REGISTER_FDMI_NEEDED 26 | 2238 | #define REGISTER_FDMI_NEEDED 26 |
2235 | #define FCPORT_UPDATE_NEEDED 27 | 2239 | #define FCPORT_UPDATE_NEEDED 27 |
2236 | #define VP_DPC_NEEDED 28 /* wake up for VP dpc handling */ | 2240 | #define VP_DPC_NEEDED 28 /* wake up for VP dpc handling */ |
2241 | #define UNLOADING 29 | ||
2242 | #define NPIV_CONFIG_NEEDED 30 | ||
2237 | 2243 | ||
2238 | uint32_t device_flags; | 2244 | uint32_t device_flags; |
2239 | #define DFLG_LOCAL_DEVICES BIT_0 | 2245 | #define DFLG_LOCAL_DEVICES BIT_0 |
@@ -2503,7 +2509,6 @@ typedef struct scsi_qla_host { | |||
2503 | uint64_t fce_wr, fce_rd; | 2509 | uint64_t fce_wr, fce_rd; |
2504 | struct mutex fce_mutex; | 2510 | struct mutex fce_mutex; |
2505 | 2511 | ||
2506 | uint32_t hw_event_start; | ||
2507 | uint32_t hw_event_ptr; | 2512 | uint32_t hw_event_ptr; |
2508 | uint32_t hw_event_pause_errors; | 2513 | uint32_t hw_event_pause_errors; |
2509 | 2514 | ||
@@ -2515,7 +2520,7 @@ typedef struct scsi_qla_host { | |||
2515 | 2520 | ||
2516 | uint8_t model_number[16+1]; | 2521 | uint8_t model_number[16+1]; |
2517 | #define BINZERO "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" | 2522 | #define BINZERO "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" |
2518 | char *model_desc; | 2523 | char model_desc[80]; |
2519 | uint8_t adapter_id[16+1]; | 2524 | uint8_t adapter_id[16+1]; |
2520 | 2525 | ||
2521 | uint8_t *node_name; | 2526 | uint8_t *node_name; |
@@ -2549,6 +2554,14 @@ typedef struct scsi_qla_host { | |||
2549 | uint32_t fdt_unprotect_sec_cmd; | 2554 | uint32_t fdt_unprotect_sec_cmd; |
2550 | uint32_t fdt_protect_sec_cmd; | 2555 | uint32_t fdt_protect_sec_cmd; |
2551 | 2556 | ||
2557 | uint32_t flt_region_flt; | ||
2558 | uint32_t flt_region_fdt; | ||
2559 | uint32_t flt_region_boot; | ||
2560 | uint32_t flt_region_fw; | ||
2561 | uint32_t flt_region_vpd_nvram; | ||
2562 | uint32_t flt_region_hw_event; | ||
2563 | uint32_t flt_region_npiv_conf; | ||
2564 | |||
2552 | /* Needed for BEACON */ | 2565 | /* Needed for BEACON */ |
2553 | uint16_t beacon_blink_led; | 2566 | uint16_t beacon_blink_led; |
2554 | uint8_t beacon_color_state; | 2567 | uint8_t beacon_color_state; |
@@ -2596,6 +2609,7 @@ typedef struct scsi_qla_host { | |||
2596 | int cur_vport_count; | 2609 | int cur_vport_count; |
2597 | 2610 | ||
2598 | struct qla_chip_state_84xx *cs84xx; | 2611 | struct qla_chip_state_84xx *cs84xx; |
2612 | struct qla_statistics qla_stats; | ||
2599 | } scsi_qla_host_t; | 2613 | } scsi_qla_host_t; |
2600 | 2614 | ||
2601 | 2615 | ||