root/include/linux/kd.h

/* [previous][next][first][last][top][bottom][index][help] */

INCLUDED FROM


   1 #ifndef _LINUX_KD_H
   2 #define _LINUX_KD_H
   3 #include <linux/types.h>
   4 
   5 /* 0x4B is 'K', to avoid collision with termios and vt */
   6 
   7 #define GIO_FONT        0x4B60  /* gets font in expanded form */
   8 #define PIO_FONT        0x4B61  /* use font in expanded form */
   9 
  10 #define KIOCSOUND       0x4B2F  /* start sound generation (0 for off) */
  11 #define KDMKTONE        0x4B30  /* generate tone */
  12 
  13 #define KDGETLED        0x4B31  /* return current led state */
  14 #define KDSETLED        0x4B32  /* set led state [lights, not flags] */
  15 #define         LED_SCR         0x01    /* scroll lock led */
  16 #define         LED_CAP         0x04    /* caps lock led */
  17 #define         LED_NUM         0x02    /* num lock led */
  18 
  19 #define KDGKBTYPE       0x4B33  /* get keyboard type */
  20 #define         KB_84           0x01
  21 #define         KB_101          0x02    /* this is what we always answer */
  22 #define         KB_OTHER        0x03
  23 
  24 #define KDADDIO         0x4B34  /* add i/o port as valid */
  25 #define KDDELIO         0x4B35  /* del i/o port as valid */
  26 #define KDENABIO        0x4B36  /* enable i/o to video board */
  27 #define KDDISABIO       0x4B37  /* disable i/o to video board */
  28 
  29 #define KDSETMODE       0x4B3A  /* set text/graphics mode */
  30 #define         KD_TEXT         0x00
  31 #define         KD_GRAPHICS     0x01
  32 #define         KD_TEXT0        0x02    /* obsolete */
  33 #define         KD_TEXT1        0x03    /* obsolete */
  34 #define KDGETMODE       0x4B3B  /* get current mode */
  35 
  36 #define KDMAPDISP       0x4B3C  /* map display into address space */
  37 #define KDUNMAPDISP     0x4B3D  /* unmap display from address space */
  38 
  39 typedef char scrnmap_t;
  40 #define         E_TABSZ         256
  41 #define GIO_SCRNMAP     0x4B40  /* get screen mapping from kernel */
  42 #define PIO_SCRNMAP     0x4B41  /* put screen mapping table in kernel */
  43 
  44 #define GIO_UNIMAP      0x4B66  /* get unicode-to-font mapping from kernel */
  45 struct unipair {
  46         u_short unicode;
  47         u_short fontpos;
  48 };
  49 struct unimapdesc {
  50         u_short entry_ct;
  51         struct unipair *entries;
  52 };
  53 #define PIO_UNIMAP      0x4B67  /* put unicode-to-font mapping in kernel */
  54 #define PIO_UNIMAPCLR   0x4B68  /* clear table, possibly advise hash algorithm */
  55 struct unimapinit {
  56         u_short advised_hashsize;  /* 0 if no opinion */
  57         u_short advised_hashstep;  /* 0 if no opinion */
  58         u_short advised_hashlevel; /* 0 if no opinion */
  59 };
  60 
  61 #define         K_RAW           0x00
  62 #define         K_XLATE         0x01
  63 #define         K_MEDIUMRAW     0x02
  64 #define         K_UNICODE       0x03
  65 #define KDGKBMODE       0x4B44  /* gets current keyboard mode */
  66 #define KDSKBMODE       0x4B45  /* sets current keyboard mode */
  67 
  68 #define         K_METABIT       0x03
  69 #define         K_ESCPREFIX     0x04
  70 #define KDGKBMETA       0x4B62  /* gets meta key handling mode */
  71 #define KDSKBMETA       0x4B63  /* sets meta key handling mode */
  72 
  73 #define         K_SCROLLLOCK    0x01
  74 #define         K_CAPSLOCK      0x02
  75 #define         K_NUMLOCK       0x04
  76 #define KDGKBLED        0x4B64  /* get led flags (not lights) */
  77 #define KDSKBLED        0x4B65  /* set led flags (not lights) */
  78 
  79 struct kbentry {
  80         u_char kb_table;
  81         u_char kb_index;
  82         u_short kb_value;
  83 };
  84 #define         K_NORMTAB       0x00
  85 #define         K_SHIFTTAB      0x01
  86 #define         K_ALTTAB        0x02
  87 #define         K_ALTSHIFTTAB   0x03
  88 
  89 #define KDGKBENT        0x4B46  /* gets one entry in translation table */
  90 #define KDSKBENT        0x4B47  /* sets one entry in translation table */
  91 
  92 struct kbsentry {
  93         u_char kb_func;
  94         u_char kb_string[512];
  95 };
  96 #define KDGKBSENT       0x4B48  /* gets one function key string entry */
  97 #define KDSKBSENT       0x4B49  /* sets one function key string entry */
  98 
  99 struct kbdiacr {
 100         u_char diacr, base, result;
 101 };
 102 struct kbdiacrs {
 103         unsigned int kb_cnt;    /* number of entries in following array */
 104         struct kbdiacr kbdiacr[256];    /* MAX_DIACR from keyboard.h */
 105 };
 106 #define KDGKBDIACR      0x4B4A  /* read kernel accent table */
 107 #define KDSKBDIACR      0x4B4B  /* write kernel accent table */
 108 
 109 struct kbkeycode {
 110         unsigned int scancode, keycode;
 111 };
 112 #define KDGETKEYCODE    0x4B4C  /* read kernel keycode table entry */
 113 #define KDSETKEYCODE    0x4B4D  /* write kernel keycode table entry */
 114 
 115 #define KDSIGACCEPT     0x4B4E  /* accept kbd generated signals */
 116 
 117 /* note: 0x4B00-0x4B4E all have had a value at some time;
 118    don't reuse for the time being */
 119 /* note: 0x4B60-0x4B68 used above */
 120 
 121 #endif /* _LINUX_KD_H */

/* [previous][next][first][last][top][bottom][index][help] */