Logo Search packages:      
Sourcecode: linux version File versions  Download package

drm_ioc32.c File Reference


Detailed Description

32-bit ioctl compatibility routines for the DRM.

Author:
Paul Mackerras <paulus@samba.org>
Copyright (C) Paul Mackerras 2005. All Rights Reserved.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice (including the next paragraph) shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Definition in file drm_ioc32.c.

#include <linux/compat.h>
#include "drmP.h"
#include "drm_core.h"

Go to the source code of this file.

Classes

struct  drm_buf_desc32
struct  drm_buf_free32
struct  drm_buf_info32
struct  drm_buf_map32
struct  drm_buf_pub32
struct  drm_client32
struct  drm_ctx_priv_map32
struct  drm_ctx_res32
struct  drm_dma32
struct  drm_map32
struct  drm_scatter_gather32
struct  drm_stats32
struct  drm_unique32
struct  drm_version_32
union  drm_wait_vblank32
struct  drm_wait_vblank_reply32
struct  drm_wait_vblank_request32

Defines

#define DRM_IOCTL_ADD_BUFS32   DRM_IOWR(0x16, drm_buf_desc32_t)
#define DRM_IOCTL_ADD_MAP32   DRM_IOWR(0x15, drm_map32_t)
#define DRM_IOCTL_AGP_ALLOC32   DRM_IOWR(0x34, drm_agp_buffer32_t)
#define DRM_IOCTL_AGP_BIND32   DRM_IOW( 0x36, drm_agp_binding32_t)
#define DRM_IOCTL_AGP_ENABLE32   DRM_IOW( 0x32, drm_agp_mode32_t)
#define DRM_IOCTL_AGP_FREE32   DRM_IOW( 0x35, drm_agp_buffer32_t)
#define DRM_IOCTL_AGP_INFO32   DRM_IOR( 0x33, drm_agp_info32_t)
#define DRM_IOCTL_AGP_UNBIND32   DRM_IOW( 0x37, drm_agp_binding32_t)
#define DRM_IOCTL_DMA32   DRM_IOWR(0x29, drm_dma32_t)
#define DRM_IOCTL_FREE_BUFS32   DRM_IOW( 0x1a, drm_buf_free32_t)
#define DRM_IOCTL_GET_CLIENT32   DRM_IOWR(0x05, drm_client32_t)
#define DRM_IOCTL_GET_MAP32   DRM_IOWR(0x04, drm_map32_t)
#define DRM_IOCTL_GET_SAREA_CTX32   DRM_IOWR(0x1d, drm_ctx_priv_map32_t)
#define DRM_IOCTL_GET_STATS32   DRM_IOR( 0x06, drm_stats32_t)
#define DRM_IOCTL_GET_UNIQUE32   DRM_IOWR(0x01, drm_unique32_t)
#define DRM_IOCTL_INFO_BUFS32   DRM_IOWR(0x18, drm_buf_info32_t)
#define DRM_IOCTL_MAP_BUFS32   DRM_IOWR(0x19, drm_buf_map32_t)
#define DRM_IOCTL_MARK_BUFS32   DRM_IOW( 0x17, drm_buf_desc32_t)
#define DRM_IOCTL_RES_CTX32   DRM_IOWR(0x26, drm_ctx_res32_t)
#define DRM_IOCTL_RM_MAP32   DRM_IOW( 0x1b, drm_map32_t)
#define DRM_IOCTL_SET_SAREA_CTX32   DRM_IOW( 0x1c, drm_ctx_priv_map32_t)
#define DRM_IOCTL_SET_UNIQUE32   DRM_IOW( 0x10, drm_unique32_t)
#define DRM_IOCTL_SG_ALLOC32   DRM_IOW( 0x38, drm_scatter_gather32_t)
#define DRM_IOCTL_SG_FREE32   DRM_IOW( 0x39, drm_scatter_gather32_t)
#define DRM_IOCTL_VERSION32   DRM_IOWR(0x00, drm_version32_t)
#define DRM_IOCTL_WAIT_VBLANK32   DRM_IOWR(0x3a, drm_wait_vblank32_t)

Typedefs

typedef struct drm_buf_desc32 drm_buf_desc32_t
typedef struct drm_buf_free32 drm_buf_free32_t
typedef struct drm_buf_info32 drm_buf_info32_t
typedef struct drm_buf_map32 drm_buf_map32_t
typedef struct drm_buf_pub32 drm_buf_pub32_t
typedef struct drm_client32 drm_client32_t
typedef struct drm_ctx_priv_map32 drm_ctx_priv_map32_t
typedef struct drm_ctx_res32 drm_ctx_res32_t
typedef struct drm_dma32 drm_dma32_t
typedef struct drm_map32 drm_map32_t
typedef struct drm_scatter_gather32 drm_scatter_gather32_t
typedef struct drm_stats32 drm_stats32_t
typedef struct drm_unique32 drm_unique32_t
typedef struct drm_version_32 drm_version32_t
typedef union drm_wait_vblank32 drm_wait_vblank32_t

Functions

static int compat_drm_addbufs (struct file *file, unsigned int cmd, unsigned long arg)
static int compat_drm_addmap (struct file *file, unsigned int cmd, unsigned long arg)
static int compat_drm_dma (struct file *file, unsigned int cmd, unsigned long arg)
static int compat_drm_freebufs (struct file *file, unsigned int cmd, unsigned long arg)
static int compat_drm_getclient (struct file *file, unsigned int cmd, unsigned long arg)
static int compat_drm_getmap (struct file *file, unsigned int cmd, unsigned long arg)
static int compat_drm_getsareactx (struct file *file, unsigned int cmd, unsigned long arg)
static int compat_drm_getstats (struct file *file, unsigned int cmd, unsigned long arg)
static int compat_drm_getunique (struct file *file, unsigned int cmd, unsigned long arg)
static int compat_drm_infobufs (struct file *file, unsigned int cmd, unsigned long arg)
static int compat_drm_mapbufs (struct file *file, unsigned int cmd, unsigned long arg)
static int compat_drm_markbufs (struct file *file, unsigned int cmd, unsigned long arg)
static int compat_drm_resctx (struct file *file, unsigned int cmd, unsigned long arg)
static int compat_drm_rmmap (struct file *file, unsigned int cmd, unsigned long arg)
static int compat_drm_setsareactx (struct file *file, unsigned int cmd, unsigned long arg)
static int compat_drm_setunique (struct file *file, unsigned int cmd, unsigned long arg)
static int compat_drm_sg_alloc (struct file *file, unsigned int cmd, unsigned long arg)
static int compat_drm_sg_free (struct file *file, unsigned int cmd, unsigned long arg)
static int compat_drm_version (struct file *file, unsigned int cmd, unsigned long arg)
static int compat_drm_wait_vblank (struct file *file, unsigned int cmd, unsigned long arg)
long drm_compat_ioctl (struct file *filp, unsigned int cmd, unsigned long arg)
 EXPORT_SYMBOL (drm_compat_ioctl)

Variables

drm_ioctl_compat_t * drm_compat_ioctls []


Generated by  Doxygen 1.6.0   Back to index