diff options
Diffstat (limited to 'include/drm/vc4_drm.h')
-rw-r--r-- | include/drm/vc4_drm.h | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/include/drm/vc4_drm.h b/include/drm/vc4_drm.h index 319881d8..6ac4c5c0 100644 --- a/include/drm/vc4_drm.h +++ b/include/drm/vc4_drm.h | |||
@@ -21,8 +21,8 @@ | |||
21 | * IN THE SOFTWARE. | 21 | * IN THE SOFTWARE. |
22 | */ | 22 | */ |
23 | 23 | ||
24 | #ifndef _VC4_DRM_H_ | 24 | #ifndef _UAPI_VC4_DRM_H_ |
25 | #define _VC4_DRM_H_ | 25 | #define _UAPI_VC4_DRM_H_ |
26 | 26 | ||
27 | #include "drm.h" | 27 | #include "drm.h" |
28 | 28 | ||
@@ -38,6 +38,8 @@ extern "C" { | |||
38 | #define DRM_VC4_CREATE_SHADER_BO 0x05 | 38 | #define DRM_VC4_CREATE_SHADER_BO 0x05 |
39 | #define DRM_VC4_GET_HANG_STATE 0x06 | 39 | #define DRM_VC4_GET_HANG_STATE 0x06 |
40 | #define DRM_VC4_GET_PARAM 0x07 | 40 | #define DRM_VC4_GET_PARAM 0x07 |
41 | #define DRM_VC4_SET_TILING 0x08 | ||
42 | #define DRM_VC4_GET_TILING 0x09 | ||
41 | 43 | ||
42 | #define DRM_IOCTL_VC4_SUBMIT_CL DRM_IOWR(DRM_COMMAND_BASE + DRM_VC4_SUBMIT_CL, struct drm_vc4_submit_cl) | 44 | #define DRM_IOCTL_VC4_SUBMIT_CL DRM_IOWR(DRM_COMMAND_BASE + DRM_VC4_SUBMIT_CL, struct drm_vc4_submit_cl) |
43 | #define DRM_IOCTL_VC4_WAIT_SEQNO DRM_IOWR(DRM_COMMAND_BASE + DRM_VC4_WAIT_SEQNO, struct drm_vc4_wait_seqno) | 45 | #define DRM_IOCTL_VC4_WAIT_SEQNO DRM_IOWR(DRM_COMMAND_BASE + DRM_VC4_WAIT_SEQNO, struct drm_vc4_wait_seqno) |
@@ -47,6 +49,8 @@ extern "C" { | |||
47 | #define DRM_IOCTL_VC4_CREATE_SHADER_BO DRM_IOWR(DRM_COMMAND_BASE + DRM_VC4_CREATE_SHADER_BO, struct drm_vc4_create_shader_bo) | 49 | #define DRM_IOCTL_VC4_CREATE_SHADER_BO DRM_IOWR(DRM_COMMAND_BASE + DRM_VC4_CREATE_SHADER_BO, struct drm_vc4_create_shader_bo) |
48 | #define DRM_IOCTL_VC4_GET_HANG_STATE DRM_IOWR(DRM_COMMAND_BASE + DRM_VC4_GET_HANG_STATE, struct drm_vc4_get_hang_state) | 50 | #define DRM_IOCTL_VC4_GET_HANG_STATE DRM_IOWR(DRM_COMMAND_BASE + DRM_VC4_GET_HANG_STATE, struct drm_vc4_get_hang_state) |
49 | #define DRM_IOCTL_VC4_GET_PARAM DRM_IOWR(DRM_COMMAND_BASE + DRM_VC4_GET_PARAM, struct drm_vc4_get_param) | 51 | #define DRM_IOCTL_VC4_GET_PARAM DRM_IOWR(DRM_COMMAND_BASE + DRM_VC4_GET_PARAM, struct drm_vc4_get_param) |
52 | #define DRM_IOCTL_VC4_SET_TILING DRM_IOWR(DRM_COMMAND_BASE + DRM_VC4_SET_TILING, struct drm_vc4_set_tiling) | ||
53 | #define DRM_IOCTL_VC4_GET_TILING DRM_IOWR(DRM_COMMAND_BASE + DRM_VC4_GET_TILING, struct drm_vc4_get_tiling) | ||
50 | 54 | ||
51 | struct drm_vc4_submit_rcl_surface { | 55 | struct drm_vc4_submit_rcl_surface { |
52 | __u32 hindex; /* Handle index, or ~0 if not present. */ | 56 | __u32 hindex; /* Handle index, or ~0 if not present. */ |
@@ -295,8 +299,20 @@ struct drm_vc4_get_param { | |||
295 | __u64 value; | 299 | __u64 value; |
296 | }; | 300 | }; |
297 | 301 | ||
302 | struct drm_vc4_get_tiling { | ||
303 | __u32 handle; | ||
304 | __u32 flags; | ||
305 | __u64 modifier; | ||
306 | }; | ||
307 | |||
308 | struct drm_vc4_set_tiling { | ||
309 | __u32 handle; | ||
310 | __u32 flags; | ||
311 | __u64 modifier; | ||
312 | }; | ||
313 | |||
298 | #if defined(__cplusplus) | 314 | #if defined(__cplusplus) |
299 | } | 315 | } |
300 | #endif | 316 | #endif |
301 | 317 | ||
302 | #endif /* _VC4_DRM_H_ */ | 318 | #endif /* _UAPI_VC4_DRM_H_ */ |