Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
radeon_state.c File Reference
#include <drm/drmP.h>
#include <drm/drm_buffer.h>
#include <drm/radeon_drm.h>
#include "radeon_drv.h"

Go to the source code of this file.

Data Structures

struct  drm_radeon_tcl_prim_t
 

Macros

#define RADEON_MAX_TEXTURE_SIZE   RADEON_BUFFER_SIZE
 
#define RADEON_COPY_MT(_buf, _data, _width)
 

Functions

void radeon_cp_dispatch_flip (struct drm_device *dev, struct drm_master *master)
 
void radeon_cp_discard_buffer (struct drm_device *dev, struct drm_master *master, struct drm_buf *buf)
 
void radeon_driver_preclose (struct drm_device *dev, struct drm_file *file_priv)
 
void radeon_driver_lastclose (struct drm_device *dev)
 
int radeon_driver_open (struct drm_device *dev, struct drm_file *file_priv)
 
void radeon_driver_postclose (struct drm_device *dev, struct drm_file *file_priv)
 

Variables

struct drm_ioctl_desc radeon_ioctls []
 
int radeon_max_ioctl = DRM_ARRAY_SIZE(radeon_ioctls)
 

Macro Definition Documentation

#define RADEON_COPY_MT (   _buf,
  _data,
  _width 
)
Value:
do { \
if (DRM_COPY_FROM_USER(_buf, _data, (_width))) {\
DRM_ERROR("EFAULT on pad, %d bytes\n", (_width)); \
return -EFAULT; \
} \
} while(0)
#define RADEON_MAX_TEXTURE_SIZE   RADEON_BUFFER_SIZE

Definition at line 1692 of file radeon_state.c.

Function Documentation

void radeon_cp_discard_buffer ( struct drm_device dev,
struct drm_master *  master,
struct drm_buf *  buf 
)

Definition at line 1576 of file radeon_state.c.

void radeon_cp_dispatch_flip ( struct drm_device dev,
struct drm_master *  master 
)

Definition at line 1449 of file radeon_state.c.

void radeon_driver_lastclose ( struct drm_device dev)

Definition at line 3194 of file radeon_state.c.

int radeon_driver_open ( struct drm_device dev,
struct drm_file *  file_priv 
)

Definition at line 3200 of file radeon_state.c.

void radeon_driver_postclose ( struct drm_device dev,
struct drm_file *  file_priv 
)

Definition at line 3220 of file radeon_state.c.

void radeon_driver_preclose ( struct drm_device dev,
struct drm_file *  file_priv 
)

Definition at line 3183 of file radeon_state.c.

Variable Documentation

int len

Definition at line 658 of file radeon_state.c.

const char* name

Definition at line 659 of file radeon_state.c.

struct drm_ioctl_desc radeon_ioctls[]
Initial value:
= {
DRM_IOCTL_DEF_DRV(RADEON_CP_INIT, radeon_cp_init, DRM_AUTH|DRM_MASTER|DRM_ROOT_ONLY),
DRM_IOCTL_DEF_DRV(RADEON_CP_START, radeon_cp_start, DRM_AUTH|DRM_MASTER|DRM_ROOT_ONLY),
DRM_IOCTL_DEF_DRV(RADEON_CP_STOP, radeon_cp_stop, DRM_AUTH|DRM_MASTER|DRM_ROOT_ONLY),
DRM_IOCTL_DEF_DRV(RADEON_CP_RESET, radeon_cp_reset, DRM_AUTH|DRM_MASTER|DRM_ROOT_ONLY),
DRM_IOCTL_DEF_DRV(RADEON_CP_IDLE, radeon_cp_idle, DRM_AUTH),
DRM_IOCTL_DEF_DRV(RADEON_CP_RESUME, radeon_cp_resume, DRM_AUTH),
DRM_IOCTL_DEF_DRV(RADEON_RESET, radeon_engine_reset, DRM_AUTH),
DRM_IOCTL_DEF_DRV(RADEON_FULLSCREEN, radeon_fullscreen, DRM_AUTH),
DRM_IOCTL_DEF_DRV(RADEON_SWAP, radeon_cp_swap, DRM_AUTH),
DRM_IOCTL_DEF_DRV(RADEON_CLEAR, radeon_cp_clear, DRM_AUTH),
DRM_IOCTL_DEF_DRV(RADEON_VERTEX, radeon_cp_vertex, DRM_AUTH),
DRM_IOCTL_DEF_DRV(RADEON_INDICES, radeon_cp_indices, DRM_AUTH),
DRM_IOCTL_DEF_DRV(RADEON_TEXTURE, radeon_cp_texture, DRM_AUTH),
DRM_IOCTL_DEF_DRV(RADEON_STIPPLE, radeon_cp_stipple, DRM_AUTH),
DRM_IOCTL_DEF_DRV(RADEON_INDIRECT, radeon_cp_indirect, DRM_AUTH|DRM_MASTER|DRM_ROOT_ONLY),
DRM_IOCTL_DEF_DRV(RADEON_VERTEX2, radeon_cp_vertex2, DRM_AUTH),
DRM_IOCTL_DEF_DRV(RADEON_CMDBUF, radeon_cp_cmdbuf, DRM_AUTH),
DRM_IOCTL_DEF_DRV(RADEON_GETPARAM, radeon_cp_getparam, DRM_AUTH),
DRM_IOCTL_DEF_DRV(RADEON_FLIP, radeon_cp_flip, DRM_AUTH),
DRM_IOCTL_DEF_DRV(RADEON_ALLOC, radeon_mem_alloc, DRM_AUTH),
DRM_IOCTL_DEF_DRV(RADEON_FREE, radeon_mem_free, DRM_AUTH),
DRM_IOCTL_DEF_DRV(RADEON_INIT_HEAP, radeon_mem_init_heap, DRM_AUTH|DRM_MASTER|DRM_ROOT_ONLY),
DRM_IOCTL_DEF_DRV(RADEON_IRQ_EMIT, radeon_irq_emit, DRM_AUTH),
DRM_IOCTL_DEF_DRV(RADEON_IRQ_WAIT, radeon_irq_wait, DRM_AUTH),
DRM_IOCTL_DEF_DRV(RADEON_SETPARAM, radeon_cp_setparam, DRM_AUTH),
DRM_IOCTL_DEF_DRV(RADEON_SURF_ALLOC, radeon_surface_alloc, DRM_AUTH),
DRM_IOCTL_DEF_DRV(RADEON_SURF_FREE, radeon_surface_free, DRM_AUTH),
}

Definition at line 3228 of file radeon_state.c.

int radeon_max_ioctl = DRM_ARRAY_SIZE(radeon_ioctls)

Definition at line 3259 of file radeon_state.c.

int start

Definition at line 657 of file radeon_state.c.