diff options
Diffstat (limited to 'drivers/char/drm/i915_drm.h')
| -rw-r--r-- | drivers/char/drm/i915_drm.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/drivers/char/drm/i915_drm.h b/drivers/char/drm/i915_drm.h index 77412ddac007..4cb3da578330 100644 --- a/drivers/char/drm/i915_drm.h +++ b/drivers/char/drm/i915_drm.h | |||
| @@ -74,6 +74,30 @@ typedef struct _drm_i915_sarea { | |||
| 74 | int pf_active; | 74 | int pf_active; |
| 75 | int pf_current_page; /* which buffer is being displayed? */ | 75 | int pf_current_page; /* which buffer is being displayed? */ |
| 76 | int perf_boxes; /* performance boxes to be displayed */ | 76 | int perf_boxes; /* performance boxes to be displayed */ |
| 77 | int width, height; /* screen size in pixels */ | ||
| 78 | |||
| 79 | drm_handle_t front_handle; | ||
| 80 | int front_offset; | ||
| 81 | int front_size; | ||
| 82 | |||
| 83 | drm_handle_t back_handle; | ||
| 84 | int back_offset; | ||
| 85 | int back_size; | ||
| 86 | |||
| 87 | drm_handle_t depth_handle; | ||
| 88 | int depth_offset; | ||
| 89 | int depth_size; | ||
| 90 | |||
| 91 | drm_handle_t tex_handle; | ||
| 92 | int tex_offset; | ||
| 93 | int tex_size; | ||
| 94 | int log_tex_granularity; | ||
| 95 | int pitch; | ||
| 96 | int rotation; /* 0, 90, 180 or 270 */ | ||
| 97 | int rotated_offset; | ||
| 98 | int rotated_size; | ||
| 99 | int rotated_pitch; | ||
| 100 | int virtualX, virtualY; | ||
| 77 | } drm_i915_sarea_t; | 101 | } drm_i915_sarea_t; |
| 78 | 102 | ||
| 79 | /* Flags for perf_boxes | 103 | /* Flags for perf_boxes |
| @@ -99,6 +123,7 @@ typedef struct _drm_i915_sarea { | |||
| 99 | #define DRM_I915_FREE 0x09 | 123 | #define DRM_I915_FREE 0x09 |
| 100 | #define DRM_I915_INIT_HEAP 0x0a | 124 | #define DRM_I915_INIT_HEAP 0x0a |
| 101 | #define DRM_I915_CMDBUFFER 0x0b | 125 | #define DRM_I915_CMDBUFFER 0x0b |
| 126 | #define DRM_I915_DESTROY_HEAP 0x0c | ||
| 102 | 127 | ||
| 103 | #define DRM_IOCTL_I915_INIT DRM_IOW( DRM_COMMAND_BASE + DRM_I915_INIT, drm_i915_init_t) | 128 | #define DRM_IOCTL_I915_INIT DRM_IOW( DRM_COMMAND_BASE + DRM_I915_INIT, drm_i915_init_t) |
| 104 | #define DRM_IOCTL_I915_FLUSH DRM_IO ( DRM_COMMAND_BASE + DRM_I915_FLUSH) | 129 | #define DRM_IOCTL_I915_FLUSH DRM_IO ( DRM_COMMAND_BASE + DRM_I915_FLUSH) |
| @@ -112,6 +137,7 @@ typedef struct _drm_i915_sarea { | |||
| 112 | #define DRM_IOCTL_I915_FREE DRM_IOW( DRM_COMMAND_BASE + DRM_I915_FREE, drm_i915_mem_free_t) | 137 | #define DRM_IOCTL_I915_FREE DRM_IOW( DRM_COMMAND_BASE + DRM_I915_FREE, drm_i915_mem_free_t) |
| 113 | #define DRM_IOCTL_I915_INIT_HEAP DRM_IOW( DRM_COMMAND_BASE + DRM_I915_INIT_HEAP, drm_i915_mem_init_heap_t) | 138 | #define DRM_IOCTL_I915_INIT_HEAP DRM_IOW( DRM_COMMAND_BASE + DRM_I915_INIT_HEAP, drm_i915_mem_init_heap_t) |
| 114 | #define DRM_IOCTL_I915_CMDBUFFER DRM_IOW( DRM_COMMAND_BASE + DRM_I915_CMDBUFFER, drm_i915_cmdbuffer_t) | 139 | #define DRM_IOCTL_I915_CMDBUFFER DRM_IOW( DRM_COMMAND_BASE + DRM_I915_CMDBUFFER, drm_i915_cmdbuffer_t) |
| 140 | #define DRM_IOCTL_I915_DESTROY_HEAP DRM_IOW( DRM_COMMAND_BASE + DRM_I915_DESTROY_HEAP, drm_i915_mem_destroy_heap_t) | ||
| 115 | 141 | ||
| 116 | /* Allow drivers to submit batchbuffers directly to hardware, relying | 142 | /* Allow drivers to submit batchbuffers directly to hardware, relying |
| 117 | * on the security mechanisms provided by hardware. | 143 | * on the security mechanisms provided by hardware. |
| @@ -191,4 +217,11 @@ typedef struct drm_i915_mem_init_heap { | |||
| 191 | int start; | 217 | int start; |
| 192 | } drm_i915_mem_init_heap_t; | 218 | } drm_i915_mem_init_heap_t; |
| 193 | 219 | ||
| 220 | /* Allow memory manager to be torn down and re-initialized (eg on | ||
| 221 | * rotate): | ||
| 222 | */ | ||
| 223 | typedef struct drm_i915_mem_destroy_heap { | ||
| 224 | int region; | ||
| 225 | } drm_i915_mem_destroy_heap_t; | ||
| 226 | |||
| 194 | #endif /* _I915_DRM_H_ */ | 227 | #endif /* _I915_DRM_H_ */ |
