File: /usr/src/linux/drivers/sgi/char/gconsole.h

1     /*
2      * This is a temporary measure, we should eventually migrate to
3      * Gert's generic graphic console code.
4      */
5     
6     #define cmapsz 8192
7     #define CHAR_HEIGHT  16
8     
9     struct console_ops {
10     	void (*set_origin)(unsigned short offset);
11     	void (*hide_cursor)(void);
12     	void (*set_cursor)(int currcons);
13     	void (*get_scrmem)(int currcons);
14     	void (*set_scrmem)(int currcons, long offset);
15     	int  (*set_get_cmap)(unsigned char *arg, int set);
16     	void (*blitc)(unsigned short charattr, unsigned long addr);
17     	void (*memsetw)(void *s, unsigned short c, unsigned int count);
18     	void (*memcpyw)(unsigned short *to, unsigned short *from, unsigned int count);
19     };
20     
21     void register_gconsole (struct console_ops *);
22     
23     /* This points to the system console */
24     extern struct console_ops *gconsole;
25     
26     extern void gfx_init (const char **name);
27     
28     extern void __set_origin (unsigned short offset);
29     extern void hide_cursor (void);
30     extern unsigned char vga_font[];
31     
32     extern void disable_gconsole (void);
33     extern void enable_gconsole (void);
34