Skip to content

Commit b8c2c91

Browse files
committed
types: Move enum nvme_data_tfr to types
As this is part of the spec, let's move this to the types.h header file. Signed-off-by: Daniel Wagner <[email protected]>
1 parent 64a0e52 commit b8c2c91

2 files changed

Lines changed: 14 additions & 14 deletions

File tree

src/nvme/types.h

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7046,6 +7046,20 @@ enum nvme_fctype {
70467046
nvme_fabrics_type_disconnect = 0x08,
70477047
};
70487048

7049+
/**
7050+
* enum nvme_data_tfr - Data transfer direction of the command
7051+
* @NVME_DATA_TFR_NO_DATA_TFR: No data transfer
7052+
* @NVME_DATA_TFR_HOST_TO_CTRL: Host to controller
7053+
* @NVME_DATA_TFR_CTRL_TO_HOST: Controller to host
7054+
* @NVME_DATA_TFR_BIDIRECTIONAL: Bidirectional
7055+
*/
7056+
enum nvme_data_tfr {
7057+
NVME_DATA_TFR_NO_DATA_TFR = 0x0,
7058+
NVME_DATA_TFR_HOST_TO_CTRL = 0x1,
7059+
NVME_DATA_TFR_CTRL_TO_HOST = 0x2,
7060+
NVME_DATA_TFR_BIDIRECTIONAL = 0x3,
7061+
};
7062+
70497063
/**
70507064
* enum nvme_io_opcode - Opcodes for I/O Commands
70517065
* @nvme_cmd_flush: Flush

src/nvme/util.h

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -155,20 +155,6 @@ void nvme_init_copy_range_f1(struct nvme_copy_range_f1 *copy, __u16 *nlbs,
155155
*/
156156
int nvme_get_feature_length(int fid, __u32 cdw11, __u32 *len);
157157

158-
/**
159-
* enum nvme_data_tfr - Data transfer direction of the command
160-
* @NVME_DATA_TFR_NO_DATA_TFR: No data transfer
161-
* @NVME_DATA_TFR_HOST_TO_CTRL: Host to controller
162-
* @NVME_DATA_TFR_CTRL_TO_HOST: Controller to host
163-
* @NVME_DATA_TFR_BIDIRECTIONAL: Bidirectional
164-
*/
165-
enum nvme_data_tfr {
166-
NVME_DATA_TFR_NO_DATA_TFR,
167-
NVME_DATA_TFR_HOST_TO_CTRL,
168-
NVME_DATA_TFR_CTRL_TO_HOST,
169-
NVME_DATA_TFR_BIDIRECTIONAL
170-
};
171-
172158
/**
173159
* nvme_get_feature_length2() - Retreive the command payload length for a
174160
* specific feature identifier

0 commit comments

Comments
 (0)