mirror of
https://github.com/RGBCube/serenity
synced 2025-07-07 05:47:36 +00:00

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! :^)
24 lines
535 B
C++
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;
|
|
};
|