aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390/scsi/zfcp_def.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/s390/scsi/zfcp_def.h')
-rw-r--r--drivers/s390/scsi/zfcp_def.h26
1 files changed, 6 insertions, 20 deletions
diff --git a/drivers/s390/scsi/zfcp_def.h b/drivers/s390/scsi/zfcp_def.h
index cbbfd875d939..7fa8937c8c58 100644
--- a/drivers/s390/scsi/zfcp_def.h
+++ b/drivers/s390/scsi/zfcp_def.h
@@ -412,14 +412,9 @@ struct zfcp_wka_port {
412}; 412};
413 413
414struct zfcp_qdio_queue { 414struct zfcp_qdio_queue {
415 struct qdio_buffer *sbal[QDIO_MAX_BUFFERS_PER_Q]; /* SBALs */ 415 struct qdio_buffer *sbal[QDIO_MAX_BUFFERS_PER_Q];
416 u8 first; /* index of next free bfr 416 u8 first; /* index of next free bfr in queue */
417 in queue (free_count>0) */ 417 atomic_t count; /* number of free buffers in queue */
418 atomic_t count; /* number of free buffers
419 in queue */
420 spinlock_t lock; /* lock for operations on queue */
421 int pci_batch; /* SBALs since PCI indication
422 was last set */
423}; 418};
424 419
425struct zfcp_erp_action { 420struct zfcp_erp_action {
@@ -471,13 +466,13 @@ struct zfcp_adapter {
471 u16 timer_ticks; /* time int for a tick */ 466 u16 timer_ticks; /* time int for a tick */
472 struct Scsi_Host *scsi_host; /* Pointer to mid-layer */ 467 struct Scsi_Host *scsi_host; /* Pointer to mid-layer */
473 struct list_head port_list_head; /* remote port list */ 468 struct list_head port_list_head; /* remote port list */
474 struct list_head port_remove_lh; /* head of ports to be
475 removed */
476 u32 ports; /* number of remote ports */
477 unsigned long req_no; /* unique FSF req number */ 469 unsigned long req_no; /* unique FSF req number */
478 struct list_head *req_list; /* list of pending reqs */ 470 struct list_head *req_list; /* list of pending reqs */
479 spinlock_t req_list_lock; /* request list lock */ 471 spinlock_t req_list_lock; /* request list lock */
480 struct zfcp_qdio_queue req_q; /* request queue */ 472 struct zfcp_qdio_queue req_q; /* request queue */
473 spinlock_t req_q_lock; /* for operations on queue */
474 int req_q_pci_batch; /* SBALs since PCI indication
475 was last set */
481 u32 fsf_req_seq_no; /* FSF cmnd seq number */ 476 u32 fsf_req_seq_no; /* FSF cmnd seq number */
482 wait_queue_head_t request_wq; /* can be used to wait for 477 wait_queue_head_t request_wq; /* can be used to wait for
483 more avaliable SBALs */ 478 more avaliable SBALs */
@@ -516,7 +511,6 @@ struct zfcp_adapter {
516 struct zfcp_scsi_dbf_record scsi_dbf_buf; 511 struct zfcp_scsi_dbf_record scsi_dbf_buf;
517 struct zfcp_adapter_mempool pool; /* Adapter memory pools */ 512 struct zfcp_adapter_mempool pool; /* Adapter memory pools */
518 struct qdio_initialize qdio_init_data; /* for qdio_establish */ 513 struct qdio_initialize qdio_init_data; /* for qdio_establish */
519 struct device generic_services; /* directory for WKA ports */
520 struct fc_host_statistics *fc_stats; 514 struct fc_host_statistics *fc_stats;
521 struct fsf_qtcb_bottom_port *stats_reset_data; 515 struct fsf_qtcb_bottom_port *stats_reset_data;
522 unsigned long stats_reset; 516 unsigned long stats_reset;
@@ -533,9 +527,6 @@ struct zfcp_port {
533 refcount drop to zero */ 527 refcount drop to zero */
534 struct zfcp_adapter *adapter; /* adapter used to access port */ 528 struct zfcp_adapter *adapter; /* adapter used to access port */
535 struct list_head unit_list_head; /* head of logical unit list */ 529 struct list_head unit_list_head; /* head of logical unit list */
536 struct list_head unit_remove_lh; /* head of luns to be removed
537 list */
538 u32 units; /* # of logical units in list */
539 atomic_t status; /* status of this remote port */ 530 atomic_t status; /* status of this remote port */
540 u64 wwnn; /* WWNN if known */ 531 u64 wwnn; /* WWNN if known */
541 u64 wwpn; /* WWPN */ 532 u64 wwpn; /* WWPN */
@@ -556,7 +547,6 @@ struct zfcp_unit {
556 refcount drop to zero */ 547 refcount drop to zero */
557 struct zfcp_port *port; /* remote port of unit */ 548 struct zfcp_port *port; /* remote port of unit */
558 atomic_t status; /* status of this logical unit */ 549 atomic_t status; /* status of this logical unit */
559 unsigned int scsi_lun; /* own SCSI LUN */
560 u64 fcp_lun; /* own FCP_LUN */ 550 u64 fcp_lun; /* own FCP_LUN */
561 u32 handle; /* handle assigned by FSF */ 551 u32 handle; /* handle assigned by FSF */
562 struct scsi_device *device; /* scsi device struct pointer */ 552 struct scsi_device *device; /* scsi device struct pointer */
@@ -599,11 +589,7 @@ struct zfcp_fsf_req {
599struct zfcp_data { 589struct zfcp_data {
600 struct scsi_host_template scsi_host_template; 590 struct scsi_host_template scsi_host_template;
601 struct scsi_transport_template *scsi_transport_template; 591 struct scsi_transport_template *scsi_transport_template;
602 atomic_t status; /* Module status flags */
603 struct list_head adapter_list_head; /* head of adapter list */ 592 struct list_head adapter_list_head; /* head of adapter list */
604 struct list_head adapter_remove_lh; /* head of adapters to be
605 removed */
606 u32 adapters; /* # of adapters in list */
607 rwlock_t config_lock; /* serialises changes 593 rwlock_t config_lock; /* serialises changes
608 to adapter/port/unit 594 to adapter/port/unit
609 lists */ 595 lists */