root / proj / graphics_macros.h @ 165
History | View | Annotate | Download (1.34 KB)
1 | 144 | up20180655 | #ifndef GRAPHICS_MACROS_H_INCLUDED
|
---|---|---|---|
2 | #define GRAPHICS_MACROS_H_INCLUDED
|
||
3 | |||
4 | #define VC_BIOS_SERV 0x10 /** @brief Interrupt service of video card */ |
||
5 | #define VBE_CALL 0x4F /** @brief VBE call function specifier */ |
||
6 | |||
7 | #define MBYTE_BASE 0x0 /** @brief Base address (zero address) */ |
||
8 | #define MBYTE_SIZE 0xFFFFF /** @brief Size of a mebibyte */ |
||
9 | |||
10 | // Graphics Functions
|
||
11 | #define VBE_CTRL_INFO 0x00 /** @brief Get VBE Controller Information */ |
||
12 | #define VBE_MD_INFO 0x01 /** @brief Get VBE Mode Information */ |
||
13 | #define SET_VBE_MD 0x02 /** @brief Set VBE Mode */ |
||
14 | |||
15 | // Error codes (AH)
|
||
16 | #define AH_SUCCESS 0x00 /** @brief Success code on BIOS call */ |
||
17 | #define AH_FUNC_CALL_FAIL 0x01 /** @brief Function call failed */ |
||
18 | #define AH_FUNC_NOT_SUPP 0x02 /** @brief Function call is not supported in current HW configuration */ |
||
19 | #define AH_FUNC_INVALID 0x03 /** @brief Invalid function in current video mode */ |
||
20 | |||
21 | // Graphics modes
|
||
22 | #define INDEXED_1024_768 0x105 |
||
23 | #define DIRECT_640_480 0x110 |
||
24 | #define DIRECT_800_600 0x115 |
||
25 | #define DIRECT_1280_1024_565 0x11A |
||
26 | #define DIRECT_1280_1024_888 0x11B |
||
27 | #define LINEAR_FRAME_BUFFER_MD BIT(14) |
||
28 | |||
29 | // Colors in RBG (8 bit)
|
||
30 | #define BLACK 0x000000 |
||
31 | |||
32 | #endif /* end of include guard: GRAPHICS_MACROS_H_INCLUDED */ |