1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-07 05:47:36 +00:00
serenity/Kernel/BochsVGADevice.h
Andreas Kling a1b63bb6d4 Bootloader: Locate the kernel's data segment and clear it.
This was a constant source of stupid bugs and I kept postponing it because
I wasn't in the mood to write assembly code. Until now! :^)
2019-02-06 16:02:10 +01:00

24 lines
535 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();
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;
};