Subversion Repositories Kolibri OS

Rev

Rev 2361 | 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
{
7
    uint32_t   magic;
8
    void      *destroy;
9
    kobj_t    *fd;
10
    kobj_t    *bk;
11
    uint32_t   pid;
12
};
13
14
 
15
{
16
    kobj_t   header;
17
18
 
2344 Serge 19
    void    *uaddr;
20
21
 
22
    u32     gaddr;
23
24
 
25
    u32     height;
26
    u32     max_width;
27
    u32     max_height;
28
    u32     page_count;
3033 serge 29
    u32     max_count;
30
2344 Serge 31
 
32
    struct drm_i915_gem_object *obj;
2340 Serge 33
}bitmap_t;
34
35
 
36
 
2344 Serge 37
{
2340 Serge 38
    u32     handle;       // ignored
2344 Serge 39
    void   *data;         // ignored
40
41
 
42
    u32     height;
43
    u32     pitch;        // ignored
44
45
 
46
    u32     max_height;
47
    u32     format;       // reserved mbz
48
};
2340 Serge 49
50
 
2352 Serge 51
{
52
    u32     handle;       // ignored
53
    void   *data;         // ignored
54
55
 
56
    u32     height;
57
    u32     pitch;        // ignored
58
};
59
60
 
61
 
2351 Serge 62
{
63
    uint32_t  idx;
64
    union
65
    {
66
        uint32_t opt[2];
67
        struct {
68
            uint32_t max_tex_width;
69
            uint32_t max_tex_height;
70
        }cap1;
71
    };
72
}hwcaps_t;
73
74
 
75
#define HW_TEX_BLIT         (1<<1)      /* stretch blit             */
76
#define HW_VID_BLIT         (1<<2)      /* planar and packed video  */
77
                                        /*  3 - 63 reserved         */
78
struct context
2361 Serge 79
{
80
    kobj_t   header;
81
82
 
3033 serge 83
    u32       cmd_buffer;
84
    u32       cmd_offset;
85
86
 
2361 Serge 87
    u32       seqno;
88
    int       slot;
89
3033 serge 90
 
2361 Serge 91
92
 
2351 Serge 93
int create_surface(struct drm_device *dev, struct io_call_10 *pbitmap);
3033 serge 94
int lock_surface(struct io_call_12 *pbitmap);
2352 Serge 95
96
 
3033 serge 97
98
 
2342 Serge 99