aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/qla2xxx/qla_def.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_def.h')
-rw-r--r--drivers/scsi/qla2xxx/qla_def.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/drivers/scsi/qla2xxx/qla_def.h b/drivers/scsi/qla2xxx/qla_def.h
index c1964866a423..1900fbf6cd74 100644
--- a/drivers/scsi/qla2xxx/qla_def.h
+++ b/drivers/scsi/qla2xxx/qla_def.h
@@ -23,6 +23,7 @@
23#include <linux/interrupt.h> 23#include <linux/interrupt.h>
24#include <linux/workqueue.h> 24#include <linux/workqueue.h>
25#include <linux/firmware.h> 25#include <linux/firmware.h>
26#include <linux/aer.h>
26#include <asm/semaphore.h> 27#include <asm/semaphore.h>
27 28
28#include <scsi/scsi.h> 29#include <scsi/scsi.h>
@@ -184,8 +185,6 @@
184 * SCSI Request Block 185 * SCSI Request Block
185 */ 186 */
186typedef struct srb { 187typedef struct srb {
187 struct list_head list;
188
189 struct scsi_qla_host *ha; /* HA the SP is queued on */ 188 struct scsi_qla_host *ha; /* HA the SP is queued on */
190 struct fc_port *fcport; 189 struct fc_port *fcport;
191 190
@@ -316,7 +315,9 @@ struct device_reg_2xxx {
316 } u; 315 } u;
317 316
318 uint16_t fpm_diag_config; 317 uint16_t fpm_diag_config;
319 uint16_t unused_5[0x6]; /* Gap */ 318 uint16_t unused_5[0x4]; /* Gap */
319 uint16_t risc_hw;
320 uint16_t unused_5_1; /* Gap */
320 uint16_t pcr; /* Processor Control Register. */ 321 uint16_t pcr; /* Processor Control Register. */
321 uint16_t unused_6[0x5]; /* Gap */ 322 uint16_t unused_6[0x5]; /* Gap */
322 uint16_t mctr; /* Memory Configuration and Timing. */ 323 uint16_t mctr; /* Memory Configuration and Timing. */
@@ -1702,7 +1703,7 @@ struct ct_fdmi_hba_attributes {
1702/* 1703/*
1703 * Port attribute types. 1704 * Port attribute types.
1704 */ 1705 */
1705#define FDMI_PORT_ATTR_COUNT 5 1706#define FDMI_PORT_ATTR_COUNT 6
1706#define FDMI_PORT_FC4_TYPES 1 1707#define FDMI_PORT_FC4_TYPES 1
1707#define FDMI_PORT_SUPPORT_SPEED 2 1708#define FDMI_PORT_SUPPORT_SPEED 2
1708#define FDMI_PORT_CURRENT_SPEED 3 1709#define FDMI_PORT_CURRENT_SPEED 3
@@ -2476,6 +2477,8 @@ typedef struct scsi_qla_host {
2476#define QLA_SWAITING 0 2477#define QLA_SWAITING 0
2477#define QLA_SREADING 1 2478#define QLA_SREADING 1
2478#define QLA_SWRITING 2 2479#define QLA_SWRITING 2
2480 uint32_t optrom_region_start;
2481 uint32_t optrom_region_size;
2479 2482
2480 /* PCI expansion ROM image information. */ 2483 /* PCI expansion ROM image information. */
2481#define ROM_CODE_TYPE_BIOS 0 2484#define ROM_CODE_TYPE_BIOS 0
@@ -2529,7 +2532,7 @@ typedef struct scsi_qla_host {
2529#define VP_ERR_FAB_NORESOURCES 3 2532#define VP_ERR_FAB_NORESOURCES 3
2530#define VP_ERR_FAB_LOGOUT 4 2533#define VP_ERR_FAB_LOGOUT 4
2531#define VP_ERR_ADAP_NORESOURCES 5 2534#define VP_ERR_ADAP_NORESOURCES 5
2532 int max_npiv_vports; /* 63 or 125 per topoloty */ 2535 uint16_t max_npiv_vports; /* 63 or 125 per topoloty */
2533 int cur_vport_count; 2536 int cur_vport_count;
2534} scsi_qla_host_t; 2537} scsi_qla_host_t;
2535 2538
@@ -2542,8 +2545,6 @@ typedef struct scsi_qla_host {
2542 test_bit(LOOP_RESYNC_NEEDED, &ha->dpc_flags) || \ 2545 test_bit(LOOP_RESYNC_NEEDED, &ha->dpc_flags) || \
2543 atomic_read(&ha->loop_state) == LOOP_DOWN) 2546 atomic_read(&ha->loop_state) == LOOP_DOWN)
2544 2547
2545#define to_qla_host(x) ((scsi_qla_host_t *) (x)->hostdata)
2546
2547#define qla_printk(level, ha, format, arg...) \ 2548#define qla_printk(level, ha, format, arg...) \
2548 dev_printk(level , &((ha)->pdev->dev) , format , ## arg) 2549 dev_printk(level , &((ha)->pdev->dev) , format , ## arg)
2549 2550