138062f954c637861348dd8078cefb73554e6f12cChristopher Ferris/**************************************************************************** 238062f954c637861348dd8078cefb73554e6f12cChristopher Ferris **************************************************************************** 338062f954c637861348dd8078cefb73554e6f12cChristopher Ferris *** 438062f954c637861348dd8078cefb73554e6f12cChristopher Ferris *** This header was automatically generated from a Linux kernel header 538062f954c637861348dd8078cefb73554e6f12cChristopher Ferris *** of the same name, to make information necessary for userspace to 638062f954c637861348dd8078cefb73554e6f12cChristopher Ferris *** call into the kernel available to libc. It contains only constants, 738062f954c637861348dd8078cefb73554e6f12cChristopher Ferris *** structures, and macros generated from the original header, and thus, 838062f954c637861348dd8078cefb73554e6f12cChristopher Ferris *** contains no copyrightable information. 938062f954c637861348dd8078cefb73554e6f12cChristopher Ferris *** 1038062f954c637861348dd8078cefb73554e6f12cChristopher Ferris *** To edit the content of this header, modify the corresponding 1138062f954c637861348dd8078cefb73554e6f12cChristopher Ferris *** source file (e.g. under external/kernel-headers/original/) then 1238062f954c637861348dd8078cefb73554e6f12cChristopher Ferris *** run bionic/libc/kernel/tools/update_all.py 1338062f954c637861348dd8078cefb73554e6f12cChristopher Ferris *** 1438062f954c637861348dd8078cefb73554e6f12cChristopher Ferris *** Any manual change here will be lost the next time this script will 1538062f954c637861348dd8078cefb73554e6f12cChristopher Ferris *** be run. You've been warned! 1638062f954c637861348dd8078cefb73554e6f12cChristopher Ferris *** 1738062f954c637861348dd8078cefb73554e6f12cChristopher Ferris **************************************************************************** 1838062f954c637861348dd8078cefb73554e6f12cChristopher Ferris ****************************************************************************/ 1938062f954c637861348dd8078cefb73554e6f12cChristopher Ferris#ifndef DRM_ARMADA_IOCTL_H 2038062f954c637861348dd8078cefb73554e6f12cChristopher Ferris#define DRM_ARMADA_IOCTL_H 21106b3a8a7dc03c19a45e322de425ac56aafac358Christopher Ferris#include "drm.h" 22106b3a8a7dc03c19a45e322de425ac56aafac358Christopher Ferris#ifdef __cplusplus 23106b3a8a7dc03c19a45e322de425ac56aafac358Christopher Ferris#endif 2438062f954c637861348dd8078cefb73554e6f12cChristopher Ferris#define DRM_ARMADA_GEM_CREATE 0x00 2538062f954c637861348dd8078cefb73554e6f12cChristopher Ferris#define DRM_ARMADA_GEM_MMAP 0x02 2638062f954c637861348dd8078cefb73554e6f12cChristopher Ferris#define DRM_ARMADA_GEM_PWRITE 0x03 27d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao#define ARMADA_IOCTL(dir,name,str) DRM_ ##dir(DRM_COMMAND_BASE + DRM_ARMADA_ ##name, struct drm_armada_ ##str) 2838062f954c637861348dd8078cefb73554e6f12cChristopher Ferrisstruct drm_armada_gem_create { 29d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao uint32_t handle; 30d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao uint32_t size; 3138062f954c637861348dd8078cefb73554e6f12cChristopher Ferris}; 32d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao#define DRM_IOCTL_ARMADA_GEM_CREATE ARMADA_IOCTL(IOWR, GEM_CREATE, gem_create) 3338062f954c637861348dd8078cefb73554e6f12cChristopher Ferrisstruct drm_armada_gem_mmap { 34d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao uint32_t handle; 35d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao uint32_t pad; 36d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao uint64_t offset; 37d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao uint64_t size; 38d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao uint64_t addr; 3938062f954c637861348dd8078cefb73554e6f12cChristopher Ferris}; 40d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao#define DRM_IOCTL_ARMADA_GEM_MMAP ARMADA_IOCTL(IOWR, GEM_MMAP, gem_mmap) 4138062f954c637861348dd8078cefb73554e6f12cChristopher Ferrisstruct drm_armada_gem_pwrite { 42d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao uint64_t ptr; 43d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao uint32_t handle; 44d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao uint32_t offset; 45d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao uint32_t size; 4638062f954c637861348dd8078cefb73554e6f12cChristopher Ferris}; 47d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao#define DRM_IOCTL_ARMADA_GEM_PWRITE ARMADA_IOCTL(IOW, GEM_PWRITE, gem_pwrite) 48106b3a8a7dc03c19a45e322de425ac56aafac358Christopher Ferris#ifdef __cplusplus 4938062f954c637861348dd8078cefb73554e6f12cChristopher Ferris#endif 50106b3a8a7dc03c19a45e322de425ac56aafac358Christopher Ferris#endif 51