1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
3 * Copyright (C) 2012 Russell King
4 * With inspiration from the i915 driver
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.
10 #ifndef DRM_ARMADA_IOCTL_H
11 #define DRM_ARMADA_IOCTL_H
15 #if defined(__cplusplus)
19 #define DRM_ARMADA_GEM_CREATE 0x00
20 #define DRM_ARMADA_GEM_MMAP 0x02
21 #define DRM_ARMADA_GEM_PWRITE 0x03
23 #define ARMADA_IOCTL(dir, name, str) \
24 DRM_##dir(DRM_COMMAND_BASE + DRM_ARMADA_##name, struct drm_armada_##str)
26 struct drm_armada_gem_create {
30 #define DRM_IOCTL_ARMADA_GEM_CREATE \
31 ARMADA_IOCTL(IOWR, GEM_CREATE, gem_create)
33 struct drm_armada_gem_mmap {
40 #define DRM_IOCTL_ARMADA_GEM_MMAP \
41 ARMADA_IOCTL(IOWR, GEM_MMAP, gem_mmap)
43 struct drm_armada_gem_pwrite {
49 #define DRM_IOCTL_ARMADA_GEM_PWRITE \
50 ARMADA_IOCTL(IOW, GEM_PWRITE, gem_pwrite)
52 #if defined(__cplusplus)