source: rtems/c/src/lib/libbsp/i386/pc386/console/kd.h @ cba119c9

4.104.114.84.9
Last change on this file since cba119c9 was cba119c9, checked in by Ralf Corsepius <ralf.corsepius@…>, on Oct 17, 2005 at 10:34:02 AM

Remove CVS Log

  • Property mode set to 100644
File size: 3.3 KB
Line 
1/*
2/////////////////////////////////////////////////////////////////////////////
3// $Header$
4//
5// MODULE DESCRIPTION:
6//
7// This module was based on the Linux version kd.h
8//
9//  by: Rosimildo da Silva:  rdasilva@connecttel.com
10//
11/////////////////////////////////////////////////////////////////////////////
12*/
13
14#ifndef _LINUX_KD_H
15#define _LINUX_KD_H
16#include <sys/types.h>
17
18/* 0x4B is 'K', to avoid collision with termios and vt */
19
20#define KIOCSOUND       0x4B2F  /* start sound generation (0 for off) */
21#define KDMKTONE        0x4B30  /* generate tone */
22
23#define KDGETLED        0x4B31  /* return current led state */
24#define KDSETLED        0x4B32  /* set led state [lights, not flags] */
25#define         LED_SCR         0x01    /* scroll lock led */
26#define         LED_CAP         0x04    /* caps lock led */
27#define         LED_NUM         0x02    /* num lock led */
28
29#define  KDGKBTYPE      0x4B33  /* get keyboard type */
30#define         KB_84              0x01
31#define         KB_101          0x02    /* this is what we always answer */
32#define         KB_OTHER           0x03
33
34#define     KDSETMODE   0x4B3A  /* set text/graphics mode */
35#define         KD_TEXT         0x00
36#define         KD_GRAPHICS     0x01
37#define         KD_TEXT0        0x02    /* obsolete */
38#define         KD_TEXT1        0x03    /* obsolete */
39#define     KDGETMODE   0x4B3B  /* get current mode */
40
41#define         K_RAW              0x00
42#define         K_XLATE         0x01
43#define         K_MEDIUMRAW     0x02
44#define         K_UNICODE       0x03
45#define     KDGKBMODE   0x4B44  /* gets current keyboard mode */
46#define     KDSKBMODE   0x4B45  /* sets current keyboard mode */
47
48#define         K_METABIT       0x03
49#define         K_ESCPREFIX     0x04
50#define     KDGKBMETA   0x4B62  /* gets meta key handling mode */
51#define     KDSKBMETA   0x4B63  /* sets meta key handling mode */
52
53#define         K_SCROLLLOCK    0x01
54#define         K_CAPSLOCK      0x02
55#define         K_NUMLOCK       0x04
56#define    KDGKBLED     0x4B64  /* get led flags (not lights) */
57#define     KDSKBLED    0x4B65  /* set led flags (not lights) */
58
59struct kbentry {
60        unsigned char kb_table;
61        unsigned char kb_index;
62        unsigned short kb_value;
63};
64#define         K_NORMTAB       0x00
65#define         K_SHIFTTAB      0x01
66#define         K_ALTTAB        0x02
67#define         K_ALTSHIFTTAB   0x03
68
69#define KDGKBENT        0x4B46  /* gets one entry in translation table */
70#define KDSKBENT        0x4B47  /* sets one entry in translation table */
71
72struct kbsentry {
73        unsigned char kb_func;
74        unsigned char kb_string[512];
75};
76
77struct kbdiacr {
78        unsigned char diacr, base, result;
79};
80struct kbdiacrs {
81        unsigned int kb_cnt;    /* number of entries in following array */
82        struct kbdiacr kbdiacr[256];    /* MAX_DIACR from keyboard.h */
83};
84#define KDGKBDIACR      0x4B4A  /* read kernel accent table */
85#define KDSKBDIACR      0x4B4B  /* write kernel accent table */
86
87struct kbkeycode {
88        unsigned int scancode, keycode;
89};
90#define KDGETKEYCODE    0x4B4C  /* read kernel keycode table entry */
91#define KDSETKEYCODE    0x4B4D  /* write kernel keycode table entry */
92
93#define KDSIGACCEPT     0x4B4E  /* accept kbd generated signals */
94
95#define KDGHWCLK        0x4B50  /* get hardware clock */
96#define KDSHWCLK        0x4B51  /* set hardware clock */
97
98struct kbd_repeat {
99        int delay;      /* in msec; <= 0: don't change */
100        int rate;       /* in msec; <= 0: don't change */
101};
102
103#define KDKBDREP        0x4B52  /* set keyboard delay/repeat rate;
104                                 * actually used values are returned */
105
106/* note: 0x4B00-0x4B4E all have had a value at some time;
107   don't reuse for the time being */
108/* note: 0x4B60-0x4B6D, 0x4B70-0x4B72 used above */
109
110#endif /* _LINUX_KD_H */
Note: See TracBrowser for help on using the repository browser.