1 .\" $NetBSD: ahd.4,v 1.4 2009/05/17 00:53:36 fair Exp $
3 .\" Copyright (c) 1995, 1996, 1997, 1998, 2000
4 .\" Justin T. Gibbs. All rights reserved.
6 .\" Scott Long. All rights reserved.
8 .\" Redistribution and use in source and binary forms, with or without
9 .\" modification, are permitted provided that the following conditions
11 .\" 1. Redistributions of source code must retain the above copyright
12 .\" notice, this list of conditions and the following disclaimer.
13 .\" 2. Redistributions in binary form must reproduce the above copyright
14 .\" notice, this list of conditions and the following disclaimer in the
15 .\" documentation and/or other materials provided with the distribution.
16 .\" 3. The name of the author may not be used to endorse or promote products
17 .\" derived from this software without specific prior written permission.
19 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
20 .\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
21 .\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
22 .\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
23 .\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
24 .\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25 .\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 .\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
28 .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30 .\" $FreeBSD: /repoman/r/ncvs/src/share/man/man4/ahd.4,v 1.5 2004/07/04 14:17:41 simon Exp $
37 .Nd Adaptec PCI/PCI-X Ultra320 SCSI host adapter driver
39 For one or more PCI/PCI-X cards:
40 .\".Bd -ragged -offset indent -compact
41 .Cd "ahd* at pci? dev ? function ?"
43 To compile in debugging code:
44 .Bd -ragged -offset indent -compact
46 .Cd options AHD_DEBUG_OPTS=\*[Lt]bitmask of options\*[Gt]
47 .Cd options AHD_REG_PRETTY_PRINT
50 .\" To configure one or more controllers to assume the target role:
51 .\" .Bd -ragged -offset indent -compact
52 .\" .Cd options AHD_TMODE_ENABLE=<bitmask of units>
58 .\" .Bd -ragged -offset indent -compact
66 This driver provides access to the
68 bus(ses) connected to Adaptec
72 Driver features include support for narrow and wide busses,
73 fast, ultra, ultra2, ultra160, and ultra320 synchronous transfers,
74 packetized transfers, tagged queueing,
75 .\" 512 SCB's, and target mode.
80 option is used to control which diagnostic messages are printed to the
84 Logically OR the following bits together:
85 .Bl -column -offset indent '0x0001' 'Function'
86 .It Em Value Ta Em Function
87 .It 0x0001 Ta Show miscellaneous information
88 .It 0x0002 Ta Show sense data
89 .It 0x0004 Ta Show Serial EEPROM contents
90 .It 0x0008 Ta Show bus termination settings
91 .It 0x0010 Ta Show host memory usage
92 .It 0x0020 Ta Show SCSI protocol messages
93 .It 0x0040 Ta Show mode pointer of the chip register window
94 .It 0x0080 Ta Show selection timeouts
95 .It 0x0100 Ta Show FIFO usage messages
96 .It 0x0200 Ta Show Queue Full status
97 .It 0x0400 Ta Show SCB queue status
98 .It 0x0800 Ta Show inbound packet information
99 .It 0x1000 Ta Show S/G list information
100 .It 0x2000 Ta Enable extra diagnostic code in the firmware
104 .Dv AHD_REG_PRETTY_PRINT
105 option compiles in support for human-readable bit definitions for each register
106 that is printed by the debugging code.
107 However, it also bloats the compiled
108 size of the driver by approximately 215KB.
110 .\" Individual controllers may be configured to operate in the target role
112 .\" .Dv AHD_TMODE_ENABLE
113 .\" configuration option.
114 .\" The value assigned to this option should be a bitmap
115 .\" of all units where target mode is desired.
116 .\" For example, a value of 0x25 would enable target mode on units 0, 2, and 5.
117 .\" Note that target mode is only supported for ultra160 speeds and below.
119 .\" Per target configuration performed in the
121 .\" menu, accessible at boot,
122 .\" is honored by this driver.
123 .\" This includes synchronous/asynchronous transfers,
124 .\" maximum synchronous negotiation rate, wide transfers, disconnection,
125 .\" and the host adapter's
131 driver supports the following:
155 Many motherboards with on-board
173 driver first appeared in
182 sequencer-code assembler,
183 and the firmware running on the aic79xx chips was written by
184 .An Justin T. Gibbs .
186 porting is done by Pascal Renauld, Frank van der Linden,
187 Jason Thorpe, and Allen Briggs.
188 This manual page is based on the
192 .\" The current generation of 79xx chips do not support target mode in Ultra320
194 .\" Target mode in general has not been well tested in this driver.