| 
									
										
										
										
											2006-11-16 19:24:13 +09:00
										 |  |  | struct scsi_cmnd; | 
					
						
							|  |  |  | struct scsi_lun; | 
					
						
							|  |  |  | struct Scsi_Host; | 
					
						
							|  |  |  | struct task_struct; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | /* tmp - will replace with SCSI logging stuff */ | 
					
						
							|  |  |  | #define eprintk(fmt, args...)					\
 | 
					
						
							|  |  |  | do {								\ | 
					
						
							| 
									
										
										
										
											2008-07-03 23:47:27 -07:00
										 |  |  | 	printk("%s(%d) " fmt, __func__, __LINE__, ##args);	\ | 
					
						
							| 
									
										
										
										
											2006-11-16 19:24:13 +09:00
										 |  |  | } while (0) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #define dprintk(fmt, args...)
 | 
					
						
							|  |  |  | /* #define dprintk eprintk */ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | extern void scsi_tgt_if_exit(void); | 
					
						
							|  |  |  | extern int scsi_tgt_if_init(void); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2007-07-11 15:08:17 +09:00
										 |  |  | extern int scsi_tgt_uspace_send_cmd(struct scsi_cmnd *cmd, u64 it_nexus_id, | 
					
						
							|  |  |  | 				    struct scsi_lun *lun, u64 tag); | 
					
						
							|  |  |  | extern int scsi_tgt_uspace_send_status(struct scsi_cmnd *cmd, u64 it_nexus_id, | 
					
						
							|  |  |  | 				       u64 tag); | 
					
						
							|  |  |  | extern int scsi_tgt_kspace_exec(int host_no, u64 it_nexus_id, int result, u64 tag, | 
					
						
							|  |  |  | 				unsigned long uaddr, u32 len, | 
					
						
							|  |  |  | 				unsigned long sense_uaddr, u32 sense_len, u8 rw); | 
					
						
							|  |  |  | extern int scsi_tgt_uspace_send_tsk_mgmt(int host_no, u64 it_nexus_id, | 
					
						
							|  |  |  | 					 int function, u64 tag, | 
					
						
							| 
									
										
										
										
											2006-11-16 19:24:13 +09:00
										 |  |  | 					 struct scsi_lun *scsilun, void *data); | 
					
						
							| 
									
										
										
										
											2007-07-11 15:08:17 +09:00
										 |  |  | extern int scsi_tgt_kspace_tsk_mgmt(int host_no, u64 it_nexus_id, | 
					
						
							|  |  |  | 				    u64 mid, int result); | 
					
						
							|  |  |  | extern int scsi_tgt_uspace_send_it_nexus_request(int host_no, u64 it_nexus_id, | 
					
						
							|  |  |  | 						 int function, char *initiator); | 
					
						
							|  |  |  | extern int scsi_tgt_kspace_it_nexus_rsp(int host_no, u64 it_nexus_id, int result); |