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 #if defined(HOSTS_C) || defined(MODULE) || LINUX_VERSION_CODE > KERNEL_VERSION(2,3,99)
38 extern int DC390_detect(Scsi_Host_Template *psht);
39 extern int DC390_queue_command(Scsi_Cmnd *cmd, void (*done)(Scsi_Cmnd *));
40 extern int DC390_abort(Scsi_Cmnd *cmd);
41 extern int DC390_reset(Scsi_Cmnd *cmd, unsigned int resetFlags);
42 extern int DC390_bios_param(Disk *disk, kdev_t devno, int geom[]);
45 static int DC390_release(struct Scsi_Host *);
47 # define DC390_release NULL
50 extern int DC390_proc_info(char *buffer, char **start, off_t offset, int length, int hostno, int inout);
52 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,3,30)
54 proc_name: "tmscsim", \
55 proc_info: DC390_proc_info, \
56 name: DC390_BANNER " V" DC390_VERSION, \
57 detect: DC390_detect, \
58 release: DC390_release, \
59 queuecommand: DC390_queue_command, \
62 bios_param: DC390_bios_param, \
65 sg_tablesize: SG_ALL, \
68 unchecked_isa_dma: 0, \
69 use_clustering: DISABLE_CLUSTERING \
72 extern struct proc_dir_entry DC390_proc_scsi_tmscsim;
74 proc_dir: &DC390_proc_scsi_tmscsim, \
75 proc_info: DC390_proc_info, \
76 name: DC390_BANNER " V" DC390_VERSION, \
77 detect: DC390_detect, \
78 release: DC390_release, \
79 queuecommand: DC390_queue_command, \
82 bios_param: DC390_bios_param, \
85 sg_tablesize: SG_ALL, \
88 unchecked_isa_dma: 0, \
89 use_clustering: DISABLE_CLUSTERING \
92 #endif /* defined(HOSTS_C) || defined(MODULE) */