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

Subversion Repositories or1k_old

[/] [or1k_old/] [trunk/] [rc203soc/] [sw/] [uClinux/] [include/] [asm-sparc/] [kbio.h] - Diff between revs 1765 and 1782

Only display areas with differences | Details | Blame | View Log

Rev 1765 Rev 1782
#ifndef __LINUX_KBIO_H
#ifndef __LINUX_KBIO_H
#define __LINUX_KBIO_H
#define __LINUX_KBIO_H
 
 
/* Return keyboard type */
/* Return keyboard type */
#define KIOCTYPE    _IOR('k', 9, int)
#define KIOCTYPE    _IOR('k', 9, int)
/* Return Keyboard layout */
/* Return Keyboard layout */
#define KIOCLAYOUT  _IOR('k', 20, int)
#define KIOCLAYOUT  _IOR('k', 20, int)
 
 
enum {
enum {
    TR_NONE,
    TR_NONE,
    TR_ASCII,                   /* keyboard is in regular state */
    TR_ASCII,                   /* keyboard is in regular state */
    TR_EVENT,                   /* keystrokes sent as firm events */
    TR_EVENT,                   /* keystrokes sent as firm events */
    TR_UNTRANS_EVENT            /* EVENT+up and down+no translation */
    TR_UNTRANS_EVENT            /* EVENT+up and down+no translation */
};
};
 
 
/* Return the current keyboard translation */
/* Return the current keyboard translation */
#define KIOCGTRANS  _IOR('k', 5, int)
#define KIOCGTRANS  _IOR('k', 5, int)
/* Set the keyboard translation */
/* Set the keyboard translation */
#define KIOCTRANS   _IOW('k', 0, int)
#define KIOCTRANS   _IOW('k', 0, int)
 
 
/* Send a keyboard command */
/* Send a keyboard command */
#define KIOCCMD     _IOW('k', 8, int)
#define KIOCCMD     _IOW('k', 8, int)
 
 
/* Return if keystrokes are being sent to /dev/kbd */
/* Return if keystrokes are being sent to /dev/kbd */
 
 
/* Set routing of keystrokes to /dev/kbd */
/* Set routing of keystrokes to /dev/kbd */
#define KIOCSDIRECT _IOW('k', 10, int)
#define KIOCSDIRECT _IOW('k', 10, int)
 
 
/* Top bit records if the key is up or down */
/* Top bit records if the key is up or down */
#define KBD_UP      0x80
#define KBD_UP      0x80
 
 
/* Usable information */
/* Usable information */
#define KBD_KEYMASK 0x7f
#define KBD_KEYMASK 0x7f
 
 
/* All keys up */
/* All keys up */
#define KBD_IDLE    0x75
#define KBD_IDLE    0x75
#endif /* __LINUX_KBIO_H */
#endif /* __LINUX_KBIO_H */
 
 

powered by: WebSVN 2.1.0

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