scsi_tgt_priv.h 1.2 KB

123456789101112131415161718192021222324252627282930313233
  1. struct scsi_cmnd;
  2. struct scsi_lun;
  3. struct Scsi_Host;
  4. struct task_struct;
  5. /* tmp - will replace with SCSI logging stuff */
  6. #define eprintk(fmt, args...) \
  7. do { \
  8. printk("%s(%d) " fmt, __func__, __LINE__, ##args); \
  9. } while (0)
  10. #define dprintk(fmt, args...)
  11. /* #define dprintk eprintk */
  12. extern void scsi_tgt_if_exit(void);
  13. extern int scsi_tgt_if_init(void);
  14. extern int scsi_tgt_uspace_send_cmd(struct scsi_cmnd *cmd, u64 it_nexus_id,
  15. struct scsi_lun *lun, u64 tag);
  16. extern int scsi_tgt_uspace_send_status(struct scsi_cmnd *cmd, u64 it_nexus_id,
  17. u64 tag);
  18. extern int scsi_tgt_kspace_exec(int host_no, u64 it_nexus_id, int result, u64 tag,
  19. unsigned long uaddr, u32 len,
  20. unsigned long sense_uaddr, u32 sense_len, u8 rw);
  21. extern int scsi_tgt_uspace_send_tsk_mgmt(int host_no, u64 it_nexus_id,
  22. int function, u64 tag,
  23. struct scsi_lun *scsilun, void *data);
  24. extern int scsi_tgt_kspace_tsk_mgmt(int host_no, u64 it_nexus_id,
  25. u64 mid, int result);
  26. extern int scsi_tgt_uspace_send_it_nexus_request(int host_no, u64 it_nexus_id,
  27. int function, char *initiator);
  28. extern int scsi_tgt_kspace_it_nexus_rsp(int host_no, u64 it_nexus_id, int result);