diff options
Diffstat (limited to 'src/vga.h')
-rw-r--r-- | src/vga.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -1,6 +1,8 @@ #ifndef VGA_H #define VGA_H +#include "port.h" + enum { VGA_DEFAULT_RES_X = 80, VGA_DEFAULT_RES_Y = 25 @@ -32,12 +34,15 @@ typedef struct vga_t { int cursor_y; // current cursor position Y vga_color_t color; vga_color_t background_color; + port8_t crtc_index_port; + port8_t crtc_data_port; } vga_t; void vga_init( vga_t *vga ); void vga_clear_screen( vga_t *vga ); void vga_set_cursor( vga_t *vga, const int x, const int y ); void vga_set_cursor_from_hardware( vga_t *vga ); +void vga_set_cursor_on_hardware( vga_t *vga ); int vga_get_cursor_x( vga_t *vga ); int vga_get_cursor_y( vga_t *vga ); void vga_set_color( vga_t *vga, const vga_color_t color ); @@ -46,6 +51,7 @@ void vga_put_char_at( vga_t *vga, const int x, const int y, const char c ); void vga_put_string_at( vga_t *vga, const int x, const int y, const char *s ); void vga_put_char( vga_t *vga, const char c ); void vga_put_string( vga_t *vga, const char *s ); +void vga_put_hex( vga_t *vga, const uint32_t v ); void vga_put_newline( vga_t *vga ); #endif /* VGA_H */ |