4 * Copyright (C) 1998 Lieven Willems (lw_linux@hotmail.com)
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License as published by the
8 * Free Software Foundation; either version 2, or (at your option) any
11 * This program is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * General Public License for more details.
21 #if !defined(LINUX_VERSION_CODE)
22 #include <linux/version.h>
25 #define LinuxVersionCode(v, p, s) (((v)<<16)+((p)<<8)+(s))
27 #include <linux/types.h>
28 #include <linux/kdev_t.h>
30 #define SYM53C416_SCSI_ID 7
32 extern struct proc_dir_entry proc_scsi_sym53c416
;
34 extern int sym53c416_detect(Scsi_Host_Template
*);
35 extern const char *sym53c416_info(struct Scsi_Host
*);
36 extern int sym53c416_command(Scsi_Cmnd
*);
37 extern int sym53c416_queuecommand(Scsi_Cmnd
*, void (*done
)(Scsi_Cmnd
*));
38 extern int sym53c416_abort(Scsi_Cmnd
*);
39 extern int sym53c416_reset(Scsi_Cmnd
*, unsigned int);
40 extern int sym53c416_bios_param(Disk
*, kdev_t
, int *);
41 extern void sym53c416_setup(char *str
, int *ints
);
43 #if LINUX_VERSION_CODE >= LinuxVersionCode(2,1,75)
46 proc_dir: &proc_scsi_sym53c416, \
47 name: "Symbios Logic 53c416", \
48 detect: sym53c416_detect, \
49 info: sym53c416_info, \
50 command: sym53c416_command, \
51 queuecommand: sym53c416_queuecommand, \
52 abort: sym53c416_abort, \
53 reset: sym53c416_reset, \
54 bios_param: sym53c416_bios_param, \
56 this_id: SYM53C416_SCSI_ID, \
59 unchecked_isa_dma: 1, \
60 use_clustering: ENABLE_CLUSTERING \
68 &proc_scsi_sym53c416, \
70 "Symbios Logic 53c416", \
75 sym53c416_queuecommand, \
79 sym53c416_bios_param, \