blob: fe4c62177f78f8394b3e1c230a5b4766c53db869 [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 { \
Harvey Harrisoncadbd4a2008-07-03 23:47:27 -07009 printk("%s(%d) " fmt, __func__, __LINE__, ##args); \
FUJITA Tomonori5a55c252006-11-16 19:24:13 +090010} 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
FUJITA Tomonori2c47f9ef2007-07-11 15:08:17 +090018extern int scsi_tgt_uspace_send_cmd(struct scsi_cmnd *cmd, u64 it_nexus_id,
19 struct scsi_lun *lun, u64 tag);
20extern int scsi_tgt_uspace_send_status(struct scsi_cmnd *cmd, u64 it_nexus_id,
21 u64 tag);
22extern int scsi_tgt_kspace_exec(int host_no, u64 it_nexus_id, int result, u64 tag,
23 unsigned long uaddr, u32 len,
24 unsigned long sense_uaddr, u32 sense_len, u8 rw);
25extern int scsi_tgt_uspace_send_tsk_mgmt(int host_no, u64 it_nexus_id,
26 int function, u64 tag,
FUJITA Tomonori5a55c252006-11-16 19:24:13 +090027 struct scsi_lun *scsilun, void *data);
FUJITA Tomonori2c47f9ef2007-07-11 15:08:17 +090028extern int scsi_tgt_kspace_tsk_mgmt(int host_no, u64 it_nexus_id,
29 u64 mid, int result);
30extern int scsi_tgt_uspace_send_it_nexus_request(int host_no, u64 it_nexus_id,
31 int function, char *initiator);
32extern int scsi_tgt_kspace_it_nexus_rsp(int host_no, u64 it_nexus_id, int result);