diff options
author | Christof Schmitt <christof.schmitt@de.ibm.com> | 2010-04-30 12:09:34 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2010-05-02 15:42:30 -0400 |
commit | 1674b4054744c2cfd6573e43eca45d86ff581d0e (patch) | |
tree | 6a59f4f00b15b30313c330e9636b36c88c93a1c9 /drivers/s390/scsi/zfcp_def.h | |
parent | 683229845f1780b10041ee7a1043fc8f10061455 (diff) |
[SCSI] zfcp: Move sbale handling to zfcp_qdio files
Move the code accessing the qdio sbales and zfcp_qdio_req struct to
the zfcp_qdio files and provide helper functions for accessing the
qdio related parts.
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.h | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/drivers/s390/scsi/zfcp_def.h b/drivers/s390/scsi/zfcp_def.h index 72132c13f45b..0b2ae60a6f9f 100644 --- a/drivers/s390/scsi/zfcp_def.h +++ b/drivers/s390/scsi/zfcp_def.h | |||
@@ -44,23 +44,6 @@ struct zfcp_reqlist; | |||
44 | /********************* SCSI SPECIFIC DEFINES *********************************/ | 44 | /********************* SCSI SPECIFIC DEFINES *********************************/ |
45 | #define ZFCP_SCSI_ER_TIMEOUT (10*HZ) | 45 | #define ZFCP_SCSI_ER_TIMEOUT (10*HZ) |
46 | 46 | ||
47 | /********************* CIO/QDIO SPECIFIC DEFINES *****************************/ | ||
48 | |||
49 | /* DMQ bug workaround: don't use last SBALE */ | ||
50 | #define ZFCP_MAX_SBALES_PER_SBAL (QDIO_MAX_ELEMENTS_PER_BUFFER - 1) | ||
51 | |||
52 | /* index of last SBALE (with respect to DMQ bug workaround) */ | ||
53 | #define ZFCP_LAST_SBALE_PER_SBAL (ZFCP_MAX_SBALES_PER_SBAL - 1) | ||
54 | |||
55 | /* max. number of (data buffer) SBALEs in largest SBAL chain */ | ||
56 | #define ZFCP_MAX_SBALES_PER_REQ \ | ||
57 | (FSF_MAX_SBALS_PER_REQ * ZFCP_MAX_SBALES_PER_SBAL - 2) | ||
58 | /* request ID + QTCB in SBALE 0 + 1 of first SBAL in chain */ | ||
59 | |||
60 | #define ZFCP_MAX_SECTORS (ZFCP_MAX_SBALES_PER_REQ * 8) | ||
61 | /* max. number of (data buffer) SBALEs in largest SBAL chain | ||
62 | multiplied with number of sectors per 4k block */ | ||
63 | |||
64 | /********************* FSF SPECIFIC DEFINES *********************************/ | 47 | /********************* FSF SPECIFIC DEFINES *********************************/ |
65 | 48 | ||
66 | /* ATTENTION: value must not be used by hardware */ | 49 | /* ATTENTION: value must not be used by hardware */ |