scsi_tgt_priv.h 849 B

12345678910111213141516171819202122232425
  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, __FUNCTION__, __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, struct scsi_lun *lun,
  15. u64 tag);
  16. extern int scsi_tgt_uspace_send_status(struct scsi_cmnd *cmd, u64 tag);
  17. extern int scsi_tgt_kspace_exec(int host_no, u64 tag, int result, u32 len,
  18. unsigned long uaddr, u8 rw);
  19. extern int scsi_tgt_uspace_send_tsk_mgmt(int host_no, int function, u64 tag,
  20. struct scsi_lun *scsilun, void *data);
  21. extern int scsi_tgt_kspace_tsk_mgmt(int host_no, u64 mid, int result);