1 /******************************************************************************
2 ** High Performance device driver for the Symbios 53C896 controller.
4 ** Copyright (C) 1998-2001 Gerard Roudier <groudier@free.fr>
6 ** This driver also supports all the Symbios 53C8XX controller family,
7 ** except 53C810 revisions < 16, 53C825 revisions < 16 and all
8 ** revisions of 53C815 controllers.
10 ** This driver is based on the Linux port of the FreeBSD ncr driver.
12 ** Copyright (C) 1994 Wolfgang Stanglmeier
14 **-----------------------------------------------------------------------------
16 ** This program is free software; you can redistribute it and/or modify
17 ** it under the terms of the GNU General Public License as published by
18 ** the Free Software Foundation; either version 2 of the License, or
19 ** (at your option) any later version.
21 ** This program is distributed in the hope that it will be useful,
22 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
23 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24 ** GNU General Public License for more details.
26 ** You should have received a copy of the GNU General Public License
27 ** along with this program; if not, write to the Free Software
28 ** Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
30 **-----------------------------------------------------------------------------
32 ** The Linux port of the FreeBSD ncr driver has been achieved in
35 ** Gerard Roudier <groudier@free.fr>
37 ** Being given that this driver originates from the FreeBSD version, and
38 ** in order to keep synergy on both, any suggested enhancements and corrections
39 ** received on Linux are automatically a potential candidate for the FreeBSD
42 ** The original driver has been written for 386bsd and FreeBSD by
43 ** Wolfgang Stanglmeier <wolf@cologne.de>
44 ** Stefan Esser <se@mi.Uni-Koeln.de>
46 **-----------------------------------------------------------------------------
48 ** Major contributions:
49 ** --------------------
51 ** NVRAM detection and reading.
52 ** Copyright (C) 1997 Richard Waltham <dormouse@farsrobt.demon.co.uk>
54 *******************************************************************************
60 #include "sym53c8xx_defs.h"
63 ** Define Scsi_Host_Template parameters
65 ** Used by hosts.c and sym53c8xx.c with module configuration.
68 #if (LINUX_VERSION_CODE >= 0x020400) || defined(HOSTS_C) || defined(MODULE)
70 #include <scsi/scsicam.h>
72 int sym53c8xx_abort(Scsi_Cmnd *);
73 int sym53c8xx_detect(Scsi_Host_Template *tpnt);
74 const char *sym53c8xx_info(struct Scsi_Host *host);
75 int sym53c8xx_queue_command(Scsi_Cmnd *, void (*done)(Scsi_Cmnd *));
76 int sym53c8xx_reset(Scsi_Cmnd *, unsigned int);
79 int sym53c8xx_release(struct Scsi_Host *);
81 #define sym53c8xx_release NULL
85 #if LINUX_VERSION_CODE >= LinuxVersionCode(2,1,75)
87 #define SYM53C8XX { name: "", \
88 detect: sym53c8xx_detect, \
89 release: sym53c8xx_release, \
90 info: sym53c8xx_info, \
91 queuecommand: sym53c8xx_queue_command,\
92 abort: sym53c8xx_abort, \
93 reset: sym53c8xx_reset, \
94 bios_param: scsicam_bios_param, \
95 can_queue: SCSI_NCR_CAN_QUEUE, \
97 sg_tablesize: SCSI_NCR_SG_TABLESIZE, \
98 cmd_per_lun: SCSI_NCR_CMD_PER_LUN, \
99 max_sectors: MAX_SEGMENTS*8, \
100 use_clustering: DISABLE_CLUSTERING, \
105 #define SYM53C8XX { NULL, NULL, NULL, NULL, \
106 NULL, sym53c8xx_detect, \
107 sym53c8xx_release, sym53c8xx_info, NULL, \
108 sym53c8xx_queue_command,sym53c8xx_abort, \
109 sym53c8xx_reset, NULL, scsicam_bios_param, \
110 SCSI_NCR_CAN_QUEUE, 7, \
111 SCSI_NCR_SG_TABLESIZE, SCSI_NCR_CMD_PER_LUN, \
112 0, 0, DISABLE_CLUSTERING}
114 #endif /* LINUX_VERSION_CODE */
116 #endif /* defined(HOSTS_C) || defined(MODULE) */
118 #endif /* SYM53C8XX_H */