summaryrefslogtreecommitdiffstats
path: root/arch/x86/io/VGADisplayInfo.h
blob: 875e7e57e99fef5ae1e07e76cd0bbe156e2e98e7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#ifndef VGAINFOCLASS_H
#define VGAINFOCLASS_H

#include <types.h>

#define TOBG(attr) attr << 4

class VGADisplayInfo
{
    public:
        const static uint32 videoMemAddr = 0xB8000;
        const static uint16 width = 80;
        const static uint16 height = 25;
        const static uint16 tabSize = 8;
        enum class colorAttr {
            black = 0,
            blue = 1,
            green = 2,
            cyan = 3,
            red = 4,
            magenta = 5,
            brown = 6,
            gray = 7
        };
};

#endif