3
* Copyright 2001 Red Hat Inc., Durham, North Carolina.
7
* Permission is hereby granted, free of charge, to any person obtaining
8
* a copy of this software and associated documentation files (the
9
* "Software"), to deal in the Software without restriction, including
10
* without limitation on the rights to use, copy, modify, merge,
11
* publish, distribute, sublicense, and/or sell copies of the Software,
12
* and to permit persons to whom the Software is furnished to do so,
13
* subject to the following conditions:
15
* The above copyright notice and this permission notice (including the
16
* next paragraph) shall be included in all copies or substantial
17
* portions of the Software.
19
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
20
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
21
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
22
* NON-INFRINGEMENT. IN NO EVENT SHALL RED HAT AND/OR THEIR SUPPLIERS
23
* BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
24
* ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
25
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
31
* Rickard E. (Rik) Faith <faith@redhat.com>
36
* Interface to Linux keyboard driver. \see lnx-keyboard.c */
38
#ifndef _LNX_KEYBOARD_H_
39
#define _LNX_KEYBOARD_H_
41
extern pointer kbdLinuxCreatePrivate(DeviceIntPtr pKeyboard);
42
extern void kbdLinuxDestroyPrivate(pointer private);
44
extern void kbdLinuxInit(DevicePtr pDev);
45
extern void kbdLinuxGetInfo(DevicePtr pDev, DMXLocalInitInfoPtr info);
46
extern int kbdLinuxOn(DevicePtr pDev);
47
extern void kbdLinuxOff(DevicePtr pDev);
49
extern void kbdLinuxVTPreSwitch(pointer p);
50
extern void kbdLinuxVTPostSwitch(pointer p);
51
extern int kbdLinuxVTSwitch(pointer p, int vt,
52
dmxVTSwitchReturnProcPtr switch_return,
53
pointer switch_return_data);
55
extern void kbdLinuxRead(DevicePtr pDev,
56
dmxMotionProcPtr motion,
57
dmxEnqueueProcPtr enqueue,
58
dmxCheckSpecialProcPtr checkspecial,
61
extern void kbdLinuxCtrl(DevicePtr pDev, KeybdCtrl *ctrl);
62
extern void kbdLinuxBell(DevicePtr pDev, int percent,
63
int volume, int pitch, int duration);