Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
nvc0.h File Reference
#include <core/client.h>
#include <core/handle.h>
#include <core/gpuobj.h>
#include <core/option.h>
#include <subdev/fb.h>
#include <subdev/vm.h>
#include <subdev/bar.h>
#include <subdev/timer.h>
#include <engine/fifo.h>
#include <engine/graph.h>

Go to the source code of this file.

Data Structures

struct  nvc0_graph_data
 
struct  nvc0_graph_mmio
 
struct  nvc0_graph_fuc
 
struct  nvc0_graph_priv
 
struct  nvc0_graph_chan
 
struct  nvc0_grctx
 

Macros

#define GPC_MAX   4
 
#define TPC_MAX   32
 
#define ROP_BCAST(r)   (0x408800 + (r))
 
#define ROP_UNIT(u, r)   (0x410000 + (u) * 0x400 + (r))
 
#define GPC_BCAST(r)   (0x418000 + (r))
 
#define GPC_UNIT(t, r)   (0x500000 + (t) * 0x8000 + (r))
 
#define TPC_UNIT(t, m, r)   (0x504000 + (t) * 0x8000 + (m) * 0x800 + (r))
 
#define mmio_data(s, a, p)   nvc0_grctx_data(&info, (s), (a), (p))
 
#define mmio_list(r, d, s, b)   nvc0_grctx_mmio(&info, (r), (d), (s), (b))
 

Functions

void nv_icmd (struct nvc0_graph_priv *priv, u32 icmd, u32 data)
 
int nvc0_grctx_generate (struct nvc0_graph_priv *)
 
int nvc0_grctx_init (struct nvc0_graph_priv *, struct nvc0_grctx *)
 
void nvc0_grctx_data (struct nvc0_grctx *, u32, u32, u32)
 
void nvc0_grctx_mmio (struct nvc0_grctx *, u32, u32, u32, u32)
 
int nvc0_grctx_fini (struct nvc0_grctx *)
 
int nve0_grctx_generate (struct nvc0_graph_priv *)
 
void nvc0_graph_ctxctl_debug (struct nvc0_graph_priv *)
 
int nvc0_graph_ctor_fw (struct nvc0_graph_priv *, const char *, struct nvc0_graph_fuc *)
 
void nvc0_graph_dtor (struct nouveau_object *)
 
void nvc0_graph_init_fw (struct nvc0_graph_priv *, u32 base, struct nvc0_graph_fuc *, struct nvc0_graph_fuc *)
 
int nvc0_graph_context_ctor (struct nouveau_object *, struct nouveau_object *, struct nouveau_oclass *, void *, u32, struct nouveau_object **)
 
void nvc0_graph_context_dtor (struct nouveau_object *)
 

Macro Definition Documentation

#define GPC_BCAST (   r)    (0x418000 + (r))

Definition at line 46 of file nvc0.h.

#define GPC_MAX   4

Definition at line 41 of file nvc0.h.

#define GPC_UNIT (   t,
  r 
)    (0x500000 + (t) * 0x8000 + (r))

Definition at line 47 of file nvc0.h.

#define mmio_data (   s,
  a,
  p 
)    nvc0_grctx_data(&info, (s), (a), (p))

Definition at line 157 of file nvc0.h.

#define mmio_list (   r,
  d,
  s,
  b 
)    nvc0_grctx_mmio(&info, (r), (d), (s), (b))

Definition at line 158 of file nvc0.h.

#define ROP_BCAST (   r)    (0x408800 + (r))

Definition at line 44 of file nvc0.h.

#define ROP_UNIT (   u,
  r 
)    (0x410000 + (u) * 0x400 + (r))

Definition at line 45 of file nvc0.h.

#define TPC_MAX   32

Definition at line 42 of file nvc0.h.

#define TPC_UNIT (   t,
  m,
  r 
)    (0x504000 + (t) * 0x8000 + (m) * 0x800 + (r))

Definition at line 48 of file nvc0.h.

Function Documentation

void nv_icmd ( struct nvc0_graph_priv priv,
u32  icmd,
u32  data 
)

Definition at line 28 of file ctxnvc0.c.

int nvc0_graph_context_ctor ( struct nouveau_object ,
struct nouveau_object ,
struct nouveau_oclass ,
void ,
u32  ,
struct nouveau_object **   
)

Definition at line 68 of file nvc0.c.

void nvc0_graph_context_dtor ( struct nouveau_object )

Definition at line 154 of file nvc0.c.

int nvc0_graph_ctor_fw ( struct nvc0_graph_priv ,
const char ,
struct nvc0_graph_fuc  
)

Definition at line 487 of file nvc0.c.

void nvc0_graph_ctxctl_debug ( struct nvc0_graph_priv )

Definition at line 200 of file nvc0.c.

void nvc0_graph_dtor ( struct nouveau_object )

Definition at line 630 of file nvc0.c.

void nvc0_graph_init_fw ( struct nvc0_graph_priv ,
u32  base,
struct nvc0_graph_fuc ,
struct nvc0_graph_fuc  
)

Definition at line 778 of file nvc0.c.

void nvc0_grctx_data ( struct nvc0_grctx ,
u32  ,
u32  ,
u32   
)

Definition at line 119 of file ctxnvc0.c.

int nvc0_grctx_fini ( struct nvc0_grctx )

Definition at line 149 of file ctxnvc0.c.

int nvc0_grctx_generate ( struct nvc0_graph_priv )

Definition at line 1912 of file ctxnvc0.c.

int nvc0_grctx_init ( struct nvc0_graph_priv ,
struct nvc0_grctx  
)

Definition at line 36 of file ctxnvc0.c.

void nvc0_grctx_mmio ( struct nvc0_grctx ,
u32  ,
u32  ,
u32  ,
u32   
)

Definition at line 133 of file ctxnvc0.c.

int nve0_grctx_generate ( struct nvc0_graph_priv )

Definition at line 2604 of file ctxnve0.c.