1 /*******************************************************************************
2 ################################################################################
3 # Copyright (c) [2017-2019] [Radisys] #
5 # Licensed under the Apache License, Version 2.0 (the "License"); #
6 # you may not use this file except in compliance with the License. #
7 # You may obtain a copy of the License at #
9 # http://www.apache.org/licenses/LICENSE-2.0 #
11 # Unless required by applicable law or agreed to in writing, software #
12 # distributed under the License is distributed on an "AS IS" BASIS, #
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. #
14 # See the License for the specific language governing permissions and #
15 # limitations under the License. #
16 ################################################################################
17 *******************************************************************************/
19 /********************************************************************20**
21 Name: System Services -- Timing
25 Desc: Data structure definitions required for timing.
29 *********************************************************************21*/
41 /* timer ID and type */
42 typedef SsIdx SsTmrId;
43 /* ss015.301 Enclosed all timer activation functions in a union. */
45 #ifdef SS_MULTIPLE_PROCS
48 PAIFTMRS16 tmrActvFnMt;
54 typedef struct ssTmrActvFn
56 Bool mtFlag; /* TRUE if tmrActvFnMt to be used */
62 /* individual entry in the timer table */
63 typedef struct ssTmrEntry
65 SsdTmrEntry dep; /* implementation specific */
68 Bool used; /* entry is used? */
69 SsTmrId tmrId; /* timer ID */
70 /* ss029.103: addition: procId added */
71 #ifdef SS_MULTIPLE_PROCS
72 ProcId ownerProc; /* owner task processor ID */
73 #endif /* SS_MULTIPLE_PROCS */
74 Ent ownerEnt; /* owner task entity ID */
75 Inst ownerInst; /* owner task instance ID */
76 /* ss028.103 - Modification for SRegCfgTmr support */
77 uint32_t interval; /* timer interval */
78 /* ss029.103: modification: timer function type modified */
79 /* ss015.301 Enclosed all timer activation functions in a union. */
80 SsTmrActvFn ssTmrActvFn;
82 Buffer *mBuf; /* timer message buffer */
85 SsIdx nxt; /* table implementation */
95 #endif /* __SSTIMERX__ */
99 /********************************************************************30**
102 **********************************************************************/