diff options
| author | Michal Idziorek <m.i@gmx.at> | 2015-05-17 20:40:29 +0200 |
|---|---|---|
| committer | Michal Idziorek <m.i@gmx.at> | 2015-05-17 20:40:29 +0200 |
| commit | 042e25e19b5fc0cec1d47440c26246c886cf39f6 (patch) | |
| tree | 9f3e49ccae2ec8a48fdb34d264da3adef06f64bf /video/vesa.h | |
| parent | d98828d08eb1f6c1394f38a1df69c73fef0cfefa (diff) | |
started big cleanup!
Diffstat (limited to 'video/vesa.h')
| -rw-r--r-- | video/vesa.h | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/video/vesa.h b/video/vesa.h deleted file mode 100644 index 371e944..0000000 --- a/video/vesa.h +++ /dev/null @@ -1,47 +0,0 @@ -#include <stdint.h> - -typedef struct foolfont_struct -{ - uint8_t line[10]; //every single fool font consists of 10 lines a 8 bit - -}foolfont; - -typedef struct vbeinfo_struct{ - char VbeSignature[4]; // == "VESA" - uint16_t VbeVersion; // == 0x0300 for VBE 3.0 - uint16_t OemStringPtr[2]; // isa vbeFarPtr - uint8_t Capabilities[4]; - uint16_t VideoModePtr[2]; // isa vbeFarPtr - uint16_t TotalMemory; // as # of 64KB blocks -}vbeinfo; - - -typedef struct ModeInfoBlock { - uint16_t attributes; - uint8_t winA,winB; - uint16_t granularity; - uint16_t winsize; - uint16_t segmentA, segmentB; - uint16_t realFctPtr[2]; -// VBE_FAR(realFctPtr); - uint16_t pitch; // bytes per scanline - - uint16_t Xres, Yres; - uint8_t Wchar, Ychar, planes, bpp, banks; - uint8_t memory_model, bank_size, image_pages; - uint8_t reserved0; - - uint8_t red_mask, red_position; - uint8_t green_mask, green_position; - uint8_t blue_mask, blue_position; - uint8_t rsv_mask, rsv_position; - uint8_t directcolor_attributes; - - volatile uint32_t physbase; // your LFB (Linear Framebuffer) address ;) - uint32_t reserved1; - uint16_t reserved2; -}vbemodeinfo; - -uint32_t vesa_init(vbeinfo *info,vbemodeinfo *mode,foolfont *rawfont); -void PutConsoleChar(char c, int color); -void PutConsole(char *str, int color); |
