diff options
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2009-05-08 21:29:27 -0400 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2009-05-08 21:29:27 -0400 |
commit | d585a021c0b10b0477d6b608c53e1feb8cde0507 (patch) | |
tree | 5ca059da1db7f15d4b29427644ad9c08270c885c /include/drm/via_drm.h | |
parent | 84e5b0d00f8f84c4ae226be131d4bebbcee88bd3 (diff) | |
parent | 091bf7624d1c90cec9e578a18529f615213ff847 (diff) |
Merge commit 'v2.6.30-rc5' into next
Diffstat (limited to 'include/drm/via_drm.h')
-rw-r--r-- | include/drm/via_drm.h | 42 |
1 files changed, 22 insertions, 20 deletions
diff --git a/include/drm/via_drm.h b/include/drm/via_drm.h index a3b5c102b067..170786e5c2ff 100644 --- a/include/drm/via_drm.h +++ b/include/drm/via_drm.h | |||
@@ -24,6 +24,8 @@ | |||
24 | #ifndef _VIA_DRM_H_ | 24 | #ifndef _VIA_DRM_H_ |
25 | #define _VIA_DRM_H_ | 25 | #define _VIA_DRM_H_ |
26 | 26 | ||
27 | #include <linux/types.h> | ||
28 | |||
27 | /* WARNING: These defines must be the same as what the Xserver uses. | 29 | /* WARNING: These defines must be the same as what the Xserver uses. |
28 | * if you change them, you must change the defines in the Xserver. | 30 | * if you change them, you must change the defines in the Xserver. |
29 | */ | 31 | */ |
@@ -114,19 +116,19 @@ | |||
114 | #define VIA_MEM_UNKNOWN 4 | 116 | #define VIA_MEM_UNKNOWN 4 |
115 | 117 | ||
116 | typedef struct { | 118 | typedef struct { |
117 | uint32_t offset; | 119 | __u32 offset; |
118 | uint32_t size; | 120 | __u32 size; |
119 | } drm_via_agp_t; | 121 | } drm_via_agp_t; |
120 | 122 | ||
121 | typedef struct { | 123 | typedef struct { |
122 | uint32_t offset; | 124 | __u32 offset; |
123 | uint32_t size; | 125 | __u32 size; |
124 | } drm_via_fb_t; | 126 | } drm_via_fb_t; |
125 | 127 | ||
126 | typedef struct { | 128 | typedef struct { |
127 | uint32_t context; | 129 | __u32 context; |
128 | uint32_t type; | 130 | __u32 type; |
129 | uint32_t size; | 131 | __u32 size; |
130 | unsigned long index; | 132 | unsigned long index; |
131 | unsigned long offset; | 133 | unsigned long offset; |
132 | } drm_via_mem_t; | 134 | } drm_via_mem_t; |
@@ -148,9 +150,9 @@ typedef struct _drm_via_futex { | |||
148 | VIA_FUTEX_WAIT = 0x00, | 150 | VIA_FUTEX_WAIT = 0x00, |
149 | VIA_FUTEX_WAKE = 0X01 | 151 | VIA_FUTEX_WAKE = 0X01 |
150 | } func; | 152 | } func; |
151 | uint32_t ms; | 153 | __u32 ms; |
152 | uint32_t lock; | 154 | __u32 lock; |
153 | uint32_t val; | 155 | __u32 val; |
154 | } drm_via_futex_t; | 156 | } drm_via_futex_t; |
155 | 157 | ||
156 | typedef struct _drm_via_dma_init { | 158 | typedef struct _drm_via_dma_init { |
@@ -211,7 +213,7 @@ typedef struct _drm_via_cmdbuf_size { | |||
211 | VIA_CMDBUF_LAG = 0x02 | 213 | VIA_CMDBUF_LAG = 0x02 |
212 | } func; | 214 | } func; |
213 | int wait; | 215 | int wait; |
214 | uint32_t size; | 216 | __u32 size; |
215 | } drm_via_cmdbuf_size_t; | 217 | } drm_via_cmdbuf_size_t; |
216 | 218 | ||
217 | typedef enum { | 219 | typedef enum { |
@@ -236,8 +238,8 @@ enum drm_via_irqs { | |||
236 | struct drm_via_wait_irq_request { | 238 | struct drm_via_wait_irq_request { |
237 | unsigned irq; | 239 | unsigned irq; |
238 | via_irq_seq_type_t type; | 240 | via_irq_seq_type_t type; |
239 | uint32_t sequence; | 241 | __u32 sequence; |
240 | uint32_t signal; | 242 | __u32 signal; |
241 | }; | 243 | }; |
242 | 244 | ||
243 | typedef union drm_via_irqwait { | 245 | typedef union drm_via_irqwait { |
@@ -246,7 +248,7 @@ typedef union drm_via_irqwait { | |||
246 | } drm_via_irqwait_t; | 248 | } drm_via_irqwait_t; |
247 | 249 | ||
248 | typedef struct drm_via_blitsync { | 250 | typedef struct drm_via_blitsync { |
249 | uint32_t sync_handle; | 251 | __u32 sync_handle; |
250 | unsigned engine; | 252 | unsigned engine; |
251 | } drm_via_blitsync_t; | 253 | } drm_via_blitsync_t; |
252 | 254 | ||
@@ -257,16 +259,16 @@ typedef struct drm_via_blitsync { | |||
257 | */ | 259 | */ |
258 | 260 | ||
259 | typedef struct drm_via_dmablit { | 261 | typedef struct drm_via_dmablit { |
260 | uint32_t num_lines; | 262 | __u32 num_lines; |
261 | uint32_t line_length; | 263 | __u32 line_length; |
262 | 264 | ||
263 | uint32_t fb_addr; | 265 | __u32 fb_addr; |
264 | uint32_t fb_stride; | 266 | __u32 fb_stride; |
265 | 267 | ||
266 | unsigned char *mem_addr; | 268 | unsigned char *mem_addr; |
267 | uint32_t mem_stride; | 269 | __u32 mem_stride; |
268 | 270 | ||
269 | uint32_t flags; | 271 | __u32 flags; |
270 | int to_fb; | 272 | int to_fb; |
271 | 273 | ||
272 | drm_via_blitsync_t sync; | 274 | drm_via_blitsync_t sync; |