diff options
author | Faiz Abbas <faiz_abbas@ti.com> | 2019-10-15 18:24:35 +0530 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2019-10-23 20:47:12 -0400 |
commit | 8fbac8e23e55a63c218b8d737e629a8d07e9a840 (patch) | |
tree | 3371610ff24089a4a71eee6d5b22d78fd4cf63f8 /include/scsi.h | |
parent | d48f00ed11d04eb76d4510b3db1d7f36f758d4e9 (diff) | |
download | u-boot-8fbac8e23e55a63c218b8d737e629a8d07e9a840.tar.gz u-boot-8fbac8e23e55a63c218b8d737e629a8d07e9a840.tar.bz2 u-boot-8fbac8e23e55a63c218b8d737e629a8d07e9a840.zip |
scsi: Add dma direction member to command structure
Some SCSI devices like UFS use DMA for executing scsi commands and hence
need to know the direction of transfer of the dma. Add a dma_dir element
to the command structure to facilitate this.
Signed-off-by: Faiz Abbas <faiz_abbas@ti.com>
Diffstat (limited to 'include/scsi.h')
-rw-r--r-- | include/scsi.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/scsi.h b/include/scsi.h index 963abe2b13..61da958bf6 100644 --- a/include/scsi.h +++ b/include/scsi.h @@ -6,6 +6,8 @@ #ifndef _SCSI_H #define _SCSI_H +#include <linux/dma-direction.h> + struct scsi_cmd { unsigned char cmd[16]; /* command */ /* for request sense */ @@ -26,6 +28,7 @@ struct scsi_cmd { unsigned long trans_bytes; /* tranfered bytes */ unsigned int priv; + enum dma_data_direction dma_dir; }; /*----------------------------------------------------------- |