diff --git a/include/drivers/vga.h b/include/drivers/vga.h new file mode 100644 index 0000000..a4951f8 --- /dev/null +++ b/include/drivers/vga.h @@ -0,0 +1,20 @@ +#ifndef VIDEO_VGA_H +#define VIDEO_VGA_H + +/* drivers/vga_load_regs.c */ +void vga_load_regs(void); + +/* drivers/vga_set_mode.c */ +void vga_set_gmode (void); +void vga_set_amode (void); +void vga_font_load(unsigned char *vidmem, const unsigned char *font, int height, int num_chars); + +/* 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); +void vga_vbe_init(const char *path, unsigned long fb, uint32_t fb_size, + unsigned long rom, uint32_t rom_size); + +extern volatile uint32_t *dac; + +#endif /* VIDEO_VGA_H */ diff --git a/include/libopenbios/console.h b/include/libopenbios/console.h new file mode 100644 index 0000000..54b21f8 --- /dev/null +++ b/include/libopenbios/console.h @@ -0,0 +1,9 @@ +#ifndef VIDEO_CONSOLE_H +#define VIDEO_CONSOLE_H + +/* libopenbios/console_common.c */ +int console_draw_str(const char *str); +int console_init(void); +void console_close(void); + +#endif /* VIDEO_CONSOLE_H */ diff --git a/include/packages/video.h b/include/packages/video.h new file mode 100644 index 0000000..1e013b6 --- /dev/null +++ b/include/packages/video.h @@ -0,0 +1,11 @@ +#ifndef VIDEO_SUBR_H +#define VIDEO_SUBR_H + +/* packages/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); + +#endif /* VIDEO_SUBR_H */