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:
@@ -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;
|
||||
};
|
||||
|
||||
/*-----------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user