Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
subdev.h File Reference
#include <core/object.h>

Go to the source code of this file.

Data Structures

struct  nouveau_subdev
 

Macros

#define NV_SUBDEV_(sub, var)   (NV_SUBDEV_CLASS | ((var) << 8) | (sub))
 
#define NV_SUBDEV(name, var)   NV_SUBDEV_(NVDEV_SUBDEV_##name, (var))
 
#define nouveau_subdev_create(p, e, o, v, s, f, d)
 
#define s_printk(s, l, f, a...)
 

Functions

int nouveau_subdev_create_ (struct nouveau_object *, struct nouveau_object *, struct nouveau_oclass *, u32 pclass, const char *sname, const char *fname, int size, void **)
 
void nouveau_subdev_destroy (struct nouveau_subdev *)
 
int nouveau_subdev_init (struct nouveau_subdev *)
 
int nouveau_subdev_fini (struct nouveau_subdev *, bool suspend)
 
void nouveau_subdev_reset (struct nouveau_object *)
 
void _nouveau_subdev_dtor (struct nouveau_object *)
 
int _nouveau_subdev_init (struct nouveau_object *)
 
int _nouveau_subdev_fini (struct nouveau_object *, bool suspend)
 

Macro Definition Documentation

#define nouveau_subdev_create (   p,
  e,
  o,
  v,
  s,
  f,
  d 
)
Value:
nouveau_subdev_create_((p), (e), (o), (v), (s), (f), \
sizeof(**d),(void **)d)

Definition at line 36 of file subdev.h.

#define NV_SUBDEV (   name,
  var 
)    NV_SUBDEV_(NVDEV_SUBDEV_##name, (var))

Definition at line 7 of file subdev.h.

#define NV_SUBDEV_ (   sub,
  var 
)    (NV_SUBDEV_CLASS | ((var) << 8) | (sub))

Definition at line 6 of file subdev.h.

#define s_printk (   s,
  l,
  f,
  a... 
)
Value:
do { \
if ((s)->debug >= OS_DBG_##l) { \
nv_printk((s)->base.parent, (s)->name, l, f, ##a); \
} \
} while(0)

Definition at line 53 of file subdev.h.

Function Documentation

void _nouveau_subdev_dtor ( struct nouveau_object )

Definition at line 81 of file subdev.c.

int _nouveau_subdev_fini ( struct nouveau_object ,
bool  suspend 
)

Definition at line 67 of file subdev.c.

int _nouveau_subdev_init ( struct nouveau_object )

Definition at line 50 of file subdev.c.

int nouveau_subdev_create_ ( struct nouveau_object ,
struct nouveau_object ,
struct nouveau_oclass ,
u32  pclass,
const char sname,
const char fname,
int  size,
void **   
)

Definition at line 87 of file subdev.c.

void nouveau_subdev_destroy ( struct nouveau_subdev )

Definition at line 73 of file subdev.c.

int nouveau_subdev_fini ( struct nouveau_subdev ,
bool  suspend 
)

Definition at line 56 of file subdev.c.

int nouveau_subdev_init ( struct nouveau_subdev )

Definition at line 39 of file subdev.c.

void nouveau_subdev_reset ( struct nouveau_object )

Definition at line 31 of file subdev.c.