diff options
author | Alan Cox <alan@linux.intel.com> | 2011-07-15 17:32:38 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-07-15 19:05:06 +0200 |
commit | 7dfe43c52d2cd595964c38281499c5361a0a8e85 (patch) | |
tree | 30daa55b964f37e15bdd68531c81ad1e1e164f25 /drivers/staging/gma500/psb_drm.h | |
parent | bd7b9f91ddc2d08381a853bd33b3ce7d0012b1df (diff) | |
download | op-kernel-dev-7dfe43c52d2cd595964c38281499c5361a0a8e85.zip op-kernel-dev-7dfe43c52d2cd595964c38281499c5361a0a8e85.tar.gz |
gma500: add an mmap ioctl
This does the same as the dumb mmap but we want them separated in the ABI
in case a future extension to the dumb interface means we can't treat them
the same way.
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/gma500/psb_drm.h')
-rw-r--r-- | drivers/staging/gma500/psb_drm.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/staging/gma500/psb_drm.h b/drivers/staging/gma500/psb_drm.h index eef53f3..70115a9 100644 --- a/drivers/staging/gma500/psb_drm.h +++ b/drivers/staging/gma500/psb_drm.h @@ -162,6 +162,7 @@ struct drm_psb_register_rw_arg { #define DRM_PSB_GEM_CREATE 0x10 #define DRM_PSB_2D_OP 0x11 +#define DRM_PSB_GEM_MMAP 0x12 #define DRM_PSB_DPST 0x1B #define DRM_PSB_GAMMA 0x1C #define DRM_PSB_DPST_BL 0x1D @@ -203,4 +204,15 @@ struct drm_psb_2d_op { __u32 cmd[PSB_2D_OP_BUFLEN]; }; +struct drm_psb_gem_mmap { + __u32 handle; + __u32 pad; + /** + * Fake offset to use for subsequent mmap call + * + * This is a fixed-size type for 32/64 compatibility. + */ + __u64 offset; +}; + #endif |