source: trunk/System/Sources/libc/include/kernel/linux/sys/kd.h @ 375

Last change on this file since 375 was 375, checked in by khorben, 9 years ago

Adding Linux-specific files (for Xynth's framebuffer driver)

File size: 1.6 KB
Line 
1/* $Id$ */
2/* Copyright (c) 2009 Pierre Pronchery <ppronchery@bearstech.com> */
3/* This file is part of RunningBear System libc */
4/* This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, version 3 of the License.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program.  If not, see <http://www.gnu.org/licenses/>. */
15
16
17
18#ifndef LIBC_KERNEL_LINUX_SYS_KD_H
19# define LIBC_KERNEL_LINUX_SYS_KD_H
20
21
22/* types */
23struct kbentry
24{
25        unsigned char kb_table;
26        unsigned char kb_index;
27        unsigned short kb_value;
28};
29
30
31/* constants */
32# define KDGETLED       0x4b31
33# define KDSETLED       0x4b32
34# define KDSETMODE      0x4b3a
35# define KDGETMODE      0x4b3b
36# define KDGKBMODE      0x4b44
37# define KDSKBMODE      0x4b45
38# define KDGKBENT       0x4b46
39# define KDSKBENT       0x4b47
40# define KDGKBMETA      0x4b62
41# define KDSKBMETA      0x4b63
42# define KDGKLED        0x4b64
43# define KDSKLED        0x4b65
44
45# define K_RAW          0x00
46# define K_XLATE        0x01
47# define K_MEDIUMRAW    0x02
48# define K_UNICODE      0x03
49
50# define K_SCROLLLOCK   0x01
51# define K_NUMLOCK      0x02
52# define K_CAPSLOCK     0x04
53
54/* for KD_GETLED/KD_SETLED */
55# define LED_SCR        0x01
56# define LED_NUM        0x02
57# define LED_CAP        0x04
58
59/* for KDGETMODE/KDSETMODE */
60# define KD_TEXT        0x00
61# define KD_GRAPHICS    0x01
62# define KD_TEXT0       0x02
63# define KD_TEXT1       0x03
64
65#endif /* !LIBC_KERNEL_LINUX_SYS_KD_H */
Note: See TracBrowser for help on using the repository browser.