Commit | Line | Data |
---|---|---|
b2441318 | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
1da177e4 LT |
2 | /* |
3 | * selection.h | |
4 | * | |
5 | * Interface between console.c, tty_io.c, vt.c, vc_screen.c and selection.c | |
6 | */ | |
7 | ||
8 | #ifndef _LINUX_SELECTION_H_ | |
9 | #define _LINUX_SELECTION_H_ | |
10 | ||
11 | #include <linux/tiocl.h> | |
12 | #include <linux/vt_buffer.h> | |
13 | ||
14 | extern struct vc_data *sel_cons; | |
120c0b6d | 15 | struct tty_struct; |
1da177e4 LT |
16 | |
17 | extern void clear_selection(void); | |
496124e5 OK |
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); | |
1da177e4 LT |
22 | extern int paste_selection(struct tty_struct *tty); |
23 | extern int sel_loadlut(char __user *p); | |
24 | extern int mouse_reporting(void); | |
25 | extern void mouse_report(struct tty_struct * tty, int butt, int mrx, int mry); | |
26 | ||
27 | extern int console_blanked; | |
28 | ||
8ede5cce | 29 | extern const unsigned char color_table[]; |
91e74ca5 JS |
30 | extern unsigned char default_red[]; |
31 | extern unsigned char default_grn[]; | |
32 | extern unsigned char default_blu[]; | |
1da177e4 LT |
33 | |
34 | extern unsigned short *screen_pos(struct vc_data *vc, int w_offset, int viewed); | |
35 | extern u16 screen_glyph(struct vc_data *vc, int offset); | |
9bfdc261 | 36 | extern u32 screen_glyph_unicode(struct vc_data *vc, int offset); |
1da177e4 LT |
37 | extern void complement_pos(struct vc_data *vc, int offset); |
38 | extern void invert_screen(struct vc_data *vc, int offset, int count, int shift); | |
39 | ||
40 | extern void getconsxy(struct vc_data *vc, unsigned char *p); | |
41 | extern void putconsxy(struct vc_data *vc, unsigned char *p); | |
42 | ||
43 | extern u16 vcs_scr_readw(struct vc_data *vc, const u16 *org); | |
44 | extern void vcs_scr_writew(struct vc_data *vc, u16 val, u16 *org); | |
432c9ed2 | 45 | extern void vcs_scr_updated(struct vc_data *vc); |
1da177e4 | 46 | |
d21b0be2 | 47 | extern int vc_uniscr_check(struct vc_data *vc); |
708d0bff | 48 | extern void vc_uniscr_copy_line(struct vc_data *vc, void *dest, int viewed, |
d21b0be2 NP |
49 | unsigned int row, unsigned int col, |
50 | unsigned int nr); | |
51 | ||
1da177e4 | 52 | #endif |