1 #define cons_num	(vc_cons[currcons].d->vc_num)
2 #define sw		(vc_cons[currcons].d->vc_sw)
3 #define screenbuf	(vc_cons[currcons].d->vc_screenbuf)
4 #define screenbuf_size	(vc_cons[currcons].d->vc_screenbuf_size)
5 #define origin		(vc_cons[currcons].d->vc_origin)
6 #define scr_top		(vc_cons[currcons].d->vc_scr_top)
7 #define visible_origin  (vc_cons[currcons].d->vc_visible_origin)
8 #define scr_end		(vc_cons[currcons].d->vc_scr_end)
9 #define pos		(vc_cons[currcons].d->vc_pos)
10 #define top		(vc_cons[currcons].d->vc_top)
11 #define bottom		(vc_cons[currcons].d->vc_bottom)
12 #define x		(vc_cons[currcons].d->vc_x)
13 #define y		(vc_cons[currcons].d->vc_y)
14 #define vc_state	(vc_cons[currcons].d->vc_state)
15 #define npar		(vc_cons[currcons].d->vc_npar)
16 #define par		(vc_cons[currcons].d->vc_par)
17 #define ques		(vc_cons[currcons].d->vc_ques)
18 #define attr		(vc_cons[currcons].d->vc_attr)
19 #define saved_x		(vc_cons[currcons].d->vc_saved_x)
20 #define saved_y		(vc_cons[currcons].d->vc_saved_y)
21 #define translate	(vc_cons[currcons].d->vc_translate)
22 #define G0_charset	(vc_cons[currcons].d->vc_G0_charset)
23 #define G1_charset	(vc_cons[currcons].d->vc_G1_charset)
24 #define saved_G0	(vc_cons[currcons].d->vc_saved_G0)
25 #define saved_G1	(vc_cons[currcons].d->vc_saved_G1)
26 #define utf		(vc_cons[currcons].d->vc_utf)
27 #define utf_count	(vc_cons[currcons].d->vc_utf_count)
28 #define utf_char	(vc_cons[currcons].d->vc_utf_char)
29 #define video_erase_char (vc_cons[currcons].d->vc_video_erase_char)
30 #define disp_ctrl	(vc_cons[currcons].d->vc_disp_ctrl)
31 #define toggle_meta	(vc_cons[currcons].d->vc_toggle_meta)
32 #define decscnm		(vc_cons[currcons].d->vc_decscnm)
33 #define decom		(vc_cons[currcons].d->vc_decom)
34 #define decawm		(vc_cons[currcons].d->vc_decawm)
35 #define deccm		(vc_cons[currcons].d->vc_deccm)
36 #define decim		(vc_cons[currcons].d->vc_decim)
37 #define deccolm		(vc_cons[currcons].d->vc_deccolm)
38 #define need_wrap	(vc_cons[currcons].d->vc_need_wrap)
39 #define kmalloced	(vc_cons[currcons].d->vc_kmalloced)
40 #define report_mouse	(vc_cons[currcons].d->vc_report_mouse)
41 #define color		(vc_cons[currcons].d->vc_color)
42 #define s_color		(vc_cons[currcons].d->vc_s_color)
43 #define def_color	(vc_cons[currcons].d->vc_def_color)
44 #define foreground	(color & 0x0f)
45 #define background	(color & 0xf0)
46 #define charset		(vc_cons[currcons].d->vc_charset)
47 #define s_charset	(vc_cons[currcons].d->vc_s_charset)
48 #define	intensity	(vc_cons[currcons].d->vc_intensity)
49 #define	underline	(vc_cons[currcons].d->vc_underline)
50 #define	blink		(vc_cons[currcons].d->vc_blink)
51 #define	reverse		(vc_cons[currcons].d->vc_reverse)
52 #define	s_intensity	(vc_cons[currcons].d->vc_s_intensity)
53 #define	s_underline	(vc_cons[currcons].d->vc_s_underline)
54 #define	s_blink		(vc_cons[currcons].d->vc_s_blink)
55 #define	s_reverse	(vc_cons[currcons].d->vc_s_reverse)
56 #define	ulcolor		(vc_cons[currcons].d->vc_ulcolor)
57 #define	halfcolor	(vc_cons[currcons].d->vc_halfcolor)
58 #define tab_stop	(vc_cons[currcons].d->vc_tab_stop)
59 #define palette		(vc_cons[currcons].d->vc_palette)
60 #define bell_pitch	(vc_cons[currcons].d->vc_bell_pitch)
61 #define bell_duration	(vc_cons[currcons].d->vc_bell_duration)
62 #define cursor_type	(vc_cons[currcons].d->vc_cursor_type)
63 #define display_fg	(vc_cons[currcons].d->vc_display_fg)
64 #define complement_mask (vc_cons[currcons].d->vc_complement_mask)
65 #define s_complement_mask (vc_cons[currcons].d->vc_s_complement_mask)
66 #define hi_font_mask	(vc_cons[currcons].d->vc_hi_font_mask)
67 
68 #define vcmode		(vt_cons[currcons]->vc_mode)
69 
70 #define structsize	(sizeof(struct vc_data) + sizeof(struct vt_struct))
71