blob: 3878b75ec12459aa6a14ce8f08c5dd07c51beec1 [file] [log] [blame]
Ben Cheng655a7c02013-10-16 16:09:24 -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 QXL_DRM_H
20#define QXL_DRM_H
21#include <stddef.h>
22#include "drm/drm.h"
23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24#define QXL_GEM_DOMAIN_CPU 0
25#define QXL_GEM_DOMAIN_VRAM 1
26#define QXL_GEM_DOMAIN_SURFACE 2
27#define DRM_QXL_ALLOC 0x00
28/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29#define DRM_QXL_MAP 0x01
30#define DRM_QXL_EXECBUFFER 0x02
31#define DRM_QXL_UPDATE_AREA 0x03
32#define DRM_QXL_GETPARAM 0x04
33/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34#define DRM_QXL_CLIENTCAP 0x05
35#define DRM_QXL_ALLOC_SURF 0x06
36struct drm_qxl_alloc {
Tao Baod7db5942015-01-28 10:07:51 -080037 uint32_t size;
Ben Cheng655a7c02013-10-16 16:09:24 -070038/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080039 uint32_t handle;
Ben Cheng655a7c02013-10-16 16:09:24 -070040};
41struct drm_qxl_map {
Tao Baod7db5942015-01-28 10:07:51 -080042 uint64_t offset;
Ben Cheng655a7c02013-10-16 16:09:24 -070043/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080044 uint32_t handle;
45 uint32_t pad;
Ben Cheng655a7c02013-10-16 16:09:24 -070046};
47#define QXL_RELOC_TYPE_BO 1
48/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49#define QXL_RELOC_TYPE_SURF 2
50struct drm_qxl_reloc {
Tao Baod7db5942015-01-28 10:07:51 -080051 uint64_t src_offset;
52 uint64_t dst_offset;
Ben Cheng655a7c02013-10-16 16:09:24 -070053/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080054 uint32_t src_handle;
55 uint32_t dst_handle;
56 uint32_t reloc_type;
57 uint32_t pad;
Ben Cheng655a7c02013-10-16 16:09:24 -070058/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59};
60struct drm_qxl_command {
Tao Baod7db5942015-01-28 10:07:51 -080061 uint64_t __user command;
62 uint64_t __user relocs;
Ben Cheng655a7c02013-10-16 16:09:24 -070063/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080064 uint32_t type;
65 uint32_t command_size;
66 uint32_t relocs_num;
67 uint32_t pad;
Ben Cheng655a7c02013-10-16 16:09:24 -070068/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
69};
70struct drm_qxl_execbuffer {
Tao Baod7db5942015-01-28 10:07:51 -080071 uint32_t flags;
72 uint32_t commands_num;
Ben Cheng655a7c02013-10-16 16:09:24 -070073/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080074 uint64_t __user commands;
Ben Cheng655a7c02013-10-16 16:09:24 -070075};
76struct drm_qxl_update_area {
Tao Baod7db5942015-01-28 10:07:51 -080077 uint32_t handle;
Ben Cheng655a7c02013-10-16 16:09:24 -070078/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080079 uint32_t top;
80 uint32_t left;
81 uint32_t bottom;
82 uint32_t right;
Ben Cheng655a7c02013-10-16 16:09:24 -070083/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080084 uint32_t pad;
Ben Cheng655a7c02013-10-16 16:09:24 -070085};
86#define QXL_PARAM_NUM_SURFACES 1
87#define QXL_PARAM_MAX_RELOCS 2
88/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
89struct drm_qxl_getparam {
Tao Baod7db5942015-01-28 10:07:51 -080090 uint64_t param;
91 uint64_t value;
Ben Cheng655a7c02013-10-16 16:09:24 -070092};
93/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
94struct drm_qxl_clientcap {
Tao Baod7db5942015-01-28 10:07:51 -080095 uint32_t index;
96 uint32_t pad;
Ben Cheng655a7c02013-10-16 16:09:24 -070097};
98/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
99struct drm_qxl_alloc_surf {
Tao Baod7db5942015-01-28 10:07:51 -0800100 uint32_t format;
101 uint32_t width;
102 uint32_t height;
Ben Cheng655a7c02013-10-16 16:09:24 -0700103/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800104 int32_t stride;
105 uint32_t handle;
106 uint32_t pad;
Ben Cheng655a7c02013-10-16 16:09:24 -0700107};
108/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800109#define DRM_IOCTL_QXL_ALLOC DRM_IOWR(DRM_COMMAND_BASE + DRM_QXL_ALLOC, struct drm_qxl_alloc)
110#define DRM_IOCTL_QXL_MAP DRM_IOWR(DRM_COMMAND_BASE + DRM_QXL_MAP, struct drm_qxl_map)
111#define DRM_IOCTL_QXL_EXECBUFFER DRM_IOW(DRM_COMMAND_BASE + DRM_QXL_EXECBUFFER, struct drm_qxl_execbuffer)
112#define DRM_IOCTL_QXL_UPDATE_AREA DRM_IOW(DRM_COMMAND_BASE + DRM_QXL_UPDATE_AREA, struct drm_qxl_update_area)
Ben Cheng655a7c02013-10-16 16:09:24 -0700113/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800114#define DRM_IOCTL_QXL_GETPARAM DRM_IOWR(DRM_COMMAND_BASE + DRM_QXL_GETPARAM, struct drm_qxl_getparam)
115#define DRM_IOCTL_QXL_CLIENTCAP DRM_IOW(DRM_COMMAND_BASE + DRM_QXL_CLIENTCAP, struct drm_qxl_clientcap)
116#define DRM_IOCTL_QXL_ALLOC_SURF DRM_IOWR(DRM_COMMAND_BASE + DRM_QXL_ALLOC_SURF, struct drm_qxl_alloc_surf)
Ben Cheng655a7c02013-10-16 16:09:24 -0700117#endif
118/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */