1 /******************************************************************************
2 ** High Performance device driver for the Symbios 53C896 controller.
4 ** Copyright (C) 1998-2000 Gerard Roudier <groudier@club-internet.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@club-internet.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 #include <scsi/scsicam.h>
70 int sym53c8xx_abort(Scsi_Cmnd
*);
71 int sym53c8xx_detect(Scsi_Host_Template
*tpnt
);
72 const char *sym53c8xx_info(struct Scsi_Host
*host
);
73 int sym53c8xx_queue_command(Scsi_Cmnd
*, void (*done
)(Scsi_Cmnd
*));
74 int sym53c8xx_reset(Scsi_Cmnd
*, unsigned int);
77 int sym53c8xx_release(struct Scsi_Host
*);
79 #define sym53c8xx_release NULL
83 #if LINUX_VERSION_CODE >= LinuxVersionCode(2,1,75)
85 #define SYM53C8XX { name: "", \
86 detect: sym53c8xx_detect, \
87 release: sym53c8xx_release, \
88 info: sym53c8xx_info, \
89 queuecommand: sym53c8xx_queue_command,\
90 abort: sym53c8xx_abort, \
91 reset: sym53c8xx_reset, \
92 bios_param: scsicam_bios_param, \
93 can_queue: SCSI_NCR_CAN_QUEUE, \
95 sg_tablesize: SCSI_NCR_SG_TABLESIZE, \
96 cmd_per_lun: SCSI_NCR_CMD_PER_LUN, \
97 use_clustering: DISABLE_CLUSTERING}
101 #define SYM53C8XX { NULL, NULL, NULL, NULL, \
102 NULL, sym53c8xx_detect, \
103 sym53c8xx_release, sym53c8xx_info, NULL, \
104 sym53c8xx_queue_command,sym53c8xx_abort, \
105 sym53c8xx_reset, NULL, scsicam_bios_param, \
106 SCSI_NCR_CAN_QUEUE, 7, \
107 SCSI_NCR_SG_TABLESIZE, SCSI_NCR_CMD_PER_LUN, \
108 0, 0, DISABLE_CLUSTERING}
110 #endif /* LINUX_VERSION_CODE */
112 #endif /* SYM53C8XX_H */