Project

General

Profile

Revision 324

corrected some more things

View differences:

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

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

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

  
19 19
// Error codes (AH)
20 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 */
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 24

  
25 25
/// MACROS
26
//#define FAR2PHYS(n)         ((((n)>>12) & 0xFFFFFFF0) + ((n) & 0x0000FFFF))
26
#define FAR2PHYS(n)         ((((n)>>12) & 0xFFFFFFF0) + ((n) & 0x0000FFFF))
27 27

  
28 28
/// STRUCT
29 29
typedef struct __attribute__((packed)) {

Also available in: Unified diff