aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390/scsi/zfcp_def.h
diff options
context:
space:
mode:
authorChristof Schmitt <christof.schmitt@de.ibm.com>2009-11-24 10:54:11 -0500
committerJames Bottomley <James.Bottomley@suse.de>2009-12-04 13:02:14 -0500
commitbd0072ecc449fb2ea8f6a2c9f6ff308f3ae0b078 (patch)
treed58dc3bbac4a7e5c7fa44c009c4946b091eb9a88 /drivers/s390/scsi/zfcp_def.h
parentdbf5dfe9dbcecf159139eec25ad256738cbc3715 (diff)
[SCSI] zfcp: Move WKA port to zfcp FC code
The well-known-address (WKA) port handling code is part of the FC code in zfcp. Move everything WKA related to the zfcp_fc files and use the common zfcp_fc prefix for structs and functions. Drop the unused key management service while renaming the struct, no request could ever reach this service in zfcp and it is obsolete anyway. Reviewed-by: Swen Schillig <swen@vnet.ibm.com> Signed-off-by: Christof Schmitt <christof.schmitt@de.ibm.com> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/s390/scsi/zfcp_def.h')
-rw-r--r--drivers/s390/scsi/zfcp_def.h31
1 files changed, 2 insertions, 29 deletions
diff --git a/drivers/s390/scsi/zfcp_def.h b/drivers/s390/scsi/zfcp_def.h
index c64821145475..c00aa2b174a1 100644
--- a/drivers/s390/scsi/zfcp_def.h
+++ b/drivers/s390/scsi/zfcp_def.h
@@ -104,14 +104,6 @@
104#define ZFCP_STATUS_PORT_PHYS_OPEN 0x00000001 104#define ZFCP_STATUS_PORT_PHYS_OPEN 0x00000001
105#define ZFCP_STATUS_PORT_LINK_TEST 0x00000002 105#define ZFCP_STATUS_PORT_LINK_TEST 0x00000002
106 106
107/* well known address (WKA) port status*/
108enum zfcp_wka_status {
109 ZFCP_WKA_PORT_OFFLINE,
110 ZFCP_WKA_PORT_CLOSING,
111 ZFCP_WKA_PORT_OPENING,
112 ZFCP_WKA_PORT_ONLINE,
113};
114
115/* logical unit status */ 107/* logical unit status */
116#define ZFCP_STATUS_UNIT_SHARED 0x00000004 108#define ZFCP_STATUS_UNIT_SHARED 0x00000004
117#define ZFCP_STATUS_UNIT_READONLY 0x00000008 109#define ZFCP_STATUS_UNIT_READONLY 0x00000008
@@ -155,7 +147,7 @@ struct zfcp_adapter_mempool {
155 * @status: used to pass error status to calling function 147 * @status: used to pass error status to calling function
156 */ 148 */
157struct zfcp_send_ct { 149struct zfcp_send_ct {
158 struct zfcp_wka_port *wka_port; 150 struct zfcp_fc_wka_port *wka_port;
159 struct scatterlist *req; 151 struct scatterlist *req;
160 struct scatterlist *resp; 152 struct scatterlist *resp;
161 void (*handler)(unsigned long); 153 void (*handler)(unsigned long);
@@ -190,25 +182,6 @@ struct zfcp_send_els {
190 int status; 182 int status;
191}; 183};
192 184
193struct zfcp_wka_port {
194 struct zfcp_adapter *adapter;
195 wait_queue_head_t completion_wq;
196 enum zfcp_wka_status status;
197 atomic_t refcount;
198 u32 d_id;
199 u32 handle;
200 struct mutex mutex;
201 struct delayed_work work;
202};
203
204struct zfcp_wka_ports {
205 struct zfcp_wka_port ms; /* management service */
206 struct zfcp_wka_port ts; /* time service */
207 struct zfcp_wka_port ds; /* directory service */
208 struct zfcp_wka_port as; /* alias service */
209 struct zfcp_wka_port ks; /* key distribution service */
210};
211
212struct zfcp_qdio_queue { 185struct zfcp_qdio_queue {
213 struct qdio_buffer *sbal[QDIO_MAX_BUFFERS_PER_Q]; 186 struct qdio_buffer *sbal[QDIO_MAX_BUFFERS_PER_Q];
214 u8 first; /* index of next free bfr in queue */ 187 u8 first; /* index of next free bfr in queue */
@@ -309,7 +282,7 @@ struct zfcp_adapter {
309 u32 erp_low_mem_count; /* nr of erp actions waiting 282 u32 erp_low_mem_count; /* nr of erp actions waiting
310 for memory */ 283 for memory */
311 struct task_struct *erp_thread; 284 struct task_struct *erp_thread;
312 struct zfcp_wka_ports *gs; /* generic services */ 285 struct zfcp_fc_wka_ports *gs; /* generic services */
313 struct zfcp_dbf *dbf; /* debug traces */ 286 struct zfcp_dbf *dbf; /* debug traces */
314 struct zfcp_adapter_mempool pool; /* Adapter memory pools */ 287 struct zfcp_adapter_mempool pool; /* Adapter memory pools */
315 struct fc_host_statistics *fc_stats; 288 struct fc_host_statistics *fc_stats;