Rev 2361 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2361 | Rev 3033 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | typedef struct tag_object kobj_t; |
1 | typedef struct tag_object kobj_t; |
2 | typedef struct tag_display display_t; |
2 | typedef struct tag_display display_t; |
Line 3... | Line -... | ||
3 | - | ||
4 | struct hman |
- | |
5 | { |
- | |
6 | u32 *table; |
- | |
7 | u32 next; |
- | |
8 | u32 avail; |
- | |
9 | u32 count; |
- | |
10 | }; |
- | |
11 | - | ||
12 | extern struct hman bm_man; |
- | |
13 | - | ||
14 | int init_hman(struct hman *man, u32 count); |
- | |
15 | u32 alloc_handle(struct hman *man); |
- | |
16 | int free_handle(struct hman *man, u32 handle); |
- | |
17 | - | ||
18 | #define hman_get_data(man, handle) \ |
- | |
19 | ((man)->table[(handle)-1]) |
- | |
20 | - | ||
21 | #define hman_set_data(man, handle, val) \ |
- | |
22 | ((man)->table[(handle)-1]) = (u32)(val) |
- | |
Line 23... | Line 3... | ||
23 | 3 | ||
24 | 4 | ||
25 | struct tag_object |
5 | struct tag_object |
26 | { |
6 | { |
Line 44... | Line 24... | ||
44 | u32 width; |
24 | u32 width; |
45 | u32 height; |
25 | u32 height; |
46 | u32 max_width; |
26 | u32 max_width; |
47 | u32 max_height; |
27 | u32 max_height; |
- | 28 | u32 page_count; |
|
- | 29 | u32 max_count; |
|
Line 48... | Line 30... | ||
48 | 30 | ||
49 | u32 format; |
31 | u32 format; |
50 | struct drm_i915_gem_object *obj; |
32 | struct drm_i915_gem_object *obj; |
Line 92... | Line 74... | ||
92 | #define HW_BIT_BLIT (1<<0) /* BGRX blitter */ |
74 | #define HW_BIT_BLIT (1<<0) /* BGRX blitter */ |
93 | #define HW_TEX_BLIT (1<<1) /* stretch blit */ |
75 | #define HW_TEX_BLIT (1<<1) /* stretch blit */ |
94 | #define HW_VID_BLIT (1<<2) /* planar and packed video */ |
76 | #define HW_VID_BLIT (1<<2) /* planar and packed video */ |
95 | /* 3 - 63 reserved */ |
77 | /* 3 - 63 reserved */ |
96 | - | ||
97 | struct context |
78 | struct context |
98 | { |
79 | { |
99 | kobj_t header; |
80 | kobj_t header; |
Line -... | Line 81... | ||
- | 81 | ||
- | 82 | struct drm_i915_gem_object *obj; |
|
- | 83 | u32 cmd_buffer; |
|
- | 84 | u32 cmd_offset; |
|
100 | 85 | ||
101 | bitmap_t *mask; |
86 | bitmap_t *mask; |
102 | u32 seqno; |
87 | u32 seqno; |
- | 88 | int slot; |
|
103 | int slot; |
89 | |
Line 104... | Line 90... | ||
104 | }; |
90 | }; |
105 | 91 | ||
106 | int get_driver_caps(hwcaps_t *caps); |
92 | int get_driver_caps(hwcaps_t *caps); |
Line -... | Line 93... | ||
- | 93 | int create_surface(struct drm_device *dev, struct io_call_10 *pbitmap); |
|
- | 94 | int lock_surface(struct io_call_12 *pbitmap); |
|
107 | int create_surface(struct io_call_10 *pbitmap); |
95 |