summaryrefslogtreecommitdiffstats
path: root/drivers/sgi/char/gconsole.h
blob: e629fe9fcd3c2cd311613dd472e996f5a514ae4b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/*
 * This is a temporary measure, we should eventually migrate to
 * Gert's generic graphic console code.
 */

#define cmapsz 8192
#define CHAR_HEIGHT  16

struct console_ops {
	void (*set_origin)(unsigned short offset);
	void (*hide_cursor)(void);
	void (*set_cursor)(int currcons);
	void (*get_scrmem)(int currcons);
	void (*set_scrmem)(int currcons, long offset);
	int  (*set_get_cmap)(unsigned char *arg, int set);
	void (*blitc)(unsigned short charattr, unsigned long addr);
	void (*memsetw)(void *s, unsigned short c, unsigned int count);
	void (*memcpyw)(unsigned short *to, unsigned short *from, unsigned int count);
};

void register_gconsole (struct console_ops *);

/* This points to the system console */
extern struct console_ops *gconsole;

extern void gfx_init (const char **name);

extern void __set_origin (unsigned short offset);
extern void hide_cursor (void);
extern unsigned char vga_font[];