blob: e9e6db1c417f38543bedd8415d93e1ce30a6b0c8 [file] [log] [blame]
FUJITA Tomonori5a55c252006-11-16 19:24:13 +09001struct scsi_cmnd;
2struct scsi_lun;
3struct Scsi_Host;
4struct task_struct;
5
6/* tmp - will replace with SCSI logging stuff */
7#define eprintk(fmt, args...) \
8do { \
9 printk("%s(%d) " fmt, __FUNCTION__, __LINE__, ##args); \
10} while (0)
11
12#define dprintk(fmt, args...)
13/* #define dprintk eprintk */
14
15extern void scsi_tgt_if_exit(void);
16extern int scsi_tgt_if_init(void);
17
18extern int scsi_tgt_uspace_send_cmd(struct scsi_cmnd *cmd, struct scsi_lun *lun,
19 u64 tag);
20extern int scsi_tgt_uspace_send_status(struct scsi_cmnd *cmd, u64 tag);
FUJITA Tomonoribc7e3802007-03-03 09:55:54 +090021extern int scsi_tgt_kspace_exec(int host_no, int result, u64 tag,
22 unsigned long uaddr, u32 len, unsigned long sense_uaddr,
23 u32 sense_len, u8 rw);
FUJITA Tomonori5a55c252006-11-16 19:24:13 +090024extern int scsi_tgt_uspace_send_tsk_mgmt(int host_no, int function, u64 tag,
25 struct scsi_lun *scsilun, void *data);
26extern int scsi_tgt_kspace_tsk_mgmt(int host_no, u64 mid, int result);