scst: Rework the scst_data_direction enum

Since there is no relationship between enum dma_data_direction and the
SCST data direction enum, introduce a new enumeration type for the SCST
data direction. This patch does not change any functionality.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7961 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2019-02-18 22:18:06 +00:00
parent 281801a266
commit 589dad3997
2 changed files with 7 additions and 7 deletions
-2
View File
@@ -759,8 +759,6 @@ struct scst_opcode_descriptor;
*/
#define NO_SUCH_LUN ((uint64_t)-1)
typedef enum dma_data_direction scst_data_direction;
/*
* SCST target template: defines target driver's parameters and callback
* functions.
+7 -5
View File
@@ -239,11 +239,13 @@ enum scst_cdb_flags {
** Data direction aliases. Changing it don't forget to change
** scst_to_tgt_dma_dir and SCST_DATA_DIR_MAX as well!!
*************************************************************/
#define SCST_DATA_UNKNOWN 0
#define SCST_DATA_WRITE 1
#define SCST_DATA_READ 2
#define SCST_DATA_BIDI (SCST_DATA_WRITE | SCST_DATA_READ)
#define SCST_DATA_NONE 4
typedef enum scst_data_direction {
SCST_DATA_UNKNOWN = 0,
SCST_DATA_WRITE = 1,
SCST_DATA_READ = 2,
SCST_DATA_BIDI = (SCST_DATA_WRITE | SCST_DATA_READ),
SCST_DATA_NONE = 4,
} scst_data_direction;
#define SCST_DATA_DIR_MAX (SCST_DATA_NONE+1)