#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"
static int nv3Busy
(
RIVA_HW_INST *chip
)
{ … }
static int nv4Busy
(
RIVA_HW_INST *chip
)
{ … }
static int nv10Busy
(
RIVA_HW_INST *chip
)
{ … }
static void vgaLockUnlock
(
RIVA_HW_INST *chip,
int Lock
)
{ … }
static void nv3LockUnlock
(
RIVA_HW_INST *chip,
int Lock
)
{ … }
static void nv4LockUnlock
(
RIVA_HW_INST *chip,
int Lock
)
{ … }
static int ShowHideCursor
(
RIVA_HW_INST *chip,
int ShowHide
)
{ … }
#define DEFAULT_GR_LWM …
#define DEFAULT_VID_LWM …
#define DEFAULT_GR_BURST_SIZE …
#define DEFAULT_VID_BURST_SIZE …
#define VIDEO …
#define GRAPHICS …
#define MPORT …
#define ENGINE …
#define GFIFO_SIZE …
#define GFIFO_SIZE_128 …
#define MFIFO_SIZE …
#define VFIFO_SIZE …
nv3_arb_info;
nv3_fifo_info;
nv3_sim_state;
nv4_fifo_info;
nv4_sim_state;
nv10_fifo_info;
nv10_sim_state;
static int nv3_iterate(nv3_fifo_info *res_info, nv3_sim_state * state, nv3_arb_info *ainfo)
{ … }
static char nv3_arb(nv3_fifo_info * res_info, nv3_sim_state * state, nv3_arb_info *ainfo)
{ … }
static char nv3_get_param(nv3_fifo_info *res_info, nv3_sim_state * state, nv3_arb_info *ainfo)
{ … }
static void nv3CalcArbitration
(
nv3_fifo_info * res_info,
nv3_sim_state * state
)
{ … }
static void nv3UpdateArbitrationSettings
(
unsigned VClk,
unsigned pixelDepth,
unsigned *burst,
unsigned *lwm,
RIVA_HW_INST *chip
)
{ … }
static void nv4CalcArbitration
(
nv4_fifo_info *fifo,
nv4_sim_state *arb
)
{ … }
static void nv4UpdateArbitrationSettings
(
unsigned VClk,
unsigned pixelDepth,
unsigned *burst,
unsigned *lwm,
RIVA_HW_INST *chip
)
{ … }
static void nv10CalcArbitration
(
nv10_fifo_info *fifo,
nv10_sim_state *arb
)
{ … }
static void nv10UpdateArbitrationSettings
(
unsigned VClk,
unsigned pixelDepth,
unsigned *burst,
unsigned *lwm,
RIVA_HW_INST *chip
)
{ … }
static void nForceUpdateArbitrationSettings
(
unsigned VClk,
unsigned pixelDepth,
unsigned *burst,
unsigned *lwm,
RIVA_HW_INST *chip,
struct pci_dev *pdev
)
{ … }
static int CalcVClock
(
int clockIn,
int *clockOut,
int *mOut,
int *nOut,
int *pOut,
RIVA_HW_INST *chip
)
{ … }
int CalcStateExt
(
RIVA_HW_INST *chip,
RIVA_HW_STATE *state,
struct pci_dev *pdev,
int bpp,
int width,
int hDisplaySize,
int height,
int dotClock
)
{ … }
#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) …
static void UpdateFifoState
(
RIVA_HW_INST *chip
)
{ … }
static void LoadStateExt
(
RIVA_HW_INST *chip,
RIVA_HW_STATE *state
)
{ … }
static void UnloadStateExt
(
RIVA_HW_INST *chip,
RIVA_HW_STATE *state
)
{ … }
static void SetStartAddress
(
RIVA_HW_INST *chip,
unsigned start
)
{ … }
static void SetStartAddress3
(
RIVA_HW_INST *chip,
unsigned start
)
{ … }
static void nv3SetSurfaces2D
(
RIVA_HW_INST *chip,
unsigned surf0,
unsigned surf1
)
{ … }
static void nv4SetSurfaces2D
(
RIVA_HW_INST *chip,
unsigned surf0,
unsigned surf1
)
{ … }
static void nv10SetSurfaces2D
(
RIVA_HW_INST *chip,
unsigned surf0,
unsigned surf1
)
{ … }
static void nv3SetSurfaces3D
(
RIVA_HW_INST *chip,
unsigned surf0,
unsigned surf1
)
{ … }
static void nv4SetSurfaces3D
(
RIVA_HW_INST *chip,
unsigned surf0,
unsigned surf1
)
{ … }
static void nv10SetSurfaces3D
(
RIVA_HW_INST *chip,
unsigned surf0,
unsigned surf1
)
{ … }
static void nv3GetConfig
(
RIVA_HW_INST *chip
)
{ … }
static void nv4GetConfig
(
RIVA_HW_INST *chip
)
{ … }
static void nv10GetConfig
(
RIVA_HW_INST *chip,
struct pci_dev *pdev,
unsigned int chipset
)
{ … }
int RivaGetConfig
(
RIVA_HW_INST *chip,
struct pci_dev *pdev,
unsigned int chipset
)
{ … }