- Main Page
- Data Structures
- Files

- File List
- Globals

# usb-private.h

Go to the documentation of this file.

    00001 /*
    00002  * Copyright 2002 Red Hat Inc., Durham, North Carolina.
    00003  *
    00004  * All Rights Reserved.
    00005  *
    00006  * Permission is hereby granted, free of charge, to any person obtaining
    00007  * a copy of this software and associated documentation files (the
    00008  * "Software"), to deal in the Software without restriction, including
    00009  * without limitation on the rights to use, copy, modify, merge,
    00010  * publish, distribute, sublicense, and/or sell copies of the Software,
    00011  * and to permit persons to whom the Software is furnished to do so,
    00012  * subject to the following conditions:
    00013  *
    00014  * The above copyright notice and this permission notice (including the
    00015  * next paragraph) shall be included in all copies or substantial
    00016  * portions of the Software.
    00017  *
    00018  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
    00019  * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
    00020  * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
    00021  * NON-INFRINGEMENT.  IN NO EVENT SHALL RED HAT AND/OR THEIR SUPPLIERS
    00022  * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
    00023  * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
    00024  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
    00025  * SOFTWARE.
    00026  */
    00027
    00028 /*
    00029  * Authors:
    00030  *   Rickard E. (Rik) Faith <faith@redhat.com>
    00031  *
    00032  */
    00033
    00040 #ifndef _USB_PRIVATE_H_
    00041 #define _USB_PRIVATE_H_
    00042
    00043 #include "dmxinputinit.h"
    00044 #include "inputstr.h"
    00045 #include <X11/Xos.h>
    00046 #include <errno.h>
    00047 #include <linux/input.h>
    00048 #include "usb-common.h"
    00049
    00050                                 /*  Support for force feedback was
    00051                                  *  introduced in Linxu 2.4.10 */
    00052 #ifndef EV_MSC
    00053 #define EV_MSC      0x04
    00054 #endif
    00055 #ifndef EV_FF
    00056 #define EV_FF       0x15
    00057 #endif
    00058 #ifndef LED_SLEEP
    00059 #define LED_SLEEP   0x05
    00060 #endif
    00061 #ifndef LED_SUSPEND
    00062 #define LED_SUSPEND 0x06
    00063 #endif
    00064 #ifndef LED_MUTE
    00065 #define LED_MUTE    0x07
    00066 #endif
    00067 #ifndef LED_MISC
    00068 #define LED_MISC    0x08
    00069 #endif
    00070 #ifndef BTN_DEAD
    00071 #define BTN_DEAD    0x12f
    00072 #endif
    00073 #ifndef BTN_THUMBL
    00074 #define BTN_THUMBL  0x13d
    00075 #endif
    00076 #ifndef BTN_THUMBR
    00077 #define BTN_THUMBR  0x13e
    00078 #endif
    00079 #ifndef MSC_SERIAL
    00080 #define MSC_SERIAL  0x00
    00081 #endif
    00082 #ifndef MSC_MAX
    00083 #define MSC_MAX     0x07
    00084 #endif
    00085
    00086                                 /* Support for older kernels. */
    00087 #ifndef ABS_WHEEL
    00088 #define ABS_WHEEL   0x08
    00089 #endif
    00090 #ifndef ABS_GAS
    00091 #define ABS_GAS     0x09
    00092 #endif
    00093 #ifndef ABS_BRAKE
    00094 #define ABS_BRAKE   0x0a
    00095 #endif
    00096
    00097 #define NUM_STATE_ENTRIES (256/32)
    00098
    00099 /* Private area for USB devices. */
    00100 typedef struct _myPrivate {
    00101     DeviceIntPtr   pDevice;
    00102     int            fd;
    00103     unsigned char  mask[EV_MAX/8 + 1];
    00104     int            numRel, numAbs, numLeds;
    00105     int            relmap[DMX_MAX_AXES];
    00106     int            absmap[DMX_MAX_AXES];
    00108     CARD32         kbdState[NUM_STATE_ENTRIES];
    00109     DeviceIntPtr   pKeyboard;
    00111     int            pitch;
    00112     unsigned long  duration;
    00114     /* FIXME: dmxInput is never initialized */
    00115     DMXInputInfo   *dmxInput;
    00116 } myPrivate;
    00117 #endif

Generated June 29, 2004 for Distributed Multihead X by doxygen 1.3.4. </addres>