Project

General

Profile

Statistics
| Revision:

root / lab5 / graphics_macros.h @ 355

History | View | Annotate | Download (990 Bytes)

1
#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
#define MBYTE_BASE  0x0
8
#define MBYTE_SIZE  0xFFFFF
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
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
#define DIRECT_1280_1024_565    0x11A
26
#define DIRECT_1280_1024_888    0x11B
27
#define LINEAR_FRAME_BUFFER_MD  BIT(14)
28

    
29
// Colors
30
#define BLACK               0x00
31

    
32
#endif /* end of include guard: GRAPHICS_MACROS_H_INCLUDED */