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 @ File Index
Main Page | Alphabetical List | Data Structures | File List | Data Fields | Globals

lnx-keyboard.h File Reference

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)


Detailed Description

Interface to Linux keyboard driver.
See also:
lnx-keyboard.c

Function Documentation

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.

void kbdLinuxCtrl DevicePtr  pDev,
KeybdCtrl *  ctrl
 

Set the LEDs.

void kbdLinuxDestroyPrivate pointer  priv  ) 
 

Destroy a private structure.

void kbdLinuxGetInfo DevicePtr  pDev,
DMXLocalInitInfoPtr  info
 

Fill the info structure with information needed to initialize pDev.

void kbdLinuxInit DevicePtr  pDev  ) 
 

Initialize the pDev as a Linux keyboard.

void kbdLinuxOff DevicePtr  pDev  ) 
 

Turn pDev off (i.e., stop taking input from pDev).

int kbdLinuxOn DevicePtr  pDev  ) 
 

Turn pDev on (i.e., take input from pDev).

void kbdLinuxVTPostSwitch pointer  p  ) 
 

Currently unused hook called after returning from a VT switch.

void kbdLinuxVTPreSwitch pointer  p  ) 
 

Currently unused hook called prior to an VT switch.


Generated June 29, 2004 for Distributed Multihead X by doxygen 1.3.4. @ 1.1 log @Initial revision @ text @@ 1.1.1.1 log @initial import of xorg-server-1.4.2 @ text @@ 1.1.1.2 log @import xorg-server 1.9.2. important changes since 1.6.5 include: - built-in symbol visibility, default not export - fixes for various crashes - many fixes for XI2, EXA, dix, render, glx, xkb, EDID, randr, Xv, resource handling, Xext, vfb, xfree86 / vga and composite support. - fixes several memory leaks - many many documentation updates - record extension enabled - no longer looks for XF86Config files @ text @d9 24 a32 109

lnx-keyboard.h File Reference

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)

Detailed Description

Interface to Linux keyboard driver.

See also:
lnx-keyboard.c

Function Documentation

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 1

References _myPrivate::fd, and _myPrivate::pKeyboard.

d36 9 a44 6
d46 4 a49 4 a51 1 d53 3 a55 2 a58 20
void kbdLinuxCtrl ( DevicePtr  pDev, KeybdCtrl *  ctrl )

Set the LEDs.

d60 2 a61 17
void kbdLinuxDestroyPrivate ( pointer  priv  ) 

Destroy a private structure.

a63 1 d65 3 a67 2 a70 22
void kbdLinuxGetInfo ( DevicePtr  pDev, DMXLocalInitInfoPtr  info )
d72 2 d75 1 a75 19
void kbdLinuxInit ( DevicePtr  pDev  ) 

Initialize the pDev as a Linux keyboard.

References FATAL1, and kbdLinuxOpenConsole().

d77 2 d80 1 d82 28 a109 19

Turn pDev off (i.e., stop taking input from pDev).

References kbdLinuxCloseConsole().

void kbdLinuxOff ( DevicePtr  pDev  ) 
d111 1 d113 19 a131 12

Turn pDev on (i.e., take input from pDev).

References FATAL1.

int kbdLinuxOn ( DevicePtr  pDev  ) 
d133 4 a136 4 a138 1 d140 3 a142 2 a144 1 d146 2 a147 2 d149 50 d200 4 a203 4 a205 1 d207 3 a209 2 d213 2 a214 2 d216 1 d218 27 a244 2
d246 27 a272 13
void kbdLinuxRead ( DevicePtr  pDev, dmxMotionProcPtr  motion, dmxEnqueueProcPtr  enqueue, dmxCheckSpecialProcPtr  checkspecial, DMXBlockType  block )
d274 1 d276 26 a301 17

Currently unused hook called after returning from a VT switch.

void kbdLinuxVTPostSwitch ( pointer  p  ) 
d303 1 d305 27 a331 3

Currently unused hook called prior to an VT switch.

d333 27 a359 34
void kbdLinuxVTPreSwitch ( pointer  p  ) 
d361 1 d363 14 a376 6
@ 1.1.1.3 log @initial import of xorg-server 1.10.3. highlights include: - fixes xorg bugs 29969, 30367, 30527, 30267, 30260, 29046, 30260, 31548, 28672, 24887, 32115, 21457, 32436, 21827, 28414, 24703, 32803, 16318, 33449, 33324, 33929, 35082, 35209, 36146, 36119 - many additional NULL checks - adjustments related to input ABI 12 - *lots* of dead code removal - vga arbitrator fixes - GL fixes - EDID fixes - conversion to using asprintf() in many places - many fixes from valgrind, compiler warnings see these for more details: http://lists.freedesktop.org/archives/xorg-announce/2011-February/001612.html http://lists.freedesktop.org/archives/xorg-announce/2011-April/001646.html http://lists.freedesktop.org/archives/xorg-announce/2011-May/001675.html http://lists.freedesktop.org/archives/xorg-announce/2011-July/001710.html @ text @d9 3 a11 2 d50 2 a51 2

Detailed Description

Interface to Linux keyboard driver.

d53 1 a53 1

Function Documentation

d61 2 a62 2 d67 2 a68 2 d73 2 a74 2 d79 2 a80 2 d85 2 a86 2 d91 1 a91 1 a99 2

References GETPRIV.

d109 3 a111 2 d130 2 a131 2 d136 2 a137 2 d142 1 a142 1 a148 2

References GETPRIV.

d158 3 a160 2 d177 2 a178 2 d183 2 a184 2 d189 1 a189 1 d207 3 a209 2 d217 1 a217 1

References FATAL1, GETPRIV, and kbdLinuxOpenConsole().

d228 3 a230 2 d238 1 a238 1

References GETPRIV, and kbdLinuxCloseConsole().

d249 3 a251 2 d259 1 a259 1

References FATAL1, and GETPRIV.

d270 2 a271 2 d276 2 a277 2 d282 2 a283 2 d288 2 a289 2 d294 2 a295 2 d300 1 a300 1 d315 3 a317 2 d334 3 a336 2 d353 2 a354 2 d359 2 a360 2 d365 2 a366 2 d371 2 a372 2 d377 1 a377 1 a381 3

Tell the operating system to switch to vt. The switch_return function is called with the switch_return_data when the VT is switched back to the pre-switch VT (i.e., the user returns to the DMX session).

References FATAL0, _myPrivate::fd, kbdLinuxActivate(), _myPrivate::switch_return, _myPrivate::switch_return_data, _myPrivate::switched, and _myPrivate::vtno.

a385 4
int kbdLinuxVTSwitch ( pointer  p,
int  vt,
dmxVTSwitchReturnProcPtr  switch_return,
pointer  switch_return_data 
)
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)
DevicePtr  pDev, int  percent, int  volume, int  pitch, int  duration DeviceIntPtr  pKeyboard)DevicePtr  pDev, KeybdCtrl *  ctrl pointer  priv)DevicePtr  pDev, DMXLocalInitInfoPtr  info DevicePtr  pDev)DevicePtr  pDev)DevicePtr  pDev)DevicePtr  pDev, dmxMotionProcPtr  motion, dmxEnqueueProcPtr  enqueue, dmxCheckSpecialProcPtr  checkspecial, DMXBlockType  block pointer  p)pointer  p)pointer  p, int  vt, void(*)(pointer)  switch_return, pointer  switch_return_data