3 .\" Kazutaka YOKOTA <yokota@zodiac.mech.utsunomiya-u.ac.jp>
4 .\" All rights reserved.
6 .\" Redistribution and use in source and binary forms, with or without
7 .\" modification, are permitted provided that the following conditions
9 .\" 1. Redistributions of source code must retain the above copyright
10 .\" notice, this list of conditions and the following disclaimer as
11 .\" the first lines of this file unmodified.
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.
16 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
17 .\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
18 .\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
19 .\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
20 .\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
21 .\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
22 .\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
23 .\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
25 .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 .\" $FreeBSD: src/share/man/man4/atkbd.4,v 1.12.2.5 2001/08/17 13:08:36 ru Exp $
28 .\" $DragonFly: src/share/man/man4/atkbd.4,v 1.2 2003/06/17 04:36:58 dillon Exp $
35 .Nd the AT keyboard interface
37 .Cd "options ATKBD_DFLT_KEYMAP"
38 .Cd "makeoptions ATKBD_DFLT_KEYMAP=_keymap_name_"
39 .Cd "options KBD_DISABLE_KEYMAP_LOAD"
40 .Cd "device atkbd0 at atkbdc? irq 1"
44 driver, together with the
46 driver, provides access to the AT 84 keyboard or the AT enhanced keyboard
47 which is connected to the AT keyboard controller.
49 This driver is required for the console drivers
56 device defined in the kernel configuration file. This device also
59 keyboard controller to be present.
62 number must always be 1; there is no provision of changing the number.
64 The AT keyboard has a number of function keys.
65 They are numbered as follows and can be associated with strings
70 .Bl -tag -width "Function Key Number" -compact
71 .It "Function Key number"
76 Shift+F1, Shift+F2,... Shift+F12
78 Ctl+F1, Ctl+F2,... Ctl+F12
80 Shift+Ctl+F1, Shift+Ctl+F2,... Shift+Ctl+F12
82 Home and Numpad 7 (without NumLock)
84 Up Arrow and Numpad 8 (without NumLock)
86 Page Up and Numpad 9 (without NumLock)
90 Left Arrow and Numpad 4 (without NumLock)
92 Numpad 5 (without NumLock)
94 Right Arrow and Numpad 6 (without NumLock)
98 End and Numpad 1 (without NumLock)
100 Down Arrow and Numpad 2 (without NumLock)
102 Page Down and Numpad 3 (without NumLock)
104 Ins and Numpad 0 (without NumLock)
115 See the man page for the
117 command for how to assign a string to the function key.
118 .Sh DRIVER CONFIGURATION
119 .Ss Kernel Configuration Options
120 The following kernel configuration options control the
123 .Bl -tag -width ATKBD_DFLT
124 .It Em ATKBD_DFLT_KEYMAP
125 This option sets the defauilt, built-in keymap of the
127 driver to the named keymap.
131 .It Em KBD_DISABLE_KEYMAP_LOAD
132 The keymap can be modified by the
135 This option will disable this feature and prevent the user from
136 changing key assignment.
142 driver accepts the following driver flags. They can be set either in the
143 kernel configuration file
146 or else in the User Configuration Menu at boot time
150 .It bit 0 (FAIL_IF_NO_KBD)
153 driver will install even if a keyboard is not actually connected to the
155 This option prevents the driver from being installed in this situation.
157 When this option is given, the
159 driver will not reset the keyboard when initializing it.
160 It may be useful for laptop computers whose function keys
161 have special functions and these functions are forgotten when the
163 .It bit 2 (ALT_SCANCODESET)
164 Certain keyboards, such as those on some ThinkPad models, behave
165 like the old XT keyboard and require this option.
171 driver requires the keyboard controller
173 Thus, the kernel configuration file should contain the following lines.
175 .Dl "device atkbdc0 at isa"
176 .Dl "device atkbd0 at atkbdc? irq 1"
178 The following example shows how to set the default, built-in keymap
182 .Dl "options ATKBD_DFLT_KEYMAP"
183 .Dl "makeoptions ATKBD_DFLT_KEYMAP=jp.106"
184 .Dl "device atkbd0 at atkbdc? irq 1"
200 driver first appeared in
206 driver was written by
207 .An S\(/oren Schmidt Aq sos@FreeBSD.org
209 .An Kazutaka Yokota Aq yokota@FreeBSD.org .
210 This manual page was written by
211 .An Kazutaka Yokota .