console_struct.h revision 94a85f663694e1869acb1c2e8a3c374a6fa3ab86
1/****************************************************************************
2 ****************************************************************************
3 ***
4 ***   This header was automatically generated from a Linux kernel header
5 ***   of the same name, to make information necessary for userspace to
6 ***   call into the kernel available to libc.  It contains only constants,
7 ***   structures, and macros generated from the original header, and thus,
8 ***   contains no copyrightable information.
9 ***
10 ***   To edit the content of this header, modify the corresponding
11 ***   source file (e.g. under external/kernel-headers/original/) then
12 ***   run bionic/libc/kernel/tools/update_all.py
13 ***
14 ***   Any manual change here will be lost the next time this script will
15 ***   be run. You've been warned!
16 ***
17 ****************************************************************************
18 ****************************************************************************/
19#include <linux/wait.h>
20#include <linux/vt.h>
21struct vt_struct;
22#define NPAR 16
23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24struct vc_data {
25 unsigned short vc_num;
26 unsigned int vc_cols;
27 unsigned int vc_rows;
28/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29 unsigned int vc_size_row;
30 unsigned int vc_scan_lines;
31 unsigned long vc_origin;
32 unsigned long vc_scr_end;
33/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34 unsigned long vc_visible_origin;
35 unsigned int vc_top, vc_bottom;
36 const struct consw *vc_sw;
37 unsigned short *vc_screenbuf;
38/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39 unsigned int vc_screenbuf_size;
40 unsigned char vc_mode;
41 unsigned char vc_attr;
42 unsigned char vc_def_color;
43/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44 unsigned char vc_color;
45 unsigned char vc_s_color;
46 unsigned char vc_ulcolor;
47 unsigned char vc_halfcolor;
48/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49 unsigned int vc_cursor_type;
50 unsigned short vc_complement_mask;
51 unsigned short vc_s_complement_mask;
52 unsigned int vc_x, vc_y;
53/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54 unsigned int vc_saved_x, vc_saved_y;
55 unsigned long vc_pos;
56 unsigned short vc_hi_font_mask;
57 struct console_font vc_font;
58/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59 unsigned short vc_video_erase_char;
60 unsigned int vc_state;
61 unsigned int vc_npar,vc_par[NPAR];
62 struct tty_struct *vc_tty;
63/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64 struct vt_mode vt_mode;
65 int vt_pid;
66 int vt_newvt;
67 wait_queue_head_t paste_wait;
68/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
69 unsigned int vc_charset : 1;
70 unsigned int vc_s_charset : 1;
71 unsigned int vc_disp_ctrl : 1;
72 unsigned int vc_toggle_meta : 1;
73/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
74 unsigned int vc_decscnm : 1;
75 unsigned int vc_decom : 1;
76 unsigned int vc_decawm : 1;
77 unsigned int vc_deccm : 1;
78/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
79 unsigned int vc_decim : 1;
80 unsigned int vc_deccolm : 1;
81 unsigned int vc_intensity : 2;
82 unsigned int vc_underline : 1;
83/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
84 unsigned int vc_blink : 1;
85 unsigned int vc_reverse : 1;
86 unsigned int vc_s_intensity : 2;
87 unsigned int vc_s_underline : 1;
88/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
89 unsigned int vc_s_blink : 1;
90 unsigned int vc_s_reverse : 1;
91 unsigned int vc_ques : 1;
92 unsigned int vc_need_wrap : 1;
93/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
94 unsigned int vc_can_do_color : 1;
95 unsigned int vc_report_mouse : 2;
96 unsigned int vc_kmalloced : 1;
97 unsigned char vc_utf : 1;
98/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
99 unsigned char vc_utf_count;
100 int vc_utf_char;
101 unsigned int vc_tab_stop[8];
102 unsigned char vc_palette[16*3];
103/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
104 unsigned short * vc_translate;
105 unsigned char vc_G0_charset;
106 unsigned char vc_G1_charset;
107 unsigned char vc_saved_G0;
108/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
109 unsigned char vc_saved_G1;
110 unsigned int vc_bell_pitch;
111 unsigned int vc_bell_duration;
112 struct vc_data **vc_display_fg;
113/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
114 unsigned long vc_uni_pagedir;
115 unsigned long *vc_uni_pagedir_loc;
116};
117struct vc {
118/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
119 struct vc_data *d;
120};
121#define CUR_DEF 0
122#define CUR_NONE 1
123/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
124#define CUR_UNDERLINE 2
125#define CUR_LOWER_THIRD 3
126#define CUR_LOWER_HALF 4
127#define CUR_TWO_THIRDS 5
128/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
129#define CUR_BLOCK 6
130#define CUR_HWMASK 0x0f
131#define CUR_SWMASK 0xfff0
132#define CUR_DEFAULT CUR_UNDERLINE
133/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
134#define CON_IS_VISIBLE(conp) (*conp->vc_display_fg == conp)
135