122851890Sopenharmony_ci/* 222851890Sopenharmony_ci * This header was generated from the Linux kernel headers by update_headers.py, 322851890Sopenharmony_ci * to provide necessary information from kernel to userspace, such as constants, 422851890Sopenharmony_ci * structures, and macros, and thus, contains no copyrightable information. 522851890Sopenharmony_ci */ 622851890Sopenharmony_ci#ifndef DRM_ARMADA_IOCTL_H 722851890Sopenharmony_ci#define DRM_ARMADA_IOCTL_H 822851890Sopenharmony_ci#include "drm.h" 922851890Sopenharmony_ci#if defined(__cplusplus) 1022851890Sopenharmony_ciextern "C" { 1122851890Sopenharmony_ci#endif 1222851890Sopenharmony_ci#define DRM_ARMADA_GEM_CREATE 0x00 1322851890Sopenharmony_ci#define DRM_ARMADA_GEM_MMAP 0x02 1422851890Sopenharmony_ci#define DRM_ARMADA_GEM_PWRITE 0x03 1522851890Sopenharmony_ci#define ARMADA_IOCTL(dir, name, str) \ 1622851890Sopenharmony_ci DRM_##dir(DRM_COMMAND_BASE + DRM_ARMADA_##name, struct drm_armada_##str) 1722851890Sopenharmony_cistruct drm_armada_gem_create { 1822851890Sopenharmony_ci __u32 handle; 1922851890Sopenharmony_ci __u32 size; 2022851890Sopenharmony_ci}; 2122851890Sopenharmony_ci#define DRM_IOCTL_ARMADA_GEM_CREATE \ 2222851890Sopenharmony_ci ARMADA_IOCTL(IOWR, GEM_CREATE, gem_create) 2322851890Sopenharmony_cistruct drm_armada_gem_mmap { 2422851890Sopenharmony_ci __u32 handle; 2522851890Sopenharmony_ci __u32 pad; 2622851890Sopenharmony_ci __u64 offset; 2722851890Sopenharmony_ci __u64 size; 2822851890Sopenharmony_ci __u64 addr; 2922851890Sopenharmony_ci}; 3022851890Sopenharmony_ci#define DRM_IOCTL_ARMADA_GEM_MMAP \ 3122851890Sopenharmony_ci ARMADA_IOCTL(IOWR, GEM_MMAP, gem_mmap) 3222851890Sopenharmony_cistruct drm_armada_gem_pwrite { 3322851890Sopenharmony_ci __u64 ptr; 3422851890Sopenharmony_ci __u32 handle; 3522851890Sopenharmony_ci __u32 offset; 3622851890Sopenharmony_ci __u32 size; 3722851890Sopenharmony_ci}; 3822851890Sopenharmony_ci#define DRM_IOCTL_ARMADA_GEM_PWRITE \ 3922851890Sopenharmony_ci ARMADA_IOCTL(IOW, GEM_PWRITE, gem_pwrite) 4022851890Sopenharmony_ci#if defined(__cplusplus) 4122851890Sopenharmony_ci} 4222851890Sopenharmony_ci#endif 4322851890Sopenharmony_ci#endif 44