Subversion Repositories Kolibri OS

Rev

Rev 2344 | Rev 2352 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2340 Serge 1
 
2
typedef struct tag_display display_t;
3
4
 
5
{
6
    u32  *table;
7
    u32   next;
8
    u32   avail;
9
    u32   count;
10
};
11
12
 
13
14
 
15
u32  alloc_handle(struct hman *man);
16
int free_handle(struct hman *man, u32 handle);
17
18
 
19
        ((man)->table[(handle)-1])
20
21
 
22
        ((man)->table[(handle)-1]) = (u32)(val)
23
24
 
25
 
26
{
27
    uint32_t   magic;
28
    void      *destroy;
29
    kobj_t    *fd;
30
    kobj_t    *bk;
31
    uint32_t   pid;
32
};
33
34
 
35
{
36
    kobj_t   header;
37
38
 
2344 Serge 39
    void    *uaddr;
40
41
 
42
    u32     gaddr;
43
44
 
45
    u32     height;
46
    u32     max_width;
47
    u32     max_height;
48
49
 
50
    struct drm_i915_gem_object *obj;
2340 Serge 51
}bitmap_t;
52
53
 
54
 
2344 Serge 55
{
2340 Serge 56
    u32     handle;       // ignored
2344 Serge 57
    void   *data;         // ignored
58
59
 
60
    u32     height;
61
    u32     pitch;        // ignored
62
63
 
64
    u32     max_height;
65
    u32     format;       // reserved mbz
66
};
2340 Serge 67
68
 
2351 Serge 69
{
70
    uint32_t  idx;
71
    union
72
    {
73
        uint32_t opt[2];
74
        struct {
75
            uint32_t max_tex_width;
76
            uint32_t max_tex_height;
77
        }cap1;
78
    };
79
}hwcaps_t;
80
81
 
82
#define HW_TEX_BLIT         (1<<1)      /* stretch blit             */
83
#define HW_VID_BLIT         (1<<2)      /* planar and packed video  */
84
                                        /*  3 - 63 reserved         */
85
86
 
87
int create_surface(struct io_call_10 *pbitmap);
2344 Serge 88
int init_bitmaps();
2342 Serge 89