diff options
author | Christoph Hellwig <hch@infradead.org> | 2012-05-20 11:59:15 -0400 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2012-07-16 20:27:45 -0400 |
commit | 1fd032ee10d2816c947f5d5b9abda95e728f0a8f (patch) | |
tree | 2a76ad6b466160127dd41ba1d2f6fdb54f412bf2 /include/target | |
parent | d6e0175cf3f9737a760482d185bb73566bcc9331 (diff) |
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>
Diffstat (limited to 'include/target')
-rw-r--r-- | include/target/target_core_backend.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/target/target_core_backend.h b/include/target/target_core_backend.h index f4f1eef6bf55..24d2004f0d12 100644 --- a/include/target/target_core_backend.h +++ b/include/target/target_core_backend.h | |||
@@ -25,7 +25,7 @@ struct se_subsystem_api { | |||
25 | void (*free_device)(void *); | 25 | void (*free_device)(void *); |
26 | int (*transport_complete)(struct se_cmd *cmd, struct scatterlist *); | 26 | int (*transport_complete)(struct se_cmd *cmd, struct scatterlist *); |
27 | 27 | ||
28 | int (*parse_cdb)(struct se_cmd *cmd, unsigned int *size); | 28 | int (*parse_cdb)(struct se_cmd *cmd); |
29 | int (*execute_cmd)(struct se_cmd *, struct scatterlist *, u32, | 29 | int (*execute_cmd)(struct se_cmd *, struct scatterlist *, u32, |
30 | enum dma_data_direction); | 30 | enum dma_data_direction); |
31 | int (*do_discard)(struct se_device *, sector_t, u32); | 31 | 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 *, | |||
51 | 51 | ||
52 | void target_complete_cmd(struct se_cmd *, u8); | 52 | void target_complete_cmd(struct se_cmd *, u8); |
53 | 53 | ||
54 | int sbc_parse_cdb(struct se_cmd *cmd, unsigned int *size); | 54 | int sbc_parse_cdb(struct se_cmd *cmd); |
55 | int spc_parse_cdb(struct se_cmd *cmd, unsigned int *size, bool passthrough); | 55 | int spc_parse_cdb(struct se_cmd *cmd, unsigned int *size); |
56 | 56 | ||
57 | void transport_set_vpd_proto_id(struct t10_vpd *, unsigned char *); | 57 | void transport_set_vpd_proto_id(struct t10_vpd *, unsigned char *); |
58 | int transport_set_vpd_assoc(struct t10_vpd *, unsigned char *); | 58 | int transport_set_vpd_assoc(struct t10_vpd *, unsigned char *); |