From 1f876171067c04fc21fccd5a3051f982fd85c0f0 Mon Sep 17 00:00:00 2001 From: marha Date: Wed, 21 Oct 2009 19:07:36 +0000 Subject: Updated to xorg-server-1.7.99.1 --- xorg-server/hw/dmx/doc/html/lnx-keyboard_8h.html | 600 ++++++++++++----------- 1 file changed, 303 insertions(+), 297 deletions(-) (limited to 'xorg-server/hw/dmx/doc/html/lnx-keyboard_8h.html') diff --git a/xorg-server/hw/dmx/doc/html/lnx-keyboard_8h.html b/xorg-server/hw/dmx/doc/html/lnx-keyboard_8h.html index 4811cad59..3698b18d7 100644 --- a/xorg-server/hw/dmx/doc/html/lnx-keyboard_8h.html +++ b/xorg-server/hw/dmx/doc/html/lnx-keyboard_8h.html @@ -6,374 +6,380 @@ - -
Main Page | Alphabetical List | Data Structures | File List | Data Fields | Globals
+ + +

lnx-keyboard.h File Reference

-

-Go to the source code of this file. - - - - - - - - - - - - - - - - - - - - - - +

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)
+ + + + + + + + + + + + +

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

-

- - - - -
- +

Detailed Description

+

Interface to Linux keyboard driver.

+
See also:
lnx-keyboard.c
+

Function Documentation

+ +
+
+
- - - - + + + + + - - - + + + - - - + + + - - - + + + - - - + + - - + + -
void kbdLinuxBell DevicePtr  pDev, void kbdLinuxBell (DevicePtr  pDev,
int  percent, int  percent,
int  volume, int  volume,
int  pitch, int  pitch,
int  durationint  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").

-

-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").

-

- - - - -
- +

References GETPRIV.

+ + + + +
+
+
- - - - - - + + + + + + -
pointer kbdLinuxCreatePrivate DeviceIntPtr  pKeyboard  ) pointer kbdLinuxCreatePrivate (DeviceIntPtr  pKeyboard ) 
-
- - - - - -
-   - + +
+

Create a private structure for use within this file.

-

-Create a private structure for use within this file.

-

- - - - -
- +

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

+ + + + +
+
+
- - - - + + + + + - - - + + - - + + -
void kbdLinuxCtrl DevicePtr  pDev, void kbdLinuxCtrl (DevicePtr  pDev,
KeybdCtrl *  ctrlKeybdCtrl *  ctrl 
)
-
- - - - - -
-   - + +
+

Set the LEDs.

-

-Set the LEDs.

-

- - - - -
- +

References GETPRIV.

+ + + + +
+
+
- - - - - - + + + + + + -
void kbdLinuxDestroyPrivate pointer  priv  ) void kbdLinuxDestroyPrivate (pointer  priv ) 
-
- - - - - -
-   - + +
+

Destroy a private structure.

-

-Destroy a private structure.

-

- - - - -
- + + + +
+
+
- - - - + + + + + - - - + + - - + + -
void kbdLinuxGetInfo DevicePtr  pDev, void kbdLinuxGetInfo (DevicePtr  pDev,
DMXLocalInitInfoPtr  infoDMXLocalInitInfoPtr  info 
)
-
- - - - - -
-   - + +
+

Fill the info structure with information needed to initialize pDev.

-

-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  ) void kbdLinuxInit (DevicePtr  pDev ) 
-
- - - - - -
-   - + +
+

Initialize the pDev as a Linux keyboard.

-

-Initialize the pDev as a Linux keyboard.

-

- - - - -
- +

References FATAL1, GETPRIV, and kbdLinuxOpenConsole().

+ + + + +
+
+
- - - - - - + + + + + + -
void kbdLinuxOff DevicePtr  pDev  ) void kbdLinuxOff (DevicePtr  pDev ) 
-
- - - - - -
-   - + +
+

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

-

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

-

- - - - -
- +

References GETPRIV, and kbdLinuxCloseConsole().

+ + + + +
+
+
- - - - - - + + + + + + -
int kbdLinuxOn DevicePtr  pDev  ) int kbdLinuxOn (DevicePtr  pDev ) 
-
- - - - - -
-   - + +
+

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

-

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

-

- - - - -
- +

References FATAL1, and GETPRIV.

+ + + + +
+
+
- - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
void kbdLinuxVTPostSwitch pointer  p  ) void kbdLinuxRead (DevicePtr  pDev,
dmxMotionProcPtr  motion,
dmxEnqueueProcPtr  enqueue,
dmxCheckSpecialProcPtr  checkspecial,
DMXBlockType  block 
)
+ +
+
+ + +
+
+ + + + + + + + +
void kbdLinuxVTPostSwitch (pointer  p ) 
-
- - - - - -
-   - + +
+

Currently unused hook called after returning from a VT switch.

-

-Currently unused hook called after returning from a VT switch.

-

- - - - -
- + + + +
+
+
- - - - - - + + + + + + +
void kbdLinuxVTPreSwitch pointer  p  ) void kbdLinuxVTPreSwitch (pointer  p ) 
+ +
+

Currently unused hook called prior to an VT switch.

+
+ + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
int kbdLinuxVTSwitch (pointer  p,
int  vt,
dmxVTSwitchReturnProcPtr  switch_return,
pointer  switch_return_data 
)
-
- - - - - -
-   - + +
-

-Currently unused hook called prior to an VT switch.

+

+ +
-- cgit v1.2.3