diff options
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_def.h')
-rw-r--r-- | drivers/scsi/qla2xxx/qla_def.h | 116 |
1 files changed, 0 insertions, 116 deletions
diff --git a/drivers/scsi/qla2xxx/qla_def.h b/drivers/scsi/qla2xxx/qla_def.h index 488124258e84..4bd67e9c2840 100644 --- a/drivers/scsi/qla2xxx/qla_def.h +++ b/drivers/scsi/qla2xxx/qla_def.h | |||
@@ -189,22 +189,13 @@ typedef struct srb { | |||
189 | 189 | ||
190 | struct scsi_cmnd *cmd; /* Linux SCSI command pkt */ | 190 | struct scsi_cmnd *cmd; /* Linux SCSI command pkt */ |
191 | 191 | ||
192 | struct timer_list timer; /* Command timer */ | ||
193 | atomic_t ref_count; /* Reference count for this structure */ | ||
194 | uint16_t flags; | 192 | uint16_t flags; |
195 | 193 | ||
196 | /* Request state */ | ||
197 | uint16_t state; | ||
198 | |||
199 | /* Single transfer DMA context */ | 194 | /* Single transfer DMA context */ |
200 | dma_addr_t dma_handle; | 195 | dma_addr_t dma_handle; |
201 | 196 | ||
202 | uint32_t request_sense_length; | 197 | uint32_t request_sense_length; |
203 | uint8_t *request_sense_ptr; | 198 | uint8_t *request_sense_ptr; |
204 | |||
205 | /* SRB magic number */ | ||
206 | uint16_t magic; | ||
207 | #define SRB_MAGIC 0x10CB | ||
208 | } srb_t; | 199 | } srb_t; |
209 | 200 | ||
210 | /* | 201 | /* |
@@ -226,21 +217,6 @@ typedef struct srb { | |||
226 | #define SRB_TAPE BIT_11 /* FCP2 (Tape) command. */ | 217 | #define SRB_TAPE BIT_11 /* FCP2 (Tape) command. */ |
227 | 218 | ||
228 | /* | 219 | /* |
229 | * SRB state definitions | ||
230 | */ | ||
231 | #define SRB_FREE_STATE 0 /* returned back */ | ||
232 | #define SRB_PENDING_STATE 1 /* queued in LUN Q */ | ||
233 | #define SRB_ACTIVE_STATE 2 /* in Active Array */ | ||
234 | #define SRB_DONE_STATE 3 /* queued in Done Queue */ | ||
235 | #define SRB_RETRY_STATE 4 /* in Retry Queue */ | ||
236 | #define SRB_SUSPENDED_STATE 5 /* in suspended state */ | ||
237 | #define SRB_NO_QUEUE_STATE 6 /* is in between states */ | ||
238 | #define SRB_ACTIVE_TIMEOUT_STATE 7 /* in Active Array but timed out */ | ||
239 | #define SRB_FAILOVER_STATE 8 /* in Failover Queue */ | ||
240 | #define SRB_SCSI_RETRY_STATE 9 /* in Scsi Retry Queue */ | ||
241 | |||
242 | |||
243 | /* | ||
244 | * ISP I/O Register Set structure definitions. | 220 | * ISP I/O Register Set structure definitions. |
245 | */ | 221 | */ |
246 | struct device_reg_2xxx { | 222 | struct device_reg_2xxx { |
@@ -1516,62 +1492,6 @@ typedef struct { | |||
1516 | } sw_info_t; | 1492 | } sw_info_t; |
1517 | 1493 | ||
1518 | /* | 1494 | /* |
1519 | * Inquiry command structure. | ||
1520 | */ | ||
1521 | #define INQ_DATA_SIZE 36 | ||
1522 | |||
1523 | /* | ||
1524 | * Inquiry mailbox IOCB packet definition. | ||
1525 | */ | ||
1526 | typedef struct { | ||
1527 | union { | ||
1528 | cmd_a64_entry_t cmd; | ||
1529 | sts_entry_t rsp; | ||
1530 | struct cmd_type_7 cmd24; | ||
1531 | struct sts_entry_24xx rsp24; | ||
1532 | } p; | ||
1533 | uint8_t inq[INQ_DATA_SIZE]; | ||
1534 | } inq_cmd_rsp_t; | ||
1535 | |||
1536 | /* | ||
1537 | * Report LUN command structure. | ||
1538 | */ | ||
1539 | #define CHAR_TO_SHORT(a, b) (uint16_t)((uint8_t)b << 8 | (uint8_t)a) | ||
1540 | |||
1541 | typedef struct { | ||
1542 | uint32_t len; | ||
1543 | uint32_t rsrv; | ||
1544 | } rpt_hdr_t; | ||
1545 | |||
1546 | typedef struct { | ||
1547 | struct { | ||
1548 | uint8_t b : 6; | ||
1549 | uint8_t address_method : 2; | ||
1550 | } msb; | ||
1551 | uint8_t lsb; | ||
1552 | uint8_t unused[6]; | ||
1553 | } rpt_lun_t; | ||
1554 | |||
1555 | typedef struct { | ||
1556 | rpt_hdr_t hdr; | ||
1557 | rpt_lun_t lst[MAX_LUNS]; | ||
1558 | } rpt_lun_lst_t; | ||
1559 | |||
1560 | /* | ||
1561 | * Report Lun mailbox IOCB packet definition. | ||
1562 | */ | ||
1563 | typedef struct { | ||
1564 | union { | ||
1565 | cmd_a64_entry_t cmd; | ||
1566 | sts_entry_t rsp; | ||
1567 | struct cmd_type_7 cmd24; | ||
1568 | struct sts_entry_24xx rsp24; | ||
1569 | } p; | ||
1570 | rpt_lun_lst_t list; | ||
1571 | } rpt_lun_cmd_rsp_t; | ||
1572 | |||
1573 | |||
1574 | /* | ||
1575 | * Fibre channel port type. | 1495 | * Fibre channel port type. |
1576 | */ | 1496 | */ |
1577 | typedef enum { | 1497 | typedef enum { |
@@ -1589,7 +1509,6 @@ typedef struct { | |||
1589 | typedef struct fc_port { | 1509 | typedef struct fc_port { |
1590 | struct list_head list; | 1510 | struct list_head list; |
1591 | struct scsi_qla_host *ha; | 1511 | struct scsi_qla_host *ha; |
1592 | struct scsi_qla_host *vis_ha; /* only used when suspending lun */ | ||
1593 | 1512 | ||
1594 | uint8_t node_name[WWN_SIZE]; | 1513 | uint8_t node_name[WWN_SIZE]; |
1595 | uint8_t port_name[WWN_SIZE]; | 1514 | uint8_t port_name[WWN_SIZE]; |
@@ -1610,17 +1529,9 @@ typedef struct fc_port { | |||
1610 | int login_retry; | 1529 | int login_retry; |
1611 | atomic_t port_down_timer; | 1530 | atomic_t port_down_timer; |
1612 | 1531 | ||
1613 | uint8_t device_type; | ||
1614 | uint8_t unused; | ||
1615 | |||
1616 | uint8_t mp_byte; /* multi-path byte (not used) */ | ||
1617 | uint8_t cur_path; /* current path id */ | ||
1618 | |||
1619 | spinlock_t rport_lock; | 1532 | spinlock_t rport_lock; |
1620 | struct fc_rport *rport, *drport; | 1533 | struct fc_rport *rport, *drport; |
1621 | u32 supported_classes; | 1534 | u32 supported_classes; |
1622 | struct work_struct rport_add_work; | ||
1623 | struct work_struct rport_del_work; | ||
1624 | } fc_port_t; | 1535 | } fc_port_t; |
1625 | 1536 | ||
1626 | /* | 1537 | /* |
@@ -2305,9 +2216,6 @@ typedef struct scsi_qla_host { | |||
2305 | uint32_t current_outstanding_cmd; | 2216 | uint32_t current_outstanding_cmd; |
2306 | srb_t *status_srb; /* Status continuation entry. */ | 2217 | srb_t *status_srb; /* Status continuation entry. */ |
2307 | 2218 | ||
2308 | uint16_t revision; | ||
2309 | uint8_t ports; | ||
2310 | |||
2311 | /* ISP configuration data. */ | 2219 | /* ISP configuration data. */ |
2312 | uint16_t loop_id; /* Host adapter loop id */ | 2220 | uint16_t loop_id; /* Host adapter loop id */ |
2313 | uint16_t fb_rev; | 2221 | uint16_t fb_rev; |
@@ -2397,9 +2305,6 @@ typedef struct scsi_qla_host { | |||
2397 | struct gid_list_info *gid_list; | 2305 | struct gid_list_info *gid_list; |
2398 | int gid_list_info_size; | 2306 | int gid_list_info_size; |
2399 | 2307 | ||
2400 | dma_addr_t rlc_rsp_dma; | ||
2401 | rpt_lun_cmd_rsp_t *rlc_rsp; | ||
2402 | |||
2403 | /* Small DMA pool allocations -- maximum 256 bytes in length. */ | 2308 | /* Small DMA pool allocations -- maximum 256 bytes in length. */ |
2404 | #define DMA_POOL_SIZE 256 | 2309 | #define DMA_POOL_SIZE 256 |
2405 | struct dma_pool *s_dma_pool; | 2310 | struct dma_pool *s_dma_pool; |
@@ -2505,8 +2410,6 @@ typedef struct scsi_qla_host { | |||
2505 | test_bit(LOOP_RESYNC_NEEDED, &ha->dpc_flags) || \ | 2410 | test_bit(LOOP_RESYNC_NEEDED, &ha->dpc_flags) || \ |
2506 | atomic_read(&ha->loop_state) == LOOP_DOWN) | 2411 | atomic_read(&ha->loop_state) == LOOP_DOWN) |
2507 | 2412 | ||
2508 | #define TGT_Q(ha, t) (ha->otgt[t]) | ||
2509 | |||
2510 | #define to_qla_host(x) ((scsi_qla_host_t *) (x)->hostdata) | 2413 | #define to_qla_host(x) ((scsi_qla_host_t *) (x)->hostdata) |
2511 | 2414 | ||
2512 | #define qla_printk(level, ha, format, arg...) \ | 2415 | #define qla_printk(level, ha, format, arg...) \ |
@@ -2539,19 +2442,6 @@ typedef struct scsi_qla_host { | |||
2539 | #define QLA_RSCNS_HANDLED 0x108 | 2442 | #define QLA_RSCNS_HANDLED 0x108 |
2540 | #define QLA_ALREADY_REGISTERED 0x109 | 2443 | #define QLA_ALREADY_REGISTERED 0x109 |
2541 | 2444 | ||
2542 | /* | ||
2543 | * Stat info for all adpaters | ||
2544 | */ | ||
2545 | struct _qla2x00stats { | ||
2546 | unsigned long mboxtout; /* mailbox timeouts */ | ||
2547 | unsigned long mboxerr; /* mailbox errors */ | ||
2548 | unsigned long ispAbort; /* ISP aborts */ | ||
2549 | unsigned long debugNo; | ||
2550 | unsigned long loop_resync; | ||
2551 | unsigned long outarray_full; | ||
2552 | unsigned long retry_q_cnt; | ||
2553 | }; | ||
2554 | |||
2555 | #define NVRAM_DELAY() udelay(10) | 2445 | #define NVRAM_DELAY() udelay(10) |
2556 | 2446 | ||
2557 | #define INVALID_HANDLE (MAX_OUTSTANDING_COMMANDS+1) | 2447 | #define INVALID_HANDLE (MAX_OUTSTANDING_COMMANDS+1) |
@@ -2567,12 +2457,6 @@ struct _qla2x00stats { | |||
2567 | #include "qla_dbg.h" | 2457 | #include "qla_dbg.h" |
2568 | #include "qla_inline.h" | 2458 | #include "qla_inline.h" |
2569 | 2459 | ||
2570 | /* | ||
2571 | * String arrays | ||
2572 | */ | ||
2573 | #define LINESIZE 256 | ||
2574 | #define MAXARGS 26 | ||
2575 | |||
2576 | #define CMD_SP(Cmnd) ((Cmnd)->SCp.ptr) | 2460 | #define CMD_SP(Cmnd) ((Cmnd)->SCp.ptr) |
2577 | #define CMD_COMPL_STATUS(Cmnd) ((Cmnd)->SCp.this_residual) | 2461 | #define CMD_COMPL_STATUS(Cmnd) ((Cmnd)->SCp.this_residual) |
2578 | #define CMD_RESID_LEN(Cmnd) ((Cmnd)->SCp.buffers_residual) | 2462 | #define CMD_RESID_LEN(Cmnd) ((Cmnd)->SCp.buffers_residual) |