All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Macros | Typedefs
sir_timer.h File Reference
#include <cvmx.h>
#include <cvmx-version.h>
#include <cvmx-tim.h>
#include <cvmx-coremask.h>
#include <cvmx-pow.h>
#include <cvmx-spinlock.h>
#include <cvmx-bootmem.h>
#include <cvmx-malloc.h>
#include <cvmx-atomic.h>
#include <common.h>
#include "common/sir_common.h"
Include dependency graph for sir_timer.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  THUStruc
 
class  CSiriusTimer
 Sirius Timer Class. More...
 

Macros

#define SIMULATORACCELERATOR   100ul
 To speed tings up, tick values are divided by this value when using the simulator. More...
 
#define DEFAULT_TIMER_INTERVAL   2000
 Default timer interval is 2 ms = 1 tick. More...
 
#define DEFAULT_TIMER_TICKS   2500
 Max number of timer ticks that must be scheduble in the future. More...
 
#define DEFAULT_UNUSED_START   1
 Default start unused value. More...
 
#define SIRIUS_TIMER_POOL   CVMX_FPA_WQE_POOL
 
#define SIRIUS_TIMER_POOL_SIZE   CVMX_FPA_WQE_POOL_SIZE
 
#define sir_timer_t   uint64_t
 timer_t type contains time in mili secs More...
 

Typedefs

typedef bool(* THandleUnused )(cvmx_wqe_t *ptWQE, void *pVoid)
 Function pointer for call back functions for unused-value handling. More...
 

Macro Definition Documentation

#define DEFAULT_TIMER_INTERVAL   2000

Default timer interval is 2 ms = 1 tick.

Definition at line 28 of file sir_timer.h.

#define DEFAULT_TIMER_TICKS   2500

Max number of timer ticks that must be scheduble in the future.

Definition at line 29 of file sir_timer.h.

#define DEFAULT_UNUSED_START   1

Default start unused value.

Definition at line 30 of file sir_timer.h.

#define SIMULATORACCELERATOR   100ul

To speed tings up, tick values are divided by this value when using the simulator.

Definition at line 26 of file sir_timer.h.

#define sir_timer_t   uint64_t

timer_t type contains time in mili secs

Definition at line 35 of file sir_timer.h.

#define SIRIUS_TIMER_POOL   CVMX_FPA_WQE_POOL

Definition at line 32 of file sir_timer.h.

#define SIRIUS_TIMER_POOL_SIZE   CVMX_FPA_WQE_POOL_SIZE

Definition at line 33 of file sir_timer.h.

Typedef Documentation

typedef bool(* THandleUnused)(cvmx_wqe_t *ptWQE, void *pVoid)

Function pointer for call back functions for unused-value handling.

Parameters
[in]ptWQEPointer to Work Queue Entry of packet that should be processed
[in]pVoidPointer that will be handle to function when it is called
Returns
true function digested the packet false function did not digest the packet

Definition at line 44 of file sir_timer.h.