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 #ifndef __DU_CONFIG_H_
20 #define __DU_CONFIG_H__
23 #include "du_app_mac_inf.h"
25 #include "odu_common_codec.h"
30 #define DU_IP_V4_ADDR "192.168.130.81"
31 #define CU_IP_V4_ADDR "10.0.2.25"
32 #define RIC_IP_V4_ADDR "192.168.130.80"
35 #define RIC_PORT 36422
36 #define DU_EGTP_PORT 39001
37 #define CU_EGTP_PORT 39002
40 #define DU_NAME "ORAN_OAM_DU"
41 #define CELL_TYPE SMALL
42 #define DUPLEX_MODE DUP_MODE_FDD
51 #define NR_ARFCN 2079427
53 #define NR_FREQ_BAND 257
54 #define NR_FREQ_BAND_IND 78
60 #define FREQ_SHIFT_7P5KHZ FALSE
61 #define SSB_PBCH_PWR -5
62 #define BCH_PAYLOAD MAC_GEN_FULL_PBCH_PAYLD
63 #define TOTAL_PRB_BW 106
64 #define SUBCARRIER_SPACING 0
65 #define NORMAL_CYCLIC_PREFIX 0
66 #define SCS_CARRIER_BANDWIDTH 273 /* Subcarrier spacing- carrier bandwidth */
67 #define OFFSET_TO_POINT_A 24 /* PRB Offset to Point A */
68 #define BETA_PSS BETA_PSS_0DB
69 #define SSB_PERIODICITY 5
70 #define SSB_SUBCARRIER_OFFSET 0
71 #define SSB_MULT_CARRIER_BAND FALSE
72 #define MULT_CELL_CARRIER FALSE
73 #define FREQ_LOC_BW 1099 /* DL frequency location and bandwidth */
77 /* MACRO defines for PRACH Configuration */
78 #define PRACH_CONFIG_IDX 105
79 #define PRACH_FREQ_START 0
80 #define PRACH_SEQ_LEN SHORT_SEQUENCE
81 #define PRACH_SUBCARRIER_SPACING 1
82 #define PRACH_RESTRICTED_SET_CFG 0
83 #define NUM_PRACH_FDM 1
84 #define ROOT_SEQ_IDX 24
85 #define NUM_ROOT_SEQ 1
86 #define ZERO_CORRELATION_ZONE_CFG 6
87 #define NUM_UNUSED_ROOT_SEQ 0
88 #define UNUSED_ROOT_SEQ 1
89 #define SSB_PER_RACH 1
90 #define PRACH_MULT_CARRIER_BAND FALSE
91 #define PRACH_PREAMBLE_RCVD_TGT_PWR -74
92 #define NUM_RA_PREAMBLE 63
93 #define RSRP_THRESHOLD_SSB 31
94 #define TDD_PERIODICITY TX_PRDCTY_MS_2P5
95 #define RSS_MEASUREMENT_UNIT DONT_REPORT_RSSI
96 #define RA_CONT_RES_TIMER 64
97 #define RA_RSP_WINDOW 180
98 #define PRACH_RESTRICTED_SET 0 /* Unrestricted */
101 /* MACRCO Ddefine for PDCCH Configuration */
102 #define PDCCH_CTRL_RSRC_SET_ZERO 13 /* Control resouce set zero */
103 #define PDCCH_SEARCH_SPACE_ZERO 0 /* Search space zero */
104 #define PDCCH_SEARCH_SPACE_ID 1 /* Common search space id */
105 #define PDCCH_CTRL_RSRC_SET_ID 0 /* Control resource set id */
106 #define PDCCH_SEARCH_SPACE_ID_SIB1 0 /* Search space id for sib1 */
107 #define PDCCH_SEARCH_SPACE_ID_PAGING 1 /* Search space id for paging */
108 #define PDCCH_SEARCH_SPACE_ID_RA 1 /* Search spaced id for random access */
109 #define PDCCH_SERACH_SPACE_DCI_FORMAT 0
110 #define SIB1_VALUE_TAG 10
112 /* MACRCO Ddefine for PDSCH Configuration */
114 #define PDSCH_START_SYMB_AND_LEN 53
116 /* MACRO Define for PUSCH Configuration */
118 #define PUSCH_START_SYMB_AND_LEN 55
119 #define PUSCH_MSG3_DELTA_PREAMBLE 0
120 #define PUSCH_P0_NOMINAL_WITH_GRANT -70
122 /* Macro define for PUCCH Configuration */
123 #define PUCCH_RSRC_COMMON 0
124 #define PUCCH_P0_NOMINAL -74
126 /* MACRO defines for TDD DL-UL Configuration */
127 #define NUM_DL_SLOTS 3
128 #define NUM_DL_SYMBOLS 12
129 #define NUM_UL_SLOTS 1
130 #define NUM_UL_SYMBOLS 0
135 #define MAX_DU_PORT 2
136 #define F1_INTERFACE 0
137 #define E2_INTERFACE 1
146 #define DU_SELECTOR_LC 0
147 #define DU_SELECTOR_TC 1
148 #define DU_SELECTOR_LWLC 2
151 /* Macro definitions for EGTP procedures */
152 #define EGTP_LCL_TEID 1 /* EGTP local tunnel id */
153 #define EGTP_REM_TEID 10 /* EGTP remote tinnel id */
157 /* Macro definitions for F1 procedures */
158 #define CU_DU_NAME_LEN_MAX 30 /* Max length of CU/DU name string */
159 #define MAX_F1_CONNECTIONS 65536 /* Max num of F1 connections */
160 #define DU_MAX_CELLS 1 /* Max num of cells served by gNB-DU */
161 #define MAX_PLMN 6 /* Max num of broadcast PLMN ids */
162 #define MAXNRARFCN 3279165 /* Maximum values of NRAFCN */
163 #define MAXNRCELLBANDS 2 /* Maximum number of frequency bands */
164 #define MAX_NUM_OF_SLICE_ITEMS 1024 /* Maximum number of signalled slice support items */
165 #define MAXBPLMNNRMINUS1 1 /* Maximum number of PLMN Ids broadcast in an NR cell minus 1 */
166 #define MAXNUMOFSIBTYPES 32 /* Maximum number of SIB types */
167 #define MAX_UEID 512 /* Maximum number of UE Ids */
168 #define MAX_TNL_ASSOC 32 /* Max num of TNL Assoc between CU and DU */
169 #define MAXCELLINENB 256 /* Max num of cells served by eNB */
170 #define MAX_NUM_OF_UE_ID 65536 /* Max num of UEs served by DU */
171 #define MAXNUMOFUACPLMN 12 /* Maximum number of PLMN ids*/
172 #define MAXNUMOFUACPERPLMN 64 /* Maximum number of signalled categories per PLMN */
173 #define NR_RANAC 150 /* RANAC */
174 #define DEFAULT_CELLS 1 /* Max num of broadcast PLMN ids */
177 /* Macro definitions for MIB/SIB1 */
178 #define SYS_FRAME_NUM 0
180 #define SSB_SC_OFFSET 8
181 #define CORESET_ZERO 1
182 #define SEARCH_SPACE_ZERO 8
184 #define CELL_IDENTITY 32
202 INVALID_CU_UE_F1AP_ID,
203 INVALID_DU_UE_F1AP_ID,
204 INTERACTION_WITH_OTHER_PROC,
206 RADIO_RELATED_REASON,
207 INSUFFICIENT_RADIO_RESOURCE,
213 SLICE_RESOURCE_UNAVAILABLE,
214 AMF_ABNORMAL_RELEASE,
220 TRANS_CAUSE_UNSPECIFIED,
221 TRANSPORT_RESOURCE_UNAVAIL
227 ABSTRACT_SYNTAX_ERR_REJECT,
228 ABSTRACT_SYNTAX_ERR_NOTIFY,
229 INCOMPATIBLE_MESSAGE,
231 ABSTRACT_SYNTAX_ERR_MSG_CONSTRUCT,
232 PROTOCOL_CAUSE_UNSPECIFIED
237 CONTROL_PROC_OVERLOAD,
238 INSUFF_USER_PLANE_RESOURCE,
240 O_AND_M_INTERVENTION,
241 MISC_CAUSE_UNSPECIFIED
364 REJECT_RRC_CONN_NON_EMERG_MODT,
365 REJECT_RRC_CONN_SIGNALLING,
366 PERMIT_EMERG_SESSION_AND_MOBILE_TERM_SERVICE,
367 PERMIT_HIGH_PRIOR_SESSION_AND_MOBILE_TERM_SERVICE
368 }F1UacStandardAction;
370 typedef struct f1RrcVersion
372 char rrcVer[30]; /* Latest RRC Version */
373 uint32_t extRrcVer; /* Latest RRC version extended */
376 typedef struct f1FailCause
380 RadioNwCause radioNwCause; /* Radio Network Layer Cause */
381 TransLayerCause transLayerCause; /* Transport Layer Cause */
382 ProtocolCause protCause; /* Protocol Cause */
383 MiscCause miscCause; /* Miscellaneous Cause */
387 typedef struct f1ProcCode
393 typedef struct f1TriggMsg
399 typedef struct f1ProcCrit
405 typedef struct f1CritDignosIE
407 F1ProcCritVal ieCritVal;
412 typedef struct f1CritDiagnostic
415 F1ProcCode procCode; /* Procedure Code */
416 F1TriggMsg triggeringMsg; /* Triggering Message */
417 F1ProcCrit procCrit; /* Criticality of Triggering msg/proc */
419 F1CritDignosIE diagnosIE;
422 typedef struct f1FailureIE
424 uint32_t transId; /* Uniquely identify transaction */
425 F1FailCause cause; /* Failure cause */
426 uint8_t timeToWait; /* Seconds to be waited before retry */
427 F1CritDiagnostic critDiagnostic; /* Critical diagnostics */
430 typedef struct f1LogicalConnUeAssoc
432 uint32_t gnbCuUeF1apId;
433 uint32_t gnbDuUeF1apId;
434 }F1LogicalConnUeAssoc;
436 typedef struct f1ResetType
440 F1ResetAll resetAll; /* Reset All */
441 F1LogicalConnUeAssoc ueAssocLogicalConn[MAX_F1_CONNECTIONS]; /* In case of Partial Reset : UE associated logical F1 conn list*/
445 typedef struct nrEcgi
451 typedef struct f1SibType
458 typedef struct f1TxBw
460 F1NrScs nrScs; /* NR subcarrier spacing */
461 F1Nrb nrb; /* Transmission bandwidth expressed in units of RBs */
464 typedef struct f1SulInfo
466 uint32_t sulArfcn; /* SUL ARFCN */
467 F1TxBw sulTxBw; /* SUL transmission bandwidth */
470 typedef struct f1FreqBand
473 uint16_t sulBand[MAXNRCELLBANDS];
476 typedef struct f1NrFreqInfo
480 F1FreqBand freqBand[MAXNRCELLBANDS];
483 typedef struct f1NrFddInfo
485 F1NrFreqInfo ulNrFreqInfo; /* UL NR Frequency Info */
486 F1NrFreqInfo dlNrFreqInfo; /* DL NR Frequency Info */
487 F1TxBw ulTxBw; /* UL Transmission bandwidth */
488 F1TxBw dlTxBw; /* DL Transmission bandwidth */
491 typedef struct f1NrTddInfo
493 F1NrFreqInfo nrFreqInfo; /* NR Frequency Info */
494 F1TxBw nrTxBw; /* NR Transmission Bandwidth */
497 typedef struct f1NrModeInfo
506 typedef struct f1EutraFddInfo
508 uint16_t ulOffset; /* UL offset to Point A */
509 uint16_t dlOffset; /* DL offset to Point A */
512 typedef struct f1EutraTddInfo
514 uint16_t tddOffset; /* Offset to Point A */
517 typedef struct f1EutraModeInfo
526 typedef struct f1Snsaai
532 typedef struct epIpAddr
534 char transportAddr[20]; /* Transport Layer Address */
537 typedef struct epIpAddrPort
543 typedef struct f1TaiSliceSuppLst
546 F1Snsaai snssai[MAX_NUM_OF_SLICE_ITEMS];
549 typedef struct f1SrvdPlmn
552 F1TaiSliceSuppLst taiSliceSuppLst;
555 typedef struct f1BrdcstPlmnInfo
557 Plmn plmn[MAX_PLMN]; /* PLMN id list */
558 Plmn extPlmn[MAX_PLMN]; /* Extended PLMN id list */
559 uint16_t tac; /* 5GS-TAC */
560 uint32_t nrCellId; /* NR Cell id */
561 uint8_t ranac; /* RAN Area code */
564 typedef struct f1CellInfo
566 NrEcgi nrCgi; /* Cell global Identity */
567 uint32_t nrPci; /* Physical Cell Identity */
568 Plmn plmn[MAX_PLMN]; /* Available PLMN list */
569 Plmn extPlmn[MAX_PLMN]; /* Extended available PLMN list */
572 typedef struct f1DuCellInfo
574 F1CellInfo cellInfo; /* cell info */
575 uint16_t tac; /* tracking area code */
576 uint16_t epsTac; /* Configured EPS TAC */
577 NrModeInfo f1Mode; /* NR mode info : FDD/TDD */
578 uint8_t measTimeCfg; /* Measurement timing configuration */
579 F1CellDir cellDir; /* Cell Direction */
580 F1CellType cellType; /* Cell Type */
581 F1BrdcstPlmnInfo brdcstPlmnInfo[MAXBPLMNNRMINUS1]; /* Broadcast PLMN Identity Info List */
584 typedef struct f1DuSysInfo
586 uint8_t *mibMsg; /* MIB message */
588 uint8_t *sib1Msg; /* SIB1 message */
592 typedef struct f1CuSysInfo
594 F1SibType sibTypeToUpd[MAXNUMOFSIBTYPES]; /* SIB types to be updated */
597 typedef struct f1DuSrvdCellInfo
599 F1DuCellInfo duCellInfo; /* gNB-DU served cell info */
600 F1DuSysInfo duSysInfo; /* gNB-DU System Information */
603 typedef struct f1DuSrvdCellToDel
605 NrEcgi oldNrCgi; /* Old NR CGI */
606 F1DuSrvdCellInfo srvdCellInfo; /* Info of served cell to be deleted */
609 typedef struct f1CuActCellInfo
611 F1CellInfo cuCellInfo; /* gNB-CU available cell info */
612 F1CuSysInfo cuSysInfo; /* gNB-CU System Information */
615 typedef struct f1ActCellFail
621 typedef struct srvStatus
624 bool switchOffOngoing;
627 typedef struct f1CellStatus
630 SrvStatus status; /* Service status */
633 typedef struct f1DedSIDelUE
635 uint32_t gnbCuUeF1apId;
639 typedef struct tnlAssocInfo
642 EpIpAddr epIpAddr; /* Endpoint-IP Address */
643 EpIpAddrPort epIpAddrport; /* Endpoint-IP Address and Port */
646 typedef struct f1TnlAssocUsage
652 typedef struct f1TnlAssoc
654 F1TnlAssocAddr assocInfo; /* TNL Assoc Transport Layer Info */
655 F1TnlAssocUsage assocUsage; /* TNL Assoc usage */
658 typedef struct f1TnlAssocToRmv
660 F1TnlAssocAddr assocInfoCu; /* TNL Assoc Transport Layer Info of CU */
661 F1TnlAssocAddr assocInfoDu; /* TNL Assoc Transport Layer Info of DU */
664 typedef struct f1TnlAssocSetupFail
666 F1TnlAssocAddr assocInfo;
668 }F1TnlAssocSetupFail;
671 typedef struct f1CellBarred
674 CellBarred cellBarred;
677 typedef struct f1EutraCell
679 uint32_t eutraCellId; /* EUTRA cell id */
680 F1EutraModeInfo mode; /* EUTRA mode info : FDD/TDD */
681 uint8_t rsrcInd; /* Protected EUTRA resource Indication */
684 typedef struct f1ProtectEUTRARsrc
686 uint32_t specShareGrpId; /* Spectrum sharing group id */
687 F1EutraCell eutraCellList[MAXCELLINENB]; /* EUTRA cells list */
690 typedef struct f1UacOperatorDefined
692 uint8_t accessCategory;
694 }F1UacOperatorDefined;
696 typedef struct f1UacCategoryType
700 F1UacStandardAction action; /* UAC standardized action */
701 F1UacOperatorDefined operatorDef; /* UAC operator defined */
705 typedef struct f1UacType
707 uint8_t uacReducInd; /* Value 0 means no access rate reduction. Value 100 means full access rate reduction */
708 F1UacCategoryType uacCategoryType; /* UAC Category type */
711 /* Unified Access Class Assistance Information */
712 typedef struct f1UacAssistInfo
714 Plmn plmn[MAXNUMOFUACPLMN]; /* UAC PLMN list */
715 F1UacType uacType[MAXNUMOFUACPERPLMN]; /* UAC Type list */
718 /* F1 setup related structures */
720 typedef struct f1SetupReq
722 uint32_t transId; /* Uniquely identify transaction */
723 uint32_t duId; /* DU ID */
724 char duName[CU_DU_NAME_LEN_MAX]; /* DU name */
725 F1DuSrvdCellInfo srvdCellLst[DU_MAX_CELLS]; /* Serving cell list */
726 F1RrcVersion rrcVersion; /* RRC version */
729 typedef struct f1setupRsp
731 uint32_t transId; /* Uniquely identify transaction */
732 char cuName[CU_DU_NAME_LEN_MAX]; /* CU Name */
733 F1CuActCellInfo actCellInfo; /* cells to be activated */
734 F1RrcVersion rrcVersion; /* RRC version */
737 typedef struct f1SetupFail
739 F1FailureIE setupFail;
742 /* At reception of the RESET message the gNB-DU shall release all allocated resources on F1
743 * and radio resources related to the UE association(s) indicated explicitly or implicitly in
744 * the RESET message and remove the indicated UE contexts including F1AP ID. */
745 typedef struct f1Reset
747 uint32_t transId; /* Uniquely identify transaction */
748 F1FailCause cause; /* Failure cause */
749 F1ResetType resetType; /* type of reset */
752 /* After the gNB-CU has released all assigned F1 resources and the UE F1AP IDs for all indicated
753 * UE associations which can be used for new UE-associated logical F1-connections over the F1 interface,
754 * the gNB-CU shall respond with the RESET ACKNOWLEDGE message. */
755 typedef struct f1ResetAck
757 uint32_t transId; /* Uniquely identify transaction */
758 F1LogicalConnUeAssoc ueAssocLogicalConn[MAX_F1_CONNECTIONS]; /* UE associated logical F1-connection list */
759 F1CritDiagnostic critDiagnostic; /* Critical diagnostics */
762 typedef struct f1ErrorInd
764 uint32_t transId; /* Uniquely identify transaction */
765 F1Entity errorOrigin; /* Specifies if error is originated at DU or CU */
766 F1FailCause cause; /* Failure cause */
767 /* If failure is due to Ue related message. */
768 uint32_t gnbCuUeF1apId; /* gNB-CU UE F1AP Id */
769 uint32_t gnbDuUeF1apId; /* gNB-DU UE F1AP Id */
770 F1CritDiagnostic critDiagnostic; /* Critical diagnostics */
773 typedef struct f1GnbDuCfgUpd
775 uint32_t transId; /* Uniquely identify transaction */
776 F1DuSrvdCellInfo srvdCellLstAdd[DU_MAX_CELLS]; /* Served cell list to be added */
777 F1DuSrvdCellToDel srvdCellLstMod[DU_MAX_CELLS]; /* Served cell list to be modified */
778 NrEcgi srvdCellLstDel[DU_MAX_CELLS]; /* Served cell list to be deleted */
779 F1CellStatus cellStatus[DU_MAX_CELLS]; /* Cell status */
780 F1DedSIDelUE ueLst[MAX_UEID]; /* Ue list that requires dedicated SI delivery */
782 F1TnlAssocToRmv gnbDuTnlAssocRmv[MAX_TNL_ASSOC]; /* TNL Assoc list to remove */
785 typedef struct f1GnbDuCfgUpdAck
787 uint32_t transId; /* Uniquely identify transaction */
788 F1CuActCellInfo cellLstAct[DU_MAX_CELLS]; /* List of cells to be activated */
789 F1CritDiagnostic critDiagnostic; /* Critical diagnostics */
790 NrEcgi cellLstDeact[DU_MAX_CELLS]; /* List of cells to be deactivated */
793 typedef struct f1GnbDuCfgUpdFail
795 F1FailureIE gnbDuCfgUpdFail;
798 /* Sent by the gNB-CU to transfer updated information associated to an F1-C interface instance */
799 typedef struct f1GnbCuCfgUpd
801 uint32_t transId; /* Uniquely identifies transaction */
802 F1CuActCellInfo cellLstAct[DU_MAX_CELLS]; /* List of cells to be activated */
803 NrEcgi cellLstDeact[DU_MAX_CELLS]; /* List of cells to be deactivated */
804 F1TnlAssoc assocLstAdd[MAX_TNL_ASSOC]; /* List of TNL assocs to be added */
805 F1TnlAssoc assocLstUpd[MAX_TNL_ASSOC]; /* List of TNL assocs to be updated */
806 F1TnlAssocToRmv assocLstRmv[MAX_TNL_ASSOC]; /* List of TNL assocs to be removed */
807 F1CellBarred cellToBarList[DU_MAX_CELLS]; /* List of Cells to be barred */
808 F1ProtectEUTRARsrc protectEutraRsrcList[MAXCELLINENB]; /* List of Protected EUTRA resources */
811 /* Sent by a gNB-DU to a gNB-CU to acknowledge update of information
812 * associated to an F1-C interface instance */
813 typedef struct f1GnbCuCfgUpdAck
815 uint32_t transId; /* Uniquely identify transaction */
816 F1ActCellFail actCellFailList[DU_MAX_CELLS]; /* Cells failed to be activated list */
817 F1CritDiagnostic critDiagnostic; /* Critical diagnostics */
818 F1TnlAssocAddr assocSetupList[MAX_TNL_ASSOC]; /* TNL Assoc Setup list */
819 F1TnlAssocSetupFail assocSetupFailList[MAX_TNL_ASSOC]; /* TNL Assoc Setup fail list */
820 F1DedSIDelUE dedSiDelUelist[MAX_NUM_OF_UE_ID]; /* Dedicated SI delivery needed UE list */
823 typedef struct f1GnbCuCfgUpdFail
825 F1FailureIE gnbCuCfgUpdFail;
828 /* This procedure enables coordination of radio resource allocation between a gNB-CU and
829 * a gNB-DU. Coordination request is sent by CU to DU */
830 typedef struct f1GnbDuRsrcCoordReq
832 uint32_t transId; /* Uniquely identifies transaction */
833 F1ReqType reqType; /* Request type */
834 uint8_t cellResCoordReqCont; /* Container for X2AP E-UTRA - NR cell resource coordination request */
835 F1IgnoreReq ignoreReq; /* Ignore coordination request */
836 }F1GnbDuRsrcCoordReq;
838 /* This message is sent by a gNB-DU to a gNB-CU, to express the desired resource allocation
839 * for data traffic, as a response to the GNB-DU RESOURCE COORDINATION REQUEST. */
840 typedef struct f1GnbDuRsrcCoordRsp
842 uint32_t transId; /* Uniquely identifies transaction */
843 uint8_t cellResCoordRspCont; /* Container for X2AP E-UTRA - NR cell resource coordination response */
844 }F1GnbDuRsrcCoordRsp;
846 /* This message is sent by the gNB-DU to indicate to the gNB-CU its status of overload */
847 typedef struct f1GnbDuStatusInd
849 uint32_t transId; /* Uniquely identifies transaction */
850 F1GnbDuOvrloadInfo ovrloadInfo; /* gNB-DU overloaded information */
853 /* This message is sent by either the gNB-DU or the gNB-CU to intiate the removal
854 * of the interface instance and the related resources */
855 typedef struct f1RmvReq
857 uint32_t transId; /* Uniquely identifies transaction */
860 /* This message acknowledges the initiation of removal of the interface
861 * instance and the related resources */
862 typedef struct f1RmvRsp
864 uint32_t transId; /* Uniquely identifies transaction */
865 F1CritDiagnostic critDiagnos; /* Crititcality diagnostics */
868 /* This message indicates that removing the interface instance and the related
869 * resources cannot be accepted */
870 typedef struct f1RmvFail
872 uint32_t transId; /* Uniquely identifies transaction */
873 F1FailCause cause; /* Failure cause */
874 F1CritDiagnostic critDiagnostic; /* Criticality diagnostics */
877 /* This message is sent by the gNB-CU to indicate to the gNB-DU a need to reduce
878 * the rate at which UEs access the network. */
879 typedef struct f1NwkAccessRateRed
881 uint32_t transId; /* Uniquely identifies transaction */
882 F1UacAssistInfo uacAssistInfo; /* UAC Assistance Information */
885 typedef struct f1Ipaddr
891 typedef struct sctpParams
894 U16 duPort[MAX_DU_PORT];
901 typedef struct f1EgtpParams
903 F1IpAddr localIp; /* Ip address of local node */
904 uint16_t localPort; /* Sender Port at local node */
905 F1IpAddr destIp; /* Ip address of peer node */
906 uint16_t destPort; /* Sender port at peer node */
907 uint32_t minTunnelId;
908 uint32_t maxTunnelId;
911 typedef struct schedulerCfg
913 uint8_t numTxAntPorts; /*!< Number of Tx antenna ports */
914 uint8_t ulSchdType; /*!< Indicates which UL scheduler to use, range
915 * is 0..(number of schedulers - 1) */
916 uint8_t dlSchdType; /*!< Indicates which DL scheduler to use, range
917 * is 0..(number of schedulers - 1) */
918 uint8_t numCells; /*!< Max number of cells */
919 uint8_t maxUlUePerTti; /*!< Max number of UE in UL per TTI */
920 uint8_t maxDlUePerTti; /*!< Max number of UE in DL per TTI */
923 typedef struct mibParams
926 long subCarrierSpacingCommon;
927 long ssb_SubcarrierOffset;
928 long dmrs_TypeA_Position;
929 long controlResourceSetZero;
930 long searchSpaceZero;
932 long intraFreqReselection;
935 typedef struct siSchedInfo
937 long winLen; /* SI Window Length */
938 long broadcastSta; /* Broadcast status */
939 long preiodicity; /* si periodicity */
941 long sibValTag; /* Value tag */
944 typedef struct pdcchCfgCommon
947 long ctrlRsrcSetZero; /* Control resource set zero */
948 long searchSpcZero; /* Search space zero */
949 long searchSpcId; /* Search space id */
950 long ctrlRsrcSetId; /* Control resource set id */
951 uint8_t monitorSlotPrdAndOffPresent;
952 long monitorSlotPrdAndOff; /* Monitoring slot periodicity and offset */
953 uint8_t monitorSymbolsInSlot[2]; /* Monitoring symbols within slot */
954 long numCandAggLvl1; /* Number of candiates at aggregation level 1 */
955 long numCandAggLvl2; /* Number of candiates at aggregation level 2 */
956 long numCandAggLvl4; /* Number of candiates at aggregation level 4 */
957 long numCandAggLvl8; /* Number of candiates at aggregation level 8 */
958 long numCandAggLvl16; /* Number of candiates at aggregation level 16 */
959 uint8_t searchSpcType; /* Search Space type */
960 uint8_t commSrchSpcDciFrmt; /* DCI format of common search space type */
961 long searchSpcSib1; /* Id of serch space for SIB1 */
962 long pagingSearchSpc; /* Id of search space for paging */
963 long raSearchSpc; /* Id of search space for Random Access proc */
966 typedef struct pdschCfgCommon
970 long mapType; /* Mapping Type */
971 long startSymbAndLen; /* Start Symbol and Length */
974 typedef struct bcchCfg
976 long modPrdCoeff; /* Modification period co-efficient */
979 typedef struct pcchCfg
981 long dfltPagingCycle; /* Default paging cycle */
982 long nAndPagingFrmOffPresent;
983 long nAndPagingFrmOff; /* n and Paging Frame offset */
984 long numPagingOcc; /* Number of paging occassions in paging frame */
987 typedef struct scsSpecCarrier
989 long scsOffset; /* Offset to point A considering subcarrier spacing */
990 long scs; /* subcarrier spacing */
991 long scsBw; /* Carrier bandwidth considering subcarrier spacing */
995 typedef struct dlCfgCommon
997 long freqBandInd; /* Downlink frequency band indicator */
998 long offsetToPointA; /* DL ofset to point A */
999 long locAndBw; /* Frequency location and bandwidth */
1000 ScsSpecCarrier dlScsCarrier; /* SCS Specific carrier */
1001 PdcchCfgCommon pdcchCfg;
1002 PdschCfgCommon pdschCfg;
1007 typedef struct rachCfgCommon
1010 long prachCfgIdx; /* PRACH configuration index */
1011 long msg1Fdm; /* Num of PRACH transmission occassions */
1012 long msg1FreqStart; /* Offset of lowest msg1 transmission occassion */
1013 long zeroCorrZoneCfg; /* Zero correlation zone configuration */
1014 long preambleRcvdTgtPwr; /* Traget power level */
1015 long preambleTransMax; /* Max num of preamble transmission */
1016 long pwrRampingStep; /* Power ramping steps for PRACH */
1017 long raRspWindow; /* RA response window */
1018 long numRaPreamble; /* Total num of preamble used in random access */
1019 uint8_t ssbPerRachOccPresent;
1020 long numSsbPerRachOcc; /* Numer of SSBs per RACH Occassion */
1021 long contResTimer; /* Contention resolution timer */
1023 uint8_t rootSeqIdxPresent;
1024 long rootSeqIdx; /* PRACH root sequence index */
1025 long msg1Scs; /* Msg1 subcarrier spacing */
1026 long restrictedSetCfg; /* Restricted set configuration */
1029 typedef struct puschCfgCommon
1034 long startSymbAndLen;
1035 long msg3DeltaPreamble;
1036 long p0NominalWithGrant;
1039 typedef struct pucchCfgCommon
1047 typedef struct ulCfgCommon
1049 long pMax; /* Max UL transmission power that UE applies */
1050 long locAndBw; /* Frequency location and bandwidth */
1051 ScsSpecCarrier ulScsCarrier; /* SCS Specific carrier */
1052 RachCfgCommon rachCfg;
1053 PuschCfgCommon puschCfg;
1054 PucchCfgCommon pucchCfg;
1055 long timeAlignTimerComm;
1058 typedef struct tddUlDlCfgCommon
1060 long refScs; /* Reference subcarrier spacing */
1061 long txPrd; /* Transmission periodicity */
1068 typedef struct srvCellCfgCommSib
1072 uint8_t ssbPosInBurst;
1073 long ssbPrdServingCell;
1074 TddUlDlCfgCommon tddCfg;
1075 long ssPbchBlockPwr;
1078 typedef struct sib1Params
1083 uint8_t cellIdentity;
1084 long cellResvdForOpUse;
1085 long connEstFailCnt;
1086 long connEstFailOffValidity;
1087 SiSchedInfo siSchedInfo;
1088 SrvCellCfgCommSib srvCellCfgCommSib;
1091 typedef struct duCfgParams
1093 SctpParams sctpParams; /* SCTP Params */
1094 F1EgtpParams egtpParams; /* EGTP Params */
1097 uint8_t duName[CU_DU_NAME_LEN_MAX];
1098 SchedulerCfg schedCfg;
1099 F1DuSrvdCellInfo srvdCellLst[DU_MAX_CELLS]; /* Serving cell list *///TODO: this must be removed eventually
1100 F1RrcVersion rrcVersion; /* RRC version */
1101 MacCellCfg macCellCfg; /* MAC cell configuration */
1102 MibParams mibParams; /* MIB Params */
1103 Sib1Params sib1Params; /* SIB1 Params */
1106 /*function declarations */
1107 void FillSlotConfig();
1111 S16 bitStringToInt(BIT_STRING_t *bitString, uint16_t *val);
1113 #endif /* __DU_CONFIG_H__ */
1115 /**********************************************************************
1117 **********************************************************************/