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-ms_8c.html | 896 ++++++++++++++++++++--------- 1 file changed, 632 insertions(+), 264 deletions(-) (limited to 'xorg-server/hw/dmx/doc/html/lnx-ms_8c.html') diff --git a/xorg-server/hw/dmx/doc/html/lnx-ms_8c.html b/xorg-server/hw/dmx/doc/html/lnx-ms_8c.html index e77e562a4..25ba6260a 100644 --- a/xorg-server/hw/dmx/doc/html/lnx-ms_8c.html +++ b/xorg-server/hw/dmx/doc/html/lnx-ms_8c.html @@ -6,338 +6,706 @@ - -
Main Page | Alphabetical List | Data Structures | File List | Data Fields | Globals
-

lnx-ms.c File Reference

#include "inputstr.h"
-#include "Xos.h"
-#include <errno.h>
-#include <termios.h>
-#include "dmxinputinit.h"
-#include "lnx-ms.h"
- - - - + + +
+

lnx-ms.c File Reference

#include "inputstr.h"
+#include <X11/Xos.h>
+#include <errno.h>
+#include <termios.h>
+#include "dmxinputinit.h"
+#include "lnx-ms.h"
+

Data Structures

struct  _myPrivate
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Data Structures

struct  _myPrivate

Defines

#define GETPRIV
#define LOG0(f)   dmxLog(dmxDebug,f)
#define LOG1(f, a)   dmxLog(dmxDebug,f,a)
#define LOG2(f, a, b)   dmxLog(dmxDebug,f,a,b)
#define LOG3(f, a, b, c)   dmxLog(dmxDebug,f,a,b,c)
#define FATAL0(f)   dmxLog(dmxFatal,f)
#define FATAL1(f, a)   dmxLog(dmxFatal,f,a)
#define FATAL2(f, a, b)   dmxLog(dmxFatal,f,a,b)
#define MOTIONPROC   dmxMotionProcPtr
#define ENQUEUEPROC   dmxEnqueueProcPtr
#define CHECKPROC   dmxCheckSpecialProcPtr
#define BLOCK   DMXBlockType
#define PRESS(b)
#define RELEASE(b)

Typedefs

typedef struct _myPrivate myPrivate

Functions

static int msLinuxReadBytes (int fd, unsigned char *buf, int len, int min)
static void msLinuxButton (DevicePtr pDev, ENQUEUEPROC enqueue, int buttons, BLOCK block)
void msLinuxRead (DevicePtr pDev, MOTIONPROC motion, ENQUEUEPROC enqueue, CHECKPROC checkspecial, BLOCK block)
void msLinuxInit (DevicePtr pDev)
int msLinuxOn (DevicePtr pDev)
void msLinuxOff (DevicePtr pDev)
static void msLinuxGetMap (DevicePtr pDev, unsigned char *map, int *nButtons)
void msLinuxVTPreSwitch (pointer p)
void msLinuxVTPostSwitch (pointer p)
pointer msLinuxCreatePrivate (DeviceIntPtr pMouse)
void msLinuxDestroyPrivate (pointer priv)
void msLinuxGetInfo (DevicePtr pDev, DMXLocalInitInfoPtr info)
+

Detailed Description

+

This code implements a low-level device driver for a serial MS mouse. The code is derived from code by Juliusz Chroboczek and Keith Packard (see the source code for complete references).

+

Define Documentation

+ +
+
+ + + + +
#define BLOCK   DMXBlockType
+
+
-

Functions

-void msLinuxRead (DevicePtr pDev, MOTIONPROC motion, ENQUEUEPROC enqueue, CHECKPROC checkspecial, BLOCK block) +
+
+ +
+
+ + + + +
#define CHECKPROC   dmxCheckSpecialProcPtr
+
+
-void msLinuxInit (DevicePtr pDev) +
+
+ +
+
+ + + + +
#define ENQUEUEPROC   dmxEnqueueProcPtr
+
+
-int msLinuxOn (DevicePtr pDev) +
+
+ +
+
+ + + + + + + + + +
#define FATAL0( )    dmxLog(dmxFatal,f)
+
+
-void msLinuxOff (DevicePtr pDev) +
+
+ +
+
+ + + + + + + + + + + + + + +
#define FATAL1(f,
 )    dmxLog(dmxFatal,f,a)
+
+
-void msLinuxVTPreSwitch (pointer p) +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + +
#define FATAL2(f,
a,
 )    dmxLog(dmxFatal,f,a,b)
+
+
-void msLinuxVTPostSwitch (pointer p) +
+
+ +
+
+ + + + +
#define GETPRIV
+
+
+Value:
myPrivate *priv                            \
+                      = ((DMXLocalInputInfoPtr)(pDev->devicePrivate))->private
+
+
+
+ +
+
+ + + + + + + + + +
#define LOG0( )    dmxLog(dmxDebug,f)
+
+
-pointer msLinuxCreatePrivate (DeviceIntPtr pMouse) +
+
+ +
+
+ + + + + + + + + + + + + + +
#define LOG1(f,
 )    dmxLog(dmxDebug,f,a)
+
+
-void msLinuxDestroyPrivate (pointer priv) +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + +
#define LOG2(f,
a,
 )    dmxLog(dmxDebug,f,a,b)
+
+
-void msLinuxGetInfo (DevicePtr pDev, DMXLocalInitInfoPtr info) +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
#define LOG3(f,
a,
b,
 )    dmxLog(dmxDebug,f,a,b,c)
+
+
- -

Detailed Description

-This code implements a low-level device driver for a serial MS mouse. The code is derived from code by Juliusz Chroboczek and Keith Packard (see the source code for complete references).

Function Documentation

-

- - - - -
- - - - - - - - + + + +
+
+
pointer msLinuxCreatePrivate DeviceIntPtr  pMouse  ) 
+ + +
#define MOTIONPROC   dmxMotionProcPtr
+ +
+
+ + +
+
+ + + + + + + + +
#define PRESS( ) 
-
- - - - - -
-   - - -

-Create a private structure for use within this file.

-

- - - - -
- + +
+Value:
do {                                                 \
+        enqueue(pDev, ButtonPress, 0, 0, NULL, block);   \
+    } while (0)
+
+

Referenced by msLinuxButton(), ps2LinuxButton(), and usbRead().

+ +
+ + +
+
+
- - - - - - + + + + + + +
void msLinuxDestroyPrivate pointer  priv  ) #define RELEASE( ) 
+ +
+Value:
do {                                                 \
+        enqueue(pDev, ButtonRelease, 0, 0, NULL, block); \
+    } while (0)
+
+

Referenced by msLinuxButton(), ps2LinuxButton(), and usbRead().

+
+ +

Typedef Documentation

+ +
+
+ + + +
typedef struct _myPrivate myPrivate
-
- - - - - -
-   - - -

-Destroy a private structure.

-

- - - - -
- + +
+ +
+ +

Function Documentation

+ +
+
+
- - - - + + + + + + + + + + + + + + + + - - + + - - + + +
void msLinuxGetInfo DevicePtr  pDev, static void msLinuxButton (DevicePtr  pDev,
ENQUEUEPROC  enqueue,
int  buttons,
DMXLocalInitInfoPtr  infoBLOCK  block 
) [static]
+ +
+ +

References GETPRIV, PRESS, and RELEASE.

+ +

Referenced by msLinuxRead().

+
+ + +
+
+ + + + + + + + +
pointer msLinuxCreatePrivate (DeviceIntPtr  pMouse ) 
-
- - - - - -
-   - - -

-Fill the info structure with information needed to initialize pDev.

-

- - - - -
- + +
+

Create a private structure for use within this file.

+ +

References _myPrivate::fd, and _myPrivate::pMouse.

+ +
+ + +
+
+
- - - - - - + + + + + + +
void msLinuxInit DevicePtr  pDev  ) void msLinuxDestroyPrivate (pointer  priv ) 
+ +
+

Destroy a private structure.

+
+ + +
+
+ + + + + + + + + + + + + + + + + +
void msLinuxGetInfo (DevicePtr  pDev,
DMXLocalInitInfoPtr  info 
)
-
- - - - - -
-   - - -

-Initialize pDev.

-

- - - - -
- + + + + +
+
+
+ + + + + + + + + + + + + + + + + + - - - - - - + + + +
static void msLinuxGetMap (DevicePtr  pDev,
unsigned char *  map,
int *  nButtons 
void msLinuxOff DevicePtr  pDev  ) ) [static]
+ +
+

Referenced by msLinuxGetInfo().

+ +
+ + +
+
+ + + + + + + + +
void msLinuxInit (DevicePtr  pDev ) 
-
- - - - - -
-   - - -

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

-

- - - - -
- + +
+

Initialize pDev.

+ +

References FATAL1, GETPRIV, and O_NONBLOCK.

+ +

Referenced by msLinuxOn().

+ +
+ + +
+
+
- - - - - - + + + + + + +
int msLinuxOn DevicePtr  pDev  ) void msLinuxOff (DevicePtr  pDev ) 
+ +
+

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

+ +

References GETPRIV.

+
+ + +
+
+ + + + + + + + +
int msLinuxOn (DevicePtr  pDev ) 
-
- - - - - -
-   - - -

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

-

- - - - -
- + +
+

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

+ +

References FATAL1, GETPRIV, and msLinuxInit().

+ +
+ + +
+
+
- - - - + + + + + + + + + + - - + + + + + + + + - - + + + + + +
void msLinuxRead DevicePtr  pDev, void msLinuxRead (DevicePtr  pDev,
MOTIONPROC  motion,
MOTIONPROC  motion, ENQUEUEPROC  enqueue,
CHECKPROC  checkspecial,
ENQUEUEPROC  enqueue, BLOCK  block 
)
+ +
+

Read an event from the pDev device. If the event is a motion event, enqueue it with the motion function. Otherwise, check for special keys with the checkspecial function and enqueue the event with the enqueue function. The block type is passed to the functions so that they may block SIGIO handling as appropriate to the caller of this function.

+ +

References GETPRIV, msLinuxButton(), and msLinuxReadBytes().

+ +
+ + +
+
+ + + + + + + + + - - + + + + + + + + - - + + - - + + -
static int msLinuxReadBytes (int  fd,
CHECKPROC  checkspecial, unsigned char *  buf,
int  len,
BLOCK  blockint  min 
) [static]
-
- - - - - -
-   - - -

-Read an event from the pDev device. If the event is a motion event, enqueue it with the motion function. Otherwise, check for special keys with the checkspecial function and enqueue the event with the enqueue function. The block type is passed to the functions so that they may block SIGIO handling as appropriate to the caller of this function.

-

- - - - -
- + +
+ +

Referenced by msLinuxRead().

+ +
+ + +
+
+
- - - - - - + + + + + + -
void msLinuxVTPostSwitch pointer  p  ) void msLinuxVTPostSwitch (pointer  p ) 
-
- - - - - -
-   - - -

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

-

- - - - -
- + +
+

Currently unused hook called after returning from a VT switch.

+ +
+ + +
+
+
- - - - - - + + + + + + -
void msLinuxVTPreSwitch pointer  p  ) void msLinuxVTPreSwitch (pointer  p ) 
-
- - - - - -
-   - - -

-Currently unused hook called prior to an VT switch.

+

+
+

Currently unused hook called prior to an VT switch.

+ +
+
+
-- cgit v1.2.3