target: move code for CDB emulation
Move the existing code in target_core_cdb.c into the files for the command sets that the emulations implement. (roland + nab: Squash patch: Fix range calculation in WRITE SAME emulation when num blocks == 0s) Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
This commit is contained in:
parent
d6e0175cf3
commit
1fd032ee10
8 changed files with 1167 additions and 1673 deletions
|
@ -25,7 +25,7 @@ struct se_subsystem_api {
|
|||
void (*free_device)(void *);
|
||||
int (*transport_complete)(struct se_cmd *cmd, struct scatterlist *);
|
||||
|
||||
int (*parse_cdb)(struct se_cmd *cmd, unsigned int *size);
|
||||
int (*parse_cdb)(struct se_cmd *cmd);
|
||||
int (*execute_cmd)(struct se_cmd *, struct scatterlist *, u32,
|
||||
enum dma_data_direction);
|
||||
int (*do_discard)(struct se_device *, sector_t, u32);
|
||||
|
@ -51,8 +51,8 @@ struct se_device *transport_add_device_to_core_hba(struct se_hba *,
|
|||
|
||||
void target_complete_cmd(struct se_cmd *, u8);
|
||||
|
||||
int sbc_parse_cdb(struct se_cmd *cmd, unsigned int *size);
|
||||
int spc_parse_cdb(struct se_cmd *cmd, unsigned int *size, bool passthrough);
|
||||
int sbc_parse_cdb(struct se_cmd *cmd);
|
||||
int spc_parse_cdb(struct se_cmd *cmd, unsigned int *size);
|
||||
|
||||
void transport_set_vpd_proto_id(struct t10_vpd *, unsigned char *);
|
||||
int transport_set_vpd_assoc(struct t10_vpd *, unsigned char *);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue