aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/qla2xxx/qla_def.h
diff options
context:
space:
mode:
authorShyam Sundar <shyam.sundar@qlogic.com>2009-03-24 12:08:10 -0400
committerJames Bottomley <James.Bottomley@HansenPartnership.com>2009-04-03 10:22:50 -0400
commitddb9b12632ab28460c281d50963bbe3eeda5984a (patch)
tree1031a93f6a1c850ba79026c1afbae5cfd3801e3d /drivers/scsi/qla2xxx/qla_def.h
parentd0c3eefae09e4c19d6da1ed2417e02d8377b1eb3 (diff)
[SCSI] qla2xxx: Cleanup unused flags and #defines.
General cleanup of extraneous/legacy crud. Additional cleanups and Signed-off-by: Andrew Vasquez <andrew.vasquez@qlogic.com> Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_def.h')
-rw-r--r--drivers/scsi/qla2xxx/qla_def.h98
1 files changed, 13 insertions, 85 deletions
diff --git a/drivers/scsi/qla2xxx/qla_def.h b/drivers/scsi/qla2xxx/qla_def.h
index 421c6343e1c1..757e31d62146 100644
--- a/drivers/scsi/qla2xxx/qla_def.h
+++ b/drivers/scsi/qla2xxx/qla_def.h
@@ -201,20 +201,7 @@ typedef struct srb {
201/* 201/*
202 * SRB flag definitions 202 * SRB flag definitions
203 */ 203 */
204#define SRB_TIMEOUT BIT_0 /* Command timed out */ 204#define SRB_DMA_VALID BIT_0 /* Command sent to ISP */
205#define SRB_DMA_VALID BIT_1 /* Command sent to ISP */
206#define SRB_WATCHDOG BIT_2 /* Command on watchdog list */
207#define SRB_ABORT_PENDING BIT_3 /* Command abort sent to device */
208
209#define SRB_ABORTED BIT_4 /* Command aborted command already */
210#define SRB_RETRY BIT_5 /* Command needs retrying */
211#define SRB_GOT_SENSE BIT_6 /* Command has sense data */
212#define SRB_FAILOVER BIT_7 /* Command in failover state */
213
214#define SRB_BUSY BIT_8 /* Command is in busy retry state */
215#define SRB_FO_CANCEL BIT_9 /* Command don't need to do failover */
216#define SRB_IOCTL BIT_10 /* IOCTL command. */
217#define SRB_TAPE BIT_11 /* FCP2 (Tape) command. */
218 205
219/* 206/*
220 * ISP I/O Register Set structure definitions. 207 * ISP I/O Register Set structure definitions.
@@ -1570,39 +1557,13 @@ typedef struct fc_port {
1570#define FCS_DEVICE_DEAD 2 1557#define FCS_DEVICE_DEAD 2
1571#define FCS_DEVICE_LOST 3 1558#define FCS_DEVICE_LOST 3
1572#define FCS_ONLINE 4 1559#define FCS_ONLINE 4
1573#define FCS_NOT_SUPPORTED 5
1574#define FCS_FAILOVER 6
1575#define FCS_FAILOVER_FAILED 7
1576 1560
1577/* 1561/*
1578 * FC port flags. 1562 * FC port flags.
1579 */ 1563 */
1580#define FCF_FABRIC_DEVICE BIT_0 1564#define FCF_FABRIC_DEVICE BIT_0
1581#define FCF_LOGIN_NEEDED BIT_1 1565#define FCF_LOGIN_NEEDED BIT_1
1582#define FCF_FO_MASKED BIT_2 1566#define FCF_TAPE_PRESENT BIT_2
1583#define FCF_FAILOVER_NEEDED BIT_3
1584#define FCF_RESET_NEEDED BIT_4
1585#define FCF_PERSISTENT_BOUND BIT_5
1586#define FCF_TAPE_PRESENT BIT_6
1587#define FCF_FARP_DONE BIT_7
1588#define FCF_FARP_FAILED BIT_8
1589#define FCF_FARP_REPLY_NEEDED BIT_9
1590#define FCF_AUTH_REQ BIT_10
1591#define FCF_SEND_AUTH_REQ BIT_11
1592#define FCF_RECEIVE_AUTH_REQ BIT_12
1593#define FCF_AUTH_SUCCESS BIT_13
1594#define FCF_RLC_SUPPORT BIT_14
1595#define FCF_CONFIG BIT_15 /* Needed? */
1596#define FCF_RESCAN_NEEDED BIT_16
1597#define FCF_XP_DEVICE BIT_17
1598#define FCF_MSA_DEVICE BIT_18
1599#define FCF_EVA_DEVICE BIT_19
1600#define FCF_MSA_PORT_ACTIVE BIT_20
1601#define FCF_FAILBACK_DISABLE BIT_21
1602#define FCF_FAILOVER_DISABLE BIT_22
1603#define FCF_DSXXX_DEVICE BIT_23
1604#define FCF_AA_EVA_DEVICE BIT_24
1605#define FCF_AA_MSA_DEVICE BIT_25
1606 1567
1607/* No loop ID flag. */ 1568/* No loop ID flag. */
1608#define FC_NO_LOOP_ID 0x1000 1569#define FC_NO_LOOP_ID 0x1000
@@ -2257,7 +2218,6 @@ struct qla_hw_data {
2257 uint32_t msix_enabled :1; 2218 uint32_t msix_enabled :1;
2258 uint32_t disable_serdes :1; 2219 uint32_t disable_serdes :1;
2259 uint32_t gpsc_supported :1; 2220 uint32_t gpsc_supported :1;
2260 uint32_t vsan_enabled :1;
2261 uint32_t npiv_supported :1; 2221 uint32_t npiv_supported :1;
2262 uint32_t fce_enabled :1; 2222 uint32_t fce_enabled :1;
2263 uint32_t fac_supported :1; 2223 uint32_t fac_supported :1;
@@ -2302,7 +2262,6 @@ struct qla_hw_data {
2302 uint16_t max_loop_id; 2262 uint16_t max_loop_id;
2303 2263
2304 uint16_t fb_rev; 2264 uint16_t fb_rev;
2305 uint16_t max_public_loop_ids;
2306 uint16_t min_external_loopid; /* First external loop Id */ 2265 uint16_t min_external_loopid; /* First external loop Id */
2307 2266
2308#define PORT_SPEED_UNKNOWN 0xFFFF 2267#define PORT_SPEED_UNKNOWN 0xFFFF
@@ -2458,15 +2417,6 @@ struct qla_hw_data {
2458 struct completion mbx_cmd_comp; /* Serialize mbx access */ 2417 struct completion mbx_cmd_comp; /* Serialize mbx access */
2459 struct completion mbx_intr_comp; /* Used for completion notification */ 2418 struct completion mbx_intr_comp; /* Used for completion notification */
2460 2419
2461 uint32_t mbx_flags;
2462#define MBX_IN_PROGRESS BIT_0
2463#define MBX_BUSY BIT_1 /* Got the Access */
2464#define MBX_SLEEPING_ON_SEM BIT_2
2465#define MBX_POLLING_FOR_COMP BIT_3
2466#define MBX_COMPLETED BIT_4
2467#define MBX_TIMEDOUT BIT_5
2468#define MBX_ACCESS_TIMEDOUT BIT_6
2469
2470 /* Basic firmware related information. */ 2420 /* Basic firmware related information. */
2471 uint16_t fw_major_version; 2421 uint16_t fw_major_version;
2472 uint16_t fw_minor_version; 2422 uint16_t fw_minor_version;
@@ -2619,36 +2569,19 @@ typedef struct scsi_qla_host {
2619#define LOOP_RESYNC_ACTIVE 5 2569#define LOOP_RESYNC_ACTIVE 5
2620#define LOCAL_LOOP_UPDATE 6 /* Perform a local loop update. */ 2570#define LOCAL_LOOP_UPDATE 6 /* Perform a local loop update. */
2621#define RSCN_UPDATE 7 /* Perform an RSCN update. */ 2571#define RSCN_UPDATE 7 /* Perform an RSCN update. */
2622#define MAILBOX_RETRY 8 2572#define RELOGIN_NEEDED 8
2623#define ISP_RESET_NEEDED 9 /* Initiate a ISP reset. */ 2573#define REGISTER_FC4_NEEDED 9 /* SNS FC4 registration required. */
2624#define FAILOVER_EVENT_NEEDED 10 2574#define ISP_ABORT_RETRY 10 /* ISP aborted. */
2625#define FAILOVER_EVENT 11 2575#define BEACON_BLINK_NEEDED 11
2626#define FAILOVER_NEEDED 12 2576#define REGISTER_FDMI_NEEDED 12
2627#define SCSI_RESTART_NEEDED 13 /* Processes SCSI retry queue. */ 2577#define FCPORT_UPDATE_NEEDED 13
2628#define PORT_RESTART_NEEDED 14 /* Processes Retry queue. */ 2578#define VP_DPC_NEEDED 14 /* wake up for VP dpc handling */
2629#define RESTART_QUEUES_NEEDED 15 /* Restarts the Lun queue. */ 2579#define UNLOADING 15
2630#define ABORT_QUEUES_NEEDED 16 2580#define NPIV_CONFIG_NEEDED 16
2631#define RELOGIN_NEEDED 17
2632#define LOGIN_RETRY_NEEDED 18 /* Initiate required fabric logins. */
2633#define REGISTER_FC4_NEEDED 19 /* SNS FC4 registration required. */
2634#define ISP_ABORT_RETRY 20 /* ISP aborted. */
2635#define FCPORT_RESCAN_NEEDED 21 /* IO descriptor processing needed */
2636#define IODESC_PROCESS_NEEDED 22 /* IO descriptor processing needed */
2637#define IOCTL_ERROR_RECOVERY 23
2638#define LOOP_RESET_NEEDED 24
2639#define BEACON_BLINK_NEEDED 25
2640#define REGISTER_FDMI_NEEDED 26
2641#define FCPORT_UPDATE_NEEDED 27
2642#define VP_DPC_NEEDED 28 /* wake up for VP dpc handling */
2643#define UNLOADING 29
2644#define NPIV_CONFIG_NEEDED 30
2645 2581
2646 uint32_t device_flags; 2582 uint32_t device_flags;
2647#define DFLG_LOCAL_DEVICES BIT_0 2583#define SWITCH_FOUND BIT_0
2648#define DFLG_RETRY_LOCAL_DEVICES BIT_1 2584#define DFLG_NO_CABLE BIT_1
2649#define DFLG_FABRIC_DEVICES BIT_2
2650#define SWITCH_FOUND BIT_3
2651#define DFLG_NO_CABLE BIT_4
2652 2585
2653 srb_t *status_srb; /* Status continuation entry. */ 2586 srb_t *status_srb; /* Status continuation entry. */
2654 2587
@@ -2761,10 +2694,5 @@ typedef struct scsi_qla_host {
2761#include "qla_inline.h" 2694#include "qla_inline.h"
2762 2695
2763#define CMD_SP(Cmnd) ((Cmnd)->SCp.ptr) 2696#define CMD_SP(Cmnd) ((Cmnd)->SCp.ptr)
2764#define CMD_COMPL_STATUS(Cmnd) ((Cmnd)->SCp.this_residual)
2765#define CMD_RESID_LEN(Cmnd) ((Cmnd)->SCp.buffers_residual)
2766#define CMD_SCSI_STATUS(Cmnd) ((Cmnd)->SCp.Status)
2767#define CMD_ACTUAL_SNSLEN(Cmnd) ((Cmnd)->SCp.Message)
2768#define CMD_ENTRY_STATUS(Cmnd) ((Cmnd)->SCp.have_data_in)
2769 2697
2770#endif 2698#endif