xref: /freebsd/share/man/man4/atkbd.4 (revision fa9896e082a1046ff4fbc75fcba4d18d1f2efc19)
1ded0cfefSKazutaka YOKOTA.\"
2ded0cfefSKazutaka YOKOTA.\" Copyright (c) 1999
3ded0cfefSKazutaka YOKOTA.\" Kazutaka YOKOTA <yokota@zodiac.mech.utsunomiya-u.ac.jp>
4ded0cfefSKazutaka YOKOTA.\" All rights reserved.
5ded0cfefSKazutaka YOKOTA.\"
6ded0cfefSKazutaka YOKOTA.\" Redistribution and use in source and binary forms, with or without
7ded0cfefSKazutaka YOKOTA.\" modification, are permitted provided that the following conditions
8ded0cfefSKazutaka YOKOTA.\" are met:
9ded0cfefSKazutaka YOKOTA.\" 1. Redistributions of source code must retain the above copyright
10ded0cfefSKazutaka YOKOTA.\"    notice, this list of conditions and the following disclaimer as
11ded0cfefSKazutaka YOKOTA.\"    the first lines of this file unmodified.
12ded0cfefSKazutaka YOKOTA.\" 2. Redistributions in binary form must reproduce the above copyright
13ded0cfefSKazutaka YOKOTA.\"    notice, this list of conditions and the following disclaimer in the
14ded0cfefSKazutaka YOKOTA.\"    documentation and/or other materials provided with the distribution.
15ded0cfefSKazutaka YOKOTA.\"
16ded0cfefSKazutaka YOKOTA.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
17ded0cfefSKazutaka YOKOTA.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
18ded0cfefSKazutaka YOKOTA.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
19ded0cfefSKazutaka YOKOTA.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
20ded0cfefSKazutaka YOKOTA.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
21ded0cfefSKazutaka YOKOTA.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
22ded0cfefSKazutaka YOKOTA.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
23ded0cfefSKazutaka YOKOTA.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24ded0cfefSKazutaka YOKOTA.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
25ded0cfefSKazutaka YOKOTA.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26ded0cfefSKazutaka YOKOTA.\"
277d09e4abSJung-uk Kim.Dd January 29, 2008
28474fc32bSAlexey Zelkin.Dt ATKBD 4
293d45e180SRuslan Ermilov.Os
30ded0cfefSKazutaka YOKOTA.Sh NAME
31ded0cfefSKazutaka YOKOTA.Nm atkbd
32474fc32bSAlexey Zelkin.Nd the AT keyboard interface
33ded0cfefSKazutaka YOKOTA.Sh SYNOPSIS
34d05eb9dfSKazutaka YOKOTA.Cd "options ATKBD_DFLT_KEYMAP"
35124db10bSJeroen Ruigrok van der Werven.Cd "makeoptions ATKBD_DFLT_KEYMAP=_keymap_name_"
36d05eb9dfSKazutaka YOKOTA.Cd "options KBD_DISABLE_KEYMAP_LOAD"
37547d4262SKazutaka YOKOTA.Cd "device atkbd"
38547d4262SKazutaka YOKOTA.Pp
39547d4262SKazutaka YOKOTAIn
40547d4262SKazutaka YOKOTA.Pa /boot/device.hints :
41547d4262SKazutaka YOKOTA.Cd hint.atkbd.0.at="atkbdc"
42547d4262SKazutaka YOKOTA.Cd hint.atkbd.0.irq="1"
43ded0cfefSKazutaka YOKOTA.Sh DESCRIPTION
44ded0cfefSKazutaka YOKOTAThe
45ded0cfefSKazutaka YOKOTA.Nm
46ded0cfefSKazutaka YOKOTAdriver, together with the
47ded0cfefSKazutaka YOKOTA.Nm atkbdc
48ded0cfefSKazutaka YOKOTAdriver, provides access to the AT 84 keyboard or the AT enhanced keyboard
49ded0cfefSKazutaka YOKOTAwhich is connected to the AT keyboard controller.
50ded0cfefSKazutaka YOKOTA.Pp
51f6ce2a64SPoul-Henning KampThis driver is required for the console driver
52*651045d6SStefan Eßer.Xr syscons 4
53*651045d6SStefan Eßeror
54*651045d6SStefan Eßer.Xr vt 4 .
55ded0cfefSKazutaka YOKOTA.Pp
56ded0cfefSKazutaka YOKOTAThere can be only one
57ded0cfefSKazutaka YOKOTA.Nm
58b5e7e999SRuslan Ermilovdevice defined in the kernel configuration file.
59b5e7e999SRuslan ErmilovThis device also requires the
60ded0cfefSKazutaka YOKOTA.Nm atkbdc
61c69d2250SKazutaka YOKOTAkeyboard controller to be present.
62c69d2250SKazutaka YOKOTAThe
63c69d2250SKazutaka YOKOTA.Em irq
64c69d2250SKazutaka YOKOTAnumber must always be 1; there is no provision of changing the number.
65e92d69c4SKazutaka YOKOTA.Ss Function Keys
66e92d69c4SKazutaka YOKOTAThe AT keyboard has a number of function keys.
67e92d69c4SKazutaka YOKOTAThey are numbered as follows and can be associated with strings
68e92d69c4SKazutaka YOKOTAby the
69e92d69c4SKazutaka YOKOTA.Xr kbdcontrol 1
70e92d69c4SKazutaka YOKOTAcommand.
71c01d5f7dSTom RhodesYou can use a keyboard map file (see
72c01d5f7dSTom Rhodes.Xr kbdmap 5 )
73c01d5f7dSTom Rhodesto map them to arbitrary keys, particularly
74c01d5f7dSTom Rhodesthe functions in the range from 65 to 96
75c01d5f7dSTom Rhodeswhich are not used by default.
76e92d69c4SKazutaka YOKOTA.Pp
773136363fSRuslan Ermilov.Bl -tag -width "Function Key Number" -compact
78703b0715SMike Pritchard.It "Function Key number"
79703b0715SMike PritchardFunction Key
80703b0715SMike Pritchard.It "1, 2,...12"
815203edcdSRuslan ErmilovF1, F2,...\& F12
82703b0715SMike Pritchard.It "13, 14,...24"
835203edcdSRuslan ErmilovShift+F1, Shift+F2,...\& Shift+F12
84703b0715SMike Pritchard.It "25, 26,...36"
855203edcdSRuslan ErmilovCtl+F1, Ctl+F2,...\& Ctl+F12
86703b0715SMike Pritchard.It "37, 38,...48"
875203edcdSRuslan ErmilovShift+Ctl+F1, Shift+Ctl+F2,...\& Shift+Ctl+F12
88703b0715SMike Pritchard.It 49
89703b0715SMike PritchardHome and Numpad 7 (without NumLock)
90703b0715SMike Pritchard.It 50
91703b0715SMike PritchardUp Arrow and Numpad 8 (without NumLock)
92703b0715SMike Pritchard.It 51
93703b0715SMike PritchardPage Up and Numpad 9 (without NumLock)
94703b0715SMike Pritchard.It 52
95703b0715SMike PritchardNumpad -
96703b0715SMike Pritchard.It 53
97703b0715SMike PritchardLeft Arrow and Numpad 4 (without NumLock)
98703b0715SMike Pritchard.It 54
99703b0715SMike PritchardNumpad 5 (without NumLock)
100703b0715SMike Pritchard.It 55
101703b0715SMike PritchardRight Arrow and Numpad 6 (without NumLock)
102703b0715SMike Pritchard.It 56
103703b0715SMike PritchardNumpad +
104703b0715SMike Pritchard.It 57
105703b0715SMike PritchardEnd and Numpad 1 (without NumLock)
106703b0715SMike Pritchard.It 58
107703b0715SMike PritchardDown Arrow and Numpad 2 (without NumLock)
108703b0715SMike Pritchard.It 59
109703b0715SMike PritchardPage Down and Numpad 3 (without NumLock)
110703b0715SMike Pritchard.It 60
111703b0715SMike PritchardIns and Numpad 0 (without NumLock)
112703b0715SMike Pritchard.It 61
113703b0715SMike PritchardDel
114703b0715SMike Pritchard.It 62
115703b0715SMike PritchardLeft GUI Key
116703b0715SMike Pritchard.It 63
117703b0715SMike PritchardRight GUI Key
118703b0715SMike Pritchard.It 64
119703b0715SMike PritchardMenu
120c01d5f7dSTom Rhodes.It "65, 66,...96"
121c01d5f7dSTom Rhodesfree (not used by default)
122703b0715SMike Pritchard.El
123e92d69c4SKazutaka YOKOTA.Pp
124e92d69c4SKazutaka YOKOTASee the man page for the
125e92d69c4SKazutaka YOKOTA.Xr kbdcontrol 1
126e92d69c4SKazutaka YOKOTAcommand for how to assign a string to the function key.
127ded0cfefSKazutaka YOKOTA.Sh DRIVER CONFIGURATION
128d05eb9dfSKazutaka YOKOTA.Ss Kernel Configuration Options
129d05eb9dfSKazutaka YOKOTAThe following kernel configuration options control the
130d05eb9dfSKazutaka YOKOTA.Nm
131d05eb9dfSKazutaka YOKOTAdriver.
132d05eb9dfSKazutaka YOKOTA.Bl -tag -width ATKBD_DFLT
133d05eb9dfSKazutaka YOKOTA.It Em ATKBD_DFLT_KEYMAP
134f87717faSMike PritchardThis option sets the default, built-in keymap of the
135d05eb9dfSKazutaka YOKOTA.Nm
136d05eb9dfSKazutaka YOKOTAdriver to the named keymap.
137d05eb9dfSKazutaka YOKOTASee
138251c176fSRuslan Ermilov.Sx EXAMPLES
139d05eb9dfSKazutaka YOKOTAbelow.
140d05eb9dfSKazutaka YOKOTA.It Em KBD_DISABLE_KEYMAP_LOAD
141d05eb9dfSKazutaka YOKOTAThe keymap can be modified by the
142d05eb9dfSKazutaka YOKOTA.Xr kbdcontrol 1
143d05eb9dfSKazutaka YOKOTAcommand.
144d05eb9dfSKazutaka YOKOTAThis option will disable this feature and prevent the user from
145d05eb9dfSKazutaka YOKOTAchanging key assignment.
146d05eb9dfSKazutaka YOKOTA.El
147ded0cfefSKazutaka YOKOTA.Ss Driver Flags
148ded0cfefSKazutaka YOKOTAThe
149ded0cfefSKazutaka YOKOTA.Nm
150547d4262SKazutaka YOKOTAdriver accepts the following driver flags.
151547d4262SKazutaka YOKOTAThey can be set either in
152547d4262SKazutaka YOKOTA.Pa /boot/device.hints ,
153547d4262SKazutaka YOKOTAor else from within the boot loader
154c4d9468eSRuslan Ermilov(see
155547d4262SKazutaka YOKOTA.Xr loader 8 ) .
156c69d2250SKazutaka YOKOTA.Bl -tag -width FAIL
157c69d2250SKazutaka YOKOTA.It bit 0 (FAIL_IF_NO_KBD)
158ded0cfefSKazutaka YOKOTABy default the
159ded0cfefSKazutaka YOKOTA.Nm
160ded0cfefSKazutaka YOKOTAdriver will install even if a keyboard is not actually connected to the
161ded0cfefSKazutaka YOKOTAsystem.
162c69d2250SKazutaka YOKOTAThis option prevents the driver from being installed in this situation.
163c69d2250SKazutaka YOKOTA.It bit 1 (NO_RESET)
164ded0cfefSKazutaka YOKOTAWhen this option is given, the
165ded0cfefSKazutaka YOKOTA.Nm
166ded0cfefSKazutaka YOKOTAdriver will not reset the keyboard when initializing it.
167ded0cfefSKazutaka YOKOTAIt may be useful for laptop computers whose function keys
168c69d2250SKazutaka YOKOTAhave special functions and these functions are forgotten when the
169ded0cfefSKazutaka YOKOTAkeyboard is reset.
170c69d2250SKazutaka YOKOTA.It bit 2 (ALT_SCANCODESET)
171ded0cfefSKazutaka YOKOTACertain keyboards, such as those on some ThinkPad models, behave
172ded0cfefSKazutaka YOKOTAlike the old XT keyboard and require this option.
173e8aa0f66SJohn Baldwin.It bit 3 (NO_PROBE_TEST)
174e8aa0f66SJohn BaldwinWhen this option is given, the
175e8aa0f66SJohn Baldwin.Nm
176e8aa0f66SJohn Baldwindriver will not test the keyboard port during the probe routine.
177e8aa0f66SJohn BaldwinSome machines hang during boot when this test is performed.
178ded0cfefSKazutaka YOKOTA.El
179ded0cfefSKazutaka YOKOTA.\".Sh FILES
180251c176fSRuslan Ermilov.Sh EXAMPLES
181d05eb9dfSKazutaka YOKOTAThe
182d05eb9dfSKazutaka YOKOTA.Nm
183d05eb9dfSKazutaka YOKOTAdriver requires the keyboard controller
184d05eb9dfSKazutaka YOKOTA.Nm atkbdc .
185d05eb9dfSKazutaka YOKOTAThus, the kernel configuration file should contain the following lines.
186d05eb9dfSKazutaka YOKOTA.Pp
187547d4262SKazutaka YOKOTA.Dl "device atkbdc"
188547d4262SKazutaka YOKOTA.Dl "device atkbd"
189d05eb9dfSKazutaka YOKOTA.Pp
190d05eb9dfSKazutaka YOKOTAThe following example shows how to set the default, built-in keymap
191d05eb9dfSKazutaka YOKOTAto
192d05eb9dfSKazutaka YOKOTA.Pa jp.106.kbd .
193d05eb9dfSKazutaka YOKOTA.Pp
194547d4262SKazutaka YOKOTA.Dl "device atkbdc"
195d05eb9dfSKazutaka YOKOTA.Dl "options ATKBD_DFLT_KEYMAP"
196124db10bSJeroen Ruigrok van der Werven.Dl "makeoptions ATKBD_DFLT_KEYMAP=jp.106"
197547d4262SKazutaka YOKOTA.Dl "device atkbd"
198547d4262SKazutaka YOKOTA.Pp
199547d4262SKazutaka YOKOTAIn both cases, you also need to have following lines in
200547d4262SKazutaka YOKOTA.Pa /boot/device.hints .
201547d4262SKazutaka YOKOTA.Pp
202547d4262SKazutaka YOKOTA.Dl hint.atkbdc.0.at="isa"
203547d4262SKazutaka YOKOTA.Dl hint.atkbdc.0.port="0x060"
204547d4262SKazutaka YOKOTA.Dl hint.atkbd.0.at="atkbdc"
205547d4262SKazutaka YOKOTA.Dl hint.atkbd.0.irq="1"
206ded0cfefSKazutaka YOKOTA.\".Sh DIAGNOSTICS
207ded0cfefSKazutaka YOKOTA.\".Sh CAVEATS
208ded0cfefSKazutaka YOKOTA.\".Sh BUGS
209ded0cfefSKazutaka YOKOTA.Sh SEE ALSO
210d05eb9dfSKazutaka YOKOTA.Xr kbdcontrol 1 ,
211ded0cfefSKazutaka YOKOTA.Xr atkbdc 4 ,
212c69d2250SKazutaka YOKOTA.Xr psm 4 ,
213c69d2250SKazutaka YOKOTA.Xr syscons 4 ,
214*651045d6SStefan Eßer.Xr vt 4 ,
215c01d5f7dSTom Rhodes.Xr kbdmap 5 ,
216547d4262SKazutaka YOKOTA.Xr loader 8
217ded0cfefSKazutaka YOKOTA.Sh HISTORY
218ded0cfefSKazutaka YOKOTAThe
219ded0cfefSKazutaka YOKOTA.Nm
220ded0cfefSKazutaka YOKOTAdriver first appeared in
221ded0cfefSKazutaka YOKOTA.Fx 3.1 .
222ded0cfefSKazutaka YOKOTA.Sh AUTHORS
223f4d874a1SRuslan Ermilov.An -nosplit
224ded0cfefSKazutaka YOKOTAThe
225ded0cfefSKazutaka YOKOTA.Nm
226c69d2250SKazutaka YOKOTAdriver was written by
2276c899950SBaptiste Daroussin.An S\(/oren Schmidt Aq Mt sos@FreeBSD.org
228c69d2250SKazutaka YOKOTAand
2296c899950SBaptiste Daroussin.An Kazutaka Yokota Aq Mt yokota@FreeBSD.org .
230c69d2250SKazutaka YOKOTAThis manual page was written by
231c69d2250SKazutaka YOKOTA.An Kazutaka Yokota .
232