xref: /freebsd/share/man/man4/ahd.4 (revision 3642298923e528d795e3a30ec165d2b469e28b40)
1.\"
2.\" Copyright (c) 1995, 1996, 1997, 1998, 2000
3.\" 	Justin T. Gibbs.  All rights reserved.
4.\" Copyright (c) 2002
5.\"	Scott Long.  All rights reserved.
6.\"
7.\" Redistribution and use in source and binary forms, with or without
8.\" modification, are permitted provided that the following conditions
9.\" are met:
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.
17.\"
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.
28.\"
29.\" $FreeBSD$
30.\"
31.Dd July 4, 2004
32.Dt AHD 4
33.Os
34.Sh NAME
35.Nm ahd
36.Nd Adaptec PCI/PCI-X Ultra320 SCSI host adapter driver
37.Sh SYNOPSIS
38For one or more PCI/PCI-X cards:
39.Bd -ragged -offset indent -compact
40.Cd device pci
41.Cd device ahd
42.Ed
43.Pp
44To compile in debugging code:
45.Bd -ragged -offset indent -compact
46.Cd options AHD_DEBUG
47.Cd options AHD_DEBUG_OPTS=<bitmask of options>
48.Cd options AHD_REG_PRETTY_PRINT
49.Ed
50.Pp
51To configure one or more controllers to assume the target role:
52.Bd -ragged -offset indent -compact
53.Cd options AHD_TMODE_ENABLE=<bitmask of units>
54.Ed
55.Pp
56For one or more
57.Tn SCSI
58busses:
59.Bd -ragged -offset indent -compact
60.Cd device scbus
61.Ed
62.Sh DESCRIPTION
63This driver provides access to the
64.Tn SCSI
65bus(es) connected to Adaptec
66.Tn AIC79xx
67host adapter chips.
68.Pp
69Driver features include support for narrow and wide busses,
70fast, ultra, ultra2, ultra160, and ultra320 synchronous transfers,
71packetized transfers, tagged queueing, 512 SCB's, and target mode.
72.Pp
73The
74.Dv AHD_DEBUG_OPTS
75option is used to control which diagnostic messages are printed to the
76console when
77.Dv AHD_DEBUG
78is enabled.
79Logically OR the following bits together:
80.Bl -column -offset indent Value Function
81.Em "Value	Function"
820x0001	Show miscellaneous information
830x0002	Show sense data
840x0004	Show Serial EEPROM contents
850x0008	Show bus termination settings
860x0010	Show host memory usage
870x0020	Show SCSI protocol messages
880x0040	Show mode pointer of the chip register window
890x0080	Show selection timeouts
900x0100	Show FIFO usage messages
910x0200	Show Queue Full status
920x0400	Show SCB queue status
930x0800	Show inbound packet information
940x1000	Show S/G list information
950x2000	Enable extra diagnostic code in the firmware
96.El
97.Pp
98The
99.Dv AHD_REG_PRETTY_PRINT
100option compiles in support for human-readable bit definitions for each register
101that is printed by the debugging code.
102However, it also bloats the compiled
103size of the driver by approximately 215KB.
104.Pp
105Individual controllers may be configured to operate in the target role
106through the
107.Dv AHD_TMODE_ENABLE
108configuration option.
109The value assigned to this option should be a bitmap
110of all units where target mode is desired.
111For example, a value of 0x25 would enable target mode on units 0, 2, and 5.
112Note that target mode is only supported for ultra160 speeds and below.
113.Pp
114Per target configuration performed in the
115.Tn SCSI-Select
116menu, accessible at boot,
117is honored by this driver.
118This includes synchronous/asynchronous transfers,
119maximum synchronous negotiation rate,
120wide transfers,
121disconnection,
122and the host adapter's
123.Tn SCSI
124ID.
125.Sh HARDWARE
126The
127.Nm
128driver supports the following:
129.Pp
130.Bl -bullet -compact
131.It
132Adaptec
133.Tn AIC7901
134host adapter chip
135.It
136Adaptec
137.Tn AIC7901A
138host adapter chip
139.It
140Adaptec
141.Tn AIC7902
142host adapter chip
143.It
144Adaptec
145.Tn 29320
146host adapter
147.It
148Adaptec
149.Tn 39320
150host adapter
151.It
152Many motherboards with on-board
153.Tn SCSI
154support
155.El
156.Sh SEE ALSO
157.Xr ahc 4 ,
158.Xr cd 4 ,
159.Xr da 4 ,
160.Xr sa 4 ,
161.Xr scsi 4
162.Sh HISTORY
163The
164.Nm
165driver first appeared in
166.Fx 4.7 .
167.Sh AUTHORS
168The
169.Nm
170driver, the
171.Tn AIC7xxx
172sequencer-code assembler,
173and the firmware running on the aic79xx chips was written by
174.An Justin T. Gibbs .
175This manual page is based on the
176.Xr ahc 4
177manual page.
178.Sh BUGS
179The current generation of 79xx chips do not support target mode in Ultra320
180mode.
181Target mode in general has not been well tested in this driver.
182