blob: 66364542a03b6392fb50409b7f3d155f38ebaa88 [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
Christopher Ferris106b3a82016-08-24 12:15:38 -070021#include "drm.h"
22#ifdef __cplusplus
Ben Cheng655a7c02013-10-16 16:09:24 -070023/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris106b3a82016-08-24 12:15:38 -070024#endif
Ben Cheng655a7c02013-10-16 16:09:24 -070025#define QXL_GEM_DOMAIN_CPU 0
26#define QXL_GEM_DOMAIN_VRAM 1
27#define QXL_GEM_DOMAIN_SURFACE 2
Ben Cheng655a7c02013-10-16 16:09:24 -070028/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris106b3a82016-08-24 12:15:38 -070029#define DRM_QXL_ALLOC 0x00
Ben Cheng655a7c02013-10-16 16:09:24 -070030#define DRM_QXL_MAP 0x01
31#define DRM_QXL_EXECBUFFER 0x02
32#define DRM_QXL_UPDATE_AREA 0x03
Ben Cheng655a7c02013-10-16 16:09:24 -070033/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris106b3a82016-08-24 12:15:38 -070034#define DRM_QXL_GETPARAM 0x04
Ben Cheng655a7c02013-10-16 16:09:24 -070035#define DRM_QXL_CLIENTCAP 0x05
36#define DRM_QXL_ALLOC_SURF 0x06
37struct drm_qxl_alloc {
Ben Cheng655a7c02013-10-16 16:09:24 -070038/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris106b3a82016-08-24 12:15:38 -070039 __u32 size;
40 __u32 handle;
Ben Cheng655a7c02013-10-16 16:09:24 -070041};
42struct drm_qxl_map {
Ben Cheng655a7c02013-10-16 16:09:24 -070043/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris106b3a82016-08-24 12:15:38 -070044 __u64 offset;
45 __u32 handle;
46 __u32 pad;
Ben Cheng655a7c02013-10-16 16:09:24 -070047};
Ben Cheng655a7c02013-10-16 16:09:24 -070048/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris106b3a82016-08-24 12:15:38 -070049#define QXL_RELOC_TYPE_BO 1
Ben Cheng655a7c02013-10-16 16:09:24 -070050#define QXL_RELOC_TYPE_SURF 2
51struct drm_qxl_reloc {
Christopher Ferris106b3a82016-08-24 12:15:38 -070052 __u64 src_offset;
Ben Cheng655a7c02013-10-16 16:09:24 -070053/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris106b3a82016-08-24 12:15:38 -070054 __u64 dst_offset;
55 __u32 src_handle;
56 __u32 dst_handle;
57 __u32 reloc_type;
Ben Cheng655a7c02013-10-16 16:09:24 -070058/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris106b3a82016-08-24 12:15:38 -070059 __u32 pad;
Ben Cheng655a7c02013-10-16 16:09:24 -070060};
61struct drm_qxl_command {
Christopher Ferris106b3a82016-08-24 12:15:38 -070062 __u64 __user command;
Ben Cheng655a7c02013-10-16 16:09:24 -070063/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris106b3a82016-08-24 12:15:38 -070064 __u64 __user relocs;
65 __u32 type;
66 __u32 command_size;
67 __u32 relocs_num;
Ben Cheng655a7c02013-10-16 16:09:24 -070068/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris106b3a82016-08-24 12:15:38 -070069 __u32 pad;
Ben Cheng655a7c02013-10-16 16:09:24 -070070};
71struct drm_qxl_execbuffer {
Christopher Ferris106b3a82016-08-24 12:15:38 -070072 __u32 flags;
Ben Cheng655a7c02013-10-16 16:09:24 -070073/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris106b3a82016-08-24 12:15:38 -070074 __u32 commands_num;
75 __u64 __user commands;
Ben Cheng655a7c02013-10-16 16:09:24 -070076};
77struct drm_qxl_update_area {
Ben Cheng655a7c02013-10-16 16:09:24 -070078/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris106b3a82016-08-24 12:15:38 -070079 __u32 handle;
80 __u32 top;
81 __u32 left;
82 __u32 bottom;
Ben Cheng655a7c02013-10-16 16:09:24 -070083/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris106b3a82016-08-24 12:15:38 -070084 __u32 right;
85 __u32 pad;
Ben Cheng655a7c02013-10-16 16:09:24 -070086};
87#define QXL_PARAM_NUM_SURFACES 1
Christopher Ferris106b3a82016-08-24 12:15:38 -070088/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070089#define QXL_PARAM_MAX_RELOCS 2
Ben Cheng655a7c02013-10-16 16:09:24 -070090struct drm_qxl_getparam {
Christopher Ferris106b3a82016-08-24 12:15:38 -070091 __u64 param;
92 __u64 value;
Ben Cheng655a7c02013-10-16 16:09:24 -070093/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris106b3a82016-08-24 12:15:38 -070094};
Ben Cheng655a7c02013-10-16 16:09:24 -070095struct drm_qxl_clientcap {
Christopher Ferris106b3a82016-08-24 12:15:38 -070096 __u32 index;
97 __u32 pad;
Ben Cheng655a7c02013-10-16 16:09:24 -070098/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris106b3a82016-08-24 12:15:38 -070099};
Ben Cheng655a7c02013-10-16 16:09:24 -0700100struct drm_qxl_alloc_surf {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700101 __u32 format;
102 __u32 width;
Ben Cheng655a7c02013-10-16 16:09:24 -0700103/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris106b3a82016-08-24 12:15:38 -0700104 __u32 height;
105 __s32 stride;
106 __u32 handle;
107 __u32 pad;
108/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700109};
Tao Baod7db5942015-01-28 10:07:51 -0800110#define DRM_IOCTL_QXL_ALLOC DRM_IOWR(DRM_COMMAND_BASE + DRM_QXL_ALLOC, struct drm_qxl_alloc)
111#define DRM_IOCTL_QXL_MAP DRM_IOWR(DRM_COMMAND_BASE + DRM_QXL_MAP, struct drm_qxl_map)
112#define DRM_IOCTL_QXL_EXECBUFFER DRM_IOW(DRM_COMMAND_BASE + DRM_QXL_EXECBUFFER, struct drm_qxl_execbuffer)
Ben Cheng655a7c02013-10-16 16:09:24 -0700113/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris106b3a82016-08-24 12:15:38 -0700114#define DRM_IOCTL_QXL_UPDATE_AREA DRM_IOW(DRM_COMMAND_BASE + DRM_QXL_UPDATE_AREA, struct drm_qxl_update_area)
Tao Baod7db5942015-01-28 10:07:51 -0800115#define DRM_IOCTL_QXL_GETPARAM DRM_IOWR(DRM_COMMAND_BASE + DRM_QXL_GETPARAM, struct drm_qxl_getparam)
116#define DRM_IOCTL_QXL_CLIENTCAP DRM_IOW(DRM_COMMAND_BASE + DRM_QXL_CLIENTCAP, struct drm_qxl_clientcap)
117#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 -0700118/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris106b3a82016-08-24 12:15:38 -0700119#ifdef __cplusplus
120#endif
121#endif