summaryrefslogtreecommitdiff
path: root/src/drivers/video/vga.h
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2017-06-17 08:47:07 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2017-06-17 08:47:07 +0200
commiteace3b5f238e5e4eaf4c2ffcbf741616a0d6a25f (patch)
tree6b4ceb442fe2729c8d22aa1231bb20d8144ea076 /src/drivers/video/vga.h
parent0061eeb77f73a7832c4c72aba8dd56dc91743171 (diff)
downloadabaos-eace3b5f238e5e4eaf4c2ffcbf741616a0d6a25f.tar.gz
abaos-eace3b5f238e5e4eaf4c2ffcbf741616a0d6a25f.tar.bz2
added the most complex VGA mode (640x480x4, only timings for now)
added graphics and text mode type parameter to vga_mode_t
Diffstat (limited to 'src/drivers/video/vga.h')
-rw-r--r--src/drivers/video/vga.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/drivers/video/vga.h b/src/drivers/video/vga.h
index 8b7ebdc..86897c4 100644
--- a/src/drivers/video/vga.h
+++ b/src/drivers/video/vga.h
@@ -12,7 +12,13 @@
#define NOF_MODE_REGS 66
+typedef enum {
+ VGA_MODE_TYPE_TEXT,
+ VGA_MODE_TYPE_GRAPHICS
+} vga_mode_type_t;
+
typedef struct {
+ vga_mode_type_t mode_type;
int x;
int y;
int color_depth;
@@ -48,7 +54,7 @@ void vga_deactivate( void *obj );
void vga_deinit( void *obj );
void vga_print_info( void *obj );
-vga_mode_t vga_make_mode( const int x, const int y, const int color_depth );
+vga_mode_t vga_make_mode( const vga_mode_type_t mode_type, const int x, const int y, const int color_depth );
bool vga_set_mode( vga_t *vga, const vga_mode_t mode );
bool vga_supports_mode( const vga_mode_t mode );