blob: ea1f37d1a39065bfa5b8009b9a57e97b0718979e [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
Christopher Ferris106b3a82016-08-24 12:15:38 -070023#endif
Christopher Ferris38062f92014-07-09 15:33:25 -070024#define DRM_ARMADA_GEM_CREATE 0x00
25#define DRM_ARMADA_GEM_MMAP 0x02
Christopher Ferris38062f92014-07-09 15:33:25 -070026#define DRM_ARMADA_GEM_PWRITE 0x03
Tao Baod7db5942015-01-28 10:07:51 -080027#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 -070028struct drm_armada_gem_create {
Christopher Ferris1308ad32017-11-14 17:32:13 -080029 __u32 handle;
30 __u32 size;
Christopher Ferris38062f92014-07-09 15:33:25 -070031};
Tao Baod7db5942015-01-28 10:07:51 -080032#define DRM_IOCTL_ARMADA_GEM_CREATE ARMADA_IOCTL(IOWR, GEM_CREATE, gem_create)
Christopher Ferris38062f92014-07-09 15:33:25 -070033struct drm_armada_gem_mmap {
Christopher Ferris1308ad32017-11-14 17:32:13 -080034 __u32 handle;
35 __u32 pad;
36 __u64 offset;
37 __u64 size;
38 __u64 addr;
Christopher Ferris38062f92014-07-09 15:33:25 -070039};
Tao Baod7db5942015-01-28 10:07:51 -080040#define DRM_IOCTL_ARMADA_GEM_MMAP ARMADA_IOCTL(IOWR, GEM_MMAP, gem_mmap)
Christopher Ferris38062f92014-07-09 15:33:25 -070041struct drm_armada_gem_pwrite {
Christopher Ferris1308ad32017-11-14 17:32:13 -080042 __u64 ptr;
43 __u32 handle;
44 __u32 offset;
45 __u32 size;
Christopher Ferris38062f92014-07-09 15:33:25 -070046};
Tao Baod7db5942015-01-28 10:07:51 -080047#define DRM_IOCTL_ARMADA_GEM_PWRITE ARMADA_IOCTL(IOW, GEM_PWRITE, gem_pwrite)
Christopher Ferris106b3a82016-08-24 12:15:38 -070048#ifdef __cplusplus
Christopher Ferris38062f92014-07-09 15:33:25 -070049#endif
Christopher Ferris106b3a82016-08-24 12:15:38 -070050#endif