1 .\" $NetBSD: adb.4,v 1.1 2003/09/26 19:15:15 mbw Exp $
3 .\" Copyright (c) 2003 Alex Zepeda <zipzippy@sonic.net>
4 .\" Copyright (c) 1997 Colin Wood
5 .\" 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. All advertising materials mentioning features or use of this software
16 .\" must display the following acknowledgement:
17 .\" This product includes software developed by Alex Zepeda, and
18 .\" Colin Wood for the NetBSD Projet.
19 .\" 4. The name of the author may not be used to endorse or promote products
20 .\" derived from this software without specific prior written permission.
22 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
23 .\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
24 .\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
25 .\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
26 .\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
27 .\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 .\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 .\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
31 .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33 .Dd September 21, 2003
38 .Nd Apple Desktop Bus driver
48 is the single-master, multiple-slave, low-speed serial bus
49 interface used by Macintosh computers to connect input devices
50 such as keyboards, mice, trackpads, trackballs, and graphics tablets
53 provides support for the Apple Desktop Bus as found on all supported
54 mac68k models, as well as macppc models with on-board
64 controller using the so-called
67 This method of access bypasses the Macintosh ROM and uses only
69 routines for ADB access.
70 This is the only method supported on macppc and is the default for
73 On mac68k systems there is an alternate method of accessing the
76 With the Macintosh ROM Glue
78 method, the routines written for MacOS are used.
79 To enable this method of
81 access, uncomment the line:
85 in your kernel configuration file.
89 call is used to control the
92 The following is a list of available
95 .Bl -tag -width ADBIOC_GETREPEAT
96 .It Dv ADBIOC_DEVSINFO
103 event device will return an array of information containing an entry
104 for each device connected to the bus.
105 Each entry contains the current address, default address, and
106 handler ID for the corresponding
109 .It Dv ADBIOC_GETREPEAT
110 Get Keyboard Repeat Info
112 Returns a structure containing the current keyboard repeat delay
113 and keyboard repeat interval.
114 .It Dv ADBIOC_SETREPEAT
115 Set Keyboard Repeat Rate
117 Sets the keyboard repeat delay and interval to the values specified
124 Perform a reset of the
126 which will reinitialize all of the devices attached to the bus.
127 .It Dv ADBIOC_LISTENCMD
130 Send data to the register of the
134 This command is not fully implemented at this time.
136 .Sh SUPPORTED DEVICES
138 includes support for the following
140 devices, sorted by driver name:
141 .Bl -tag -width akbd -offset indent
154 .Bl -tag -width /dev/adb -compact
162 .It aed0 at adb0 addr 0: ADB Event device
163 This is a normal autoconfiguration message noting the presence of the
166 .It adb0 at obio0 offset 0x16000 irq 18: 2 targets
167 A standard autoconfiguration message indicating the initialization
171 .It "adb: no devices found."
174 devices were found to be connected to the bus during autoconfiguration.
175 .It "adb: using %s series hardware support."
176 Indicates the class of
178 hardware support the machine uses.
179 .It "adb: hardware type unknown for this machine."
182 hardware in this machine is currently unsupported.
183 .It "adb: no ROM ADB driver in this kernel for this machine."
184 The kernel lacks the necessary Macintosh ROM Glue
186 support for accessing the
188 hardware on this machine.
189 .It "adb: using serial console."
190 A serial console will be used for user input rather than the
196 device of the type specified by
198 has been found at location
209 interface first appeared in
211 It has been under development ever since.
213 Bradley A. Grantham wrote the original
215 driver, including the
218 The hardware direct interface was written by
220 The PowerManager interface was written by Takashi Hamada.
226 hardware is supported yet.
228 The talk command is currently unimplemented.
230 The listen command is not implemented yet.
232 Not all multi-button mice are currently supported.
234 Only mapped and relative-position
237 .Pq i.e. keyboards and mice
239 Thus absolute-position and other exotic devices will not work.
241 Some of the diagnostic messages in this man page need to be updated.
244 Some mac68k machines contain so-called dirty ROM.
245 These machines are the: Mac SE/30, Mac II, Mac IIx, and Mac IIcx.
246 Machines with dirty ROM may experience trouble booting if the MRG code
247 is used, especially under the following conditions:
248 .Bl -bullet -compact -offset indent
250 Both a keyboard and a mouse are not attached to the computer.
252 An extended keyboard is attached to the computer.
255 On (some) machines with dirty ROM, the ROM indicates the presence of a
258 When this non-existant device is probed for, the result is an infinite
260 This is believed to be triggered by the
262 driver probing for extended mice, and non-EMP Logitech mice.