mirror of
https://github.com/SCST-project/scst.git
synced 2026-08-19 05:36:22 +00:00
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:
@@ -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.
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user