summaryrefslogtreecommitdiff
path: root/src/hardware
diff options
context:
space:
mode:
Diffstat (limited to 'src/hardware')
-rw-r--r--src/hardware/pci.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/hardware/pci.c b/src/hardware/pci.c
index 6b124b2..6aae01e 100644
--- a/src/hardware/pci.c
+++ b/src/hardware/pci.c
@@ -3,6 +3,8 @@
#include "string.h"
#include "stdio.h"
+#include "drivers/video/vga.h"
+
#define NOF_BUSES 8
#define NOF_DEVICES_PER_BUS 32
#define NOF_FUNCTIONS_PER_DEVICE 8
@@ -176,6 +178,11 @@ driver_t *pci_device_get_driver( pci_device_descriptor_t *descriptor, interrupt_
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 ) );
break;
}
break;