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

Go to the source code of this file.

Macros

#define SAVE_STATE(reg, where)
 
#define SAVE_STATE_MASK(reg, where, mask)
 

Functions

void savage_emit_clip_rect_s3d (drm_savage_private_t *dev_priv, const struct drm_clip_rect *pbox)
 
void savage_emit_clip_rect_s4 (drm_savage_private_t *dev_priv, const struct drm_clip_rect *pbox)
 
int savage_bci_cmdbuf (struct drm_device *dev, void *data, struct drm_file *file_priv)
 

Macro Definition Documentation

#define SAVE_STATE (   reg,
  where 
)
Value:
if(start <= reg && start+count > reg) \
dev_priv->state.where = regs[reg - start]

Definition at line 116 of file savage_state.c.

#define SAVE_STATE_MASK (   reg,
  where,
  mask 
)
Value:
do { \
if(start <= reg && start+count > reg) { \
tmp = regs[reg - start]; \
dev_priv->state.where = (tmp & (mask)) | \
(dev_priv->state.where & ~(mask)); \
} \
} while (0)

Definition at line 119 of file savage_state.c.

Function Documentation

int savage_bci_cmdbuf ( struct drm_device dev,
void data,
struct drm_file *  file_priv 
)

Definition at line 956 of file savage_state.c.

void savage_emit_clip_rect_s3d ( drm_savage_private_t dev_priv,
const struct drm_clip_rect pbox 
)

Definition at line 29 of file savage_state.c.

void savage_emit_clip_rect_s4 ( drm_savage_private_t dev_priv,
const struct drm_clip_rect pbox 
)

Definition at line 55 of file savage_state.c.