OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rc203soc/] [sw/] [uClinux/] [include/] [asm-sparc/] [kbio.h] - Blame information for rev 1777

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1633 jcastillo
#ifndef __LINUX_KBIO_H
2
#define __LINUX_KBIO_H
3
 
4
/* Return keyboard type */
5
#define KIOCTYPE    _IOR('k', 9, int)
6
/* Return Keyboard layout */
7
#define KIOCLAYOUT  _IOR('k', 20, int)
8
 
9
enum {
10
    TR_NONE,
11
    TR_ASCII,                   /* keyboard is in regular state */
12
    TR_EVENT,                   /* keystrokes sent as firm events */
13
    TR_UNTRANS_EVENT            /* EVENT+up and down+no translation */
14
};
15
 
16
/* Return the current keyboard translation */
17
#define KIOCGTRANS  _IOR('k', 5, int)
18
/* Set the keyboard translation */
19
#define KIOCTRANS   _IOW('k', 0, int)
20
 
21
/* Send a keyboard command */
22
#define KIOCCMD     _IOW('k', 8, int)
23
 
24
/* Return if keystrokes are being sent to /dev/kbd */
25
 
26
/* Set routing of keystrokes to /dev/kbd */
27
#define KIOCSDIRECT _IOW('k', 10, int)
28
 
29
/* Top bit records if the key is up or down */
30
#define KBD_UP      0x80
31
 
32
/* Usable information */
33
#define KBD_KEYMASK 0x7f
34
 
35
/* All keys up */
36
#define KBD_IDLE    0x75
37
#endif /* __LINUX_KBIO_H */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.