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