From 8fb9efc08388d3a866cfdf911b07e372de24b556 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Wed, 14 Jun 2017 20:48:16 +0200 Subject: got switch to graphical VGA mode working --- src/hardware/pci.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/hardware') 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; -- cgit v1.2.3-54-g00ecf