head 1.2; access; symbols netbsd-7-2-RELEASE:1.1.1.3 netbsd-7-1-2-RELEASE:1.1.1.3 netbsd-7-1-1-RELEASE:1.1.1.3 netbsd-7-1:1.1.1.3.0.14 netbsd-7-1-RELEASE:1.1.1.3 netbsd-7-1-RC2:1.1.1.3 netbsd-7-1-RC1:1.1.1.3 netbsd-7-0-2-RELEASE:1.1.1.3 netbsd-7-0-1-RELEASE:1.1.1.3 netbsd-7-0:1.1.1.3.0.12 netbsd-7-0-RELEASE:1.1.1.3 netbsd-7-0-RC3:1.1.1.3 netbsd-7-0-RC2:1.1.1.3 netbsd-7-0-RC1:1.1.1.3 netbsd-5-2-3-RELEASE:1.1.1.1 netbsd-5-1-5-RELEASE:1.1.1.1 netbsd-6-0-6-RELEASE:1.1.1.3 netbsd-6-1-5-RELEASE:1.1.1.3 netbsd-7:1.1.1.3.0.10 netbsd-7-base:1.1.1.3 netbsd-6-1-4-RELEASE:1.1.1.3 netbsd-6-0-5-RELEASE:1.1.1.3 riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.1.1.3 riastradh-drm2:1.1.1.3.0.8 riastradh-drm2-base:1.1.1.3 netbsd-6-1-3-RELEASE:1.1.1.3 netbsd-6-0-4-RELEASE:1.1.1.3 netbsd-5-2-2-RELEASE:1.1.1.1 netbsd-5-1-4-RELEASE:1.1.1.1 netbsd-6-1-2-RELEASE:1.1.1.3 netbsd-6-0-3-RELEASE:1.1.1.3 netbsd-5-2-1-RELEASE:1.1.1.1 netbsd-5-1-3-RELEASE:1.1.1.1 netbsd-6-1-1-RELEASE:1.1.1.3 xorg-server-1-10-6:1.1.1.3 netbsd-6-1:1.1.1.3.0.6 netbsd-6-0-2-RELEASE:1.1.1.3 netbsd-6-1-RELEASE:1.1.1.3 netbsd-6-1-RC4:1.1.1.3 netbsd-6-1-RC3:1.1.1.3 netbsd-6-1-RC2:1.1.1.3 netbsd-6-1-RC1:1.1.1.3 netbsd-5-2:1.1.1.1.0.8 netbsd-6-0-1-RELEASE:1.1.1.3 netbsd-5-2-RELEASE:1.1.1.1 netbsd-5-2-RC1:1.1.1.1 netbsd-6-0:1.1.1.3.0.4 netbsd-6-0-RELEASE:1.1.1.3 netbsd-6-0-RC2:1.1.1.3 netbsd-6-0-RC1:1.1.1.3 netbsd-6:1.1.1.3.0.2 netbsd-6-base:1.1.1.3 netbsd-5-1-2-RELEASE:1.1.1.1 netbsd-5-1-1-RELEASE:1.1.1.1 xorg-server-1-10-3:1.1.1.3 mrg-xorg-server-1-9-5-pre-1-10-3:1.1.1.2 xorg-server-1-9-5:1.1.1.2 xorg-server-1-9-2:1.1.1.2 netbsd-5-1:1.1.1.1.0.6 netbsd-5-1-RELEASE:1.1.1.1 netbsd-5-1-RC4:1.1.1.1 netbsd-5-1-RC3:1.1.1.1 netbsd-5-1-RC2:1.1.1.1 netbsd-5-1-RC1:1.1.1.1 netbsd-5-0-2-RELEASE:1.1.1.1 xorg-server-1-6-5:1.1.1.1 xorg-server-1-6-3:1.1.1.1 netbsd-5-0-1-RELEASE:1.1.1.1 xorg-server-1-6-2:1.1.1.1 xorg-server-1-6-1-901:1.1.1.1 netbsd-5-0:1.1.1.1.0.4 netbsd-5-0-RELEASE:1.1.1.1 netbsd-5-0-RC4:1.1.1.1 netbsd-5-0-RC3:1.1.1.1 netbsd-5-0-RC2:1.1.1.1 netbsd-5-0-RC1:1.1.1.1 netbsd-5:1.1.1.1.0.2 netbsd-5-base:1.1.1.1 xorg-server-1-4-2:1.1.1.1 xorg:1.1.1; locks; strict; comment @# @; 1.2 date 2016.08.11.00.04.29; author mrg; state dead; branches; next 1.1; commitid FQxwnZNPy5ZgOOhz; 1.1 date 2008.07.31.19.50.31; author mrg; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2008.07.31.19.50.31; author mrg; state Exp; branches; next 1.1.1.2; 1.1.1.2 date 2010.11.23.05.21.22; author mrg; state Exp; branches; next 1.1.1.3; 1.1.1.3 date 2011.08.02.06.56.52; author mrg; state Exp; branches; next ; desc @@ 1.2 log @first merge of netbsd changes. not tested yet. @ text @
Go to the source code of this file.
Functions | |
| pointer | kbdLinuxCreatePrivate (DeviceIntPtr pKeyboard) |
| void | kbdLinuxDestroyPrivate (pointer private) |
| void | kbdLinuxInit (DevicePtr pDev) |
| void | kbdLinuxGetInfo (DevicePtr pDev, DMXLocalInitInfoPtr info) |
| int | kbdLinuxOn (DevicePtr pDev) |
| void | kbdLinuxOff (DevicePtr pDev) |
| void | kbdLinuxVTPreSwitch (pointer p) |
| void | kbdLinuxVTPostSwitch (pointer p) |
| void | kbdLinuxCtrl (DevicePtr pDev, KeybdCtrl *ctrl) |
| void | kbdLinuxBell (DevicePtr pDev, int percent, int volume, int pitch, int duration) |
|
||||||||||||||||||||||||
|
Ring the bell. Note: we completely ignore the volume, since Linux's ioctl() interface does not provide a way to control it. If it did, the XBell manpage tells how the actual volume is a function of the percent and the (base) volume. Note that most of the other PC-based bell drivers compute the duration for KDMKTONE as a function of the volume and the duration. For some drivers, the duration is only measured in mS if the volume is 50, and is scaled by the volume for other values. This seems confusing and possibly incorrect (the xset man page says that the bell will be "as closely as it can to the user's specifications" -- if we ignore the volume and set the duration correctly, then we'll get one parameter "wrong" -- but if we use the volume to scale the duration, then we'll get both parameters "wrong"). |
|
|
Create a private structure for use within this file. |
|
||||||||||||
|
Set the LEDs. |
|
|
Destroy a private structure. |
|
||||||||||||
|
Fill the info structure with information needed to initialize pDev. |
|
|
Initialize the pDev as a Linux keyboard. |
|
|
Turn pDev off (i.e., stop taking input from pDev). |
|
|
Turn pDev on (i.e., take input from pDev). |
|
|
Currently unused hook called after returning from a VT switch. |
|
|
Currently unused hook called prior to an VT switch. |
Go to the source code of this file.
Functions | |
| pointer | kbdLinuxCreatePrivate (DeviceIntPtr pKeyboard) |
| void | kbdLinuxDestroyPrivate (pointer private) |
| void | kbdLinuxInit (DevicePtr pDev) |
| void | kbdLinuxGetInfo (DevicePtr pDev, DMXLocalInitInfoPtr info) |
| int | kbdLinuxOn (DevicePtr pDev) |
| void | kbdLinuxOff (DevicePtr pDev) |
| void | kbdLinuxVTPreSwitch (pointer p) |
| void | kbdLinuxVTPostSwitch (pointer p) |
| int | kbdLinuxVTSwitch (pointer p, int vt, dmxVTSwitchReturnProcPtr switch_return, pointer switch_return_data) |
| void | kbdLinuxRead (DevicePtr pDev, dmxMotionProcPtr motion, dmxEnqueueProcPtr enqueue, dmxCheckSpecialProcPtr checkspecial, DMXBlockType block) |
| void | kbdLinuxCtrl (DevicePtr pDev, KeybdCtrl *ctrl) |
| void | kbdLinuxBell (DevicePtr pDev, int percent, int volume, int pitch, int duration) |
Interface to Linux keyboard driver.
| void kbdLinuxBell | ( | DevicePtr | pDev, | |
| int | percent, | |||
| int | volume, | |||
| int | pitch, | |||
| int | duration | |||
| ) |
Ring the bell.
Note: we completely ignore the volume, since Linux's ioctl() interface does not provide a way to control it. If it did, the XBell manpage tells how the actual volume is a function of the percent and the (base) volume.
Note that most of the other PC-based bell drivers compute the duration for KDMKTONE as a function of the volume and the duration. For some drivers, the duration is only measured in mS if the volume is 50, and is scaled by the volume for other values. This seems confusing and possibly incorrect (the xset man page says that the bell will be "as closely as it can to the user's specifications" -- if we ignore the volume and set the duration correctly, then we'll get one parameter "wrong" -- but if we use the volume to scale the duration, then we'll get both parameters "wrong").
| pointer kbdLinuxCreatePrivate | ( | DeviceIntPtr | pKeyboard | ) |
Create a private structure for use within this file.
d34 1 a34 1References _myPrivate::fd, and _myPrivate::pKeyboard.
d36 9 a44 6| void kbdLinuxCtrl | ( | DevicePtr | pDev, | a51 1d53 3 a55 2 | KeybdCtrl * | ctrl | a58 20 | ) |
Set the LEDs.
| void kbdLinuxDestroyPrivate | ( | pointer | priv | ) | d60 2 a61 17
Destroy a private structure.
| void kbdLinuxGetInfo | ( | DevicePtr | pDev, | a63 1d65 3 a67 2 | DMXLocalInitInfoPtr | info | a70 22 | ) |
Fill the info structure with information needed to initialize pDev.
References _DMXLocalInitInfo::focusClass, _DMXLocalInitInfo::kbdFeedbackClass, kbdLinuxGetMap(), _DMXLocalInitInfo::keyboard, _DMXLocalInitInfo::keyClass, _DMXLocalInitInfo::keySyms, and _DMXLocalInitInfo::modMap.
| void kbdLinuxInit | ( | DevicePtr | pDev | ) | d72 2 d75 1 a75 19
Initialize the pDev as a Linux keyboard.
References FATAL1, and kbdLinuxOpenConsole().
| void kbdLinuxOff | ( | DevicePtr | pDev | ) | d77 2 d80 1 d82 28 a109 19
| int kbdLinuxOn | ( | DevicePtr | pDev | ) | d111 1 d113 19 a131 12 |
| void kbdLinuxRead | ( | DevicePtr | pDev, | a138 1d140 3 a142 2 | dmxMotionProcPtr | motion, | a144 1d146 2 a147 2 | dmxEnqueueProcPtr | enqueue, | d149 50 d200 4 a203 4dmxCheckSpecialProcPtr | checkspecial, | a205 1d207 3 a209 2 | DMXBlockType | block | d213 2 a214 2 | ) | d216 1 d218 27 a244 2 |
| void kbdLinuxVTPostSwitch | ( | pointer | p | ) | d274 1 d276 26 a301 17 |
| void kbdLinuxVTPreSwitch | ( | pointer | p | ) | d303 1 d305 27 a331 3 |
| int kbdLinuxVTSwitch | ( | pointer | p, | |
| int | vt, | |||
| dmxVTSwitchReturnProcPtr | switch_return, | |||
| pointer | switch_return_data | |||
| ) | d361 1 d363 14 a376 6 |