blob: ca9d46b4b321fee2433f54daba4c63e893df53de [file] [log] [blame]
Christopher Ferris38062f92014-07-09 15:33:25 -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 DRM_ARMADA_IOCTL_H
20#define DRM_ARMADA_IOCTL_H
Christopher Ferris106b3a82016-08-24 12:15:38 -070021#include "drm.h"
22#ifdef __cplusplus
23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24#endif
Christopher Ferris38062f92014-07-09 15:33:25 -070025#define DRM_ARMADA_GEM_CREATE 0x00
26#define DRM_ARMADA_GEM_MMAP 0x02
Christopher Ferris38062f92014-07-09 15:33:25 -070027#define DRM_ARMADA_GEM_PWRITE 0x03
Christopher Ferris106b3a82016-08-24 12:15:38 -070028/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080029#define ARMADA_IOCTL(dir,name,str) DRM_ ##dir(DRM_COMMAND_BASE + DRM_ARMADA_ ##name, struct drm_armada_ ##str)
Christopher Ferris38062f92014-07-09 15:33:25 -070030struct drm_armada_gem_create {
Tao Baod7db5942015-01-28 10:07:51 -080031 uint32_t handle;
Tao Baod7db5942015-01-28 10:07:51 -080032 uint32_t size;
Christopher Ferris106b3a82016-08-24 12:15:38 -070033/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -070034};
Tao Baod7db5942015-01-28 10:07:51 -080035#define DRM_IOCTL_ARMADA_GEM_CREATE ARMADA_IOCTL(IOWR, GEM_CREATE, gem_create)
Christopher Ferris38062f92014-07-09 15:33:25 -070036struct drm_armada_gem_mmap {
Tao Baod7db5942015-01-28 10:07:51 -080037 uint32_t handle;
Christopher Ferris106b3a82016-08-24 12:15:38 -070038/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080039 uint32_t pad;
40 uint64_t offset;
41 uint64_t size;
Tao Baod7db5942015-01-28 10:07:51 -080042 uint64_t addr;
Christopher Ferris106b3a82016-08-24 12:15:38 -070043/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -070044};
Tao Baod7db5942015-01-28 10:07:51 -080045#define DRM_IOCTL_ARMADA_GEM_MMAP ARMADA_IOCTL(IOWR, GEM_MMAP, gem_mmap)
Christopher Ferris38062f92014-07-09 15:33:25 -070046struct drm_armada_gem_pwrite {
Tao Baod7db5942015-01-28 10:07:51 -080047 uint64_t ptr;
Christopher Ferris106b3a82016-08-24 12:15:38 -070048/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080049 uint32_t handle;
50 uint32_t offset;
51 uint32_t size;
Christopher Ferris38062f92014-07-09 15:33:25 -070052};
Christopher Ferris106b3a82016-08-24 12:15:38 -070053/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080054#define DRM_IOCTL_ARMADA_GEM_PWRITE ARMADA_IOCTL(IOW, GEM_PWRITE, gem_pwrite)
Christopher Ferris106b3a82016-08-24 12:15:38 -070055#ifdef __cplusplus
Christopher Ferris38062f92014-07-09 15:33:25 -070056#endif
Christopher Ferris106b3a82016-08-24 12:15:38 -070057#endif
58/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */