Project

General

Profile

Revision 126

controller in half

View differences:

graphics.h
12 12
#define SET_BLU(n)          (((n)&0xFF)      )
13 13
#define SET_COLOR(r,g,b)    (SET_RED(r) | SET_GRE(g) | SET_BLU(b))
14 14
#define FAR2PHYS(n)         ((((n)>>12) & 0xFFFFFFF0) + ((n) & 0x0000FFFF))
15
#define PHYS2VIRT(n)
16 15

  
16
typedef struct __attribute__((packed)) {
17

  
18
    char        VbeSignature[4]     ;
19
    uint16_t    VbeVersion          ;
20
    uint32_t    OemStringPtr        ;
21
    uint8_t     Capabilities[4]     ;
22
    uint32_t    VideoModePtr        ;
23
    uint16_t    TotalMemory         ;
24

  
25
    uint16_t    OemSoftwareRev      ;
26
    uint32_t    OemVendorNamePtr    ;
27
    uint32_t    OemProductNamePtr   ;
28
    uint32_t    OemProductRevPtr    ;
29
    char        Reserved[222]       ;
30

  
31
    char        OemData[256]        ;
32
} VbeInfoBlock;
33

  
17 34
int (get_permission)(unsigned int base_addr, unsigned int size);
18 35

  
19 36
//int (get_permissions_first_mbyte)(void);
20 37

  
21 38
int (vbe_get_mode_information)(uint16_t mode);
22 39

  
40
int (vbe_get_controller_information)(vg_vbe_contr_info_t *info_p);
41

  
23 42
phys_bytes get_phys_addr(void);
24 43

  
25 44
unsigned int get_vram_size(void);

Also available in: Unified diff