2 * QLogic ISP1020 Intelligent SCSI Processor Driver (PCI)
3 * Written by Erik H. Moe, ehm@cris.com
4 * Copyright 1995, Erik H. Moe
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.
17 /* Renamed and updated to 1.3.x by Michael Griffith <grif@cs.ucr.edu> */
20 * $Date: 2005/04/11 02:50:36 $
21 * $Revision: 1.1.1.1 $
23 * $Log: qlogicisp.h,v $
24 * Revision 1.1.1.1 2005/04/11 02:50:36 jack
27 * Revision 1.1.1.1 2005/01/10 13:16:36 jack
30 * Revision 0.5 1995/09/22 02:32:56 root
31 * do auto request sense
33 * Revision 0.4 1995/08/07 04:48:28 root
34 * supply firmware with driver.
35 * numerous bug fixes/general cleanup of code.
37 * Revision 0.3 1995/07/16 16:17:16 root
38 * added reset/abort code.
40 * Revision 0.2 1995/06/29 03:19:43 root
42 * added queue protocol.
44 * Revision 0.1 1995/06/25 01:56:13 root
53 * With the qlogic interface, every queue slot can hold a SCSI
54 * command with up to 4 scatter/gather entries. If we need more
55 * than 4 entries, continuation entries can be used that hold
56 * another 7 entries each. Unlike for other drivers, this means
57 * that the maximum number of scatter/gather entries we can
58 * support at any given time is a function of the number of queue
59 * slots available. That is, host->can_queue and host->sg_tablesize
60 * are dynamic and _not_ independent. This all works fine because
61 * requests are queued serially and the scatter/gather limit is
62 * determined for each queue request anew.
64 #define QLOGICISP_REQ_QUEUE_LEN 63 /* must be power of two - 1 */
65 #define QLOGICISP_MAX_SG(ql) (4 + ((ql) > 0) ? 7*((ql) - 1) : 0)
67 int isp1020_detect(Scsi_Host_Template *);
68 int isp1020_release(struct Scsi_Host *);
69 const char * isp1020_info(struct Scsi_Host *);
70 int isp1020_queuecommand(Scsi_Cmnd *, void (* done)(Scsi_Cmnd *));
71 int isp1020_abort(Scsi_Cmnd *);
72 int isp1020_reset(Scsi_Cmnd *, unsigned int);
73 int isp1020_biosparam(Disk *, kdev_t, int[]);
80 detect: isp1020_detect, \
81 release: isp1020_release, \
83 queuecommand: isp1020_queuecommand, \
84 abort: isp1020_abort, \
85 reset: isp1020_reset, \
86 bios_param: isp1020_biosparam, \
87 can_queue: QLOGICISP_REQ_QUEUE_LEN, \
89 sg_tablesize: QLOGICISP_MAX_SG(QLOGICISP_REQ_QUEUE_LEN), \
92 unchecked_isa_dma: 0, \
93 use_clustering: DISABLE_CLUSTERING \
96 #endif /* _QLOGICISP_H */