.. | .. |
---|
12 | 12 | #include <linux/vt_buffer.h> |
---|
13 | 13 | |
---|
14 | 14 | struct tty_struct; |
---|
15 | | - |
---|
16 | | -struct tty_struct; |
---|
17 | 15 | struct vc_data; |
---|
18 | 16 | |
---|
19 | 17 | extern void clear_selection(void); |
---|
20 | | -extern int set_selection(const struct tiocl_selection __user *sel, struct tty_struct *tty); |
---|
| 18 | +extern int set_selection_user(const struct tiocl_selection __user *sel, |
---|
| 19 | + struct tty_struct *tty); |
---|
| 20 | +extern int set_selection_kernel(struct tiocl_selection *v, |
---|
| 21 | + struct tty_struct *tty); |
---|
21 | 22 | extern int paste_selection(struct tty_struct *tty); |
---|
22 | 23 | extern int sel_loadlut(char __user *p); |
---|
23 | 24 | extern int mouse_reporting(void); |
---|
.. | .. |
---|
32 | 33 | extern unsigned char default_grn[]; |
---|
33 | 34 | extern unsigned char default_blu[]; |
---|
34 | 35 | |
---|
35 | | -extern unsigned short *screen_pos(struct vc_data *vc, int w_offset, int viewed); |
---|
36 | | -extern u16 screen_glyph(struct vc_data *vc, int offset); |
---|
37 | | -extern u32 screen_glyph_unicode(struct vc_data *vc, int offset); |
---|
| 36 | +extern unsigned short *screen_pos(const struct vc_data *vc, int w_offset, |
---|
| 37 | + bool viewed); |
---|
| 38 | +extern u16 screen_glyph(const struct vc_data *vc, int offset); |
---|
| 39 | +extern u32 screen_glyph_unicode(const struct vc_data *vc, int offset); |
---|
38 | 40 | extern void complement_pos(struct vc_data *vc, int offset); |
---|
39 | | -extern void invert_screen(struct vc_data *vc, int offset, int count, int shift); |
---|
| 41 | +extern void invert_screen(struct vc_data *vc, int offset, int count, bool viewed); |
---|
40 | 42 | |
---|
41 | | -extern void getconsxy(struct vc_data *vc, unsigned char *p); |
---|
42 | | -extern void putconsxy(struct vc_data *vc, unsigned char *p); |
---|
| 43 | +extern void getconsxy(const struct vc_data *vc, unsigned char xy[static 2]); |
---|
| 44 | +extern void putconsxy(struct vc_data *vc, unsigned char xy[static const 2]); |
---|
43 | 45 | |
---|
44 | | -extern u16 vcs_scr_readw(struct vc_data *vc, const u16 *org); |
---|
| 46 | +extern u16 vcs_scr_readw(const struct vc_data *vc, const u16 *org); |
---|
45 | 47 | extern void vcs_scr_writew(struct vc_data *vc, u16 val, u16 *org); |
---|
46 | 48 | extern void vcs_scr_updated(struct vc_data *vc); |
---|
47 | 49 | |
---|
48 | 50 | extern int vc_uniscr_check(struct vc_data *vc); |
---|
49 | | -extern void vc_uniscr_copy_line(struct vc_data *vc, void *dest, int viewed, |
---|
| 51 | +extern void vc_uniscr_copy_line(const struct vc_data *vc, void *dest, |
---|
| 52 | + bool viewed, |
---|
50 | 53 | unsigned int row, unsigned int col, |
---|
51 | 54 | unsigned int nr); |
---|
52 | 55 | |
---|