]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - include/target/target_core_backend.h
platform/x86: GPD pocket fan: Allow somewhat lower/higher temperature limits
[linux.git] / include / target / target_core_backend.h
index b6b3fb444a9204b6096fdd07d452c07f4d01ff3c..51b6f50eabeebb20457ed848ba88353c8efbf38c 100644 (file)
@@ -53,6 +53,7 @@ struct target_backend_ops {
        void (*free_prot)(struct se_device *);
 
        struct configfs_attribute **tb_dev_attrib_attrs;
+       struct configfs_attribute **tb_dev_action_attrs;
 };
 
 struct sbc_ops {
@@ -105,13 +106,15 @@ bool      target_lun_is_rdonly(struct se_cmd *);
 sense_reason_t passthrough_parse_cdb(struct se_cmd *cmd,
        sense_reason_t (*exec_cmd)(struct se_cmd *cmd));
 
-struct se_device *target_find_device(int id, bool do_depend);
-
 bool target_sense_desc_format(struct se_device *dev);
 sector_t target_to_linux_sector(struct se_device *dev, sector_t lb);
 bool target_configure_unmap_from_queue(struct se_dev_attrib *attrib,
                                       struct request_queue *q);
 
+static inline bool target_dev_configured(struct se_device *se_dev)
+{
+       return !!(se_dev->dev_flags & DF_CONFIGURED);
+}
 
 /* Only use get_unaligned_be24() if reading p - 1 is allowed. */
 static inline uint32_t get_unaligned_be24(const uint8_t *const p)