summaryrefslogtreecommitdiffstats
path: root/include/target/target_core_backend.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@infradead.org>2012-05-20 11:59:15 -0400
committerNicholas Bellinger <nab@linux-iscsi.org>2012-06-12 21:38:41 -0700
commite05d46b92677434d6ea28ed16172f1a892585e47 (patch)
treeaac9da1255e03c983d81d1327be917f20a79cb40 /include/target/target_core_backend.h
parent366e815ef199da797cab52566016e692442b5c60 (diff)
downloadlinux-e05d46b92677434d6ea28ed16172f1a892585e47.tar.gz
linux-e05d46b92677434d6ea28ed16172f1a892585e47.tar.xz
linux-e05d46b92677434d6ea28ed16172f1a892585e47.zip
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. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'include/target/target_core_backend.h')
-rw-r--r--include/target/target_core_backend.h6
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 {
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 *);