1 /***********************************************************************
2 * FILE NAME : DC390.H *
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 $ */
10 * DC390/AMD 53C974 driver, header file
16 #include <linux/version.h>
17 #ifndef KERNEL_VERSION
18 # define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))
21 #define DC390_BANNER "Tekram DC390/AM53C974"
22 #define DC390_VERSION "2.0f 2000-12-20"
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 :-( */
29 #if LINUX_VERSION_CODE < KERNEL_VERSION (2,1,70) || defined (OLD_EH)
32 # define NEW_EH use_new_eh_code: 1,
36 extern int DC390_detect(Scsi_Host_Template *psht);
37 extern int DC390_queue_command(Scsi_Cmnd *cmd, void (*done)(Scsi_Cmnd *));
38 extern int DC390_abort(Scsi_Cmnd *cmd);
39 extern int DC390_reset(Scsi_Cmnd *cmd);
40 extern int DC390_bios_param(struct scsi_device *sdev, struct block_device *dev,
41 sector_t capacity, int geom[]);
43 static int DC390_release(struct Scsi_Host *);