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

Go to the source code of this file.

Data Structures

struct  nouveau_alarm
 
struct  nouveau_timer
 

Macros

#define NV_WAIT_DEFAULT   2000000000ULL
 
#define nv_wait(o, a, m, v)   nouveau_timer_wait_eq((o), NV_WAIT_DEFAULT, (a), (m), (v))
 
#define nv_wait_ne(o, a, m, v)   nouveau_timer_wait_ne((o), NV_WAIT_DEFAULT, (a), (m), (v))
 
#define nv_wait_cb(o, c, d)   nouveau_timer_wait_cb((o), NV_WAIT_DEFAULT, (c), (d))
 
#define nouveau_timer_create(p, e, o, d)
 
#define nouveau_timer_destroy(p)   nouveau_subdev_destroy(&(p)->base)
 
#define nouveau_timer_init(p)   nouveau_subdev_init(&(p)->base)
 
#define nouveau_timer_fini(p, s)   nouveau_subdev_fini(&(p)->base, (s))
 

Functions

bool nouveau_timer_wait_eq (void *, u64 nsec, u32 addr, u32 mask, u32 data)
 
bool nouveau_timer_wait_ne (void *, u64 nsec, u32 addr, u32 mask, u32 data)
 
bool nouveau_timer_wait_cb (void *, u64 nsec, bool(*func)(void *), void *data)
 
void nouveau_timer_alarm (void *, u32 nsec, struct nouveau_alarm *)
 
int nouveau_timer_create_ (struct nouveau_object *, struct nouveau_engine *, struct nouveau_oclass *, int size, void **)
 

Variables

struct nouveau_oclass nv04_timer_oclass
 

Macro Definition Documentation

#define nouveau_timer_create (   p,
  e,
  o,
  d 
)
Value:
nouveau_subdev_create_((p), (e), (o), 0, "PTIMER", "timer", \
sizeof(**d), (void **)d)

Definition at line 38 of file timer.h.

#define nouveau_timer_destroy (   p)    nouveau_subdev_destroy(&(p)->base)

Definition at line 41 of file timer.h.

#define nouveau_timer_fini (   p,
  s 
)    nouveau_subdev_fini(&(p)->base, (s))

Definition at line 45 of file timer.h.

#define nouveau_timer_init (   p)    nouveau_subdev_init(&(p)->base)

Definition at line 43 of file timer.h.

#define nv_wait (   o,
  a,
  m,
  v 
)    nouveau_timer_wait_eq((o), NV_WAIT_DEFAULT, (a), (m), (v))

Definition at line 19 of file timer.h.

#define nv_wait_cb (   o,
  c,
  d 
)    nouveau_timer_wait_cb((o), NV_WAIT_DEFAULT, (c), (d))

Definition at line 23 of file timer.h.

#define NV_WAIT_DEFAULT   2000000000ULL

Definition at line 18 of file timer.h.

#define nv_wait_ne (   o,
  a,
  m,
  v 
)    nouveau_timer_wait_ne((o), NV_WAIT_DEFAULT, (a), (m), (v))

Definition at line 21 of file timer.h.

Function Documentation

void nouveau_timer_alarm ( void ,
u32  nsec,
struct nouveau_alarm  
)

Definition at line 83 of file base.c.

int nouveau_timer_create_ ( struct nouveau_object ,
struct nouveau_engine ,
struct nouveau_oclass ,
int  size,
void **   
)
bool nouveau_timer_wait_cb ( void ,
u64  nsec,
bool(*)(void *)  func,
void data 
)

Definition at line 68 of file base.c.

bool nouveau_timer_wait_eq ( void ,
u64  nsec,
u32  addr,
u32  mask,
u32  data 
)

Definition at line 28 of file base.c.

bool nouveau_timer_wait_ne ( void ,
u64  nsec,
u32  addr,
u32  mask,
u32  data 
)

Definition at line 48 of file base.c.

Variable Documentation

struct nouveau_oclass nv04_timer_oclass

Definition at line 241 of file nv04.c.