- Kai Germaschewski: ISDN update (including Makefiles)
[davej-history.git] / drivers / scsi / ncr53c8xx.h
blob1746ca5091b21ac597cafa0e71afd45cb56cfd82
1 /******************************************************************************
2 ** Device driver for the PCI-SCSI NCR538XX controller family.
3 **
4 ** Copyright (C) 1994 Wolfgang Stanglmeier
5 **
6 ** This program is free software; you can redistribute it and/or modify
7 ** it under the terms of the GNU General Public License as published by
8 ** the Free Software Foundation; either version 2 of the License, or
9 ** (at your option) any later version.
11 ** This program is distributed in the hope that it will be useful,
12 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
13 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 ** GNU General Public License for more details.
16 ** You should have received a copy of the GNU General Public License
17 ** along with this program; if not, write to the Free Software
18 ** Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20 **-----------------------------------------------------------------------------
22 ** This driver has been ported to Linux from the FreeBSD NCR53C8XX driver
23 ** and is currently maintained by
25 ** Gerard Roudier <groudier@club-internet.fr>
27 ** Being given that this driver originates from the FreeBSD version, and
28 ** in order to keep synergy on both, any suggested enhancements and corrections
29 ** received on Linux are automatically a potential candidate for the FreeBSD
30 ** version.
32 ** The original driver has been written for 386bsd and FreeBSD by
33 ** Wolfgang Stanglmeier <wolf@cologne.de>
34 ** Stefan Esser <se@mi.Uni-Koeln.de>
36 ** And has been ported to NetBSD by
37 ** Charles M. Hannum <mycroft@gnu.ai.mit.edu>
39 *******************************************************************************
42 #ifndef NCR53C8XX_H
43 #define NCR53C8XX_H
45 #include "sym53c8xx_defs.h"
48 ** Define Scsi_Host_Template parameters
50 ** Used by hosts.c and ncr53c8xx.c with module configuration.
53 #include <scsi/scsicam.h>
55 int ncr53c8xx_abort(Scsi_Cmnd *);
56 int ncr53c8xx_detect(Scsi_Host_Template *tpnt);
57 const char *ncr53c8xx_info(struct Scsi_Host *host);
58 int ncr53c8xx_queue_command(Scsi_Cmnd *, void (*done)(Scsi_Cmnd *));
59 int ncr53c8xx_reset(Scsi_Cmnd *, unsigned int);
61 #ifdef MODULE
62 int ncr53c8xx_release(struct Scsi_Host *);
63 #else
64 #define ncr53c8xx_release NULL
65 #endif
68 #if LINUX_VERSION_CODE >= LinuxVersionCode(2,1,75)
70 #define NCR53C8XX { name: "", \
71 detect: ncr53c8xx_detect, \
72 release: ncr53c8xx_release, \
73 info: ncr53c8xx_info, \
74 queuecommand: ncr53c8xx_queue_command,\
75 abort: ncr53c8xx_abort, \
76 reset: ncr53c8xx_reset, \
77 bios_param: scsicam_bios_param, \
78 can_queue: SCSI_NCR_CAN_QUEUE, \
79 this_id: 7, \
80 sg_tablesize: SCSI_NCR_SG_TABLESIZE, \
81 cmd_per_lun: SCSI_NCR_CMD_PER_LUN, \
82 use_clustering: DISABLE_CLUSTERING}
84 #else
86 #define NCR53C8XX { NULL, NULL, NULL, NULL, \
87 NULL, ncr53c8xx_detect, \
88 ncr53c8xx_release, ncr53c8xx_info, NULL, \
89 ncr53c8xx_queue_command,ncr53c8xx_abort, \
90 ncr53c8xx_reset, NULL, scsicam_bios_param, \
91 SCSI_NCR_CAN_QUEUE, 7, \
92 SCSI_NCR_SG_TABLESIZE, SCSI_NCR_CMD_PER_LUN, \
93 0, 0, DISABLE_CLUSTERING}
95 #endif /* LINUX_VERSION_CODE */
97 #endif /* NCR53C8XX_H */