diff options
Diffstat (limited to 'include/drm')
-rw-r--r-- | include/drm/drm_crtc.h | 2 | ||||
-rw-r--r-- | include/drm/drm_sarea.h | 2 | ||||
-rw-r--r-- | include/drm/i915_drm.h | 34 |
3 files changed, 35 insertions, 3 deletions
diff --git a/include/drm/drm_crtc.h b/include/drm/drm_crtc.h index ced362533e3c..617d87ae2b1a 100644 --- a/include/drm/drm_crtc.h +++ b/include/drm/drm_crtc.h | |||
@@ -214,8 +214,6 @@ struct drm_display_info { | |||
214 | u32 color_formats; | 214 | u32 color_formats; |
215 | 215 | ||
216 | u8 cea_rev; | 216 | u8 cea_rev; |
217 | |||
218 | char *raw_edid; /* if any */ | ||
219 | }; | 217 | }; |
220 | 218 | ||
221 | struct drm_framebuffer_funcs { | 219 | struct drm_framebuffer_funcs { |
diff --git a/include/drm/drm_sarea.h b/include/drm/drm_sarea.h index ee5389d22c64..1d1a858a203d 100644 --- a/include/drm/drm_sarea.h +++ b/include/drm/drm_sarea.h | |||
@@ -37,6 +37,8 @@ | |||
37 | /* SAREA area needs to be at least a page */ | 37 | /* SAREA area needs to be at least a page */ |
38 | #if defined(__alpha__) | 38 | #if defined(__alpha__) |
39 | #define SAREA_MAX 0x2000U | 39 | #define SAREA_MAX 0x2000U |
40 | #elif defined(__mips__) | ||
41 | #define SAREA_MAX 0x4000U | ||
40 | #elif defined(__ia64__) | 42 | #elif defined(__ia64__) |
41 | #define SAREA_MAX 0x10000U /* 64kB */ | 43 | #define SAREA_MAX 0x10000U /* 64kB */ |
42 | #else | 44 | #else |
diff --git a/include/drm/i915_drm.h b/include/drm/i915_drm.h index 8cc70837f929..d8a79bf59ae7 100644 --- a/include/drm/i915_drm.h +++ b/include/drm/i915_drm.h | |||
@@ -203,6 +203,9 @@ typedef struct _drm_i915_sarea { | |||
203 | #define DRM_I915_GEM_WAIT 0x2c | 203 | #define DRM_I915_GEM_WAIT 0x2c |
204 | #define DRM_I915_GEM_CONTEXT_CREATE 0x2d | 204 | #define DRM_I915_GEM_CONTEXT_CREATE 0x2d |
205 | #define DRM_I915_GEM_CONTEXT_DESTROY 0x2e | 205 | #define DRM_I915_GEM_CONTEXT_DESTROY 0x2e |
206 | #define DRM_I915_GEM_SET_CACHEING 0x2f | ||
207 | #define DRM_I915_GEM_GET_CACHEING 0x30 | ||
208 | #define DRM_I915_REG_READ 0x31 | ||
206 | 209 | ||
207 | #define DRM_IOCTL_I915_INIT DRM_IOW( DRM_COMMAND_BASE + DRM_I915_INIT, drm_i915_init_t) | 210 | #define DRM_IOCTL_I915_INIT DRM_IOW( DRM_COMMAND_BASE + DRM_I915_INIT, drm_i915_init_t) |
208 | #define DRM_IOCTL_I915_FLUSH DRM_IO ( DRM_COMMAND_BASE + DRM_I915_FLUSH) | 211 | #define DRM_IOCTL_I915_FLUSH DRM_IO ( DRM_COMMAND_BASE + DRM_I915_FLUSH) |
@@ -227,6 +230,8 @@ typedef struct _drm_i915_sarea { | |||
227 | #define DRM_IOCTL_I915_GEM_PIN DRM_IOWR(DRM_COMMAND_BASE + DRM_I915_GEM_PIN, struct drm_i915_gem_pin) | 230 | #define DRM_IOCTL_I915_GEM_PIN DRM_IOWR(DRM_COMMAND_BASE + DRM_I915_GEM_PIN, struct drm_i915_gem_pin) |
228 | #define DRM_IOCTL_I915_GEM_UNPIN DRM_IOW(DRM_COMMAND_BASE + DRM_I915_GEM_UNPIN, struct drm_i915_gem_unpin) | 231 | #define DRM_IOCTL_I915_GEM_UNPIN DRM_IOW(DRM_COMMAND_BASE + DRM_I915_GEM_UNPIN, struct drm_i915_gem_unpin) |
229 | #define DRM_IOCTL_I915_GEM_BUSY DRM_IOWR(DRM_COMMAND_BASE + DRM_I915_GEM_BUSY, struct drm_i915_gem_busy) | 232 | #define DRM_IOCTL_I915_GEM_BUSY DRM_IOWR(DRM_COMMAND_BASE + DRM_I915_GEM_BUSY, struct drm_i915_gem_busy) |
233 | #define DRM_IOCTL_I915_GEM_SET_CACHEING DRM_IOW(DRM_COMMAND_BASE + DRM_I915_GEM_SET_CACHEING, struct drm_i915_gem_cacheing) | ||
234 | #define DRM_IOCTL_I915_GEM_GET_CACHEING DRM_IOWR(DRM_COMMAND_BASE + DRM_I915_GEM_GET_CACHEING, struct drm_i915_gem_cacheing) | ||
230 | #define DRM_IOCTL_I915_GEM_THROTTLE DRM_IO ( DRM_COMMAND_BASE + DRM_I915_GEM_THROTTLE) | 235 | #define DRM_IOCTL_I915_GEM_THROTTLE DRM_IO ( DRM_COMMAND_BASE + DRM_I915_GEM_THROTTLE) |
231 | #define DRM_IOCTL_I915_GEM_ENTERVT DRM_IO(DRM_COMMAND_BASE + DRM_I915_GEM_ENTERVT) | 236 | #define DRM_IOCTL_I915_GEM_ENTERVT DRM_IO(DRM_COMMAND_BASE + DRM_I915_GEM_ENTERVT) |
232 | #define DRM_IOCTL_I915_GEM_LEAVEVT DRM_IO(DRM_COMMAND_BASE + DRM_I915_GEM_LEAVEVT) | 237 | #define DRM_IOCTL_I915_GEM_LEAVEVT DRM_IO(DRM_COMMAND_BASE + DRM_I915_GEM_LEAVEVT) |
@@ -249,6 +254,7 @@ typedef struct _drm_i915_sarea { | |||
249 | #define DRM_IOCTL_I915_GEM_WAIT DRM_IOWR(DRM_COMMAND_BASE + DRM_I915_GEM_WAIT, struct drm_i915_gem_wait) | 254 | #define DRM_IOCTL_I915_GEM_WAIT DRM_IOWR(DRM_COMMAND_BASE + DRM_I915_GEM_WAIT, struct drm_i915_gem_wait) |
250 | #define DRM_IOCTL_I915_GEM_CONTEXT_CREATE DRM_IOWR (DRM_COMMAND_BASE + DRM_I915_GEM_CONTEXT_CREATE, struct drm_i915_gem_context_create) | 255 | #define DRM_IOCTL_I915_GEM_CONTEXT_CREATE DRM_IOWR (DRM_COMMAND_BASE + DRM_I915_GEM_CONTEXT_CREATE, struct drm_i915_gem_context_create) |
251 | #define DRM_IOCTL_I915_GEM_CONTEXT_DESTROY DRM_IOW (DRM_COMMAND_BASE + DRM_I915_GEM_CONTEXT_DESTROY, struct drm_i915_gem_context_destroy) | 256 | #define DRM_IOCTL_I915_GEM_CONTEXT_DESTROY DRM_IOW (DRM_COMMAND_BASE + DRM_I915_GEM_CONTEXT_DESTROY, struct drm_i915_gem_context_destroy) |
257 | #define DRM_IOCTL_I915_REG_READ DRM_IOWR (DRM_COMMAND_BASE + DRM_I915_REG_READ, struct drm_i915_reg_read) | ||
252 | 258 | ||
253 | /* Allow drivers to submit batchbuffers directly to hardware, relying | 259 | /* Allow drivers to submit batchbuffers directly to hardware, relying |
254 | * on the security mechanisms provided by hardware. | 260 | * on the security mechanisms provided by hardware. |
@@ -305,6 +311,7 @@ typedef struct drm_i915_irq_wait { | |||
305 | #define I915_PARAM_HAS_LLC 17 | 311 | #define I915_PARAM_HAS_LLC 17 |
306 | #define I915_PARAM_HAS_ALIASING_PPGTT 18 | 312 | #define I915_PARAM_HAS_ALIASING_PPGTT 18 |
307 | #define I915_PARAM_HAS_WAIT_TIMEOUT 19 | 313 | #define I915_PARAM_HAS_WAIT_TIMEOUT 19 |
314 | #define I915_PARAM_HAS_SEMAPHORES 20 | ||
308 | 315 | ||
309 | typedef struct drm_i915_getparam { | 316 | typedef struct drm_i915_getparam { |
310 | int param; | 317 | int param; |
@@ -698,10 +705,31 @@ struct drm_i915_gem_busy { | |||
698 | /** Handle of the buffer to check for busy */ | 705 | /** Handle of the buffer to check for busy */ |
699 | __u32 handle; | 706 | __u32 handle; |
700 | 707 | ||
701 | /** Return busy status (1 if busy, 0 if idle) */ | 708 | /** Return busy status (1 if busy, 0 if idle). |
709 | * The high word is used to indicate on which rings the object | ||
710 | * currently resides: | ||
711 | * 16:31 - busy (r or r/w) rings (16 render, 17 bsd, 18 blt, etc) | ||
712 | */ | ||
702 | __u32 busy; | 713 | __u32 busy; |
703 | }; | 714 | }; |
704 | 715 | ||
716 | #define I915_CACHEING_NONE 0 | ||
717 | #define I915_CACHEING_CACHED 1 | ||
718 | |||
719 | struct drm_i915_gem_cacheing { | ||
720 | /** | ||
721 | * Handle of the buffer to set/get the cacheing level of. */ | ||
722 | __u32 handle; | ||
723 | |||
724 | /** | ||
725 | * Cacheing level to apply or return value | ||
726 | * | ||
727 | * bits0-15 are for generic cacheing control (i.e. the above defined | ||
728 | * values). bits16-31 are reserved for platform-specific variations | ||
729 | * (e.g. l3$ caching on gen7). */ | ||
730 | __u32 cacheing; | ||
731 | }; | ||
732 | |||
705 | #define I915_TILING_NONE 0 | 733 | #define I915_TILING_NONE 0 |
706 | #define I915_TILING_X 1 | 734 | #define I915_TILING_X 1 |
707 | #define I915_TILING_Y 2 | 735 | #define I915_TILING_Y 2 |
@@ -918,4 +946,8 @@ struct drm_i915_gem_context_destroy { | |||
918 | __u32 pad; | 946 | __u32 pad; |
919 | }; | 947 | }; |
920 | 948 | ||
949 | struct drm_i915_reg_read { | ||
950 | __u64 offset; | ||
951 | __u64 val; /* Return value */ | ||
952 | }; | ||
921 | #endif /* _I915_DRM_H_ */ | 953 | #endif /* _I915_DRM_H_ */ |