scsi_tgt_priv.h 895 B

1234567891011121314151617181920212223242526
  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, int result, u64 tag,
  18. unsigned long uaddr, u32 len, unsigned long sense_uaddr,
  19. u32 sense_len, u8 rw);
  20. extern int scsi_tgt_uspace_send_tsk_mgmt(int host_no, int function, u64 tag,
  21. struct scsi_lun *scsilun, void *data);
  22. extern int scsi_tgt_kspace_tsk_mgmt(int host_no, u64 mid, int result);