2 .\" Copyright (c) 1995, 1996, 1997, 1998, 2000
3 .\" Justin T. Gibbs. All rights reserved.
5 .\" Scott Long. All rights reserved.
7 .\" Redistribution and use in source and binary forms, with or without
8 .\" modification, are permitted provided that the following conditions
10 .\" 1. Redistributions of source code must retain the above copyright
11 .\" notice, this list of conditions and the following disclaimer.
12 .\" 2. Redistributions in binary form must reproduce the above copyright
13 .\" notice, this list of conditions and the following disclaimer in the
14 .\" documentation and/or other materials provided with the distribution.
15 .\" 3. The name of the author may not be used to endorse or promote products
16 .\" derived from this software without specific prior written permission.
18 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
19 .\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
20 .\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
21 .\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
22 .\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
23 .\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24 .\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25 .\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26 .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
27 .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 .\" $FreeBSD: src/share/man/man4/ahd.4,v 1.6.2.1 2006/06/05 19:30:28 brueffer Exp $
30 .\" $DragonFly: src/share/man/man4/ahd.4,v 1.6 2007/07/07 18:31:59 swildner Exp $
37 .Nd Adaptec PCI/PCI-X Ultra320 SCSI host adapter driver
39 To compile this driver into the kernel,
40 place the following lines in your
41 kernel configuration file:
42 .Bd -ragged -offset indent
47 To compile in debugging code:
49 .Cd options AHD_DEBUG_OPTS=<bitmask of options>
50 .Cd options AHD_REG_PRETTY_PRINT
52 To configure one or more controllers to assume the target role:
53 .Cd options AHD_TMODE_ENABLE=<bitmask of units>
56 Alternatively, to load the driver as a
57 module at boot time, place the following line in
59 .Bd -literal -offset indent
63 This driver provides access to the
65 bus(es) connected to Adaptec
69 Driver features include support for narrow and wide busses,
70 fast, ultra, ultra2, ultra160, and ultra320 synchronous transfers,
71 packetized transfers, tagged queueing, 512 SCB's, and target mode.
75 option is used to control which diagnostic messages are printed to the
79 Logically OR the following bits together:
80 .Bl -column -offset indent Value Function
82 0x0001 Show miscellaneous information
83 0x0002 Show sense data
84 0x0004 Show Serial EEPROM contents
85 0x0008 Show bus termination settings
86 0x0010 Show host memory usage
87 0x0020 Show SCSI protocol messages
88 0x0040 Show mode pointer of the chip register window
89 0x0080 Show selection timeouts
90 0x0100 Show FIFO usage messages
91 0x0200 Show Queue Full status
92 0x0400 Show SCB queue status
93 0x0800 Show inbound packet information
94 0x1000 Show S/G list information
95 0x2000 Enable extra diagnostic code in the firmware
99 .Dv AHD_REG_PRETTY_PRINT
100 option compiles in support for human-readable bit definitions for each register
101 that is printed by the debugging code.
102 However, it also bloats the compiled
103 size of the driver by approximately 215KB.
105 Individual controllers may be configured to operate in the target role
108 configuration option.
109 The value assigned to this option should be a bitmap
110 of all units where target mode is desired.
111 For example, a value of 0x25 would enable target mode on units 0, 2, and 5.
112 Note that target mode is only supported for ultra160 speeds and below.
114 Per target configuration performed in the
116 menu, accessible at boot,
117 is honored by this driver.
118 This includes synchronous/asynchronous transfers,
119 maximum synchronous negotiation rate,
122 and the host adapter's
128 driver supports the following:
152 Many motherboards with on-board
165 driver first appeared in
172 sequencer-code assembler,
173 and the firmware running on the aic79xx chips was written by
174 .An Justin T. Gibbs .
175 This manual page is based on the
179 The current generation of 79xx chips do not support target mode in Ultra320
181 Target mode in general has not been well tested in this driver.