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 /* header include files -- defines (.h) */
21 #ifndef __LWR_MAC_UPR_INF_H__
22 #define __LWR_MAC_UPR_INF_H__
24 #include "envopt.h" /* environment options */
25 #include "envdep.h" /* environment dependent */
26 #include "envind.h" /* environment independent */
27 #include "gen.h" /* general layer */
28 #include "ssi.h" /* system services */
29 #include "cm5.h" /* common timers defines */
30 #include "cm_hash.h" /* common hash list defines */
31 #include "cm_llist.h" /* common linked list defines */
32 #include "cm_mblk.h" /* memory management */
33 #include "cm_tkns.h" /* common tokens */
34 #include "cm_lte.h" /* common tokens */
37 /* header/extern include files (.x) */
38 #include "gen.x" /* general layer typedefs */
39 #include "ssi.x" /* system services typedefs */
40 #include "cm5.x" /* common timers */
41 #include "cm_hash.x" /* common hash list */
42 #include "cm_lib.x" /* common library */
43 #include "cm_llist.x" /* common linked list */
44 #include "cm_mblk.x" /* memory management */
45 #include "cm_tkns.x" /* common tokens */
46 #include "cm_lte.x" /* common tokens */
50 #define EVENT_RACH_IND_TO_MAC 0
51 #define EVENT_CRC_IND_TO_MAC 1
52 #define EVENT_RX_DATA_IND_TO_MAC 2
53 #define EVENT_STOP_IND_TO_MAC 3
55 typedef S16 (*packSlotIndMsg)(Pst *pst, SlotIndInfo *slotInd);
56 S16 packLcSlotInd (Pst *pst, SlotIndInfo *slotInd);
57 S16 packLwlcSlotInd (Pst *pst, SlotIndInfo *slotInd);
59 typedef uint16_t (*packRachIndMsg)(Pst *pst, RachInd *rachInd);
60 uint16_t packRachInd(Pst *pst, RachInd *rachInd);
61 uint16_t fapiMacRachInd(Pst *pst, RachInd *rachInd);
63 typedef uint16_t (*packCrcIndMsg)(Pst *pst, CrcInd *crcInd);
64 uint16_t packCrcInd(Pst *pst, CrcInd *crcInd);
65 uint16_t fapiMacCrcInd(Pst *pst, CrcInd *crcInd);
68 typedef uint16_t (*packRxDataIndMsg)(Pst *pst, RxDataInd *rxDataInd);
69 uint16_t packRxDataInd(Pst *pst, RxDataInd *rxDataInd);
70 uint16_t fapiMacRxDataInd(Pst *pst, RxDataInd *rxDataInd);
72 typedef uint16_t (*packStopIndMsg)(Pst *pst);
73 uint16_t packStopInd(Pst *pst);
74 uint16_t fapiMacStopInd(Pst *pst);
76 /**********************************************************************
78 **********************************************************************/