summaryrefslogtreecommitdiff
path: root/src/drivers/video/vga.c
blob: 0462984058fcace9634375e92aeb0b40ce100786 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#include "vga.h"

#include "stdio.h"

#undef DEBUG

static vga_vtable_t vga_vtable = {
	{
	vga_activate,
	vga_deactivate,
	vga_deinit,
	vga_print_info
	}
};

void vga_init( vga_t *vga, void *context )
{
	memset( vga, 0, sizeof( vga_t ) );

	vga->context = context;

	vga->base.vtable = &vga_vtable.base;
}

void vga_activate( void *obj )
{
	puts( "Activating driver for VGA video card.." );

//	vga_t *vga = obj;
}

void vga_deactivate( void *obj )
{
	puts( "Dectivating driver for VGA video card.." );

//	vga_t *vga = obj;
}

void vga_deinit( void *obj )
{
	// nothing to do
}

void vga_print_info( void *obj )
{
	puts( "VGA video driver" );
}