root / lab5 / graphics_macros.h @ 142
History | View | Annotate | Download (943 Bytes)
1 | 95 | up20180655 | #ifndef GRAPHICS_MACROS_H_INCLUDED
|
---|---|---|---|
2 | #define GRAPHICS_MACROS_H_INCLUDED
|
||
3 | |||
4 | #define VC_BIOS_SERV 0x10 /** @brief TODO */ |
||
5 | #define VBE_CALL 0x4F /** @brief TODO */ |
||
6 | |||
7 | 99 | up20180655 | #define MBYTE_BASE 0x0 |
8 | #define MBYTE_SIZE 0xFFFFF |
||
9 | |||
10 | 95 | up20180655 | // 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 |
||
17 | #define AH_FUNC_CALL_FAIL 0x01 |
||
18 | #define AH_FUNC_NOT_SUPP 0x02 |
||
19 | #define AH_FUNC_INVALID 0x03 |
||
20 | |||
21 | // Graphics modes
|
||
22 | #define INDEXED_1024_768 0x105 |
||
23 | #define DIRECT_640_480 0x110 |
||
24 | #define DIRECT_800_600 0x115 |
||
25 | 128 | up20180655 | #define DIRECT_1280_1024_565 0x11A |
26 | #define DIRECT_1280_1024_888 0x11B |
||
27 | 95 | up20180655 | #define LINEAR_FRAME_BUFFER_MD BIT(14) |
28 | |||
29 | #endif /* end of include guard: GRAPHICS_MACROS_H_INCLUDED */ |