diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2010-02-11 17:03:28 -0500 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-02-11 17:03:28 -0500 |
| commit | 67dcabd06126084295b5825d3d7f584450dd8553 (patch) | |
| tree | ac4a3be737071f7b891b8a66e764d5706cf681ca /include | |
| parent | 09e65ed298e1d12b82752675ff5b9135860429ff (diff) | |
| parent | 77c1ff3982c6b36961725dd19e872a1c07df7f3b (diff) | |
Merge branch 'drm-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/airlied/drm-2.6
* 'drm-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/airlied/drm-2.6: (30 commits)
vgaarb: fix incorrect dereference of userspace pointer.
drm/radeon/kms: retry auxch on 0x20 timeout value.
drm/radeon: Skip dma copy test in benchmark if card doesn't have dma engine.
drm/vmwgfx: Fix a circular locking dependency bug.
drm/vmwgfx: Drop scanout flag compat and add execbuf ioctl parameter members. Bumps major.
drm/vmwgfx: Report propper framebuffer_{max|min}_{width|height}
drm/vmwgfx: Update the user-space interface.
drm/radeon/kms: fix screen clearing before fbcon.
nouveau: fix state detection with switchable graphics
drm/nouveau: move dereferences after null checks
drm/nv50: make the pgraph irq handler loop like the pre-nv50 version
drm/nv50: delete ramfc object after disabling fifo, not before
drm/nv50: avoid unloading pgraph context when ctxprog is running
drm/nv50: align size of buffer object to the right boundaries.
drm/nv50: disregard dac outputs in nv50_sor_dpms()
drm/nv50: prevent multiple init tables being parsed at the same time
drm/nouveau: make dp auxch xfer len check for reads only
drm/nv40: make INIT_COMPUTE_MEM a NOP, just like nv50
drm/nouveau: Add proper vgaarb support.
drm/nouveau: Fix fbcon on mixed pre-NV50 + NV50 multicard.
...
Diffstat (limited to 'include')
| -rw-r--r-- | include/drm/nouveau_drm.h | 1 | ||||
| -rw-r--r-- | include/drm/vmwgfx_drm.h | 20 |
2 files changed, 18 insertions, 3 deletions
diff --git a/include/drm/nouveau_drm.h b/include/drm/nouveau_drm.h index 1e67c441ea82..f745948b61e4 100644 --- a/include/drm/nouveau_drm.h +++ b/include/drm/nouveau_drm.h | |||
| @@ -77,6 +77,7 @@ struct drm_nouveau_gpuobj_free { | |||
| 77 | #define NOUVEAU_GETPARAM_PCI_PHYSICAL 10 | 77 | #define NOUVEAU_GETPARAM_PCI_PHYSICAL 10 |
| 78 | #define NOUVEAU_GETPARAM_CHIPSET_ID 11 | 78 | #define NOUVEAU_GETPARAM_CHIPSET_ID 11 |
| 79 | #define NOUVEAU_GETPARAM_VM_VRAM_BASE 12 | 79 | #define NOUVEAU_GETPARAM_VM_VRAM_BASE 12 |
| 80 | #define NOUVEAU_GETPARAM_GRAPH_UNITS 13 | ||
| 80 | struct drm_nouveau_getparam { | 81 | struct drm_nouveau_getparam { |
| 81 | uint64_t param; | 82 | uint64_t param; |
| 82 | uint64_t value; | 83 | uint64_t value; |
diff --git a/include/drm/vmwgfx_drm.h b/include/drm/vmwgfx_drm.h index 2be7e1249b6f..c7645f480d12 100644 --- a/include/drm/vmwgfx_drm.h +++ b/include/drm/vmwgfx_drm.h | |||
| @@ -68,7 +68,8 @@ | |||
| 68 | #define DRM_VMW_PARAM_NUM_FREE_STREAMS 1 | 68 | #define DRM_VMW_PARAM_NUM_FREE_STREAMS 1 |
| 69 | #define DRM_VMW_PARAM_3D 2 | 69 | #define DRM_VMW_PARAM_3D 2 |
| 70 | #define DRM_VMW_PARAM_FIFO_OFFSET 3 | 70 | #define DRM_VMW_PARAM_FIFO_OFFSET 3 |
| 71 | 71 | #define DRM_VMW_PARAM_HW_CAPS 4 | |
| 72 | #define DRM_VMW_PARAM_FIFO_CAPS 5 | ||
| 72 | 73 | ||
| 73 | /** | 74 | /** |
| 74 | * struct drm_vmw_getparam_arg | 75 | * struct drm_vmw_getparam_arg |
| @@ -181,6 +182,8 @@ struct drm_vmw_context_arg { | |||
| 181 | * The size of the array should equal the total number of mipmap levels. | 182 | * The size of the array should equal the total number of mipmap levels. |
| 182 | * @shareable: Boolean whether other clients (as identified by file descriptors) | 183 | * @shareable: Boolean whether other clients (as identified by file descriptors) |
| 183 | * may reference this surface. | 184 | * may reference this surface. |
| 185 | * @scanout: Boolean whether the surface is intended to be used as a | ||
| 186 | * scanout. | ||
| 184 | * | 187 | * |
| 185 | * Input data to the DRM_VMW_CREATE_SURFACE Ioctl. | 188 | * Input data to the DRM_VMW_CREATE_SURFACE Ioctl. |
| 186 | * Output data from the DRM_VMW_REF_SURFACE Ioctl. | 189 | * Output data from the DRM_VMW_REF_SURFACE Ioctl. |
| @@ -192,7 +195,7 @@ struct drm_vmw_surface_create_req { | |||
| 192 | uint32_t mip_levels[DRM_VMW_MAX_SURFACE_FACES]; | 195 | uint32_t mip_levels[DRM_VMW_MAX_SURFACE_FACES]; |
| 193 | uint64_t size_addr; | 196 | uint64_t size_addr; |
| 194 | int32_t shareable; | 197 | int32_t shareable; |
| 195 | uint32_t pad64; | 198 | int32_t scanout; |
| 196 | }; | 199 | }; |
| 197 | 200 | ||
| 198 | /** | 201 | /** |
| @@ -295,17 +298,28 @@ union drm_vmw_surface_reference_arg { | |||
| 295 | * | 298 | * |
| 296 | * @commands: User-space address of a command buffer cast to an uint64_t. | 299 | * @commands: User-space address of a command buffer cast to an uint64_t. |
| 297 | * @command-size: Size in bytes of the command buffer. | 300 | * @command-size: Size in bytes of the command buffer. |
| 301 | * @throttle-us: Sleep until software is less than @throttle_us | ||
| 302 | * microseconds ahead of hardware. The driver may round this value | ||
| 303 | * to the nearest kernel tick. | ||
| 298 | * @fence_rep: User-space address of a struct drm_vmw_fence_rep cast to an | 304 | * @fence_rep: User-space address of a struct drm_vmw_fence_rep cast to an |
| 299 | * uint64_t. | 305 | * uint64_t. |
| 306 | * @version: Allows expanding the execbuf ioctl parameters without breaking | ||
| 307 | * backwards compatibility, since user-space will always tell the kernel | ||
| 308 | * which version it uses. | ||
| 309 | * @flags: Execbuf flags. None currently. | ||
| 300 | * | 310 | * |
| 301 | * Argument to the DRM_VMW_EXECBUF Ioctl. | 311 | * Argument to the DRM_VMW_EXECBUF Ioctl. |
| 302 | */ | 312 | */ |
| 303 | 313 | ||
| 314 | #define DRM_VMW_EXECBUF_VERSION 0 | ||
| 315 | |||
| 304 | struct drm_vmw_execbuf_arg { | 316 | struct drm_vmw_execbuf_arg { |
| 305 | uint64_t commands; | 317 | uint64_t commands; |
| 306 | uint32_t command_size; | 318 | uint32_t command_size; |
| 307 | uint32_t pad64; | 319 | uint32_t throttle_us; |
| 308 | uint64_t fence_rep; | 320 | uint64_t fence_rep; |
| 321 | uint32_t version; | ||
| 322 | uint32_t flags; | ||
| 309 | }; | 323 | }; |
| 310 | 324 | ||
| 311 | /** | 325 | /** |
