Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Variables
nv10.c File Reference
#include <core/os.h>
#include <core/class.h>
#include <core/handle.h>
#include <subdev/fb.h>
#include <engine/fifo.h>
#include <engine/graph.h>
#include "regs.h"

Go to the source code of this file.

Data Structures

struct  pipe_state
 
struct  nv10_graph_priv
 
struct  nv10_graph_chan
 

Macros

#define PIPE_SAVE(priv, state, addr)
 
#define PIPE_RESTORE(priv, state, addr)
 
#define PIPE_INIT(addr)
 
#define PIPE_INIT_END(addr)
 
#define NV_WRITE_PIPE_INIT(value)   *(pipe_state_addr++) = value
 
#define NV_WRITE_CTX(reg, val)
 
#define NV17_WRITE_CTX(reg, val)
 

Variables

struct nouveau_bitfield nv10_graph_intr_name []
 
struct nouveau_bitfield nv10_graph_nstatus []
 
struct nouveau_oclass nv10_graph_oclass
 

Macro Definition Documentation

#define NV17_WRITE_CTX (   reg,
  val 
)
Value:
do { \
int offset = nv17_graph_ctx_regs_find_offset(priv, reg); \
if (offset > 0) \
chan->nv17[offset] = val; \
} while (0)

Definition at line 1015 of file nv10.c.

#define NV_WRITE_CTX (   reg,
  val 
)
Value:
do { \
int offset = nv10_graph_ctx_regs_find_offset(priv, reg); \
if (offset > 0) \
chan->nv10[offset] = val; \
} while (0)

Definition at line 1009 of file nv10.c.

#define NV_WRITE_PIPE_INIT (   value)    *(pipe_state_addr++) = value
#define PIPE_INIT (   addr)
Value:
do { \
pipe_state_addr = pipe_state->pipe_##addr; \
} while (0)
#define PIPE_INIT_END (   addr)
Value:
do { \
u32 *__end_addr = pipe_state->pipe_##addr + \
ARRAY_SIZE(pipe_state->pipe_##addr); \
if (pipe_state_addr != __end_addr) \
nv_error(priv, "incomplete pipe init for 0x%x : %p/%p\n", \
addr, pipe_state_addr, __end_addr); \
} while (0)
#define PIPE_RESTORE (   priv,
  state,
  addr 
)
Value:
do { \
int __i; \
for (__i = 0; __i < ARRAY_SIZE(state); __i++) \
nv_wr32(priv, NV10_PGRAPH_PIPE_DATA, state[__i]); \
} while (0)

Definition at line 426 of file nv10.c.

#define PIPE_SAVE (   priv,
  state,
  addr 
)
Value:
do { \
int __i; \
for (__i = 0; __i < ARRAY_SIZE(state); __i++) \
state[__i] = nv_rd32(priv, NV10_PGRAPH_PIPE_DATA); \
} while (0)

Definition at line 418 of file nv10.c.

Variable Documentation

struct nouveau_bitfield nv10_graph_intr_name[]
Initial value:
= {
{ NV_PGRAPH_INTR_NOTIFY, "NOTIFY" },
{ NV_PGRAPH_INTR_ERROR, "ERROR" },
{}
}

Definition at line 1138 of file nv10.c.

struct nouveau_bitfield nv10_graph_nstatus[]
Initial value:
= {
{ NV10_PGRAPH_NSTATUS_STATE_IN_USE, "STATE_IN_USE" },
{ NV10_PGRAPH_NSTATUS_INVALID_STATE, "INVALID_STATE" },
{ NV10_PGRAPH_NSTATUS_BAD_ARGUMENT, "BAD_ARGUMENT" },
{ NV10_PGRAPH_NSTATUS_PROTECTION_FAULT, "PROTECTION_FAULT" },
{}
}

Definition at line 1144 of file nv10.c.

struct nouveau_oclass nv10_graph_oclass
Initial value:
= {
.handle = NV_ENGINE(GR, 0x10),
.ofuncs = &(struct nouveau_ofuncs) {
.ctor = nv10_graph_ctor,
.dtor = nv10_graph_dtor,
.init = nv10_graph_init,
.fini = nv10_graph_fini,
},
}

Definition at line 1306 of file nv10.c.