Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ExeBy/smexe_ro.../usr/include/linux
File: kd.h
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
[0] Fix | Delete
#ifndef _LINUX_KD_H
[1] Fix | Delete
#define _LINUX_KD_H
[2] Fix | Delete
#include <linux/types.h>
[3] Fix | Delete
[4] Fix | Delete
[5] Fix | Delete
/* 0x4B is 'K', to avoid collision with termios and vt */
[6] Fix | Delete
[7] Fix | Delete
#define GIO_FONT 0x4B60 /* gets font in expanded form */
[8] Fix | Delete
#define PIO_FONT 0x4B61 /* use font in expanded form */
[9] Fix | Delete
[10] Fix | Delete
#define GIO_FONTX 0x4B6B /* get font using struct consolefontdesc */
[11] Fix | Delete
#define PIO_FONTX 0x4B6C /* set font using struct consolefontdesc */
[12] Fix | Delete
struct consolefontdesc {
[13] Fix | Delete
unsigned short charcount; /* characters in font (256 or 512) */
[14] Fix | Delete
unsigned short charheight; /* scan lines per character (1-32) */
[15] Fix | Delete
char *chardata; /* font data in expanded form */
[16] Fix | Delete
};
[17] Fix | Delete
[18] Fix | Delete
#define PIO_FONTRESET 0x4B6D /* reset to default font */
[19] Fix | Delete
[20] Fix | Delete
#define GIO_CMAP 0x4B70 /* gets colour palette on VGA+ */
[21] Fix | Delete
#define PIO_CMAP 0x4B71 /* sets colour palette on VGA+ */
[22] Fix | Delete
[23] Fix | Delete
#define KIOCSOUND 0x4B2F /* start sound generation (0 for off) */
[24] Fix | Delete
#define KDMKTONE 0x4B30 /* generate tone */
[25] Fix | Delete
[26] Fix | Delete
#define KDGETLED 0x4B31 /* return current led state */
[27] Fix | Delete
#define KDSETLED 0x4B32 /* set led state [lights, not flags] */
[28] Fix | Delete
#define LED_SCR 0x01 /* scroll lock led */
[29] Fix | Delete
#define LED_NUM 0x02 /* num lock led */
[30] Fix | Delete
#define LED_CAP 0x04 /* caps lock led */
[31] Fix | Delete
[32] Fix | Delete
#define KDGKBTYPE 0x4B33 /* get keyboard type */
[33] Fix | Delete
#define KB_84 0x01
[34] Fix | Delete
#define KB_101 0x02 /* this is what we always answer */
[35] Fix | Delete
#define KB_OTHER 0x03
[36] Fix | Delete
[37] Fix | Delete
#define KDADDIO 0x4B34 /* add i/o port as valid */
[38] Fix | Delete
#define KDDELIO 0x4B35 /* del i/o port as valid */
[39] Fix | Delete
#define KDENABIO 0x4B36 /* enable i/o to video board */
[40] Fix | Delete
#define KDDISABIO 0x4B37 /* disable i/o to video board */
[41] Fix | Delete
[42] Fix | Delete
#define KDSETMODE 0x4B3A /* set text/graphics mode */
[43] Fix | Delete
#define KD_TEXT 0x00
[44] Fix | Delete
#define KD_GRAPHICS 0x01
[45] Fix | Delete
#define KD_TEXT0 0x02 /* obsolete */
[46] Fix | Delete
#define KD_TEXT1 0x03 /* obsolete */
[47] Fix | Delete
#define KDGETMODE 0x4B3B /* get current mode */
[48] Fix | Delete
[49] Fix | Delete
#define KDMAPDISP 0x4B3C /* map display into address space */
[50] Fix | Delete
#define KDUNMAPDISP 0x4B3D /* unmap display from address space */
[51] Fix | Delete
[52] Fix | Delete
typedef char scrnmap_t;
[53] Fix | Delete
#define E_TABSZ 256
[54] Fix | Delete
#define GIO_SCRNMAP 0x4B40 /* get screen mapping from kernel */
[55] Fix | Delete
#define PIO_SCRNMAP 0x4B41 /* put screen mapping table in kernel */
[56] Fix | Delete
#define GIO_UNISCRNMAP 0x4B69 /* get full Unicode screen mapping */
[57] Fix | Delete
#define PIO_UNISCRNMAP 0x4B6A /* set full Unicode screen mapping */
[58] Fix | Delete
[59] Fix | Delete
#define GIO_UNIMAP 0x4B66 /* get unicode-to-font mapping from kernel */
[60] Fix | Delete
struct unipair {
[61] Fix | Delete
unsigned short unicode;
[62] Fix | Delete
unsigned short fontpos;
[63] Fix | Delete
};
[64] Fix | Delete
struct unimapdesc {
[65] Fix | Delete
unsigned short entry_ct;
[66] Fix | Delete
struct unipair *entries;
[67] Fix | Delete
};
[68] Fix | Delete
#define PIO_UNIMAP 0x4B67 /* put unicode-to-font mapping in kernel */
[69] Fix | Delete
#define PIO_UNIMAPCLR 0x4B68 /* clear table, possibly advise hash algorithm */
[70] Fix | Delete
struct unimapinit {
[71] Fix | Delete
unsigned short advised_hashsize; /* 0 if no opinion */
[72] Fix | Delete
unsigned short advised_hashstep; /* 0 if no opinion */
[73] Fix | Delete
unsigned short advised_hashlevel; /* 0 if no opinion */
[74] Fix | Delete
};
[75] Fix | Delete
[76] Fix | Delete
#define UNI_DIRECT_BASE 0xF000 /* start of Direct Font Region */
[77] Fix | Delete
#define UNI_DIRECT_MASK 0x01FF /* Direct Font Region bitmask */
[78] Fix | Delete
[79] Fix | Delete
#define K_RAW 0x00
[80] Fix | Delete
#define K_XLATE 0x01
[81] Fix | Delete
#define K_MEDIUMRAW 0x02
[82] Fix | Delete
#define K_UNICODE 0x03
[83] Fix | Delete
#define K_OFF 0x04
[84] Fix | Delete
#define KDGKBMODE 0x4B44 /* gets current keyboard mode */
[85] Fix | Delete
#define KDSKBMODE 0x4B45 /* sets current keyboard mode */
[86] Fix | Delete
[87] Fix | Delete
#define K_METABIT 0x03
[88] Fix | Delete
#define K_ESCPREFIX 0x04
[89] Fix | Delete
#define KDGKBMETA 0x4B62 /* gets meta key handling mode */
[90] Fix | Delete
#define KDSKBMETA 0x4B63 /* sets meta key handling mode */
[91] Fix | Delete
[92] Fix | Delete
#define K_SCROLLLOCK 0x01
[93] Fix | Delete
#define K_NUMLOCK 0x02
[94] Fix | Delete
#define K_CAPSLOCK 0x04
[95] Fix | Delete
#define KDGKBLED 0x4B64 /* get led flags (not lights) */
[96] Fix | Delete
#define KDSKBLED 0x4B65 /* set led flags (not lights) */
[97] Fix | Delete
[98] Fix | Delete
struct kbentry {
[99] Fix | Delete
unsigned char kb_table;
[100] Fix | Delete
unsigned char kb_index;
[101] Fix | Delete
unsigned short kb_value;
[102] Fix | Delete
};
[103] Fix | Delete
#define K_NORMTAB 0x00
[104] Fix | Delete
#define K_SHIFTTAB 0x01
[105] Fix | Delete
#define K_ALTTAB 0x02
[106] Fix | Delete
#define K_ALTSHIFTTAB 0x03
[107] Fix | Delete
[108] Fix | Delete
#define KDGKBENT 0x4B46 /* gets one entry in translation table */
[109] Fix | Delete
#define KDSKBENT 0x4B47 /* sets one entry in translation table */
[110] Fix | Delete
[111] Fix | Delete
struct kbsentry {
[112] Fix | Delete
unsigned char kb_func;
[113] Fix | Delete
unsigned char kb_string[512];
[114] Fix | Delete
};
[115] Fix | Delete
#define KDGKBSENT 0x4B48 /* gets one function key string entry */
[116] Fix | Delete
#define KDSKBSENT 0x4B49 /* sets one function key string entry */
[117] Fix | Delete
[118] Fix | Delete
struct kbdiacr {
[119] Fix | Delete
unsigned char diacr, base, result;
[120] Fix | Delete
};
[121] Fix | Delete
struct kbdiacrs {
[122] Fix | Delete
unsigned int kb_cnt; /* number of entries in following array */
[123] Fix | Delete
struct kbdiacr kbdiacr[256]; /* MAX_DIACR from keyboard.h */
[124] Fix | Delete
};
[125] Fix | Delete
#define KDGKBDIACR 0x4B4A /* read kernel accent table */
[126] Fix | Delete
#define KDSKBDIACR 0x4B4B /* write kernel accent table */
[127] Fix | Delete
[128] Fix | Delete
struct kbdiacruc {
[129] Fix | Delete
unsigned int diacr, base, result;
[130] Fix | Delete
};
[131] Fix | Delete
struct kbdiacrsuc {
[132] Fix | Delete
unsigned int kb_cnt; /* number of entries in following array */
[133] Fix | Delete
struct kbdiacruc kbdiacruc[256]; /* MAX_DIACR from keyboard.h */
[134] Fix | Delete
};
[135] Fix | Delete
#define KDGKBDIACRUC 0x4BFA /* read kernel accent table - UCS */
[136] Fix | Delete
#define KDSKBDIACRUC 0x4BFB /* write kernel accent table - UCS */
[137] Fix | Delete
[138] Fix | Delete
struct kbkeycode {
[139] Fix | Delete
unsigned int scancode, keycode;
[140] Fix | Delete
};
[141] Fix | Delete
#define KDGETKEYCODE 0x4B4C /* read kernel keycode table entry */
[142] Fix | Delete
#define KDSETKEYCODE 0x4B4D /* write kernel keycode table entry */
[143] Fix | Delete
[144] Fix | Delete
#define KDSIGACCEPT 0x4B4E /* accept kbd generated signals */
[145] Fix | Delete
[146] Fix | Delete
struct kbd_repeat {
[147] Fix | Delete
int delay; /* in msec; <= 0: don't change */
[148] Fix | Delete
int period; /* in msec; <= 0: don't change */
[149] Fix | Delete
/* earlier this field was misnamed "rate" */
[150] Fix | Delete
};
[151] Fix | Delete
[152] Fix | Delete
#define KDKBDREP 0x4B52 /* set keyboard delay/repeat rate;
[153] Fix | Delete
* actually used values are returned */
[154] Fix | Delete
[155] Fix | Delete
#define KDFONTOP 0x4B72 /* font operations */
[156] Fix | Delete
[157] Fix | Delete
struct console_font_op {
[158] Fix | Delete
unsigned int op; /* operation code KD_FONT_OP_* */
[159] Fix | Delete
unsigned int flags; /* KD_FONT_FLAG_* */
[160] Fix | Delete
unsigned int width, height; /* font size */
[161] Fix | Delete
unsigned int charcount;
[162] Fix | Delete
unsigned char *data; /* font data with height fixed to 32 */
[163] Fix | Delete
};
[164] Fix | Delete
[165] Fix | Delete
struct console_font {
[166] Fix | Delete
unsigned int width, height; /* font size */
[167] Fix | Delete
unsigned int charcount;
[168] Fix | Delete
unsigned char *data; /* font data with height fixed to 32 */
[169] Fix | Delete
};
[170] Fix | Delete
[171] Fix | Delete
#define KD_FONT_OP_SET 0 /* Set font */
[172] Fix | Delete
#define KD_FONT_OP_GET 1 /* Get font */
[173] Fix | Delete
#define KD_FONT_OP_SET_DEFAULT 2 /* Set font to default, data points to name / NULL */
[174] Fix | Delete
#define KD_FONT_OP_COPY 3 /* Copy from another console */
[175] Fix | Delete
[176] Fix | Delete
#define KD_FONT_FLAG_DONT_RECALC 1 /* Don't recalculate hw charcell size [compat] */
[177] Fix | Delete
[178] Fix | Delete
/* note: 0x4B00-0x4B4E all have had a value at some time;
[179] Fix | Delete
don't reuse for the time being */
[180] Fix | Delete
/* note: 0x4B60-0x4B6D, 0x4B70-0x4B72 used above */
[181] Fix | Delete
[182] Fix | Delete
#endif /* _LINUX_KD_H */
[183] Fix | Delete
[184] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function