2006-07-18 21:48:00 +00:00
|
|
|
#ifndef VIDEO_SUBR_H
|
|
|
|
|
#define VIDEO_SUBR_H
|
|
|
|
|
|
2008-12-20 17:15:47 +00:00
|
|
|
/* drivers/vga_load_regs.c */
|
2006-07-18 21:48:00 +00:00
|
|
|
void vga_load_regs(void);
|
2008-12-20 17:15:47 +00:00
|
|
|
|
|
|
|
|
/* drivers/vga_set_mode.c */
|
2006-07-18 21:48:00 +00:00
|
|
|
void vga_set_gmode (void);
|
2008-12-20 17:15:47 +00:00
|
|
|
void vga_set_amode (void);
|
2006-07-18 21:48:00 +00:00
|
|
|
void vga_font_load(unsigned char *vidmem, const unsigned char *font, int height, int num_chars);
|
2008-12-20 17:15:47 +00:00
|
|
|
|
|
|
|
|
/* drivers/vga_vbe.c */
|
|
|
|
|
void vga_set_color(int i, unsigned int r, unsigned int g, unsigned int b);
|
|
|
|
|
void vga_vbe_set_mode(int width, int height, int depth);
|
2009-01-09 20:55:34 +00:00
|
|
|
void vga_vbe_init(const char *path, unsigned long fb, uint32_t fb_size,
|
2008-12-20 17:15:47 +00:00
|
|
|
unsigned long rom, uint32_t rom_size);
|
2006-07-18 21:48:00 +00:00
|
|
|
|
2009-01-02 14:53:33 +00:00
|
|
|
/* modules/video.c */
|
|
|
|
|
int video_get_res(int *w, int *h);
|
|
|
|
|
void draw_pixel(int x, int y, int colind);
|
|
|
|
|
void set_color(int ind, unsigned long color);
|
|
|
|
|
void video_scroll(int height);
|
|
|
|
|
void init_video(unsigned long fb, int width, int height, int depth, int rb);
|
|
|
|
|
|
|
|
|
|
/* modules/console_common.c */
|
|
|
|
|
int console_draw_str(const char *str);
|
|
|
|
|
int console_init(void);
|
|
|
|
|
void console_close(void);
|
|
|
|
|
void cls(void);
|
|
|
|
|
|
|
|
|
|
extern volatile uint32_t *dac;
|
|
|
|
|
|
2006-07-18 21:48:00 +00:00
|
|
|
#endif /* VIDEO_SUBR_H */
|