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

Go to the source code of this file.

Macros

#define R300_SIMULTANEOUS_CLIPRECTS   4
 
#define ADD_RANGE_MARK(reg, count, mark)
 
#define MARK_SAFE   1
 
#define MARK_CHECK_OFFSET   2
 
#define ADD_RANGE(reg, count)   ADD_RANGE_MARK(reg, count, MARK_SAFE)
 
#define MAX_ARRAY_PACKET   64
 

Functions

void r300_init_reg_flags (struct drm_device *dev)
 
int r300_do_cp_cmdbuf (struct drm_device *dev, struct drm_file *file_priv, drm_radeon_kcmd_buffer_t *cmdbuf)
 

Macro Definition Documentation

#define ADD_RANGE (   reg,
  count 
)    ADD_RANGE_MARK(reg, count, MARK_SAFE)
#define ADD_RANGE_MARK (   reg,
  count,
  mark 
)
Value:
for(i=((reg)>>2);i<((reg)>>2)+(count);i++)\
r300_reg_flags[i]|=(mark);
#define MARK_CHECK_OFFSET   2
#define MARK_SAFE   1
#define MAX_ARRAY_PACKET   64
#define R300_SIMULTANEOUS_CLIPRECTS   4

Definition at line 42 of file r300_cmdbuf.c.

Function Documentation

int r300_do_cp_cmdbuf ( struct drm_device dev,
struct drm_file *  file_priv,
drm_radeon_kcmd_buffer_t cmdbuf 
)

Parses and validates a user-supplied command buffer and emits appropriate commands on the DMA ring buffer. Called by the ioctl handler function radeon_cp_cmdbuf.

Definition at line 1010 of file r300_cmdbuf.c.

void r300_init_reg_flags ( struct drm_device dev)

Definition at line 161 of file r300_cmdbuf.c.