1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-09-01 16:52:14 +02:00

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>
This commit is contained in:
Faiz Abbas
2019-10-15 18:24:35 +05:30
committed by Tom Rini
parent d48f00ed11
commit 8fbac8e23e
2 changed files with 7 additions and 0 deletions

View File

@@ -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;
};
/*-----------------------------------------------------------