Commit extra files I forgot to "svn add" from the previous commit :(

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@siriusit.co.uk>


git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@697 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
Mark Cave-Ayland
2010-03-14 20:19:46 +00:00
committed by Mark Cave-Ayland
parent bf897f1619
commit d60e3b62a4
3 changed files with 40 additions and 0 deletions

20
include/drivers/vga.h Normal file
View File

@@ -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 */

View File

@@ -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 */

11
include/packages/video.h Normal file
View File

@@ -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 */