aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390/scsi/zfcp_def.h
diff options
context:
space:
mode:
authorChristof Schmitt <christof.schmitt@de.ibm.com>2008-12-19 10:57:01 -0500
committerJames Bottomley <James.Bottomley@HansenPartnership.com>2008-12-29 12:38:28 -0500
commit39eb7e9aca2a582330ddb6f1167272268e6b3965 (patch)
tree59045a1bdcb5d48286f244dc700482495973a018 /drivers/s390/scsi/zfcp_def.h
parentb225cf9b8040849e16add4da8e84a72a3548ada8 (diff)
[SCSI] zfcp: Add support for unchained FSF requests
Add the support to send CT and ELS requests as unchained FSF requests. This is required for older hardware and was somehow omitted during the cleanup of the FSF layer. The req_count and resp_count attributes are unused, so remove them instead of adding a special case for setting them. Also add debug data and a warning, when the ct request hits a limit. Signed-off-by: Christof Schmitt <christof.schmitt@de.ibm.com> Acked-by: Martin Petermann <martin@linux.vnet.ibm.com> Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/s390/scsi/zfcp_def.h')
-rw-r--r--drivers/s390/scsi/zfcp_def.h9
1 files changed, 0 insertions, 9 deletions
diff --git a/drivers/s390/scsi/zfcp_def.h b/drivers/s390/scsi/zfcp_def.h
index ce4094966236..510662783a6f 100644
--- a/drivers/s390/scsi/zfcp_def.h
+++ b/drivers/s390/scsi/zfcp_def.h
@@ -197,7 +197,6 @@ struct zfcp_ls_adisc {
197#define ZFCP_CT_UNABLE_TO_PERFORM_CMD 0x09 197#define ZFCP_CT_UNABLE_TO_PERFORM_CMD 0x09
198#define ZFCP_CT_GID_PN 0x0121 198#define ZFCP_CT_GID_PN 0x0121
199#define ZFCP_CT_GPN_FT 0x0172 199#define ZFCP_CT_GPN_FT 0x0172
200#define ZFCP_CT_MAX_SIZE 0x1020
201#define ZFCP_CT_ACCEPT 0x8002 200#define ZFCP_CT_ACCEPT 0x8002
202#define ZFCP_CT_REJECT 0x8001 201#define ZFCP_CT_REJECT 0x8001
203 202
@@ -325,8 +324,6 @@ struct ct_iu_gid_pn_resp {
325 * @wka_port: port where the request is sent to 324 * @wka_port: port where the request is sent to
326 * @req: scatter-gather list for request 325 * @req: scatter-gather list for request
327 * @resp: scatter-gather list for response 326 * @resp: scatter-gather list for response
328 * @req_count: number of elements in request scatter-gather list
329 * @resp_count: number of elements in response scatter-gather list
330 * @handler: handler function (called for response to the request) 327 * @handler: handler function (called for response to the request)
331 * @handler_data: data passed to handler function 328 * @handler_data: data passed to handler function
332 * @timeout: FSF timeout for this request 329 * @timeout: FSF timeout for this request
@@ -337,8 +334,6 @@ struct zfcp_send_ct {
337 struct zfcp_wka_port *wka_port; 334 struct zfcp_wka_port *wka_port;
338 struct scatterlist *req; 335 struct scatterlist *req;
339 struct scatterlist *resp; 336 struct scatterlist *resp;
340 unsigned int req_count;
341 unsigned int resp_count;
342 void (*handler)(unsigned long); 337 void (*handler)(unsigned long);
343 unsigned long handler_data; 338 unsigned long handler_data;
344 int timeout; 339 int timeout;
@@ -363,8 +358,6 @@ struct zfcp_gid_pn_data {
363 * @d_id: destiniation id of port where request is sent to 358 * @d_id: destiniation id of port where request is sent to
364 * @req: scatter-gather list for request 359 * @req: scatter-gather list for request
365 * @resp: scatter-gather list for response 360 * @resp: scatter-gather list for response
366 * @req_count: number of elements in request scatter-gather list
367 * @resp_count: number of elements in response scatter-gather list
368 * @handler: handler function (called for response to the request) 361 * @handler: handler function (called for response to the request)
369 * @handler_data: data passed to handler function 362 * @handler_data: data passed to handler function
370 * @completion: completion for synchronization purposes 363 * @completion: completion for synchronization purposes
@@ -377,8 +370,6 @@ struct zfcp_send_els {
377 u32 d_id; 370 u32 d_id;
378 struct scatterlist *req; 371 struct scatterlist *req;
379 struct scatterlist *resp; 372 struct scatterlist *resp;
380 unsigned int req_count;
381 unsigned int resp_count;
382 void (*handler)(unsigned long); 373 void (*handler)(unsigned long);
383 unsigned long handler_data; 374 unsigned long handler_data;
384 struct completion *completion; 375 struct completion *completion;