patch-2_6_7-vs1_9_1_12
[linux-2.6.git] / drivers / scsi / dc390.h
1 /***********************************************************************
2  *      FILE NAME : DC390.H                                            *
3  *           BY   : C.L. Huang                                         *
4  *      Description: Device Driver for Tekram DC-390(T) PCI SCSI       *
5  *                   Bus Master Host Adapter                           *
6  ***********************************************************************/
7 /* $Id: dc390.h,v 2.43.2.22 2000/12/20 00:39:36 garloff Exp $ */
8
9 /*
10  * DC390/AMD 53C974 driver, header file
11  */
12
13 #ifndef DC390_H
14 #define DC390_H
15
16 #include <linux/version.h>
17 #ifndef KERNEL_VERSION
18 # define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))
19 #endif
20
21 #define DC390_BANNER "Tekram DC390/AM53C974"
22 #define DC390_VERSION "2.1b 2004-04-13"
23
24 /* We don't have eh_abort_handler, eh_device_reset_handler, 
25  * eh_bus_reset_handler, eh_host_reset_handler yet! 
26  * So long: Use old exception handling :-( */
27 #define OLD_EH
28
29 #if LINUX_VERSION_CODE < KERNEL_VERSION (2,1,70) || defined (OLD_EH)
30 # define NEW_EH
31 #else
32 # define NEW_EH use_new_eh_code: 1,
33 # define USE_NEW_EH
34 #endif
35
36 static int DC390_detect(Scsi_Host_Template *psht);
37 static int DC390_queue_command(Scsi_Cmnd *cmd, void (*done)(Scsi_Cmnd *));
38 static int DC390_abort(Scsi_Cmnd *cmd);
39 static int DC390_reset(Scsi_Cmnd *cmd);
40 static int DC390_bios_param(struct scsi_device *sdev, struct block_device *dev,
41                 sector_t capacity, int geom[]);
42
43 static int DC390_release(struct Scsi_Host *);
44
45 #endif /* DC390_H */