2 * Copyright (C) 2012 Russell King
3 * With inspiration from the i915 driver
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 2 as
7 * published by the Free Software Foundation.
9 #ifndef DRM_ARMADA_IOCTL_H
10 #define DRM_ARMADA_IOCTL_H
14 #if defined(__cplusplus)
18 #define DRM_ARMADA_GEM_CREATE 0x00
19 #define DRM_ARMADA_GEM_MMAP 0x02
20 #define DRM_ARMADA_GEM_PWRITE 0x03
22 #define ARMADA_IOCTL(dir, name, str) \
23 DRM_##dir(DRM_COMMAND_BASE + DRM_ARMADA_##name, struct drm_armada_##str)
25 struct drm_armada_gem_create {
29 #define DRM_IOCTL_ARMADA_GEM_CREATE \
30 ARMADA_IOCTL(IOWR, GEM_CREATE, gem_create)
32 struct drm_armada_gem_mmap {
39 #define DRM_IOCTL_ARMADA_GEM_MMAP \
40 ARMADA_IOCTL(IOWR, GEM_MMAP, gem_mmap)
42 struct drm_armada_gem_pwrite {
48 #define DRM_IOCTL_ARMADA_GEM_PWRITE \
49 ARMADA_IOCTL(IOW, GEM_PWRITE, gem_pwrite)
51 #if defined(__cplusplus)