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

Go to the source code of this file.

Macros

#define RADEON_FIFO_DEBUG   0
 
#define FIRMWARE_R100   "radeon/R100_cp.bin"
 
#define FIRMWARE_R200   "radeon/R200_cp.bin"
 
#define FIRMWARE_R300   "radeon/R300_cp.bin"
 
#define FIRMWARE_R420   "radeon/R420_cp.bin"
 
#define FIRMWARE_RS690   "radeon/RS690_cp.bin"
 
#define FIRMWARE_RS600   "radeon/RS600_cp.bin"
 
#define FIRMWARE_R520   "radeon/R520_cp.bin"
 

Functions

 MODULE_FIRMWARE (FIRMWARE_R100)
 
 MODULE_FIRMWARE (FIRMWARE_R200)
 
 MODULE_FIRMWARE (FIRMWARE_R300)
 
 MODULE_FIRMWARE (FIRMWARE_R420)
 
 MODULE_FIRMWARE (FIRMWARE_RS690)
 
 MODULE_FIRMWARE (FIRMWARE_RS600)
 
 MODULE_FIRMWARE (FIRMWARE_R520)
 
u32 radeon_read_ring_rptr (drm_radeon_private_t *dev_priv, u32 off)
 
u32 radeon_get_ring_head (drm_radeon_private_t *dev_priv)
 
void radeon_write_ring_rptr (drm_radeon_private_t *dev_priv, u32 off, u32 val)
 
void radeon_set_ring_head (drm_radeon_private_t *dev_priv, u32 val)
 
u32 radeon_get_scratch (drm_radeon_private_t *dev_priv, int index)
 
u32 RADEON_READ_MM (drm_radeon_private_t *dev_priv, int addr)
 
u32 radeon_read_fb_location (drm_radeon_private_t *dev_priv)
 
void radeon_write_agp_location (drm_radeon_private_t *dev_priv, u32 agp_loc)
 
void radeon_write_agp_base (drm_radeon_private_t *dev_priv, u64 agp_base)
 
void radeon_enable_bm (struct drm_radeon_private *dev_priv)
 
int radeon_do_cp_idle (drm_radeon_private_t *dev_priv)
 
int radeon_cp_init (struct drm_device *dev, void *data, struct drm_file *file_priv)
 
int radeon_cp_start (struct drm_device *dev, void *data, struct drm_file *file_priv)
 
int radeon_cp_stop (struct drm_device *dev, void *data, struct drm_file *file_priv)
 
void radeon_do_release (struct drm_device *dev)
 
int radeon_cp_reset (struct drm_device *dev, void *data, struct drm_file *file_priv)
 
int radeon_cp_idle (struct drm_device *dev, void *data, struct drm_file *file_priv)
 
int radeon_cp_resume (struct drm_device *dev, void *data, struct drm_file *file_priv)
 
int radeon_engine_reset (struct drm_device *dev, void *data, struct drm_file *file_priv)
 
int radeon_fullscreen (struct drm_device *dev, void *data, struct drm_file *file_priv)
 
struct drm_buf * radeon_freelist_get (struct drm_device *dev)
 
void radeon_freelist_reset (struct drm_device *dev)
 
int radeon_wait_ring (drm_radeon_private_t *dev_priv, int n)
 
int radeon_cp_buffers (struct drm_device *dev, void *data, struct drm_file *file_priv)
 
int radeon_driver_load (struct drm_device *dev, unsigned long flags)
 
int radeon_master_create (struct drm_device *dev, struct drm_master *master)
 
void radeon_master_destroy (struct drm_device *dev, struct drm_master *master)
 
int radeon_driver_firstopen (struct drm_device *dev)
 
int radeon_driver_unload (struct drm_device *dev)
 
void radeon_commit_ring (drm_radeon_private_t *dev_priv)
 

Macro Definition Documentation

#define FIRMWARE_R100   "radeon/R100_cp.bin"

Definition at line 42 of file radeon_cp.c.

#define FIRMWARE_R200   "radeon/R200_cp.bin"

Definition at line 43 of file radeon_cp.c.

#define FIRMWARE_R300   "radeon/R300_cp.bin"

Definition at line 44 of file radeon_cp.c.

#define FIRMWARE_R420   "radeon/R420_cp.bin"

Definition at line 45 of file radeon_cp.c.

#define FIRMWARE_R520   "radeon/R520_cp.bin"

Definition at line 48 of file radeon_cp.c.

#define FIRMWARE_RS600   "radeon/RS600_cp.bin"

Definition at line 47 of file radeon_cp.c.

#define FIRMWARE_RS690   "radeon/RS690_cp.bin"

Definition at line 46 of file radeon_cp.c.

#define RADEON_FIFO_DEBUG   0

Definition at line 39 of file radeon_cp.c.

Function Documentation

MODULE_FIRMWARE ( FIRMWARE_R100  )
MODULE_FIRMWARE ( FIRMWARE_R200  )
MODULE_FIRMWARE ( FIRMWARE_R300  )
MODULE_FIRMWARE ( FIRMWARE_R420  )
MODULE_FIRMWARE ( FIRMWARE_RS690  )
MODULE_FIRMWARE ( FIRMWARE_RS600  )
MODULE_FIRMWARE ( FIRMWARE_R520  )
void radeon_commit_ring ( drm_radeon_private_t dev_priv)

Definition at line 2219 of file radeon_cp.c.

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

Definition at line 2047 of file radeon_cp.c.

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

Definition at line 1860 of file radeon_cp.c.

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

Definition at line 1663 of file radeon_cp.c.

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

Definition at line 1837 of file radeon_cp.c.

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

Definition at line 1875 of file radeon_cp.c.

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

Definition at line 1690 of file radeon_cp.c.

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

Definition at line 1718 of file radeon_cp.c.

int radeon_do_cp_idle ( drm_radeon_private_t dev_priv)

Definition at line 596 of file radeon_cp.c.

void radeon_do_release ( struct drm_device dev)

Definition at line 1767 of file radeon_cp.c.

int radeon_driver_firstopen ( struct drm_device dev)

Definition at line 2187 of file radeon_cp.c.

int radeon_driver_load ( struct drm_device dev,
unsigned long  flags 
)

Definition at line 2080 of file radeon_cp.c.

int radeon_driver_unload ( struct drm_device dev)

Definition at line 2205 of file radeon_cp.c.

void radeon_enable_bm ( struct drm_radeon_private dev_priv)

Definition at line 276 of file radeon_cp.c.

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

Definition at line 1886 of file radeon_cp.c.

struct drm_buf* radeon_freelist_get ( struct drm_device dev)
read

Definition at line 1931 of file radeon_cp.c.

void radeon_freelist_reset ( struct drm_device dev)

Definition at line 1971 of file radeon_cp.c.

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

Definition at line 1905 of file radeon_cp.c.

u32 radeon_get_ring_head ( drm_radeon_private_t dev_priv)

Definition at line 76 of file radeon_cp.c.

u32 radeon_get_scratch ( drm_radeon_private_t dev_priv,
int  index 
)

Definition at line 102 of file radeon_cp.c.

int radeon_master_create ( struct drm_device dev,
struct drm_master *  master 
)

Definition at line 2138 of file radeon_cp.c.

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

Definition at line 2164 of file radeon_cp.c.

u32 radeon_read_fb_location ( drm_radeon_private_t dev_priv)

Definition at line 180 of file radeon_cp.c.

u32 RADEON_READ_MM ( drm_radeon_private_t dev_priv,
int  addr 
)

Definition at line 119 of file radeon_cp.c.

u32 radeon_read_ring_rptr ( drm_radeon_private_t dev_priv,
u32  off 
)

Definition at line 61 of file radeon_cp.c.

void radeon_set_ring_head ( drm_radeon_private_t dev_priv,
u32  val 
)

Definition at line 97 of file radeon_cp.c.

int radeon_wait_ring ( drm_radeon_private_t dev_priv,
int  n 
)

Definition at line 1989 of file radeon_cp.c.

void radeon_write_agp_base ( drm_radeon_private_t dev_priv,
u64  agp_base 
)

Definition at line 241 of file radeon_cp.c.

void radeon_write_agp_location ( drm_radeon_private_t dev_priv,
u32  agp_loc 
)

Definition at line 219 of file radeon_cp.c.

void radeon_write_ring_rptr ( drm_radeon_private_t dev_priv,
u32  off,
u32  val 
)

Definition at line 88 of file radeon_cp.c.