summaryrefslogtreecommitdiff
path: root/src/hardware/pci.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/hardware/pci.c')
-rw-r--r--src/hardware/pci.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/hardware/pci.c b/src/hardware/pci.c
index 0945a9a..bba0182 100644
--- a/src/hardware/pci.c
+++ b/src/hardware/pci.c
@@ -183,12 +183,9 @@ driver_t *pci_device_get_driver( pci_device_descriptor_t *descriptor, interrupt_
switch( descriptor->class_id ) {
case 0x03: // graphics
switch( descriptor->subclass_id ) {
- case 0x00: // VGA
- // TODO: we need a memory manager, otherwise we
- // cannot load dynamically a VGA driver here!
- // for now, let's put it directly into kernel.c
- // for testing
- // vga_t *vga = malloc( sizeof( vga_t ), interrupt, context );
+ case 0x00: // Generic VGA
+ driver = (driver_t *)malloc( sizeof( vga_t ) );
+ vga_init( (vga_t *)driver, interrupt, context );
break;
}
break;