target_core_tmr.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. #ifndef TARGET_CORE_TMR_H
  2. #define TARGET_CORE_TMR_H
  3. /* task management function values */
  4. #ifdef ABORT_TASK
  5. #undef ABORT_TASK
  6. #endif /* ABORT_TASK */
  7. #define ABORT_TASK 1
  8. #ifdef ABORT_TASK_SET
  9. #undef ABORT_TASK_SET
  10. #endif /* ABORT_TASK_SET */
  11. #define ABORT_TASK_SET 2
  12. #ifdef CLEAR_ACA
  13. #undef CLEAR_ACA
  14. #endif /* CLEAR_ACA */
  15. #define CLEAR_ACA 3
  16. #ifdef CLEAR_TASK_SET
  17. #undef CLEAR_TASK_SET
  18. #endif /* CLEAR_TASK_SET */
  19. #define CLEAR_TASK_SET 4
  20. #define LUN_RESET 5
  21. #define TARGET_WARM_RESET 6
  22. #define TARGET_COLD_RESET 7
  23. #define TASK_REASSIGN 8
  24. /* task management response values */
  25. #define TMR_FUNCTION_COMPLETE 0
  26. #define TMR_TASK_DOES_NOT_EXIST 1
  27. #define TMR_LUN_DOES_NOT_EXIST 2
  28. #define TMR_TASK_STILL_ALLEGIANT 3
  29. #define TMR_TASK_FAILOVER_NOT_SUPPORTED 4
  30. #define TMR_TASK_MGMT_FUNCTION_NOT_SUPPORTED 5
  31. #define TMR_FUNCTION_AUTHORIZATION_FAILED 6
  32. #define TMR_FUNCTION_REJECTED 255
  33. extern struct kmem_cache *se_tmr_req_cache;
  34. extern struct se_tmr_req *core_tmr_alloc_req(struct se_cmd *, void *, u8);
  35. extern void core_tmr_release_req(struct se_tmr_req *);
  36. extern int core_tmr_lun_reset(struct se_device *, struct se_tmr_req *,
  37. struct list_head *, struct se_cmd *);
  38. #endif /* TARGET_CORE_TMR_H */