Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
riva_hw.c File Reference
#include <linux/kernel.h>
#include <linux/pci.h>
#include <linux/pci_ids.h>
#include "riva_hw.h"
#include "riva_tbl.h"
#include "nv_type.h"

Go to the source code of this file.

Data Structures

struct  nv3_arb_info
 
struct  nv3_fifo_info
 
struct  nv3_sim_state
 
struct  nv4_fifo_info
 
struct  nv4_sim_state
 
struct  nv10_fifo_info
 
struct  nv10_sim_state
 

Macros

#define DEFAULT_GR_LWM   100
 
#define DEFAULT_VID_LWM   100
 
#define DEFAULT_GR_BURST_SIZE   256
 
#define DEFAULT_VID_BURST_SIZE   128
 
#define VIDEO   0
 
#define GRAPHICS   1
 
#define MPORT   2
 
#define ENGINE   3
 
#define GFIFO_SIZE   320
 
#define GFIFO_SIZE_128   256
 
#define MFIFO_SIZE   120
 
#define VFIFO_SIZE   256
 
#define LOAD_FIXED_STATE(tbl, dev)
 
#define LOAD_FIXED_STATE_8BPP(tbl, dev)
 
#define LOAD_FIXED_STATE_15BPP(tbl, dev)
 
#define LOAD_FIXED_STATE_16BPP(tbl, dev)
 
#define LOAD_FIXED_STATE_32BPP(tbl, dev)
 

Functions

int CalcStateExt (RIVA_HW_INST *chip, RIVA_HW_STATE *state, int bpp, int width, int hDisplaySize, int height, int dotClock)
 
int RivaGetConfig (RIVA_HW_INST *chip, unsigned int chipset)
 

Macro Definition Documentation

#define DEFAULT_GR_BURST_SIZE   256

Definition at line 144 of file riva_hw.c.

#define DEFAULT_GR_LWM   100

Definition at line 142 of file riva_hw.c.

#define DEFAULT_VID_BURST_SIZE   128

Definition at line 145 of file riva_hw.c.

#define DEFAULT_VID_LWM   100

Definition at line 143 of file riva_hw.c.

#define ENGINE   3

Definition at line 149 of file riva_hw.c.

#define GFIFO_SIZE   320

Definition at line 150 of file riva_hw.c.

#define GFIFO_SIZE_128   256

Definition at line 151 of file riva_hw.c.

#define GRAPHICS   1

Definition at line 147 of file riva_hw.c.

#define LOAD_FIXED_STATE (   tbl,
  dev 
)
Value:
for (i = 0; i < sizeof(tbl##Table##dev)/8; i++) \
NV_WR32(&chip->dev[tbl##Table##dev[i][0]], 0, tbl##Table##dev[i][1])

Definition at line 1362 of file riva_hw.c.

#define LOAD_FIXED_STATE_15BPP (   tbl,
  dev 
)
Value:
for (i = 0; i < sizeof(tbl##Table##dev##_15BPP)/8; i++) \
NV_WR32(&chip->dev[tbl##Table##dev##_15BPP[i][0]], 0, tbl##Table##dev##_15BPP[i][1])

Definition at line 1368 of file riva_hw.c.

#define LOAD_FIXED_STATE_16BPP (   tbl,
  dev 
)
Value:
for (i = 0; i < sizeof(tbl##Table##dev##_16BPP)/8; i++) \
NV_WR32(&chip->dev[tbl##Table##dev##_16BPP[i][0]], 0, tbl##Table##dev##_16BPP[i][1])

Definition at line 1371 of file riva_hw.c.

#define LOAD_FIXED_STATE_32BPP (   tbl,
  dev 
)
Value:
for (i = 0; i < sizeof(tbl##Table##dev##_32BPP)/8; i++) \
NV_WR32(&chip->dev[tbl##Table##dev##_32BPP[i][0]], 0, tbl##Table##dev##_32BPP[i][1])

Definition at line 1374 of file riva_hw.c.

#define LOAD_FIXED_STATE_8BPP (   tbl,
  dev 
)
Value:
for (i = 0; i < sizeof(tbl##Table##dev##_8BPP)/8; i++) \
NV_WR32(&chip->dev[tbl##Table##dev##_8BPP[i][0]], 0, tbl##Table##dev##_8BPP[i][1])

Definition at line 1365 of file riva_hw.c.

#define MFIFO_SIZE   120

Definition at line 152 of file riva_hw.c.

#define MPORT   2

Definition at line 148 of file riva_hw.c.

#define VFIFO_SIZE   256

Definition at line 153 of file riva_hw.c.

#define VIDEO   0

Definition at line 146 of file riva_hw.c.

Function Documentation

int CalcStateExt ( RIVA_HW_INST chip,
RIVA_HW_STATE state,
int  bpp,
int  width,
int  hDisplaySize,
int  height,
int  dotClock 
)

Definition at line 1235 of file riva_hw.c.

int RivaGetConfig ( RIVA_HW_INST chip,
unsigned int  chipset 
)

Definition at line 2226 of file riva_hw.c.