diff options
author | Christoph Hellwig <hch@infradead.org> | 2012-10-07 10:55:53 -0400 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2012-11-06 23:55:44 -0500 |
commit | 6f23ac8a39418d6c6711f4fd73cc4519067d7f08 (patch) | |
tree | d6975dda37b047b6f9c3f5cf74cc4206a32a9e3a /include/target | |
parent | 8de530a523fd3cc46b5d8d96f3016298c5c808ac (diff) |
target: provide generic sbc device type/revision helpers
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 | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/target/target_core_backend.h b/include/target/target_core_backend.h index e7a03056c957..b7f3936453e1 100644 --- a/include/target/target_core_backend.h +++ b/include/target/target_core_backend.h | |||
@@ -50,11 +50,14 @@ void transport_subsystem_release(struct se_subsystem_api *); | |||
50 | 50 | ||
51 | void target_complete_cmd(struct se_cmd *, u8); | 51 | void target_complete_cmd(struct se_cmd *, u8); |
52 | 52 | ||
53 | int sbc_parse_cdb(struct se_cmd *cmd, struct sbc_ops *ops); | ||
54 | int spc_parse_cdb(struct se_cmd *cmd, unsigned int *size); | 53 | int spc_parse_cdb(struct se_cmd *cmd, unsigned int *size); |
55 | int spc_emulate_report_luns(struct se_cmd *cmd); | 54 | int spc_emulate_report_luns(struct se_cmd *cmd); |
56 | int spc_get_write_same_sectors(struct se_cmd *cmd); | 55 | int spc_get_write_same_sectors(struct se_cmd *cmd); |
57 | 56 | ||
57 | int sbc_parse_cdb(struct se_cmd *cmd, struct sbc_ops *ops); | ||
58 | u32 sbc_get_device_rev(struct se_device *dev); | ||
59 | u32 sbc_get_device_type(struct se_device *dev); | ||
60 | |||
58 | void transport_set_vpd_proto_id(struct t10_vpd *, unsigned char *); | 61 | void transport_set_vpd_proto_id(struct t10_vpd *, unsigned char *); |
59 | int transport_set_vpd_assoc(struct t10_vpd *, unsigned char *); | 62 | int transport_set_vpd_assoc(struct t10_vpd *, unsigned char *); |
60 | int transport_set_vpd_ident_type(struct t10_vpd *, unsigned char *); | 63 | int transport_set_vpd_ident_type(struct t10_vpd *, unsigned char *); |