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 *******************************************************************************/
23 /* header include files (.h) */
24 #include "envopt.h" /* environment options */
25 #include "envdep.h" /* environment dependent */
26 #include "envind.h" /* environment independent */
27 #include "gen.h" /* general */
28 #include "ssi.h" /* system services */
29 #include "cm_tkns.h" /* Common Token Defines */
30 #include "cm_llist.h" /* Common Link List Defines */
31 #include "cm_hash.h" /* Common Hash List Defines */
32 #include "cm_lte.h" /* Common LTE Defines */
33 #include "cm_mblk.h" /* Common LTE Defines */
34 #include "tfu.h" /* RGU Interface defines */
36 #include "du_app_mac_inf.h"
37 #include "mac_sch_interface.h"
39 /* header/extern include files (.x) */
40 #include "gen.x" /* general */
41 #include "ssi.x" /* system services */
42 #include "cm_tkns.x" /* Common Token Definitions */
43 #include "cm_llist.x" /* Common Link List Definitions */
44 #include "cm_lib.x" /* Common Library Definitions */
45 #include "cm_hash.x" /* Common Hash List Definitions */
46 #include "cm_lte.x" /* Common LTE Defines */
47 #include "cm_mblk.x" /* Common LTE Defines */
48 #include "tfu.x" /* RGU Interface includes */
51 #define MAX_SLOT_SUPPORTED 10 /* numerology 0 15Khz */
52 #define MAX_ZERO_CORR_CFG_IDX 16 /* max zero correlation config index */
53 #define SI_RNTI 0xFFFF
56 #define MAC_LCID_CCCH 0
57 #define MAC_DEDLC_MIN_LCID 1
58 #define MAC_DEDLC_MAX_LCID 32
59 #define MAC_LCID_RESERVED_MIN 33
60 #define MAC_LCID_RESERVED_MAX 51
61 #define MAC_LCID_CCCH_48BIT 52
62 #define MAC_LCID_BIT_RATE_QUERY 53
63 #define MAC_LCID_MULT_PHR_FOUR_OCT 54
64 #define MAC_LCID_CFG_GRANT_CFM 55
65 #define MAC_LCID_MULT_PHR_ONE_OCT 56
66 #define MAC_LCID_SINGLE_PHR 57
67 #define MAC_LCID_CRNTI 58
68 #define MAC_LCID_SHORT_TRUNC_BSR 59
69 #define MAC_LCID_LONG_TRUNC_BSR 60
70 #define MAC_LCID_SHORT_BSR 61
71 #define MAC_LCID_LONG_BSR 62
72 #define MAC_LCID_PADDING 63
74 typedef struct macDlSlot
79 typedef struct macUlSlot
84 typedef struct macCellCb
88 MacDlSlot dlSlot[MAX_SLOT_SUPPORTED];
89 MacUlSlot ulSlot[MAX_SLOT_SUPPORTED];
100 void fillMacToSchPst(Pst *pst);
101 void fillRarPdu(RarInfo *rarInfo);
102 int unpackRxData(SlotIndInfo timingInfo, RxDataIndPdu *rxDataIndPdu);
105 /**********************************************************************
107 **********************************************************************/