diff options
| author | Dave Airlie <airlied@redhat.com> | 2013-10-22 04:38:18 -0400 |
|---|---|---|
| committer | Dave Airlie <airlied@redhat.com> | 2013-10-22 04:50:08 -0400 |
| commit | 5e4e3ba997af8c756c23ffaa86652d3a4df5bdfa (patch) | |
| tree | a6860666ccf18c9add51d2b0f468cecf3fd7b3da /include/uapi | |
| parent | 5bdebb183c9702a8c57a01dff09337be3de337a6 (diff) | |
| parent | 585b691e2180e1501637050290292f77f5c30c7b (diff) | |
Merge branch 'drm-tda998x-3.12' of git://ftp.arm.linux.org.uk/~rmk/linux-cubox into drm-next
This adds support for the Armada 510 display subsystem found on the
Marvell Dove devices. This IP is re-used across several different Marvell
SoCs with various tweaks, and this driver has been structured to allow
the other IPs to re-use the bulk of this code; further work in this area
is expected from interested parties.
This has been extensively tested on the SolidRun Cubox platform and
appears to work well there.
[airlied: update for api changes merged previous to this]
Diffstat (limited to 'include/uapi')
| -rw-r--r-- | include/uapi/drm/armada_drm.h | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/include/uapi/drm/armada_drm.h b/include/uapi/drm/armada_drm.h new file mode 100644 index 000000000000..8dec3fdc99c7 --- /dev/null +++ b/include/uapi/drm/armada_drm.h | |||
| @@ -0,0 +1,45 @@ | |||
| 1 | /* | ||
| 2 | * Copyright (C) 2012 Russell King | ||
| 3 | * With inspiration from the i915 driver | ||
| 4 | * | ||
| 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. | ||
| 8 | */ | ||
| 9 | #ifndef DRM_ARMADA_IOCTL_H | ||
| 10 | #define DRM_ARMADA_IOCTL_H | ||
| 11 | |||
| 12 | #define DRM_ARMADA_GEM_CREATE 0x00 | ||
| 13 | #define DRM_ARMADA_GEM_MMAP 0x02 | ||
| 14 | #define DRM_ARMADA_GEM_PWRITE 0x03 | ||
| 15 | |||
| 16 | #define ARMADA_IOCTL(dir, name, str) \ | ||
| 17 | DRM_##dir(DRM_COMMAND_BASE + DRM_ARMADA_##name, struct drm_armada_##str) | ||
| 18 | |||
| 19 | struct drm_armada_gem_create { | ||
| 20 | uint32_t handle; | ||
| 21 | uint32_t size; | ||
| 22 | }; | ||
| 23 | #define DRM_IOCTL_ARMADA_GEM_CREATE \ | ||
| 24 | ARMADA_IOCTL(IOWR, GEM_CREATE, gem_create) | ||
| 25 | |||
| 26 | struct drm_armada_gem_mmap { | ||
| 27 | uint32_t handle; | ||
| 28 | uint32_t pad; | ||
| 29 | uint64_t offset; | ||
| 30 | uint64_t size; | ||
| 31 | uint64_t addr; | ||
| 32 | }; | ||
| 33 | #define DRM_IOCTL_ARMADA_GEM_MMAP \ | ||
| 34 | ARMADA_IOCTL(IOWR, GEM_MMAP, gem_mmap) | ||
| 35 | |||
| 36 | struct drm_armada_gem_pwrite { | ||
| 37 | uint64_t ptr; | ||
| 38 | uint32_t handle; | ||
| 39 | uint32_t offset; | ||
| 40 | uint32_t size; | ||
| 41 | }; | ||
| 42 | #define DRM_IOCTL_ARMADA_GEM_PWRITE \ | ||
| 43 | ARMADA_IOCTL(IOW, GEM_PWRITE, gem_pwrite) | ||
| 44 | |||
| 45 | #endif | ||
