1 /****************************************************************************
2 ****************************************************************************
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.
10 ****************************************************************************
11 ****************************************************************************/
12 #include <linux/wait.h>
20 unsigned short vc_num;
23 unsigned int vc_size_row;
24 unsigned int vc_scan_lines;
25 unsigned long vc_origin;
26 unsigned long vc_scr_end;
27 unsigned long vc_visible_origin;
28 unsigned int vc_top, vc_bottom;
29 const struct consw *vc_sw;
30 unsigned short *vc_screenbuf;
31 unsigned int vc_screenbuf_size;
32 unsigned char vc_mode;
34 unsigned char vc_attr;
35 unsigned char vc_def_color;
36 unsigned char vc_color;
37 unsigned char vc_s_color;
38 unsigned char vc_ulcolor;
39 unsigned char vc_halfcolor;
41 unsigned int vc_cursor_type;
42 unsigned short vc_complement_mask;
43 unsigned short vc_s_complement_mask;
44 unsigned int vc_x, vc_y;
45 unsigned int vc_saved_x, vc_saved_y;
48 unsigned short vc_hi_font_mask;
49 struct console_font vc_font;
50 unsigned short vc_video_erase_char;
52 unsigned int vc_state;
53 unsigned int vc_npar,vc_par[NPAR];
54 struct tty_struct *vc_tty;
56 struct vt_mode vt_mode;
59 wait_queue_head_t paste_wait;
61 unsigned int vc_charset : 1;
62 unsigned int vc_s_charset : 1;
63 unsigned int vc_disp_ctrl : 1;
64 unsigned int vc_toggle_meta : 1;
65 unsigned int vc_decscnm : 1;
66 unsigned int vc_decom : 1;
67 unsigned int vc_decawm : 1;
68 unsigned int vc_deccm : 1;
69 unsigned int vc_decim : 1;
70 unsigned int vc_deccolm : 1;
72 unsigned int vc_intensity : 2;
73 unsigned int vc_underline : 1;
74 unsigned int vc_blink : 1;
75 unsigned int vc_reverse : 1;
76 unsigned int vc_s_intensity : 2;
77 unsigned int vc_s_underline : 1;
78 unsigned int vc_s_blink : 1;
79 unsigned int vc_s_reverse : 1;
81 unsigned int vc_ques : 1;
82 unsigned int vc_need_wrap : 1;
83 unsigned int vc_can_do_color : 1;
84 unsigned int vc_report_mouse : 2;
85 unsigned int vc_kmalloced : 1;
86 unsigned char vc_utf : 1;
87 unsigned char vc_utf_count;
89 unsigned int vc_tab_stop[8];
90 unsigned char vc_palette[16*3];
91 unsigned short * vc_translate;
92 unsigned char vc_G0_charset;
93 unsigned char vc_G1_charset;
94 unsigned char vc_saved_G0;
95 unsigned char vc_saved_G1;
96 unsigned int vc_bell_pitch;
97 unsigned int vc_bell_duration;
98 struct vc_data **vc_display_fg;
99 unsigned long vc_uni_pagedir;
100 unsigned long *vc_uni_pagedir_loc;
111 #define CUR_UNDERLINE 2
112 #define CUR_LOWER_THIRD 3
113 #define CUR_LOWER_HALF 4
114 #define CUR_TWO_THIRDS 5
116 #define CUR_HWMASK 0x0f
117 #define CUR_SWMASK 0xfff0
119 #define CUR_DEFAULT CUR_UNDERLINE
121 #define CON_IS_VISIBLE(conp) (*conp->vc_display_fg == conp)