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.
34 .Nd the AT keyboard interface
36 .Cd "options ATKBD_DFLT_KEYMAP"
37 .Cd "makeoptions ATKBD_DFLT_KEYMAP=_keymap_name_"
38 .Cd "options KBD_DISABLE_KEYMAP_LOAD"
42 .Pa /boot/device.hints :
43 .Cd hint.atkbd.0.at="atkbdc"
44 .Cd hint.atkbd.0.irq="1"
48 driver, together with the
50 driver, provides access to the AT 84 keyboard or the AT enhanced keyboard
51 which is connected to the AT keyboard controller.
53 This driver is required for the console driver
58 device defined in the kernel configuration file.
59 This device also requires the
61 keyboard controller to be present.
64 number must always be 1; there is no provision of changing the number.
66 The AT keyboard has a number of function keys.
67 They are numbered as follows and can be associated with strings
71 You can use a keyboard map file (see
73 to map them to arbitrary keys, particularly
74 the functions in the range from 65 to 96
75 which are not used by default.
77 .Bl -tag -width "Function Key Number" -compact
78 .It "Function Key number"
83 Shift+F1, Shift+F2,...\& Shift+F12
85 Ctl+F1, Ctl+F2,...\& Ctl+F12
87 Shift+Ctl+F1, Shift+Ctl+F2,...\& Shift+Ctl+F12
89 Home and Numpad 7 (without NumLock)
91 Up Arrow and Numpad 8 (without NumLock)
93 Page Up and Numpad 9 (without NumLock)
97 Left Arrow and Numpad 4 (without NumLock)
99 Numpad 5 (without NumLock)
101 Right Arrow and Numpad 6 (without NumLock)
105 End and Numpad 1 (without NumLock)
107 Down Arrow and Numpad 2 (without NumLock)
109 Page Down and Numpad 3 (without NumLock)
111 Ins and Numpad 0 (without NumLock)
121 free (not used by default)
124 See the man page for the
126 command for how to assign a string to the function key.
127 .Sh DRIVER CONFIGURATION
128 .Ss Kernel Configuration Options
129 The following kernel configuration options control the
132 .Bl -tag -width ATKBD_DFLT
133 .It Em ATKBD_DFLT_KEYMAP
134 This option sets the default, built-in keymap of the
136 driver to the named keymap.
140 .It Em KBD_DISABLE_KEYMAP_LOAD
141 The keymap can be modified by the
144 This option will disable this feature and prevent the user from
145 changing key assignment.
151 driver accepts the following driver flags.
152 They can be set either in
153 .Pa /boot/device.hints ,
154 or else from within the boot loader
158 .It bit 0 (FAIL_IF_NO_KBD)
161 driver will install even if a keyboard is not actually connected to the
163 This option prevents the driver from being installed in this situation.
165 When this option is given, the
167 driver will not reset the keyboard when initializing it.
168 It may be useful for laptop computers whose function keys
169 have special functions and these functions are forgotten when the
171 .It bit 2 (ALT_SCANCODESET)
172 Certain keyboards, such as those on some ThinkPad models, behave
173 like the old XT keyboard and require this option.
174 .It bit 3 (NO_PROBE_TEST)
175 When this option is given, the
177 driver will not test the keyboard port during the probe routine.
178 Some machines hang during boot when this test is performed.
184 driver requires the keyboard controller
186 Thus, the kernel configuration file should contain the following lines.
191 The following example shows how to set the default, built-in keymap
196 .Dl "options ATKBD_DFLT_KEYMAP"
197 .Dl "makeoptions ATKBD_DFLT_KEYMAP=jp.106"
200 In both cases, you also need to have following lines in
201 .Pa /boot/device.hints .
203 .Dl hint.atkbdc.0.at="isa"
204 .Dl hint.atkbdc.0.port="0x060"
205 .Dl hint.atkbd.0.at="atkbdc"
206 .Dl hint.atkbd.0.irq="1"
220 driver first appeared in
226 driver was written by
227 .An S\(/oren Schmidt Aq sos@FreeBSD.org
229 .An Kazutaka Yokota Aq yokota@FreeBSD.org .
230 This manual page was written by
231 .An Kazutaka Yokota .