1 #ifndef TARGET_CORE_TMR_H
2 #define TARGET_CORE_TMR_H
4 /* task management function values */
7 #endif /* ABORT_TASK */
11 #endif /* ABORT_TASK_SET */
12 #define ABORT_TASK_SET 2
15 #endif /* CLEAR_ACA */
19 #endif /* CLEAR_TASK_SET */
20 #define CLEAR_TASK_SET 4
22 #define TARGET_WARM_RESET 6
23 #define TARGET_COLD_RESET 7
24 #define TASK_REASSIGN 8
26 /* task management response values */
27 #define TMR_FUNCTION_COMPLETE 0
28 #define TMR_TASK_DOES_NOT_EXIST 1
29 #define TMR_LUN_DOES_NOT_EXIST 2
30 #define TMR_TASK_STILL_ALLEGIANT 3
31 #define TMR_TASK_FAILOVER_NOT_SUPPORTED 4
32 #define TMR_TASK_MGMT_FUNCTION_NOT_SUPPORTED 5
33 #define TMR_FUNCTION_AUTHORIZATION_FAILED 6
34 #define TMR_FUNCTION_REJECTED 255
36 extern struct kmem_cache
*se_tmr_req_cache
;
38 extern struct se_tmr_req
*core_tmr_alloc_req(struct se_cmd
*, void *, u8
);
39 extern void core_tmr_release_req(struct se_tmr_req
*);
40 extern int core_tmr_lun_reset(struct se_device
*, struct se_tmr_req
*,
41 struct list_head
*, struct se_cmd
*);
43 #endif /* TARGET_CORE_TMR_H */