blob: 6d05b379c96434e146efffb1e01e4d0dab51d3e4 [file] [log] [blame]
Christopher Ferris106b3a82016-08-24 12:15:38 -07001/****************************************************************************
2 ****************************************************************************
3 ***
4 *** This header was automatically generated from a Linux kernel header
5 *** of the same name, to make information necessary for userspace to
6 *** call into the kernel available to libc. It contains only constants,
7 *** structures, and macros generated from the original header, and thus,
8 *** contains no copyrightable information.
9 ***
10 *** To edit the content of this header, modify the corresponding
11 *** source file (e.g. under external/kernel-headers/original/) then
12 *** run bionic/libc/kernel/tools/update_all.py
13 ***
14 *** Any manual change here will be lost the next time this script will
15 *** be run. You've been warned!
16 ***
17 ****************************************************************************
18 ****************************************************************************/
19#ifndef _UAPI_VC4_DRM_H_
20#define _UAPI_VC4_DRM_H_
21#include "drm.h"
22#ifdef __cplusplus
23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24#endif
25#define DRM_VC4_SUBMIT_CL 0x00
26#define DRM_VC4_WAIT_SEQNO 0x01
27#define DRM_VC4_WAIT_BO 0x02
28/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29#define DRM_VC4_CREATE_BO 0x03
30#define DRM_VC4_MMAP_BO 0x04
31#define DRM_VC4_CREATE_SHADER_BO 0x05
32#define DRM_VC4_GET_HANG_STATE 0x06
33/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34#define DRM_IOCTL_VC4_SUBMIT_CL DRM_IOWR(DRM_COMMAND_BASE + DRM_VC4_SUBMIT_CL, struct drm_vc4_submit_cl)
35#define DRM_IOCTL_VC4_WAIT_SEQNO DRM_IOWR(DRM_COMMAND_BASE + DRM_VC4_WAIT_SEQNO, struct drm_vc4_wait_seqno)
36#define DRM_IOCTL_VC4_WAIT_BO DRM_IOWR(DRM_COMMAND_BASE + DRM_VC4_WAIT_BO, struct drm_vc4_wait_bo)
37#define DRM_IOCTL_VC4_CREATE_BO DRM_IOWR(DRM_COMMAND_BASE + DRM_VC4_CREATE_BO, struct drm_vc4_create_bo)
38/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39#define DRM_IOCTL_VC4_MMAP_BO DRM_IOWR(DRM_COMMAND_BASE + DRM_VC4_MMAP_BO, struct drm_vc4_mmap_bo)
40#define DRM_IOCTL_VC4_CREATE_SHADER_BO DRM_IOWR(DRM_COMMAND_BASE + DRM_VC4_CREATE_SHADER_BO, struct drm_vc4_create_shader_bo)
41#define DRM_IOCTL_VC4_GET_HANG_STATE DRM_IOWR(DRM_COMMAND_BASE + DRM_VC4_GET_HANG_STATE, struct drm_vc4_get_hang_state)
42struct drm_vc4_submit_rcl_surface {
43/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44 __u32 hindex;
45 __u32 offset;
46 __u16 bits;
47#define VC4_SUBMIT_RCL_SURFACE_READ_IS_FULL_RES (1 << 0)
48/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49 __u16 flags;
50};
51struct drm_vc4_submit_cl {
52 __u64 bin_cl;
53/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54 __u64 shader_rec;
55 __u64 uniforms;
56 __u64 bo_handles;
57 __u32 bin_cl_size;
58/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59 __u32 shader_rec_size;
60 __u32 shader_rec_count;
61 __u32 uniforms_size;
62 __u32 bo_handle_count;
63/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64 __u16 width;
65 __u16 height;
66 __u8 min_x_tile;
67 __u8 min_y_tile;
68/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
69 __u8 max_x_tile;
70 __u8 max_y_tile;
71 struct drm_vc4_submit_rcl_surface color_read;
72 struct drm_vc4_submit_rcl_surface color_write;
73/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
74 struct drm_vc4_submit_rcl_surface zs_read;
75 struct drm_vc4_submit_rcl_surface zs_write;
76 struct drm_vc4_submit_rcl_surface msaa_color_write;
77 struct drm_vc4_submit_rcl_surface msaa_zs_write;
78/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
79 __u32 clear_color[2];
80 __u32 clear_z;
81 __u8 clear_s;
82 __u32 pad : 24;
83/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
84#define VC4_SUBMIT_CL_USE_CLEAR_COLOR (1 << 0)
85 __u32 flags;
86 __u64 seqno;
87};
88/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
89struct drm_vc4_wait_seqno {
90 __u64 seqno;
91 __u64 timeout_ns;
92};
93/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
94struct drm_vc4_wait_bo {
95 __u32 handle;
96 __u32 pad;
97 __u64 timeout_ns;
98/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
99};
100struct drm_vc4_create_bo {
101 __u32 size;
102 __u32 flags;
103/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
104 __u32 handle;
105 __u32 pad;
106};
107struct drm_vc4_mmap_bo {
108/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
109 __u32 handle;
110 __u32 flags;
111 __u64 offset;
112};
113/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
114struct drm_vc4_create_shader_bo {
115 __u32 size;
116 __u32 flags;
117 __u64 data;
118/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
119 __u32 handle;
120 __u32 pad;
121};
122struct drm_vc4_get_hang_state_bo {
123/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
124 __u32 handle;
125 __u32 paddr;
126 __u32 size;
127 __u32 pad;
128/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
129};
130struct drm_vc4_get_hang_state {
131 __u64 bo;
132 __u32 bo_count;
133/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
134 __u32 start_bin, start_render;
135 __u32 ct0ca, ct0ea;
136 __u32 ct1ca, ct1ea;
137 __u32 ct0cs, ct1cs;
138/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
139 __u32 ct0ra0, ct1ra0;
140 __u32 bpca, bpcs;
141 __u32 bpoa, bpos;
142 __u32 vpmbase;
143/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
144 __u32 dbge;
145 __u32 fdbgo;
146 __u32 fdbgb;
147 __u32 fdbgr;
148/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
149 __u32 fdbgs;
150 __u32 errstat;
151 __u32 pad[16];
152};
153/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
154#ifdef __cplusplus
155#endif
156#endif