Files
ladybird/Kernel/BochsVGADevice.h
Andreas Kling 731fc5a7c8 Kernel: Much improved BochsVGA (BXVGA) support.
Instead of cowboy-calling the VESA BIOS in the bootloader, find the emulator
VGA adapter by scanning the PCI bus. Then set up the desired video mode by
sending device commands.
2019-02-06 10:17:26 +01:00

26 lines
573 B
C++

#pragma once
#include <AK/Types.h>
#include <AK/AKString.h>
#include <Kernel/types.h>
// FIXME: This should be a BlockDevice once we have BlockDevice.
class BochsVGADevice {
AK_MAKE_ETERNAL
public:
static BochsVGADevice& the();
static void initialize_statics();
BochsVGADevice();
PhysicalAddress framebuffer_address() const { return m_framebuffer_address; }
void set_resolution(int width, int height);
private:
void set_register(word index, word value);
dword find_framebuffer_address();
PhysicalAddress m_framebuffer_address;
};