Project

General

Profile

Statistics
| Revision:

root / lab5 / graphics_macros.h @ 98

History | View | Annotate | Download (887 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
// Graphics Functions
8
#define VBE_CTRL_INFO       0x00 /** @brief Get VBE Controller Information */
9
#define VBE_MD_INFO         0x01 /** @brief Get VBE Mode Information */
10
#define SET_VBE_MD          0x02 /** @brief Set VBE Mode */
11
12
// Error codes (AH)
13
#define AH_SUCCESS          0x00
14
#define AH_FUNC_CALL_FAIL   0x01
15
#define AH_FUNC_NOT_SUPP    0x02
16
#define AH_FUNC_INVALID     0x03
17
18
// Graphics modes
19
#define INDEXED_1024_768        0x105
20
#define DIRECT_640_480          0x110
21
#define DIRECT_800_600          0x115
22
#define DIRECT_1280_1024        0x11A
23
#define DIRECT_1152_864         0x14C
24
#define LINEAR_FRAME_BUFFER_MD  BIT(14)
25
26
#endif /* end of include guard: GRAPHICS_MACROS_H_INCLUDED */