12 #include <linux/types.h>
27 #define CSR_SCHED_QID_INVALID ((CsrSchedQid) 0xFFFF)
34 #define CSR_SCHED_TID_INVALID ((CsrSchedTid) 0)
40 #define CSR_SCHED_TIME_MAX ((CsrTime) 0xFFFFFFFF)
41 #define CSR_SCHED_MILLISECOND ((CsrTime) (1000))
42 #define CSR_SCHED_SECOND ((CsrTime) (1000 * CSR_SCHED_MILLISECOND))
43 #define CSR_SCHED_MINUTE ((CsrTime) (60 * CSR_SCHED_SECOND))
46 #define CSR_SCHED_TASK_ID 0xFFFF
47 #define CSR_SCHED_PRIM (CSR_SCHED_TASK_ID)
48 #define CSR_SCHED_EXCLUDED_MODULE_QUEUE 0xFFFF
54 #define CSR_SCHED_BGINT_INVALID ((CsrSchedBgint) 0xFFFF)
134 #if defined(CSR_LOG_ENABLE) && defined(CSR_LOG_INCLUDE_FILE_NAME_AND_LINE_NUMBER)
135 void CsrSchedMessagePutStringLog(CsrSchedQid
q,
140 #define CsrSchedMessagePut(q, mi, mv) CsrSchedMessagePutStringLog((q), (mi), (mv), __LINE__, __FILE__)
166 #if defined(CSR_LOG_ENABLE) && defined(CSR_LOG_INCLUDE_FILE_NAME_AND_LINE_NUMBER)
167 void CsrSchedMessageBroadcastStringLog(
u16 mi,
168 void *(*msg_build_func)(
void *),
172 #define CsrSchedMessageBroadcast(mi, fn, ptr) CsrSchedMessageBroadcastStringLog((mi), (fn), (ptr), __LINE__, __FILE__)
175 void *(*msg_build_func)(
void *),
176 void *msg_build_ptr);
220 #if defined(CSR_LOG_ENABLE) && defined(CSR_LOG_INCLUDE_FILE_NAME_AND_LINE_NUMBER)
222 void (*
fn)(
u16 mi,
void *mv),
227 #define CsrSchedTimerSet(d, fn, fni, fnv) CsrSchedTimerSetStringLog((d), (fn), (fni), (fnv), __LINE__, __FILE__)
230 void (*
fn)(
u16 mi,
void *mv),
247 #if defined(CSR_LOG_ENABLE) && defined(CSR_LOG_INCLUDE_FILE_NAME_AND_LINE_NUMBER)
248 u8 CsrSchedTimerCancelStringLog(CsrSchedTid eventid,
253 #define CsrSchedTimerCancel(e, pmi, pmv) CsrSchedTimerCancelStringLog((e), (pmi), (pmv), __LINE__, __FILE__)