Subversion Repositories freemyipod

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
881 theseven 1
#ifndef __LIB_FBCONSOLE_FBCONSOLE_H__
2
#define __LIB_FBCONSOLE_FBCONSOLE_H__
3
 
4
#include "global.h"
5
#include "interface/framebuffer/framebuffer.h"
6
#include "interface/textrenderer/textrenderer.h"
7
 
8
 
9
struct __attribute__((packed,aligned(4))) fbconsole_config
10
{
11
    const struct framebuffer_instance* fb;
12
    const struct textrenderer_instance* renderer;
13
    uint16_t x;
14
    uint16_t y;
15
    uint16_t w;
16
    uint16_t h;
17
};
18
 
19
struct __attribute__((packed,aligned(4))) fbconsole_state
20
{
21
    uint32_t fgcolor;
22
    uint32_t bgcolor;
23
    uint16_t cwidth;
24
    uint16_t cheight;
25
    uint16_t cpos_x;
26
    uint16_t cpos_y;
27
    uint16_t dirty_xs;
28
    uint16_t dirty_xe;
29
    uint16_t dirty_ys;
30
    uint16_t dirty_ye;
31
    uint16_t meta_arg1;
32
    uint16_t meta_arg2;
33
    uint32_t dirty : 1;
34
    uint32_t reserved1 : 1;
35
    uint32_t escape : 1;
36
    uint32_t meta : 1;
37
    uint32_t badmeta : 1;
38
    uint32_t secondarg : 1;
39
    uint32_t arg1_present : 1;
40
    uint32_t arg2_present : 1;
41
    uint32_t bgcolcode : 3;
42
    uint32_t fgcolcode : 3;
43
    uint32_t intensity : 1;
44
    uint32_t inverse : 1;
45
    uint16_t reserved2;
46
};
47
 
48
extern const struct console_driver fbconsole_driver;
49
 
50
 
51
#endif