Merge "O1 IP PORT configuration for CM .[Issue-Id: ODUHIGH-196]"
[o-du/l2.git] / src / du_app / du_cfg.h
1 /*******************************************************************************
2 ################################################################################
3 #   Copyright (c) [2017-2019] [Radisys]                                        #
4 #                                                                              #
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                                    #
8 #                                                                              #
9 #       http://www.apache.org/licenses/LICENSE-2.0                             #
10 #                                                                              #
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  *******************************************************************************/
18
19 #ifndef __DU_CONFIG_H_
20 #define __DU_CONFIG_H__
21
22 /* MACROS */
23 #define DU_INST 0
24 #define DU_ID 1
25
26 #ifndef O1_ENABLE
27
28 #define DU_IP_V4_ADDR "192.168.130.81"
29 #define CU_IP_V4_ADDR "192.168.130.82"
30 #define RIC_IP_V4_ADDR "192.168.130.80"
31 #define DU_PORT 38472
32 #define CU_PORT 38472
33 #define RIC_PORT 36422         /* using X2 port since E2 port not defined  */
34
35 #endif
36
37 #define DU_EGTP_PORT  39001
38 #define CU_EGTP_PORT  39002
39 #define NR_PCI 1
40 #define NR_CELL_ID 1
41 #define NR_NUMEROLOGY 0
42
43 #define DU_NAME "ORAN_OAM_DU"
44 #define CELL_TYPE SMALL
45 #define DUPLEX_MODE DUP_MODE_FDD
46
47 #ifdef NR_TDD
48 #define DUPLEX_MODE DUP_MODE_TDD
49 #endif
50
51 #define DU_TAC 1
52 #define PLMN_MCC0 3
53 #define PLMN_MCC1 1
54 #define PLMN_MCC2 1
55 #define PLMN_MNC0 4
56 #define PLMN_MNC1 8
57 #define PLMN_MNC2 0
58 #define PLMN_SIZE 3
59
60 /* Spec 30.104 Table 5.4.2.3-1:Applicable NR-ARFCN per operating band in FR1 */
61 #define NR_DL_ARFCN 428000
62 #define NR_UL_ARFCN 390000
63 #define SUL_ARFCN 100
64 #define NR_FREQ_BAND 1
65 #define NR_FREQ_BAND_IND 1
66 #define SUL_BAND 2
67
68 #define TIME_CFG 0
69 #define CARRIER_IDX 1
70 #define NUM_TX_ANT 2
71 #define NUM_RX_ANT 2
72 #define FREQ_SHIFT_7P5KHZ FALSE
73 #define SSB_PBCH_PWR 0
74 #define BCH_PAYLOAD PHY_GEN_TIMING_PBCH_BIT
75 #define SUBCARRIER_SPACING 0
76 #define NORMAL_CYCLIC_PREFIX 0
77 #define OFFSET_TO_POINT_A 24                     /* PRB Offset to Point A */
78 #define BETA_PSS BETA_PSS_0DB  
79 #define SSB_PERIODICITY_5MS   5
80 #define SSB_PERIODICITY_10MS  10
81 #define SSB_PERIODICITY_20MS  20
82 #define SSB_PERIODICITY_40MS  40
83 #define SSB_PERIODICITY_80MS  80
84 #define SSB_PERIODICITY_160MS 160
85 #define SSB_SUBCARRIER_OFFSET 0               
86 #define SSB_MULT_CARRIER_BAND FALSE
87 #define MULT_CELL_CARRIER FALSE
88 #define FREQ_LOC_BW  28875             /* DL frequency location and bandwidth. Spec 38.508 Table 4.3.1.0B-1*/
89 #define UL_P_MAX  23
90 #define DMRS_TYPE_A_POS 2
91 #define NUM_SYMBOLS_PER_SLOT 14       /* Number of symbols within a slot */
92 #define CORESET0_END_PRB   48
93 #define CORESET1_NUM_PRB   24
94
95 /* MACRO defines for PRACH Configuration */
96 #define PRACH_CONFIG_IDX   88
97 #define PRACH_FREQ_START   0
98 #define PRACH_SEQ_LEN SHORT_SEQUENCE
99 #define PRACH_SUBCARRIER_SPACING 0
100 #define PRACH_RESTRICTED_SET_CFG 0
101 #define NUM_PRACH_FDM 1
102 #define ROOT_SEQ_IDX 0
103 #define NUM_ROOT_SEQ 1
104 #define ZERO_CORRELATION_ZONE_CFG 4
105 #define NUM_UNUSED_ROOT_SEQ 0
106 #define UNUSED_ROOT_SEQ 1
107 #define SSB_PER_RACH 1
108 #define PRACH_MULT_CARRIER_BAND FALSE
109 #define PRACH_PREAMBLE_RCVD_TGT_PWR  -74   
110 #define NUM_RA_PREAMBLE  63
111 #define RSRP_THRESHOLD_SSB   31
112
113 #ifdef NR_TDD
114 #define TDD_PERIODICITY TX_PRDCTY_MS_5 
115 #endif
116
117 #define RSS_MEASUREMENT_UNIT DONT_REPORT_RSSI
118 #define RA_CONT_RES_TIMER 64
119 #define RA_RSP_WINDOW 180
120 #define PRACH_RESTRICTED_SET 0 /* Unrestricted */
121 #define ROOT_SEQ_LEN 139
122
123 /* MACRCO Ddefine for PDCCH Configuration */
124 #define PDCCH_SEARCH_SPACE_ID      1    /* Common search space id */
125 #define PDCCH_CTRL_RSRC_SET_ID     0    /* Control resource set id */
126 #define PDCCH_SEARCH_SPACE_ID_SIB1 1    /* Search space id for sib1 */
127 #define PDCCH_SEARCH_SPACE_ID_PAGING 1  /* Search space id for paging */
128 #define PDCCH_SEARCH_SPACE_ID_RA   1    /* Search spaced id for random access */
129 #define PDCCH_SERACH_SPACE_DCI_FORMAT 0
130 #define PDCCH_CTRL_RSRC_SET_ONE_ID  1
131 #define PDCCH_CTRL_RSRC_SET_ONE_DURATION 2  /* Duration for control resource set id i */
132 #define PDCCH_CTRL_RSRC_SET_ONE_PRECOD_GRANULARITY 1   /* Precoded granularity */
133 #define PDCCH_SRCH_SPC_TWO_ID 2
134 #define PDCCH_SRCH_SPC_TWO_AGG_LVL1_CANDIDATE 7   /* Num of candidate at aggregation level 1 */
135 #define PDCCH_SRCH_SPC_TWO_AGG_LVL2_CANDIDATE 7   /* Num of candidate at aggregation level 2 */
136 #define PDCCH_SRCH_SPC_TWO_AGG_LVL4_CANDIDATE 4   /* Num of candidate at aggregation level 4 */
137 #define PDCCH_SRCH_SPC_TWO_AGG_LVL8_CANDIDATE 2   /* Num of candidate at aggregation level 8 */
138 #define PDCCH_SRCH_SPC_TWO_AGG_LVL16_CANDIDATE 1  /* Num of candidate at aggregation level 16 */
139 #define PDCCH_SRCH_SPC_TWO_UE_SPEC_DCI_FORMAT  0  /* format 0-0 and 1-0 */
140 #define PDCCH_SYMBOL_WITHIN_SLOT 128     /* Symbol within Slot Value */
141
142
143 #define SIB1_VALUE_TAG 10
144
145 /* MACRO Ddefine for PDSCH Configuration */
146 #define PDSCH_K0  0
147 #define PDSCH_START_SYMBOL  2
148 #define PDSCH_LENGTH_SYMBOL 12
149 #define PDSCH_RES_ALLOC_TYPE       1          /* Resource allocation type */
150 #define PDSCH_MAX_CODEWORD_SCH_BY_DCI 0       /* Max num of codewords scheduled by DCI */
151 #define PDSCH_RBG_SIZE   0                    /* 0: config1 */
152 #define PDSCH_NUM_HARQ_PROC 5
153
154 /* MACRO Define for PUSCH Configuration */
155 #define PUSCH_K2  3
156 #define PUSCH_START_SYMBOL  0
157 #define PUSCH_LENGTH_SYMBOL 14
158
159 #define PUSCH_MSG3_DELTA_PREAMBLE 0
160 #define PUSCH_P0_NOMINAL_WITH_GRANT -70
161 #define PUSCH_TRANSFORM_PRECODER    1      /* 1: Disabled */
162 #define PUSCH_MAX_MIMO_LAYERS       1
163 #define PUSCH_PROCESS_TYPE2_ENABLED false
164
165 /* Macro define for PUCCH Configuration */
166 #define PUCCH_RSRC_COMMON  0
167 #define PUCCH_GROUP_HOPPING 2 /* disable */
168 #define PUCCH_P0_NOMINAL   -74
169
170 /* MACRO defines for TDD DL-UL Configuration */
171 #define NUM_DL_SLOTS 7
172 #define NUM_DL_SYMBOLS 12 
173 #define NUM_UL_SLOTS 2
174 #define NUM_UL_SYMBOLS 1
175 #define GUARD_SLOT_IDX 7
176
177 /* MACRO defines for SRC config */
178 #define SRS_RSRC_ID  1
179 #define SRS_RSET_ID  1
180 #define SRS_COMB_OFFSET_N2   0
181 #define SRS_CYCLIC_SHIFT_N2  0
182 #define SRS_FREQ_DOM_POS     0
183 #define SRS_FREQ_DOM_SHIFT   0
184 #define C_SRS 0
185 #define B_SRS 0
186 #define B_HOP 0
187 #define SRS_SEQ_ID 0
188 #define APERIODIC_SRS_RESRC_TRIGGER 1 
189
190 #define DU_PROC  0
191 #define DU_INST 0
192 #define DU_POOL  1
193 #define MAX_DU_PORT 2
194 #define F1_INTERFACE 0
195 #define E2_INTERFACE 1
196
197 #define SCTP_INST 0
198 #define EGTP_INST 0
199
200 /* Events */
201 #define EVTCFG 0
202
203 #ifdef EGTP_TEST
204 /* Macro definitions for EGTP procedures */
205 #define EGTP_LCL_TEID 1     /* EGTP local tunnel id */
206 #define EGTP_REM_TEID 10    /* EGTP remote tinnel id */
207 #endif
208
209
210 /* Macro definitions for F1 procedures */
211 #define CU_DU_NAME_LEN_MAX 30      /* Max length of CU/DU name string */
212 #define MAX_F1_CONNECTIONS 65536    /* Max num of F1 connections */
213 #define MAX_PLMN           1        /* Max num of broadcast PLMN ids */
214 #define MAXNRARFCN         3279165  /* Maximum values of NRAFCN */
215 #define MAXNRCELLBANDS     2       /* Maximum number of frequency bands */
216 #define MAX_NUM_OF_SLICE_ITEMS 1024     /* Maximum number of signalled slice support items */
217 #define MAXBPLMNNRMINUS1   1       /* Maximum number of PLMN Ids broadcast in an NR cell minus 1 */
218 #define MAXNUMOFSIBTYPES   32       /* Maximum number of SIB types */
219 #define MAX_TNL_ASSOC      32       /* Max num of TNL Assoc between CU and DU */
220 #define MAXCELLINENB       256      /* Max num of cells served by eNB */
221 #define MAX_NUM_OF_UE_ID       65536    /* Max num of UEs served by DU */
222 #define MAXNUMOFUACPLMN    12       /* Maximum number of PLMN ids*/
223 #define MAXNUMOFUACPERPLMN 64       /* Maximum number of signalled categories per PLMN */
224 #define NR_RANAC           150      /* RANAC */
225 #define DEFAULT_CELLS      1        /* Max num of broadcast PLMN ids */
226
227
228 /* Macro definitions for MIB/SIB1 */
229 #define SYS_FRAME_NUM 0
230 #define SPARE 0
231 #define SSB_SC_OFFSET 8
232 #define DU_RANAC 1
233 #define CELL_IDENTITY 32
234
235 /* Macro definitions for DUtoCuRrcContainer */
236 #define CELL_GRP_ID 1
237 #define SCH_REQ_ID  0
238 #define SR_PROHIBIT_TMR 5
239 #define SR_TRANS_MAX 2
240 #define PERIODIC_BSR_TMR 2
241 #define RETX_BSR_TMR     5
242 #define SR_DELAY_TMR     6
243 #define TAG_ID 0
244 #define TIME_ALIGNMENT_TMR 7
245 #define PHR_PERIODIC_TMR 7
246 #define PHR_PROHIBHIT_TMR 0
247 #define PHR_PWR_FACTOR_CHANGE 3
248 #define PHR_MODE_OTHER_CG 0
249 #define SN_FIELD_LEN 0
250 #define T_POLL_RETRANSMIT 8 
251 #define POLL_PDU 0
252 #define POLL_BYTE 43
253 #define MAX_RETX_THRESHOLD 5
254 #define T_REASSEMBLY 8
255 #define T_STATUS_PROHIBHIT 7
256 #define MAC_LC_PRIORITY 1
257 #define PRIORTISIED_BIT_RATE 15
258 #define BUCKET_SIZE_DURATION 5
259 #define LC_GRP 0
260 #define P_NR_FR1 0
261 #define PDSCH_HARQ_ACK_CODEBOOK 1
262 #define SERV_CELL_IDX 0
263 #define RLM_SYNC_OUT_SYNC_THRESHOLD 0
264 #define ACTIVE_DL_BWP_ID 0
265 #define ACTIVE_UL_BWP_ID 0
266 #define SCRAMBLING_ID  NR_PCI
267 #define DMRS_ADDITIONAL_POS  0          /* DMRS Additional poistion */
268 #define RES_ALLOC_TYPE       1          /* Resource allocation type */
269
270 #ifdef EGTP_TEST
271 #define UE_ID 1
272 #define RB_ID 1
273 #define LC_ID 1
274 #endif
275
276 /* MACRO definitions for modulcation order */
277 #define MOD_ORDER_QPSK  2
278 #define MOD_ORDER_QAM16 4
279 #define MOD_ORDER_QAM64 6
280 #define MOD_ORDER_QAM256 8
281 #define PDSCH_MCS_INDEX 20  /* For 64QAM, valid mcs index: 17-28 in 38.214  - Table 5.1.3.1-1*/
282 #define PUSCH_MCS_INDEX 10  /* For 16QAM, valid mcs index: 10-16 in 38.214  - Table 5.1.3.1-1*/
283
284 typedef enum
285 {
286    GNBDU,
287    GNBCU 
288 }F1Entity;
289
290 typedef enum
291 {
292    UNSPECIFIED,
293    RL_FAILURE_RLC,
294    INVALID_CU_UE_F1AP_ID,
295    INVALID_DU_UE_F1AP_ID,
296    INTERACTION_WITH_OTHER_PROC,
297    INVALID_QCI_VALUE,
298    RADIO_RELATED_REASON,
299    INSUFFICIENT_RADIO_RESOURCE,
300    PROCEDURE_CANCELLED,
301    NORMAL_RELEASE,
302    UNAVAILABLE_CELL,
303    RL_FAILURE_OTHERS,
304    UE_ACCESS_REJECTED,
305    SLICE_RESOURCE_UNAVAILABLE,
306    AMF_ABNORMAL_RELEASE,
307    INVALID_PLMN
308 }RadioNwCause;
309
310 typedef enum
311 {
312    TRANS_CAUSE_UNSPECIFIED,
313    TRANSPORT_RESOURCE_UNAVAIL
314 }TransLayerCause;
315
316 typedef enum
317 {
318    TRANSFER_SYNTAX_ERR,
319    ABSTRACT_SYNTAX_ERR_REJECT,
320    ABSTRACT_SYNTAX_ERR_NOTIFY,
321    INCOMPATIBLE_MESSAGE,
322    SEMANTIC_ERROR,
323    ABSTRACT_SYNTAX_ERR_MSG_CONSTRUCT,
324    PROTOCOL_CAUSE_UNSPECIFIED
325 }ProtocolCause;
326
327 typedef enum
328 {
329    CONTROL_PROC_OVERLOAD,
330    INSUFF_USER_PLANE_RESOURCE,
331    HARDWARE_FAILURE,
332    O_AND_M_INTERVENTION,
333    MISC_CAUSE_UNSPECIFIED
334 }MiscCause;
335
336 typedef enum
337 {
338    ALL
339 }F1ResetAll;
340
341 typedef enum 
342 {
343    IN_SERVICE,
344    OUT_OF_SERVICE
345 }SrvState;
346
347 typedef enum
348 {
349    INITIATING_MSG,
350    SUCCESSFUL_OUTCOME,
351    UNSUCCESSFUL_OUTCOME
352 }F1TriggMsgVal;
353
354 typedef enum
355 {
356    CRIT_REJECT,
357    CRIT_IGNORE,
358    CRIT_NOTIFY
359 }F1ProcCritVal;
360
361 typedef enum
362 {
363    NOT_UNDERSTOOD,
364    MISSING_IE
365 }F1ErrorType;
366
367 typedef enum
368 {
369    SCS_15,
370    SCS_30,
371    SCS_60,
372    SCS_120
373 }F1NrScs;
374
375 typedef enum
376 {
377    NRB_11,
378    NRB_18,
379    NRB_24,
380    NRB_25,
381    NRB_31,
382    NRB_32,
383    NRB_38,
384    NRB_51,
385    NRB_52,
386    NRB_65,
387    NRB_66,
388    NRB_78,
389    NRB_79,
390    NRB_93,
391    NRB_106,
392    NRB_107,
393    NRB_121,
394    NRB_132,
395    NRB_133,
396    NRB_135,
397    NRB_160,
398    NRB_162,
399    NRB_189,
400    NRB_216,
401    NRB_217,
402    NRB_245,
403    NRB_264,
404    NRB_270,
405    NRB_273
406 }F1Nrb;
407
408 typedef enum
409 {
410    VERY_SMALL,
411    SMALL,
412    MEDIUM,
413    LARGE
414 }F1CellType;
415
416 typedef enum
417 {
418    DL,
419    UL,
420    DL_UL
421 }F1CellDir;
422
423 typedef enum
424 {
425    UE_USAGE,
426    NON_UE_USAGE,
427    BOTH
428 }F1AssocUsage;
429
430 typedef enum
431 {
432    BARRED,
433    NOT_BARRED
434 }CellBarred;
435
436 typedef enum
437 {
438    OFFER,
439    EXECUTION
440 }F1ReqType;
441
442 typedef enum
443 {
444    IGNORE_YES,
445    IGNORE_NO
446 }F1IgnoreReq;
447
448 typedef enum
449 {
450    OVERLOADED,
451    NOT_OVERLOADED
452 }F1GnbDuOvrloadInfo;
453
454 typedef enum
455 {
456    REJECT_RRC_CONN_NON_EMERG_MODT,
457    REJECT_RRC_CONN_SIGNALLING,
458    PERMIT_EMERG_SESSION_AND_MOBILE_TERM_SERVICE,
459    PERMIT_HIGH_PRIOR_SESSION_AND_MOBILE_TERM_SERVICE
460 }F1UacStandardAction;
461
462 typedef enum
463 {
464    PDSCH_MAPPING_TYPE_A,
465    PDSCH_MAPPING_TYPE_B,
466 }pdschMappingType;
467
468 typedef enum
469 {
470    PUSCH_MAPPING_TYPE_A,
471    PUSCH_MAPPING_TYPE_B,
472 }puschMappingType;
473
474
475 typedef struct f1RrcVersion
476 {
477    char    rrcVer[30];     /* Latest RRC Version */
478    uint32_t   extRrcVer;  /* Latest RRC version extended */
479 }F1RrcVersion;
480
481 typedef struct f1FailCause
482 {
483    union
484    {
485       RadioNwCause      radioNwCause;     /* Radio Network Layer Cause */
486       TransLayerCause   transLayerCause;  /* Transport Layer Cause */
487       ProtocolCause     protCause;        /* Protocol Cause */
488       MiscCause         miscCause;        /* Miscellaneous Cause */
489    }cause;
490 }F1FailCause;
491
492 typedef struct f1ProcCode
493 {
494    bool   pres;
495    uint8_t     value;
496 }F1ProcCode;
497
498 typedef struct f1TriggMsg
499 {
500    bool   pres;
501    F1TriggMsgVal   value;
502 }F1TriggMsg;
503
504 typedef struct f1ProcCrit
505 {
506    bool   pres;
507    F1ProcCritVal   value;
508 }F1ProcCrit;
509
510 typedef struct f1CritDignosIE
511 {
512    F1ProcCritVal   ieCritVal;
513    uint16_t             ieId;
514    F1ErrorType       type;
515 }F1CritDignosIE;
516
517 typedef struct f1CritDiagnostic
518 {
519    bool         pres;
520    F1ProcCode   procCode;      /* Procedure Code */
521    F1TriggMsg   triggeringMsg; /* Triggering Message */
522    F1ProcCrit   procCrit;      /* Criticality of Triggering msg/proc */
523    uint32_t          transId;
524    F1CritDignosIE diagnosIE;
525 }F1CritDiagnostic;
526
527 typedef struct f1FailureIE
528 {
529    uint32_t                transId;        /* Uniquely identify transaction */
530    F1FailCause        cause;          /* Failure cause */
531    uint8_t                 timeToWait;     /* Seconds to be waited before retry */
532    F1CritDiagnostic   critDiagnostic; /* Critical diagnostics */
533 }F1FailureIE;
534
535 typedef struct f1LogicalConnUeAssoc
536 {
537    uint32_t   gnbCuUeF1apId;
538    uint32_t   gnbDuUeF1apId;
539 }F1LogicalConnUeAssoc;
540
541 typedef struct f1ResetType
542 {
543    union
544    {
545       F1ResetAll             resetAll; /* Reset All */
546       F1LogicalConnUeAssoc   ueAssocLogicalConn[MAX_F1_CONNECTIONS]; /* In case of Partial Reset : UE associated logical F1 conn list*/
547    }type;
548 }F1ResetType;
549
550 typedef struct nrEcgi
551 {
552    Plmn  plmn;
553    uint16_t     cellId;
554 }NrEcgi;
555
556 typedef struct f1SibType
557 {
558    uint8_t   sibType;
559    uint8_t   sibMsg;
560    uint8_t   value;
561 }F1SibType;
562
563 typedef struct f1TxBw
564 {
565    F1NrScs   nrScs; /* NR subcarrier spacing */
566    F1Nrb     nrb;   /* Transmission bandwidth expressed in units of RBs */
567 }F1TxBw;
568
569 typedef struct f1SulInfo
570 {
571    uint32_t      sulArfcn; /* SUL ARFCN */
572    F1TxBw   sulTxBw;  /* SUL transmission bandwidth */ 
573 }F1SulInfo;
574
575 typedef struct f1FreqBand
576 {
577    uint16_t   nrFreqBand;
578    uint16_t   sulBand[MAXNRCELLBANDS];
579 }F1FreqBand;
580
581 typedef struct f1NrFreqInfo
582 {
583    uint32_t        nrArfcn;
584    F1SulInfo  sulInfo;
585    F1FreqBand freqBand[MAXNRCELLBANDS];
586 }F1NrFreqInfo;
587
588 typedef struct f1NrFddInfo
589 {
590    F1NrFreqInfo   ulNrFreqInfo;  /* UL NR Frequency Info */
591    F1NrFreqInfo   dlNrFreqInfo;  /* DL NR Frequency Info */
592    F1TxBw         ulTxBw;        /* UL Transmission bandwidth */
593    F1TxBw         dlTxBw;        /* DL Transmission bandwidth */
594 }F1NrFddInfo;
595
596 typedef struct f1NrTddInfo
597 {
598    F1NrFreqInfo   nrFreqInfo;   /* NR Frequency Info */
599    F1TxBw       nrTxBw;       /* NR Transmission Bandwidth */
600 }F1NrTddInfo;
601
602 typedef struct f1NrModeInfo
603 {
604    union
605    {
606       F1NrFddInfo  fdd;
607       F1NrTddInfo  tdd;
608    }mode;
609 }NrModeInfo;
610
611 typedef struct f1EutraFddInfo
612 {
613    uint16_t   ulOffset;   /* UL offset to Point A */
614    uint16_t   dlOffset;   /* DL offset to Point A */
615 }F1EutraFDDInfo;
616
617 typedef struct f1EutraTddInfo
618 {
619    uint16_t   tddOffset;  /* Offset to Point A */
620 }F1EutraTDDInfo;
621
622 typedef struct f1EutraModeInfo
623 {
624    union
625    {
626       F1EutraFDDInfo  fdd;
627       F1EutraTDDInfo  tdd;
628    }mode;
629 }F1EutraModeInfo;
630
631 typedef struct f1Snsaai
632 {
633    uint8_t   sst;
634    uint32_t  sd;
635 }F1Snsaai;
636
637 typedef struct epIpAddr
638 {
639    char transportAddr[20]; /* Transport Layer Address */
640 }EpIpAddr;
641
642 typedef struct epIpAddrPort
643 {
644    EpIpAddr epIpAddr;
645    char   port[2];
646 }EpIpAddrPort;
647
648 typedef struct f1TaiSliceSuppLst
649 {
650    bool       pres;
651    F1Snsaai   snssai[MAX_NUM_OF_SLICE_ITEMS];   
652 }F1TaiSliceSuppLst;
653
654 typedef struct f1SrvdPlmn
655 {
656    Plmn              plmn;
657    F1TaiSliceSuppLst   taiSliceSuppLst;
658 }F1SrvdPlmn;
659
660 typedef struct f1BrdcstPlmnInfo
661 {
662    Plmn   plmn[MAX_PLMN];     /* PLMN id list */
663    Plmn   extPlmn[MAX_PLMN];   /* Extended PLMN id list */
664    uint16_t      tac;                     /* 5GS-TAC */
665    uint32_t      nrCellId;                /* NR Cell id */
666    uint8_t       ranac;                   /* RAN Area code */
667 }F1BrdcstPlmnInfo;
668
669 typedef struct f1CellInfo
670 {
671    NrEcgi   nrCgi;                   /* Cell global Identity */
672    uint32_t nrPci;                   /* Physical Cell Identity */
673    Plmn   plmn[MAX_PLMN];     /* Available PLMN list */
674    Plmn   extPlmn[MAX_PLMN];  /* Extended available PLMN list */
675 }F1CellInfo;
676
677 typedef struct f1DuCellInfo
678 {
679    F1CellInfo         cellInfo;     /* cell info */
680    uint16_t           tac;          /* tracking area code */
681    uint16_t           epsTac;       /* Configured EPS TAC */
682    NrModeInfo         f1Mode;       /* NR mode info : FDD/TDD */
683    uint8_t            measTimeCfg;  /* Measurement timing configuration */
684    F1CellDir          cellDir;      /* Cell Direction */
685    F1CellType         cellType;     /* Cell Type */
686    F1BrdcstPlmnInfo   brdcstPlmnInfo[MAXBPLMNNRMINUS1]; /* Broadcast PLMN Identity Info List */
687 }F1DuCellInfo;
688
689 typedef struct f1DuSysInfo
690 {
691    uint8_t   *mibMsg;   /* MIB message */
692    uint16_t  mibLen;
693    uint8_t   *sib1Msg;  /* SIB1 message */
694    uint16_t  sib1Len;
695 }F1DuSysInfo;
696
697 typedef struct f1CuSysInfo
698 {
699    F1SibType   sibTypeToUpd[MAXNUMOFSIBTYPES];   /* SIB types to be updated */
700 }F1CuSysInfo;
701
702 typedef struct f1DuSrvdCellInfo
703 {
704    F1DuCellInfo   duCellInfo;   /* gNB-DU served cell info */
705    F1DuSysInfo    duSysInfo;    /* gNB-DU System Information */
706 }F1DuSrvdCellInfo;
707
708 typedef struct f1DuSrvdCellToDel
709 {
710    NrEcgi             oldNrCgi;     /* Old NR CGI */
711    F1DuSrvdCellInfo   srvdCellInfo; /* Info of served cell to be deleted */ 
712 }F1DuSrvdCellToDel;
713
714 typedef struct f1CuActCellInfo
715 {
716    F1CellInfo    cuCellInfo;   /* gNB-CU available cell info */
717    F1CuSysInfo   cuSysInfo;    /* gNB-CU System Information */
718 }F1CuActCellInfo;
719
720 typedef struct f1ActCellFail
721 {
722    NrEcgi        nrCgi;
723    F1FailCause   cause;
724 }F1ActCellFail;
725
726 typedef struct srvStatus
727 {
728    SrvState    state;
729    bool        switchOffOngoing;
730 }SrvStatus;
731
732 typedef struct f1CellStatus
733 {
734    NrEcgi      nrEcgi;
735    SrvStatus   status;   /* Service status */
736 }F1CellStatus;
737
738 typedef struct f1DedSIDelUE
739 {
740    uint32_t      gnbCuUeF1apId;
741    NrEcgi   nrEcgi;
742 }F1DedSIDelUE;
743
744 typedef struct tnlAssocInfo
745 {
746    bool           pres;
747    EpIpAddr       epIpAddr;      /* Endpoint-IP Address */
748    EpIpAddrPort   epIpAddrport;  /* Endpoint-IP Address and Port */
749 }F1TnlAssocAddr;
750
751 typedef struct f1TnlAssocUsage
752 {
753    bool           pres;
754    F1AssocUsage   usage;
755 }F1TnlAssocUsage;
756
757 typedef struct f1TnlAssoc
758 {
759    F1TnlAssocAddr   assocInfo;    /* TNL Assoc Transport Layer Info */
760    F1TnlAssocUsage  assocUsage;   /* TNL Assoc usage */
761 }F1TnlAssoc;
762
763 typedef struct f1TnlAssocToRmv
764 {
765    F1TnlAssocAddr   assocInfoCu;   /* TNL Assoc Transport Layer Info of CU */
766    F1TnlAssocAddr   assocInfoDu;   /* TNL Assoc Transport Layer Info of DU */
767 }F1TnlAssocToRmv;
768
769 typedef struct f1TnlAssocSetupFail
770 {
771    F1TnlAssocAddr   assocInfo;
772    F1FailCause      cause;
773 }F1TnlAssocSetupFail;
774
775
776 typedef struct f1CellBarred
777 {
778    NrEcgi       nrcgi;
779    CellBarred   cellBarred;
780 }F1CellBarred;
781
782 typedef struct f1EutraCell
783 {
784    uint32_t                eutraCellId; /* EUTRA cell id */
785    F1EutraModeInfo    mode;        /* EUTRA mode info : FDD/TDD */
786    uint8_t                 rsrcInd;     /* Protected EUTRA resource Indication */
787 }F1EutraCell;
788
789 typedef struct f1ProtectEUTRARsrc
790 {
791    uint32_t           specShareGrpId;               /* Spectrum sharing group id */
792    F1EutraCell   eutraCellList[MAXCELLINENB];  /* EUTRA cells list */
793 }F1ProtectEUTRARsrc;
794
795 typedef struct f1UacOperatorDefined
796 {
797    uint8_t   accessCategory;
798    uint8_t   accessId; 
799 }F1UacOperatorDefined;
800
801 typedef struct f1UacCategoryType
802 {
803    union
804    {
805       F1UacStandardAction    action;      /* UAC standardized action */
806       F1UacOperatorDefined   operatorDef; /* UAC operator defined */
807    }type;
808 }F1UacCategoryType;
809
810 typedef struct f1UacType
811 {
812    uint8_t                  uacReducInd;     /* Value 0 means no access rate reduction. Value 100 means full access rate reduction */
813    F1UacCategoryType   uacCategoryType; /* UAC Category type */
814 }F1UacType;
815
816 /* Unified Access Class Assistance Information */
817 typedef struct f1UacAssistInfo
818 {
819    Plmn      plmn[MAXNUMOFUACPLMN];        /* UAC PLMN list */
820    F1UacType   uacType[MAXNUMOFUACPERPLMN];  /* UAC Type list */
821 }F1UacAssistInfo;
822
823 /* F1 setup related structures */
824 #if 0
825 typedef struct f1SetupReq
826 {
827    uint32_t                transId;                       /* Uniquely identify transaction */
828    uint32_t                duId;                          /* DU ID */ 
829    char               duName[CU_DU_NAME_LEN_MAX];    /* DU name */
830    F1DuSrvdCellInfo   srvdCellLst[MAX_NUM_CELL];   /* Serving cell list */
831    F1RrcVersion       rrcVersion;                    /* RRC version */
832 }F1SetupReq;
833
834 typedef struct f1setupRsp
835 {
836    uint32_t               transId;                      /* Uniquely identify transaction */
837    char              cuName[CU_DU_NAME_LEN_MAX];   /* CU Name */
838    F1CuActCellInfo   actCellInfo;                  /* cells to be activated */
839    F1RrcVersion      rrcVersion;                   /* RRC version */
840 }F1SetupRsp;
841
842 typedef struct f1SetupFail
843 {
844    F1FailureIE   setupFail;
845 }F1SetupFail;
846
847 /* At reception of the RESET message the gNB-DU shall release all allocated resources on F1 
848  * and radio resources related to the UE association(s) indicated explicitly or implicitly in 
849  * the RESET message and remove the indicated UE contexts including F1AP ID. */
850 typedef struct f1Reset
851 {
852    uint32_t              transId;   /* Uniquely identify transaction */
853    F1FailCause      cause;     /* Failure cause */
854    F1ResetType      resetType; /* type of reset */
855 }F1Reset;
856
857 /* After the gNB-CU has released all assigned F1 resources and the UE F1AP IDs for all indicated
858  * UE associations which can be used for new UE-associated logical F1-connections over the F1 interface,
859  *  the gNB-CU shall respond with the RESET ACKNOWLEDGE message. */
860 typedef struct f1ResetAck
861 {
862    uint32_t                    transId;         /* Uniquely identify transaction */
863    F1LogicalConnUeAssoc   ueAssocLogicalConn[MAX_F1_CONNECTIONS]; /* UE associated logical F1-connection list */
864    F1CritDiagnostic       critDiagnostic;  /* Critical diagnostics */
865 }F1ResetAck;
866
867 typedef struct f1ErrorInd
868 {
869    uint32_t                transId;         /* Uniquely identify transaction */
870    F1Entity           errorOrigin;     /* Specifies if error is originated at DU or CU */
871    F1FailCause        cause;           /* Failure cause */
872    /* If failure is due to Ue related message. */
873    uint32_t                gnbCuUeF1apId;   /* gNB-CU UE F1AP Id */
874    uint32_t                gnbDuUeF1apId;   /* gNB-DU UE F1AP Id */
875    F1CritDiagnostic   critDiagnostic;  /* Critical diagnostics */
876 }F1ErrorInd;
877
878 typedef struct f1GnbDuCfgUpd
879 {
880    uint32_t                 transId;                             /* Uniquely identify transaction */
881    F1DuSrvdCellInfo    srvdCellLstAdd[MAX_NUM_CELL];      /* Served cell list to be added */
882    F1DuSrvdCellToDel   srvdCellLstMod[MAX_NUM_CELL];      /* Served cell list to be modified */
883    NrEcgi              srvdCellLstDel[MAX_NUM_CELL];      /* Served cell list to be deleted */
884    F1CellStatus        cellStatus[MAX_NUM_CELL];          /* Cell status */
885    F1DedSIDelUE        ueLst[MAX_NUM_UE];                     /* Ue list that requires dedicated SI delivery */
886    uint32_t            gnbDuId;
887    F1TnlAssocToRmv     gnbDuTnlAssocRmv[MAX_TNL_ASSOC];  /* TNL Assoc list to remove */ 
888 }F1GnbDuCfgUpd;
889
890 typedef struct f1GnbDuCfgUpdAck
891 {
892    uint32_t           transId;                      /* Uniquely identify transaction */
893    F1CuActCellInfo    cellLstAct[MAX_NUM_CELL];    /* List of cells to be activated */   
894    F1CritDiagnostic   critDiagnostic;               /* Critical diagnostics */
895    NrEcgi             cellLstDeact[MAX_NUM_CELL]; /* List of cells to be deactivated */
896 }F1GnbDuCfgUpdAck;
897
898 typedef struct f1GnbDuCfgUpdFail
899 {
900    F1FailureIE   gnbDuCfgUpdFail;
901 }F1GnbDuCfgUpdFail;
902
903 /* Sent by the gNB-CU to transfer updated information associated to an F1-C interface instance */
904 typedef struct f1GnbCuCfgUpd
905 {
906    uint32_t            transId;                            /* Uniquely identifies transaction */
907    F1CuActCellInfo     cellLstAct[MAX_NUM_CELL];         /* List of cells to be activated */
908    NrEcgi              cellLstDeact[MAX_NUM_CELL];       /* List of cells to be deactivated */
909    F1TnlAssoc          assocLstAdd[MAX_TNL_ASSOC];     /* List of TNL assocs to be added */
910    F1TnlAssoc          assocLstUpd[MAX_TNL_ASSOC];     /* List of TNL assocs to be updated */
911    F1TnlAssocToRmv     assocLstRmv[MAX_TNL_ASSOC];     /* List of TNL assocs to be removed */
912    F1CellBarred        cellToBarList[MAX_NUM_CELL];      /* List of Cells to be barred */
913    F1ProtectEUTRARsrc  protectEutraRsrcList[MAXCELLINENB]; /* List of Protected EUTRA resources */
914 }F1GnbCuCfgUpd;
915
916 /* Sent by a gNB-DU to a gNB-CU to acknowledge update of information
917  * associated to an F1-C interface instance */
918 typedef struct f1GnbCuCfgUpdAck
919 {
920    uint32_t              transId;                              /* Uniquely identify transaction */
921    F1ActCellFail         actCellFailList[MAX_NUM_CELL];      /* Cells failed to be activated list */
922    F1CritDiagnostic      critDiagnostic;                       /* Critical diagnostics */
923    F1TnlAssocAddr        assocSetupList[MAX_TNL_ASSOC];     /* TNL Assoc Setup list */
924    F1TnlAssocSetupFail   assocSetupFailList[MAX_TNL_ASSOC]; /* TNL Assoc Setup fail list */
925    F1DedSIDelUE          dedSiDelUelist[MAX_NUM_OF_UE_ID];          /* Dedicated SI delivery needed UE list */
926 }F1GnbCuCfgUpdAck;
927
928 typedef struct f1GnbCuCfgUpdFail
929 {
930    F1FailureIE   gnbCuCfgUpdFail;
931 }F1GnbCuCfgUpdFail;
932
933 /* This procedure enables coordination of radio resource allocation between a gNB-CU and
934  * a gNB-DU. Coordination request is sent by CU to DU */
935 typedef struct f1GnbDuRsrcCoordReq
936 {
937    uint32_t      transId;              /* Uniquely identifies transaction */
938    F1ReqType     reqType;              /* Request type */
939    uint8_t       cellResCoordReqCont;  /* Container for X2AP E-UTRA - NR cell resource coordination request */
940    F1IgnoreReq   ignoreReq;            /* Ignore coordination request */
941 }F1GnbDuRsrcCoordReq;
942
943 /* This message is sent by a gNB-DU to a gNB-CU, to express the desired resource allocation
944  * for data traffic, as a response to the GNB-DU RESOURCE COORDINATION REQUEST. */
945 typedef struct f1GnbDuRsrcCoordRsp
946 {
947    uint32_t   transId;               /* Uniquely identifies transaction */
948    uint8_t    cellResCoordRspCont;   /* Container for X2AP E-UTRA - NR cell resource coordination response */
949 }F1GnbDuRsrcCoordRsp;
950
951 /* This message is sent by the gNB-DU to indicate to the gNB-CU its status of overload */
952 typedef struct f1GnbDuStatusInd
953 {
954    uint32_t                  transId;      /* Uniquely identifies transaction */
955    F1GnbDuOvrloadInfo   ovrloadInfo;  /* gNB-DU overloaded information */
956 }F1GnbDuStatusInd;
957
958 /* This message is sent by either the gNB-DU or the gNB-CU to intiate the removal
959  * of the interface instance and the related resources */
960 typedef struct f1RmvReq
961 {
962    uint32_t   transId; /* Uniquely identifies transaction */
963 }F1RmvReq;
964
965 /* This message acknowledges the initiation of removal of the interface
966  * instance and the related resources */
967 typedef struct f1RmvRsp
968 {
969    uint32_t           transId;     /* Uniquely identifies transaction */
970    F1CritDiagnostic   critDiagnos; /* Crititcality diagnostics */
971 }F1RmvRsp;
972
973 /* This message indicates that removing the interface instance and the related
974  * resources cannot be accepted */
975 typedef struct f1RmvFail
976 {
977    uint32_t           transId;         /* Uniquely identifies transaction */
978    F1FailCause        cause;          /* Failure cause */
979    F1CritDiagnostic   critDiagnostic; /* Criticality diagnostics */
980 }F1RmvFail;
981
982 /* This message is sent by the gNB-CU to indicate to the gNB-DU a need to reduce
983  * the rate at which UEs access the network. */
984 typedef struct f1NwkAccessRateRed
985 {
986    uint32_t          transId;        /* Uniquely identifies transaction */
987    F1UacAssistInfo   uacAssistInfo;  /* UAC Assistance Information */
988 }F1NwkAccessRateRed;
989 #endif
990
991 typedef struct f1Ipaddr
992 {
993    bool ipV4Pres;
994    uint32_t  ipV4Addr; 
995 }F1IpAddr;
996
997 typedef struct sctpParams
998 {
999    F1IpAddr  duIpAddr;
1000    uint16_t       duPort[MAX_DU_PORT];
1001    F1IpAddr  cuIpAddr;
1002    uint16_t       cuPort;
1003    F1IpAddr  ricIpAddr;
1004    uint16_t       ricPort;
1005 }SctpParams;
1006
1007 typedef struct f1EgtpParams
1008 {
1009    F1IpAddr  localIp;      /* Ip address of local node */
1010    uint16_t  localPort;    /* Sender Port at local node */
1011    F1IpAddr  destIp;       /* Ip address of peer node */
1012    uint16_t  destPort;     /* Sender port at peer node */
1013    uint32_t  minTunnelId;
1014    uint32_t  maxTunnelId;
1015 }F1EgtpParams;
1016
1017 typedef struct schedulerCfg
1018 {
1019    uint8_t   numTxAntPorts;    /*!< Number of Tx antenna ports */
1020    uint8_t   ulSchdType;     /*!< Indicates which UL scheduler to use, range
1021                               * is 0..(number of schedulers - 1) */
1022    uint8_t   dlSchdType;     /*!< Indicates which DL scheduler to use, range
1023                               * is 0..(number of schedulers - 1) */
1024    uint8_t   numCells;       /*!< Max number of cells */
1025    uint8_t   maxUlUePerTti;  /*!< Max number of UE in UL per TTI */
1026    uint8_t   maxDlUePerTti;  /*!< Max number of UE in DL per TTI */
1027 }SchedulerCfg;
1028
1029 typedef struct mibParams
1030 {
1031    uint8_t sysFrmNum;
1032    long    subCarrierSpacingCommon;
1033    long    ssb_SubcarrierOffset;
1034    long    dmrs_TypeA_Position;
1035    long    controlResourceSetZero;
1036    long    searchSpaceZero;
1037    long    cellBarred;
1038    long    intraFreqReselection;
1039 }MibParams;
1040
1041 typedef struct siSchedInfo
1042 {
1043    long     winLen;         /* SI Window Length */
1044    long     broadcastSta;   /* Broadcast status */
1045    long     preiodicity;    /* si periodicity */
1046    long     sibType;
1047    long     sibValTag;      /* Value tag */
1048 }SiSchedInfo;
1049
1050 typedef struct pdcchCfgCommon
1051 {
1052    uint8_t  present;
1053    long     ctrlRsrcSetZero;  /* Control resource set zero */
1054    long     searchSpcZero;    /* Search space zero */
1055    long     searchSpcId;      /* Search space id */
1056    long     ctrlRsrcSetId;    /* Control resource set id */
1057    uint8_t  monitorSlotPrdAndOffPresent;
1058    long     monitorSlotPrdAndOff;     /* Monitoring slot periodicity and offset */
1059    uint8_t  monitorSymbolsInSlot[2];  /* Monitoring symbols within slot */
1060    long     numCandAggLvl1;        /* Number of candiates at aggregation level 1 */
1061    long     numCandAggLvl2;        /* Number of candiates at aggregation level 2 */
1062    long     numCandAggLvl4;        /* Number of candiates at aggregation level 4 */
1063    long     numCandAggLvl8;        /* Number of candiates at aggregation level 8 */
1064    long     numCandAggLvl16;       /* Number of candiates at aggregation level 16 */
1065    uint8_t  searchSpcType;        /*  Search Space type */
1066    uint8_t  commSrchSpcDciFrmt;    /* DCI format of common search space type */
1067    long     searchSpcSib1;         /* Id of serch space for SIB1 */
1068    long     pagingSearchSpc;       /* Id of search space for paging */
1069    long     raSearchSpc;           /* Id of search space for Random Access proc */
1070 }PdcchCfgCommon;
1071
1072 typedef struct pdschCfgCommon
1073 {
1074    uint8_t  present;
1075    long     k0;
1076    long     mapType;              /* Mapping Type */
1077    uint16_t sliv;  
1078 }PdschCfgCommon;
1079
1080 typedef struct bcchCfg
1081 {
1082    long   modPrdCoeff;          /* Modification period co-efficient */
1083 }BcchCfg;
1084
1085 typedef struct pcchCfg
1086 {
1087    long   dfltPagingCycle;      /* Default paging cycle */
1088    long   nAndPagingFrmOffPresent;
1089    long   nAndPagingFrmOff;     /* n and Paging Frame offset */
1090    long   numPagingOcc;         /* Number of paging occassions in paging frame */
1091 }PcchCfg;
1092
1093 typedef struct scsSpecCarrier
1094 {
1095    long   scsOffset;    /* Offset to point A considering subcarrier spacing */
1096    long   scs;          /* subcarrier spacing */
1097    long   scsBw;        /* Carrier bandwidth considering subcarrier spacing */
1098
1099 }ScsSpecCarrier;
1100
1101 typedef struct dlCfgCommon
1102 {
1103    long   freqBandInd;  /* Downlink frequency band indicator */
1104    long   offsetToPointA;       /* DL ofset to point A */
1105    long   locAndBw;     /* Frequency location and bandwidth */
1106    ScsSpecCarrier   dlScsCarrier;  /* SCS Specific carrier */
1107    PdcchCfgCommon   pdcchCfg;
1108    PdschCfgCommon   pdschCfg;
1109    BcchCfg          bcchCfg;
1110    PcchCfg          pcchCfg;
1111 }DlCfgCommon;
1112
1113 typedef struct rachCfgCommon
1114 {
1115    uint8_t present;
1116    long   prachCfgIdx;       /* PRACH configuration index */
1117    long   msg1Fdm;           /* Num of PRACH transmission occassions */
1118    long   msg1FreqStart;     /* Offset of lowest msg1 transmission occassion */
1119    long   zeroCorrZoneCfg;   /* Zero correlation zone configuration */
1120    long   preambleRcvdTgtPwr; /* Traget power level */
1121    long   preambleTransMax;  /* Max num of preamble transmission */
1122    long   pwrRampingStep;    /* Power ramping steps for PRACH */
1123    long   raRspWindow;       /* RA response window */
1124    long   numRaPreamble;     /* Total num of preamble used in random access */
1125    uint8_t ssbPerRachOccPresent;
1126    long   numSsbPerRachOcc;  /* Numer of SSBs per RACH Occassion */
1127    long   contResTimer;      /* Contention resolution timer */
1128    long   rsrpThreshSsb;
1129    uint8_t rootSeqIdxPresent;
1130    long   rootSeqIdx;        /* PRACH root sequence index */
1131    long   msg1Scs;           /* Msg1 subcarrier spacing */
1132    long   restrictedSetCfg;  /* Restricted set configuration */
1133 }RachCfgCommon;
1134
1135 typedef struct  puschCfgCommon
1136 {
1137    uint8_t  present;
1138    long     k2;
1139    long     mapType;
1140    uint16_t sliv;
1141    long     msg3DeltaPreamble;
1142    long     p0NominalWithGrant;
1143 }PuschCfgCommon;
1144
1145 typedef struct pucchCfgCommon
1146 {
1147    uint8_t present;
1148    long   rsrcComm;
1149    long   grpHop;
1150    long   p0Nominal;
1151 }PucchCfgCommon;
1152
1153 typedef struct ulCfgCommon
1154 {
1155    long   pMax;         /* Max UL transmission power that UE applies */
1156    long   locAndBw;     /* Frequency location and bandwidth */
1157    ScsSpecCarrier   ulScsCarrier; /* SCS Specific carrier */
1158    RachCfgCommon    rachCfg;
1159    PuschCfgCommon   puschCfg;
1160    PucchCfgCommon   pucchCfg;
1161    long   timeAlignTimerComm;
1162 }UlCfgCommon;
1163
1164 typedef struct tddUlDlCfgCommon
1165 {
1166    long   refScs;     /* Reference subcarrier spacing */
1167    long   txPrd;      /* Transmission periodicity */
1168    long   numDlSlots;
1169    long   numDlSymbols;
1170    long   numUlSlots;
1171    long   numUlSymbols;
1172 }TddUlDlCfgCommon;
1173
1174 typedef struct srvCellCfgCommSib
1175
1176    DlCfgCommon        dlCfg;
1177    UlCfgCommon        ulCfg;
1178    uint8_t            ssbPosInBurst;
1179    long               ssbPrdServingCell;
1180    TddUlDlCfgCommon   tddCfg;
1181    long               ssPbchBlockPwr;
1182 }SrvCellCfgCommSib;
1183
1184 typedef struct sib1Params
1185 {
1186    Plmn    plmn;
1187    uint8_t   tac;
1188    long      ranac;
1189    uint8_t   cellIdentity;
1190    long      cellResvdForOpUse;
1191    long      connEstFailCnt;
1192    long      connEstFailOffValidity;
1193    SiSchedInfo           siSchedInfo;
1194    SrvCellCfgCommSib     srvCellCfgCommSib;
1195 }Sib1Params;
1196
1197 typedef struct duCfgParams
1198 {
1199    SctpParams         sctpParams;                  /* SCTP Params */
1200    F1EgtpParams       egtpParams;                  /* EGTP Params */
1201    uint32_t           maxUe;
1202    uint32_t           duId;
1203    uint8_t            duName[CU_DU_NAME_LEN_MAX];
1204    SchedulerCfg       schedCfg;
1205    F1DuSrvdCellInfo   srvdCellLst[MAX_NUM_CELL];  /* Serving cell list *///TODO: this must be removed eventually
1206    F1RrcVersion       rrcVersion;                 /* RRC version */
1207    MacCellCfg          macCellCfg;                    /* MAC cell configuration */
1208    MibParams          mibParams;                  /* MIB Params */
1209    Sib1Params         sib1Params;                 /* SIB1 Params */
1210 }DuCfgParams;
1211
1212 /*function declarations */
1213 void FillSlotConfig();
1214 uint8_t readClCfg();
1215 uint8_t readCfg();
1216 uint8_t duReadCfg(); 
1217 uint16_t calcSliv(uint8_t startSymbol, uint8_t lengthSymbol);
1218
1219 #endif /* __DU_CONFIG_H__ */
1220
1221 /**********************************************************************
1222   End of file
1223  **********************************************************************/