Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Typedefs | Functions
csr_sched.h File Reference
#include <linux/types.h>
#include "csr_time.h"

Go to the source code of this file.

Macros

#define CSR_SCHED_QID_INVALID   ((CsrSchedQid) 0xFFFF)
 
#define CSR_SCHED_TID_INVALID   ((CsrSchedTid) 0)
 
#define CSR_SCHED_TIME_MAX   ((CsrTime) 0xFFFFFFFF)
 
#define CSR_SCHED_MILLISECOND   ((CsrTime) (1000))
 
#define CSR_SCHED_SECOND   ((CsrTime) (1000 * CSR_SCHED_MILLISECOND))
 
#define CSR_SCHED_MINUTE   ((CsrTime) (60 * CSR_SCHED_SECOND))
 
#define CSR_SCHED_TASK_ID   0xFFFF
 
#define CSR_SCHED_PRIM   (CSR_SCHED_TASK_ID)
 
#define CSR_SCHED_EXCLUDED_MODULE_QUEUE   0xFFFF
 
#define CSR_SCHED_BGINT_INVALID   ((CsrSchedBgint) 0xFFFF)
 

Typedefs

typedef u32 CsrSchedIdentifier
 
typedef u16 CsrSchedTaskId
 
typedef u16 CsrSchedQid
 
typedef CsrSchedIdentifier CsrSchedMsgId
 
typedef CsrSchedIdentifier CsrSchedTid
 
typedef void(* schedEntryFunction_t )(void **inst)
 
typedef u16 CsrSchedBgint
 
typedef void(* CsrSchedBgintHandler )(void *)
 

Functions

CsrSchedBgint CsrSchedBgintReg (CsrSchedBgintHandler cb, void *context, const char *id)
 
void CsrSchedBgintUnreg (CsrSchedBgint bgint)
 
void CsrSchedBgintSet (CsrSchedBgint bgint)
 
void CsrSchedMessagePut (CsrSchedQid q, u16 mi, void *mv)
 
void CsrSchedMessageBroadcast (u16 mi, void *(*msg_build_func)(void *), void *msg_build_ptr)
 
u8 CsrSchedMessageGet (u16 *pmi, void **pmv)
 
CsrSchedTid CsrSchedTimerSet (CsrTime delay, void(*fn)(u16 mi, void *mv), u16 fniarg, void *fnvarg)
 
u8 CsrSchedTimerCancel (CsrSchedTid eventid, u16 *pmi, void **pmv)
 
CsrSchedQid CsrSchedTaskQueueGet (void)
 
charCsrSchedTaskNameGet (CsrSchedQid)
 

Macro Definition Documentation

#define CSR_SCHED_BGINT_INVALID   ((CsrSchedBgint) 0xFFFF)

Definition at line 54 of file csr_sched.h.

#define CSR_SCHED_EXCLUDED_MODULE_QUEUE   0xFFFF

Definition at line 48 of file csr_sched.h.

#define CSR_SCHED_MILLISECOND   ((CsrTime) (1000))

Definition at line 41 of file csr_sched.h.

#define CSR_SCHED_MINUTE   ((CsrTime) (60 * CSR_SCHED_SECOND))

Definition at line 43 of file csr_sched.h.

#define CSR_SCHED_PRIM   (CSR_SCHED_TASK_ID)

Definition at line 47 of file csr_sched.h.

#define CSR_SCHED_QID_INVALID   ((CsrSchedQid) 0xFFFF)

Definition at line 27 of file csr_sched.h.

#define CSR_SCHED_SECOND   ((CsrTime) (1000 * CSR_SCHED_MILLISECOND))

Definition at line 42 of file csr_sched.h.

#define CSR_SCHED_TASK_ID   0xFFFF

Definition at line 46 of file csr_sched.h.

#define CSR_SCHED_TID_INVALID   ((CsrSchedTid) 0)

Definition at line 34 of file csr_sched.h.

#define CSR_SCHED_TIME_MAX   ((CsrTime) 0xFFFFFFFF)

Definition at line 40 of file csr_sched.h.

Typedef Documentation

typedef u16 CsrSchedBgint

Definition at line 53 of file csr_sched.h.

typedef void(* CsrSchedBgintHandler)(void *)

Definition at line 56 of file csr_sched.h.

Definition at line 20 of file csr_sched.h.

Definition at line 30 of file csr_sched.h.

typedef u16 CsrSchedQid

Definition at line 26 of file csr_sched.h.

Definition at line 23 of file csr_sched.h.

Definition at line 33 of file csr_sched.h.

typedef void(* schedEntryFunction_t)(void **inst)

Definition at line 37 of file csr_sched.h.

Function Documentation

CsrSchedBgint CsrSchedBgintReg ( CsrSchedBgintHandler  cb,
void context,
const char id 
)
void CsrSchedBgintSet ( CsrSchedBgint  bgint)
void CsrSchedBgintUnreg ( CsrSchedBgint  bgint)
void CsrSchedMessageBroadcast ( u16  mi,
void *(*)(void *)  msg_build_func,
void msg_build_ptr 
)
u8 CsrSchedMessageGet ( u16 pmi,
void **  pmv 
)
void CsrSchedMessagePut ( CsrSchedQid  q,
u16  mi,
void mv 
)

Definition at line 192 of file csr_wifi_router_transport.c.

char* CsrSchedTaskNameGet ( CsrSchedQid  )
CsrSchedQid CsrSchedTaskQueueGet ( void  )
u8 CsrSchedTimerCancel ( CsrSchedTid  eventid,
u16 pmi,
void **  pmv 
)
CsrSchedTid CsrSchedTimerSet ( CsrTime  delay,
void(*)(u16 mi, void *mv)  fn,
u16  fniarg,
void fnvarg 
)