diff options
author | Bart Van Assche <bvanassche@acm.org> | 2022-02-18 20:50:54 +0100 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2022-02-23 03:11:05 +0100 |
commit | 09cc102bb4d6963767cc067be2b72ca366850d8c (patch) | |
tree | 77ca1db806ec23d8c17c24c5a330b6b58c070cf7 /drivers/scsi/initio.h | |
parent | scsi: iscsi: Stop using the SCSI pointer (diff) | |
download | linux-09cc102bb4d6963767cc067be2b72ca366850d8c.tar.xz linux-09cc102bb4d6963767cc067be2b72ca366850d8c.zip |
scsi: initio: Stop using the SCSI pointer
Set .cmd_size in the SCSI host template instead of using the SCSI pointer
from struct scsi_cmnd. This patch prepares for removal of the SCSI pointer
from struct scsi_cmnd.
Link: https://lore.kernel.org/r/20220218195117.25689-27-bvanassche@acm.org
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Himanshu Madhani <himanshu.madhani@oracle.com>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/initio.h')
-rw-r--r-- | drivers/scsi/initio.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/scsi/initio.h b/drivers/scsi/initio.h index 9fd010cf1f8a..7c9741552654 100644 --- a/drivers/scsi/initio.h +++ b/drivers/scsi/initio.h @@ -640,3 +640,12 @@ typedef struct _NVRAM { #define SCSI_RESET_HOST_RESET 0x200 #define SCSI_RESET_ACTION 0xff +struct initio_cmd_priv { + dma_addr_t sense_dma_addr; + dma_addr_t sglist_dma_addr; +}; + +static inline struct initio_cmd_priv *initio_priv(struct scsi_cmnd *cmd) +{ + return scsi_cmd_priv(cmd); +} |