blob: aabd23b736542542fde885eabe520f420eb20ec8 [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 Ferris48fe0ae2019-01-10 15:59:33 -080023extern "C" {
Christopher Ferris106b3a82016-08-24 12:15:38 -070024#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
Tao Baod7db5942015-01-28 10:07:51 -080028#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 -070029struct drm_armada_gem_create {
Christopher Ferris1308ad32017-11-14 17:32:13 -080030 __u32 handle;
31 __u32 size;
Christopher Ferris38062f92014-07-09 15:33:25 -070032};
Tao Baod7db5942015-01-28 10:07:51 -080033#define DRM_IOCTL_ARMADA_GEM_CREATE ARMADA_IOCTL(IOWR, GEM_CREATE, gem_create)
Christopher Ferris38062f92014-07-09 15:33:25 -070034struct drm_armada_gem_mmap {
Christopher Ferris1308ad32017-11-14 17:32:13 -080035 __u32 handle;
36 __u32 pad;
37 __u64 offset;
38 __u64 size;
39 __u64 addr;
Christopher Ferris38062f92014-07-09 15:33:25 -070040};
Tao Baod7db5942015-01-28 10:07:51 -080041#define DRM_IOCTL_ARMADA_GEM_MMAP ARMADA_IOCTL(IOWR, GEM_MMAP, gem_mmap)
Christopher Ferris38062f92014-07-09 15:33:25 -070042struct drm_armada_gem_pwrite {
Christopher Ferris1308ad32017-11-14 17:32:13 -080043 __u64 ptr;
44 __u32 handle;
45 __u32 offset;
46 __u32 size;
Christopher Ferris38062f92014-07-09 15:33:25 -070047};
Tao Baod7db5942015-01-28 10:07:51 -080048#define DRM_IOCTL_ARMADA_GEM_PWRITE ARMADA_IOCTL(IOW, GEM_PWRITE, gem_pwrite)
Christopher Ferris106b3a82016-08-24 12:15:38 -070049#ifdef __cplusplus
Christopher Ferris48fe0ae2019-01-10 15:59:33 -080050}
Christopher Ferris38062f92014-07-09 15:33:25 -070051#endif
Christopher Ferris106b3a82016-08-24 12:15:38 -070052#endif