ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.6.tar.bz2
[linux-2.6.git] / drivers / scsi / gdth_proc.h
1 #ifndef _GDTH_PROC_H
2 #define _GDTH_PROC_H
3
4 /* gdth_proc.h 
5  * $Id: gdth_proc.h,v 1.14 2003/08/27 11:37:35 achim Exp $
6  */
7
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);
11
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);
18 #endif
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);
25 #endif
26 #else 
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);
32 #endif
33 #endif
34
35 static char *gdth_ioctl_alloc(int hanum, int size, int scratch,
36                               ulong32 *paddr);  
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);
40 #endif
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);
45
46 void gdth_scsi_done(Scsi_Cmnd *scp);
47
48 #endif
49