diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2017-06-14 20:48:16 +0200 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2017-06-14 20:48:16 +0200 |
commit | 8fb9efc08388d3a866cfdf911b07e372de24b556 (patch) | |
tree | 3afaf07e27fb37bd5a88b187d505137abdaa817b /src/hardware | |
parent | 7a3b38c6462587657f20d684a833f0264de230b5 (diff) | |
download | abaos-8fb9efc08388d3a866cfdf911b07e372de24b556.tar.gz abaos-8fb9efc08388d3a866cfdf911b07e372de24b556.tar.bz2 |
got switch to graphical VGA mode working
Diffstat (limited to 'src/hardware')
-rw-r--r-- | src/hardware/pci.c | 7 |
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; |