Rev 3033 | 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 | char *uaddr; |
3039 | serge | 20 | |
2344 | Serge | 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; |
||
3039 | serge | 53 | void *data; |
54 | u32 pitch; |
||
55 | }; |
||
56 | |||
2352 | Serge | 57 | |
3039 | serge | 58 | { |
59 | u32 handle; |
||
60 | void *data; |
||
61 | u32 new_width; |
||
62 | u32 new_height; |
||
63 | u32 pitch; |
||
64 | }; |
||
2352 | Serge | 65 | |
66 | |||
2351 | Serge | 67 | { |
68 | uint32_t idx; |
||
69 | union |
||
70 | { |
||
71 | uint32_t opt[2]; |
||
72 | struct { |
||
73 | uint32_t max_tex_width; |
||
74 | uint32_t max_tex_height; |
||
75 | }cap1; |
||
76 | }; |
||
77 | }hwcaps_t; |
||
78 | |||
79 | |||
80 | #define HW_TEX_BLIT (1<<1) /* stretch blit */ |
||
81 | #define HW_VID_BLIT (1<<2) /* planar and packed video */ |
||
82 | /* 3 - 63 reserved */ |
||
83 | struct context |
||
2361 | Serge | 84 | { |
85 | kobj_t header; |
||
86 | |||
87 | |||
3033 | serge | 88 | u32 cmd_buffer; |
89 | u32 cmd_offset; |
||
90 | |||
91 | |||
2361 | Serge | 92 | u32 seqno; |
93 | int slot; |
||
94 | |||
3033 | serge | 95 | |
2361 | Serge | 96 | |
97 | |||
2351 | Serge | 98 | int create_surface(struct drm_device *dev, struct io_call_10 *pbitmap); |
3033 | serge | 99 | int lock_surface(struct io_call_12 *pbitmap); |
2352 | Serge | 100 | int resize_surface(struct io_call_14 *pbitmap); |
3039 | serge | 101 | |
2352 | Serge | 102 | |
3033 | serge | 103 | |
104 | |||
2342 | Serge | 105 |