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.h32
1 files changed, 0 insertions, 32 deletions
diff --git a/drivers/s390/scsi/zfcp_def.h b/drivers/s390/scsi/zfcp_def.h
index e19e46ae4a68..510662783a6f 100644
--- a/drivers/s390/scsi/zfcp_def.h
+++ b/drivers/s390/scsi/zfcp_def.h
@@ -159,20 +159,6 @@ struct fcp_rscn_element {
159 u32 nport_did:24; 159 u32 nport_did:24;
160} __attribute__((packed)); 160} __attribute__((packed));
161 161
162#define ZFCP_PORT_ADDRESS 0x0
163#define ZFCP_AREA_ADDRESS 0x1
164#define ZFCP_DOMAIN_ADDRESS 0x2
165#define ZFCP_FABRIC_ADDRESS 0x3
166
167#define ZFCP_PORTS_RANGE_PORT 0xFFFFFF
168#define ZFCP_PORTS_RANGE_AREA 0xFFFF00
169#define ZFCP_PORTS_RANGE_DOMAIN 0xFF0000
170#define ZFCP_PORTS_RANGE_FABRIC 0x000000
171
172#define ZFCP_NO_PORTS_PER_AREA 0x100
173#define ZFCP_NO_PORTS_PER_DOMAIN 0x10000
174#define ZFCP_NO_PORTS_PER_FABRIC 0x1000000
175
176/* see fc-ph */ 162/* see fc-ph */
177struct fcp_logo { 163struct fcp_logo {
178 u32 command; 164 u32 command;
@@ -211,7 +197,6 @@ struct zfcp_ls_adisc {
211#define ZFCP_CT_UNABLE_TO_PERFORM_CMD 0x09 197#define ZFCP_CT_UNABLE_TO_PERFORM_CMD 0x09
212#define ZFCP_CT_GID_PN 0x0121 198#define ZFCP_CT_GID_PN 0x0121
213#define ZFCP_CT_GPN_FT 0x0172 199#define ZFCP_CT_GPN_FT 0x0172
214#define ZFCP_CT_MAX_SIZE 0x1020
215#define ZFCP_CT_ACCEPT 0x8002 200#define ZFCP_CT_ACCEPT 0x8002
216#define ZFCP_CT_REJECT 0x8001 201#define ZFCP_CT_REJECT 0x8001
217 202
@@ -258,7 +243,6 @@ struct zfcp_ls_adisc {
258 243
259/* remote port status */ 244/* remote port status */
260#define ZFCP_STATUS_PORT_PHYS_OPEN 0x00000001 245#define ZFCP_STATUS_PORT_PHYS_OPEN 0x00000001
261#define ZFCP_STATUS_PORT_DID_DID 0x00000002
262#define ZFCP_STATUS_PORT_PHYS_CLOSING 0x00000004 246#define ZFCP_STATUS_PORT_PHYS_CLOSING 0x00000004
263#define ZFCP_STATUS_PORT_NO_WWPN 0x00000008 247#define ZFCP_STATUS_PORT_NO_WWPN 0x00000008
264#define ZFCP_STATUS_PORT_INVALID_WWPN 0x00000020 248#define ZFCP_STATUS_PORT_INVALID_WWPN 0x00000020
@@ -340,8 +324,6 @@ struct ct_iu_gid_pn_resp {
340 * @wka_port: port where the request is sent to 324 * @wka_port: port where the request is sent to
341 * @req: scatter-gather list for request 325 * @req: scatter-gather list for request
342 * @resp: scatter-gather list for response 326 * @resp: scatter-gather list for response
343 * @req_count: number of elements in request scatter-gather list
344 * @resp_count: number of elements in response scatter-gather list
345 * @handler: handler function (called for response to the request) 327 * @handler: handler function (called for response to the request)
346 * @handler_data: data passed to handler function 328 * @handler_data: data passed to handler function
347 * @timeout: FSF timeout for this request 329 * @timeout: FSF timeout for this request
@@ -352,8 +334,6 @@ struct zfcp_send_ct {
352 struct zfcp_wka_port *wka_port; 334 struct zfcp_wka_port *wka_port;
353 struct scatterlist *req; 335 struct scatterlist *req;
354 struct scatterlist *resp; 336 struct scatterlist *resp;
355 unsigned int req_count;
356 unsigned int resp_count;
357 void (*handler)(unsigned long); 337 void (*handler)(unsigned long);
358 unsigned long handler_data; 338 unsigned long handler_data;
359 int timeout; 339 int timeout;
@@ -378,8 +358,6 @@ struct zfcp_gid_pn_data {
378 * @d_id: destiniation id of port where request is sent to 358 * @d_id: destiniation id of port where request is sent to
379 * @req: scatter-gather list for request 359 * @req: scatter-gather list for request
380 * @resp: scatter-gather list for response 360 * @resp: scatter-gather list for response
381 * @req_count: number of elements in request scatter-gather list
382 * @resp_count: number of elements in response scatter-gather list
383 * @handler: handler function (called for response to the request) 361 * @handler: handler function (called for response to the request)
384 * @handler_data: data passed to handler function 362 * @handler_data: data passed to handler function
385 * @completion: completion for synchronization purposes 363 * @completion: completion for synchronization purposes
@@ -392,8 +370,6 @@ struct zfcp_send_els {
392 u32 d_id; 370 u32 d_id;
393 struct scatterlist *req; 371 struct scatterlist *req;
394 struct scatterlist *resp; 372 struct scatterlist *resp;
395 unsigned int req_count;
396 unsigned int resp_count;
397 void (*handler)(unsigned long); 373 void (*handler)(unsigned long);
398 unsigned long handler_data; 374 unsigned long handler_data;
399 struct completion *completion; 375 struct completion *completion;
@@ -451,7 +427,6 @@ struct zfcp_latencies {
451}; 427};
452 428
453struct zfcp_adapter { 429struct zfcp_adapter {
454 struct list_head list; /* list of adapters */
455 atomic_t refcount; /* reference count */ 430 atomic_t refcount; /* reference count */
456 wait_queue_head_t remove_wq; /* can be used to wait for 431 wait_queue_head_t remove_wq; /* can be used to wait for
457 refcount drop to zero */ 432 refcount drop to zero */
@@ -593,16 +568,11 @@ struct zfcp_fsf_req {
593struct zfcp_data { 568struct zfcp_data {
594 struct scsi_host_template scsi_host_template; 569 struct scsi_host_template scsi_host_template;
595 struct scsi_transport_template *scsi_transport_template; 570 struct scsi_transport_template *scsi_transport_template;
596 struct list_head adapter_list_head; /* head of adapter list */
597 rwlock_t config_lock; /* serialises changes 571 rwlock_t config_lock; /* serialises changes
598 to adapter/port/unit 572 to adapter/port/unit
599 lists */ 573 lists */
600 struct semaphore config_sema; /* serialises configuration 574 struct semaphore config_sema; /* serialises configuration
601 changes */ 575 changes */
602 atomic_t loglevel; /* current loglevel */
603 char init_busid[20];
604 u64 init_wwpn;
605 u64 init_fcp_lun;
606 struct kmem_cache *fsf_req_qtcb_cache; 576 struct kmem_cache *fsf_req_qtcb_cache;
607 struct kmem_cache *sr_buffer_cache; 577 struct kmem_cache *sr_buffer_cache;
608 struct kmem_cache *gid_pn_cache; 578 struct kmem_cache *gid_pn_cache;
@@ -623,8 +593,6 @@ struct zfcp_fsf_req_qtcb {
623#define ZFCP_SET 0x00000100 593#define ZFCP_SET 0x00000100
624#define ZFCP_CLEAR 0x00000200 594#define ZFCP_CLEAR 0x00000200
625 595
626#define zfcp_get_busid_by_adapter(adapter) (dev_name(&adapter->ccw_device->dev))
627
628/* 596/*
629 * Helper functions for request ID management. 597 * Helper functions for request ID management.
630 */ 598 */