11da177e4SLinus Torvalds /* 21da177e4SLinus Torvalds * selection.h 31da177e4SLinus Torvalds * 41da177e4SLinus Torvalds * Interface between console.c, tty_io.c, vt.c, vc_screen.c and selection.c 51da177e4SLinus Torvalds */ 61da177e4SLinus Torvalds 71da177e4SLinus Torvalds #ifndef _LINUX_SELECTION_H_ 81da177e4SLinus Torvalds #define _LINUX_SELECTION_H_ 91da177e4SLinus Torvalds 101da177e4SLinus Torvalds #include <linux/tiocl.h> 111da177e4SLinus Torvalds #include <linux/vt_buffer.h> 121da177e4SLinus Torvalds 130aa42632SAndrew Morton struct tty_struct; 140aa42632SAndrew Morton 151da177e4SLinus Torvalds extern struct vc_data *sel_cons; 16120c0b6dSRalf Baechle struct tty_struct; 171da177e4SLinus Torvalds 181da177e4SLinus Torvalds extern void clear_selection(void); 191da177e4SLinus Torvalds extern int set_selection(const struct tiocl_selection __user *sel, struct tty_struct *tty); 201da177e4SLinus Torvalds extern int paste_selection(struct tty_struct *tty); 211da177e4SLinus Torvalds extern int sel_loadlut(char __user *p); 221da177e4SLinus Torvalds extern int mouse_reporting(void); 231da177e4SLinus Torvalds extern void mouse_report(struct tty_struct * tty, int butt, int mrx, int mry); 241da177e4SLinus Torvalds 251da177e4SLinus Torvalds extern int console_blanked; 261da177e4SLinus Torvalds 27*8ede5cceSJiri Slaby extern const unsigned char color_table[]; 281da177e4SLinus Torvalds extern int default_red[]; 291da177e4SLinus Torvalds extern int default_grn[]; 301da177e4SLinus Torvalds extern int default_blu[]; 311da177e4SLinus Torvalds 321da177e4SLinus Torvalds extern unsigned short *screen_pos(struct vc_data *vc, int w_offset, int viewed); 331da177e4SLinus Torvalds extern u16 screen_glyph(struct vc_data *vc, int offset); 341da177e4SLinus Torvalds extern void complement_pos(struct vc_data *vc, int offset); 351da177e4SLinus Torvalds extern void invert_screen(struct vc_data *vc, int offset, int count, int shift); 361da177e4SLinus Torvalds 371da177e4SLinus Torvalds extern void getconsxy(struct vc_data *vc, unsigned char *p); 381da177e4SLinus Torvalds extern void putconsxy(struct vc_data *vc, unsigned char *p); 391da177e4SLinus Torvalds 401da177e4SLinus Torvalds extern u16 vcs_scr_readw(struct vc_data *vc, const u16 *org); 411da177e4SLinus Torvalds extern void vcs_scr_writew(struct vc_data *vc, u16 val, u16 *org); 42432c9ed2SNicolas Pitre extern void vcs_scr_updated(struct vc_data *vc); 431da177e4SLinus Torvalds 441da177e4SLinus Torvalds #endif 45