aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/gdth.h
diff options
context:
space:
mode:
authorBoaz Harrosh <bharrosh@panasas.com>2007-10-02 17:18:03 -0400
committerJames Bottomley <jejb@mulgrave.localdomain>2007-10-12 14:56:13 -0400
commit3892d88ae6fb186ff6205f764213b556d70800b0 (patch)
tree5435ca13a3d70569582887813a92f49a0ac7ca7c /drivers/scsi/gdth.h
parentf842b64e0ffbcc9ce48a3bf799d0b005094107c1 (diff)
[SCSI] gdth: !use_sg cleanup and use of scsi accessors
gdth_execute() will issue an internal, none scsi-standard commands onto __gdth_queuecommand(). Since it is not recommended to set struct scsi_cmnd IO members in llds, gdth now uses internal IO members for IO. In the case of gdth_execute() these members will be set properly. In case the command was issued from scsi-ml (by gdth_queuecommand) they will be set from scsi IO accessors. * define gdth IO accessors and use them throughout the driver. * use an sg-of-one in gdth_execute() and fix gdth_special_cmd() accordingly. * Clean the not use_sg code path and company Signed-off-by Boaz Harrosh <bharrosh@panasas.com> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/gdth.h')
-rw-r--r--drivers/scsi/gdth.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/scsi/gdth.h b/drivers/scsi/gdth.h
index 25803a8f31de..1434c6b0297c 100644
--- a/drivers/scsi/gdth.h
+++ b/drivers/scsi/gdth.h
@@ -303,15 +303,8 @@
303#define MAILBOXREG 0x0c90 /* mailbox reg. (16 bytes) */ 303#define MAILBOXREG 0x0c90 /* mailbox reg. (16 bytes) */
304#define EISAREG 0x0cc0 /* EISA configuration */ 304#define EISAREG 0x0cc0 /* EISA configuration */
305 305
306/* DMA memory mappings */
307#define GDTH_MAP_NONE 0
308#define GDTH_MAP_SINGLE 1
309#define GDTH_MAP_SG 2
310#define GDTH_MAP_IOCTL 3
311
312/* other defines */ 306/* other defines */
313#define LINUX_OS 8 /* used for cache optim. */ 307#define LINUX_OS 8 /* used for cache optim. */
314#define SCATTER_GATHER 1 /* s/g feature */
315#define SECS32 0x1f /* round capacity */ 308#define SECS32 0x1f /* round capacity */
316#define BIOS_ID_OFFS 0x10 /* offset contr-ID in ISABIOS */ 309#define BIOS_ID_OFFS 0x10 /* offset contr-ID in ISABIOS */
317#define LOCALBOARD 0 /* board node always 0 */ 310#define LOCALBOARD 0 /* board node always 0 */