Rev 1408 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1408 | Rev 1964 | ||
---|---|---|---|
Line 72... | Line 72... | ||
72 | #define DRM_MODE_SCALE_ASPECT 3 /* Full screen, preserve aspect */ |
72 | #define DRM_MODE_SCALE_ASPECT 3 /* Full screen, preserve aspect */ |
Line 73... | Line 73... | ||
73 | 73 | ||
74 | /* Dithering mode options */ |
74 | /* Dithering mode options */ |
75 | #define DRM_MODE_DITHERING_OFF 0 |
75 | #define DRM_MODE_DITHERING_OFF 0 |
- | 76 | #define DRM_MODE_DITHERING_ON 1 |
|
Line 76... | Line 77... | ||
76 | #define DRM_MODE_DITHERING_ON 1 |
77 | #define DRM_MODE_DITHERING_AUTO 2 |
77 | 78 | ||
78 | /* Dirty info options */ |
79 | /* Dirty info options */ |
79 | #define DRM_MODE_DIRTY_OFF 0 |
80 | #define DRM_MODE_DIRTY_OFF 0 |
Line 274... | Line 275... | ||
274 | 275 | ||
275 | #define DRM_MODE_CURSOR_BO (1<<0) |
276 | #define DRM_MODE_CURSOR_BO (1<<0) |
Line 276... | Line 277... | ||
276 | #define DRM_MODE_CURSOR_MOVE (1<<1) |
277 | #define DRM_MODE_CURSOR_MOVE (1<<1) |
277 | 278 | ||
278 | /* |
279 | /* |
279 | * depending on the value in flags diffrent members are used. |
280 | * depending on the value in flags different members are used. |
280 | * |
281 | * |
281 | * CURSOR_BO uses |
282 | * CURSOR_BO uses |
282 | * crtc |
283 | * crtc |
Line 341... | Line 342... | ||
341 | __u32 flags; |
342 | __u32 flags; |
342 | __u32 reserved; |
343 | __u32 reserved; |
343 | __u64 user_data; |
344 | __u64 user_data; |
344 | }; |
345 | }; |
Line -... | Line 346... | ||
- | 346 | ||
- | 347 | /* create a dumb scanout buffer */ |
|
- | 348 | struct drm_mode_create_dumb { |
|
- | 349 | uint32_t height; |
|
- | 350 | uint32_t width; |
|
- | 351 | uint32_t bpp; |
|
- | 352 | uint32_t flags; |
|
- | 353 | /* handle, pitch, size will be returned */ |
|
- | 354 | uint32_t handle; |
|
- | 355 | uint32_t pitch; |
|
- | 356 | uint64_t size; |
|
- | 357 | }; |
|
- | 358 | ||
- | 359 | /* set up for mmap of a dumb scanout buffer */ |
|
- | 360 | struct drm_mode_map_dumb { |
|
- | 361 | /** Handle for the object being mapped. */ |
|
- | 362 | __u32 handle; |
|
- | 363 | __u32 pad; |
|
- | 364 | /** |
|
- | 365 | * Fake offset to use for subsequent mmap call |
|
- | 366 | * |
|
- | 367 | * This is a fixed-size type for 32/64 compatibility. |
|
- | 368 | */ |
|
- | 369 | __u64 offset; |
|
- | 370 | }; |
|
- | 371 | ||
- | 372 | struct drm_mode_destroy_dumb { |
|
- | 373 | uint32_t handle; |
|
- | 374 | }; |
|
345 | 375 |