aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390/scsi/zfcp_def.h
diff options
context:
space:
mode:
authorChristof Schmitt <christof.schmitt@de.ibm.com>2008-07-02 04:56:40 -0400
committerJames Bottomley <James.Bottomley@HansenPartnership.com>2008-07-12 09:22:36 -0400
commit287ac01acf22ab6aaaf9f5a4919ce2449c8b391c (patch)
treeb8ea35d04aa7d74c68739a67a9e2c8b4151c0017 /drivers/s390/scsi/zfcp_def.h
parentc41f8cbddd4e0e72951e0575165dea8ea26f1c4b (diff)
[SCSI] zfcp: Cleanup code in zfcp_erp.c
Cleanup the code in zfcp_erp.c, move erp internal definititions to this file and move FSF timeout handling to the FSF layer. Signed-off-by: Christof Schmitt <christof.schmitt@de.ibm.com> Signed-off-by: Swen Schillig <swen@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.h45
1 files changed, 0 insertions, 45 deletions
diff --git a/drivers/s390/scsi/zfcp_def.h b/drivers/s390/scsi/zfcp_def.h
index 206b6e7a8bfd..67f45fc62f53 100644
--- a/drivers/s390/scsi/zfcp_def.h
+++ b/drivers/s390/scsi/zfcp_def.h
@@ -91,17 +91,11 @@ zfcp_address_to_sg(void *address, struct scatterlist *list, unsigned int size)
91 /* max. number of (data buffer) SBALEs in largest SBAL chain 91 /* max. number of (data buffer) SBALEs in largest SBAL chain
92 multiplied with number of sectors per 4k block */ 92 multiplied with number of sectors per 4k block */
93 93
94#define ZFCP_TYPE2_RECOVERY_TIME 8 /* seconds */
95
96/********************* FSF SPECIFIC DEFINES *********************************/ 94/********************* FSF SPECIFIC DEFINES *********************************/
97 95
98/* ATTENTION: value must not be used by hardware */ 96/* ATTENTION: value must not be used by hardware */
99#define FSF_QTCB_UNSOLICITED_STATUS 0x6305 97#define FSF_QTCB_UNSOLICITED_STATUS 0x6305
100 98
101/* Do 1st retry in 1 second, then double the timeout for each following retry */
102#define ZFCP_EXCHANGE_CONFIG_DATA_FIRST_SLEEP 1
103#define ZFCP_EXCHANGE_CONFIG_DATA_RETRIES 7
104
105/* timeout value for "default timer" for fsf requests */ 99/* timeout value for "default timer" for fsf requests */
106#define ZFCP_FSF_REQUEST_TIMEOUT (60*HZ) 100#define ZFCP_FSF_REQUEST_TIMEOUT (60*HZ)
107 101
@@ -349,45 +343,6 @@ struct zfcp_rc_entry {
349#define ZFCP_STATUS_FSFREQ_RETRY 0x00000800 343#define ZFCP_STATUS_FSFREQ_RETRY 0x00000800
350#define ZFCP_STATUS_FSFREQ_DISMISSED 0x00001000 344#define ZFCP_STATUS_FSFREQ_DISMISSED 0x00001000
351 345
352/*********************** ERROR RECOVERY PROCEDURE DEFINES ********************/
353
354#define ZFCP_MAX_ERPS 3
355
356#define ZFCP_ERP_FSFREQ_TIMEOUT (30 * HZ)
357#define ZFCP_ERP_MEMWAIT_TIMEOUT HZ
358
359#define ZFCP_STATUS_ERP_TIMEDOUT 0x10000000
360#define ZFCP_STATUS_ERP_CLOSE_ONLY 0x01000000
361#define ZFCP_STATUS_ERP_DISMISSING 0x00100000
362#define ZFCP_STATUS_ERP_DISMISSED 0x00200000
363#define ZFCP_STATUS_ERP_LOWMEM 0x00400000
364
365#define ZFCP_ERP_STEP_UNINITIALIZED 0x00000000
366#define ZFCP_ERP_STEP_FSF_XCONFIG 0x00000001
367#define ZFCP_ERP_STEP_PHYS_PORT_CLOSING 0x00000010
368#define ZFCP_ERP_STEP_PORT_CLOSING 0x00000100
369#define ZFCP_ERP_STEP_NAMESERVER_OPEN 0x00000200
370#define ZFCP_ERP_STEP_NAMESERVER_LOOKUP 0x00000400
371#define ZFCP_ERP_STEP_PORT_OPENING 0x00000800
372#define ZFCP_ERP_STEP_UNIT_CLOSING 0x00001000
373#define ZFCP_ERP_STEP_UNIT_OPENING 0x00002000
374
375/* Ordered by escalation level (necessary for proper erp-code operation) */
376#define ZFCP_ERP_ACTION_REOPEN_ADAPTER 0x4
377#define ZFCP_ERP_ACTION_REOPEN_PORT_FORCED 0x3
378#define ZFCP_ERP_ACTION_REOPEN_PORT 0x2
379#define ZFCP_ERP_ACTION_REOPEN_UNIT 0x1
380
381#define ZFCP_ERP_ACTION_RUNNING 0x1
382#define ZFCP_ERP_ACTION_READY 0x2
383
384#define ZFCP_ERP_SUCCEEDED 0x0
385#define ZFCP_ERP_FAILED 0x1
386#define ZFCP_ERP_CONTINUES 0x2
387#define ZFCP_ERP_EXIT 0x3
388#define ZFCP_ERP_DISMISSED 0x4
389#define ZFCP_ERP_NOMEM 0x5
390
391/************************* STRUCTURE DEFINITIONS *****************************/ 346/************************* STRUCTURE DEFINITIONS *****************************/
392 347
393struct zfcp_fsf_req; 348struct zfcp_fsf_req;