Project

General

Profile

Revision 253

commited some stuff

View differences:

graph.c
5 5
#include "errors.h"
6 6
#include <stdio.h>
7 7

  
8
#define VC_BIOS_SERV  0x10 /** @brief Interrupt service of video card */
9
#define VBE_CALL      0x4F /** @brief VBE call function specifier */
10

  
11
#define MBYTE_BASE  0x0         /** @brief Base address (zero address) */
12
#define MBYTE_SIZE  0xFFFFF     /** @brief Size of a mebibyte */
13

  
14
// Graphics Functions
15
#define VBE_CTRL_INFO       0x00    /** @brief Get VBE Controller Information */
16
#define VBE_MD_INFO         0x01    /** @brief Get VBE Mode Information */
17
#define SET_VBE_MD          0x02    /** @brief Set VBE Mode */
18

  
19
// Error codes (AH)
20
#define AH_SUCCESS          0x00    /** @brief Success code on BIOS call */
21
#define AH_FUNC_CALL_FAIL   0x01    /** @brief Function call failed */
22
#define AH_FUNC_NOT_SUPP    0x02    /** @brief Function call is not supported in current HW configuration */
23
#define AH_FUNC_INVALID     0x03    /** @brief Invalid function in current video mode */
24

  
25
// Graphics modes
26
#define INDEXED_1024_768        0x105
27
#define DIRECT_640_480_888      0x110
28
#define DIRECT_800_600_888      0x115
29
#define DIRECT_1024_768_888     0x118
30
#define DIRECT_1280_1024_565    0x11A
31
#define DIRECT_1280_1024_888    0x11B
32
#define LINEAR_FRAME_BUFFER_MD  BIT(14)
33

  
34

  
35

  
36

  
37

  
8 38
/// MACROS
9 39
#define FAR2PHYS(n)         ((((n)>>12) & 0xFFFFFFF0) + ((n) & 0x0000FFFF))
10 40

  

Also available in: Unified diff