5 * $Id: gdth_proc.h,v 1.14 2003/08/27 11:37:35 achim Exp $
8 static int gdth_set_info(char *buffer,int length,int hanum,int busnum);
9 static int gdth_get_info(char *buffer,char **start,off_t offset,
10 int length,int hanum,int busnum);
12 #if LINUX_VERSION_CODE >= 0x020503
13 static void gdth_do_req(Scsi_Request *srp, gdth_cmd_str *cmd,
14 char *cmnd, int timeout);
15 static int gdth_set_asc_info(char *buffer,int length,int hanum,Scsi_Request *scp);
16 #ifdef GDTH_IOCTL_PROC
17 static int gdth_set_bin_info(char *buffer,int length,int hanum,Scsi_Request *scp);
19 #elif LINUX_VERSION_CODE >= 0x020322
20 static void gdth_do_cmd(Scsi_Cmnd *scp, gdth_cmd_str *cmd,
21 char *cmnd, int timeout);
22 static int gdth_set_asc_info(char *buffer,int length,int hanum,Scsi_Cmnd *scp);
23 #ifdef GDTH_IOCTL_PROC
24 static int gdth_set_bin_info(char *buffer,int length,int hanum,Scsi_Cmnd *scp);
27 static void gdth_do_cmd(Scsi_Cmnd *scp, gdth_cmd_str *cmd,
28 char *cmnd, int timeout);
29 static int gdth_set_asc_info(char *buffer,int length,int hanum,Scsi_Cmnd scp);
30 #ifdef GDTH_IOCTL_PROC
31 static int gdth_set_bin_info(char *buffer,int length,int hanum,Scsi_Cmnd scp);
35 static char *gdth_ioctl_alloc(int hanum, int size, int scratch,
37 static void gdth_ioctl_free(int hanum, int size, char *buf, ulong32 paddr);
38 #ifdef GDTH_IOCTL_PROC
39 static int gdth_ioctl_check_bin(int hanum, ushort size);
41 static void gdth_wait_completion(int hanum, int busnum, int id);
42 static void gdth_stop_timeout(int hanum, int busnum, int id);
43 static void gdth_start_timeout(int hanum, int busnum, int id);
44 static int gdth_update_timeout(int hanum, Scsi_Cmnd *scp, int timeout);
46 void gdth_scsi_done(Scsi_Cmnd *scp);