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 "10.0.2.20"
31 #define CU_IP_V4_ADDR "10.0.2.25"
32 #define RIC_IP_V4_ADDR "10.0.2.30"
35 #define RIC_PORT 38482
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 SUBCARRIER_SPACING 1
64 #define SCS_CARRIER_BANDWIDTH 273 /* Subcarrier spacing- carrier bandwidth */
65 #define OFFSET_TO_POINT_A 24 /* PRB Offset to Point A */
66 #define BETA_PSS BETA_PSS_0DB
67 #define SSB_PERIODICITY 2
68 #define SSB_SUBCARRIER_OFFSET 0
69 #define SSB_MULT_CARRIER_BAND FALSE
70 #define MULT_CELL_CARRIER FALSE
71 #define FREQ_LOC_BW 1099 /* DL frequency location and bandwidth */
75 /* MACRO defines for PRACH Configuration */
76 #define PRACH_CONFIG_IDX 147
77 #define PRACH_FREQ_START 0
78 #define PRACH_SEQ_LEN SHORT_SEQUENCE
79 #define PRACH_SUBCARRIER_SPACING 1
80 #define PRACH_RESTRICTED_SET_CFG 0
81 #define NUM_PRACH_FDM 1
82 #define ROOT_SEQ_IDX 0
83 #define NUM_ROOT_SEQ 1
84 #define ZERO_CORRELATION_ZONE_CFG 6
85 #define NUM_UNUSED_ROOT_SEQ 1
86 #define UNUSED_ROOT_SEQ 1
87 #define SSB_PER_RACH 0
88 #define PRACH_MULT_CARRIER_BAND FALSE
89 #define PRACH_PREAMBLE_RCVD_TGT_PWR -74
90 #define NUM_RA_PREAMBLE 63
91 #define RSRP_THRESHOLD_SSB 31
92 #define TDD_PERIODICITY TX_PRDCTY_MS_2P5
93 #define RSS_MEASUREMENT_UNIT DONT_REPORT_RSSI
96 /* MACRCO Ddefine for PDCCH Configuration */
97 #define PDCCH_CTRL_RSRC_SET_ZERO 13 /* Control resouce set zero */
98 #define PDCCH_SEARCH_SPACE_ZERO 0 /* Search space zero */
99 #define PDCCH_SEARCH_SPACE_ID 1 /* Common search space id */
100 #define PDCCH_CTRL_RSRC_SET_ID 0 /* Control resource set id */
101 #define PDCCH_SEARCH_SPACE_ID_SIB1 0 /* Search space id for sib1 */
102 #define PDCCH_SEARCH_SPACE_ID_PAGING 1 /* Search space id for paging */
103 #define PDCCH_SEARCH_SPACE_ID_RA 1 /* Search spaced id for random access */
104 #define PDCCH_SERACH_SPACE_DCI_FORMAT 0
105 #define SIB1_VALUE_TAG 10
107 /* MACRCO Ddefine for PDSCH Configuration */
109 #define PDSCH_START_SYMB_AND_LEN 53
111 /* MACRO Define for PUSCH Configuration */
113 #define PUSCH_START_SYMB_AND_LEN 55
114 #define PUSCH_MSG3_DELTA_PREAMBLE 0
115 #define PUSCH_P0_NOMINAL_WITH_GRANT -70
117 /* Macro define for PUCCH Configuration */
118 #define PUCCH_RSRC_COMMON 0
119 #define PUCCH_P0_NOMINAL -74
121 /* MACRO defines for TDD DL-UL Configuration */
122 #define NUM_DL_SLOTS 3
123 #define NUM_DL_SYMBOLS 12
124 #define NUM_UL_SLOTS 1
125 #define NUM_UL_SYMBOLS 0
130 #define MAX_DU_PORT 2
131 #define F1_INTERFACE 0
132 #define E2_INTERFACE 1
141 #define DU_SELECTOR_LC 0
142 #define DU_SELECTOR_TC 1
143 #define DU_SELECTOR_LWLC 2
146 /* Macro definitions for EGTP procedures */
147 #define EGTP_LCL_TEID 1 /* EGTP local tunnel id */
148 #define EGTP_REM_TEID 10 /* EGTP remote tinnel id */
152 /* Macro definitions for F1 procedures */
153 #define CU_DU_NAME_LEN_MAX 30 /* Max length of CU/DU name string */
154 #define MAX_F1_CONNECTIONS 65536 /* Max num of F1 connections */
155 #define DU_MAX_CELLS 1 /* Max num of cells served by gNB-DU */
156 #define MAX_PLMN 6 /* Max num of broadcast PLMN ids */
157 #define MAXNRARFCN 3279165 /* Maximum values of NRAFCN */
158 #define MAXNRCELLBANDS 2 /* Maximum number of frequency bands */
159 #define MAX_NUM_OF_SLICE_ITEMS 1024 /* Maximum number of signalled slice support items */
160 #define MAXBPLMNNRMINUS1 1 /* Maximum number of PLMN Ids broadcast in an NR cell minus 1 */
161 #define MAXNUMOFSIBTYPES 32 /* Maximum number of SIB types */
162 #define MAX_UEID 512 /* Maximum number of UE Ids */
163 #define MAX_TNL_ASSOC 32 /* Max num of TNL Assoc between CU and DU */
164 #define MAXCELLINENB 256 /* Max num of cells served by eNB */
165 #define MAX_NUM_OF_UE_ID 65536 /* Max num of UEs served by DU */
166 #define MAXNUMOFUACPLMN 12 /* Maximum number of PLMN ids*/
167 #define MAXNUMOFUACPERPLMN 64 /* Maximum number of signalled categories per PLMN */
168 #define NR_RANAC 150 /* RANAC */
169 #define DEFAULT_CELLS 1 /* Max num of broadcast PLMN ids */
172 /* Macro definitions for MIB/SIB1 */
173 #define SYS_FRAME_NUM 0
175 #define SSB_SC_OFFSET 8
176 #define CORESET_ZERO 1
177 #define SEARCH_SPACE_ZERO 8
179 #define CELL_IDENTITY 32
197 INVALID_CU_UE_F1AP_ID,
198 INVALID_DU_UE_F1AP_ID,
199 INTERACTION_WITH_OTHER_PROC,
201 RADIO_RELATED_REASON,
202 INSUFFICIENT_RADIO_RESOURCE,
208 SLICE_RESOURCE_UNAVAILABLE,
209 AMF_ABNORMAL_RELEASE,
215 TRANS_CAUSE_UNSPECIFIED,
216 TRANSPORT_RESOURCE_UNAVAIL
222 ABSTRACT_SYNTAX_ERR_REJECT,
223 ABSTRACT_SYNTAX_ERR_NOTIFY,
224 INCOMPATIBLE_MESSAGE,
226 ABSTRACT_SYNTAX_ERR_MSG_CONSTRUCT,
227 PROTOCOL_CAUSE_UNSPECIFIED
232 CONTROL_PROC_OVERLOAD,
233 INSUFF_USER_PLANE_RESOURCE,
235 O_AND_M_INTERVENTION,
236 MISC_CAUSE_UNSPECIFIED
359 REJECT_RRC_CONN_NON_EMERG_MODT,
360 REJECT_RRC_CONN_SIGNALLING,
361 PERMIT_EMERG_SESSION_AND_MOBILE_TERM_SERVICE,
362 PERMIT_HIGH_PRIOR_SESSION_AND_MOBILE_TERM_SERVICE
363 }F1UacStandardAction;
365 typedef struct f1RrcVersion
367 char rrcVer[30]; /* Latest RRC Version */
368 uint32_t extRrcVer; /* Latest RRC version extended */
371 typedef struct f1FailCause
375 RadioNwCause radioNwCause; /* Radio Network Layer Cause */
376 TransLayerCause transLayerCause; /* Transport Layer Cause */
377 ProtocolCause protCause; /* Protocol Cause */
378 MiscCause miscCause; /* Miscellaneous Cause */
382 typedef struct f1ProcCode
388 typedef struct f1TriggMsg
394 typedef struct f1ProcCrit
400 typedef struct f1CritDignosIE
402 F1ProcCritVal ieCritVal;
407 typedef struct f1CritDiagnostic
410 F1ProcCode procCode; /* Procedure Code */
411 F1TriggMsg triggeringMsg; /* Triggering Message */
412 F1ProcCrit procCrit; /* Criticality of Triggering msg/proc */
414 F1CritDignosIE diagnosIE;
417 typedef struct f1FailureIE
419 uint32_t transId; /* Uniquely identify transaction */
420 F1FailCause cause; /* Failure cause */
421 uint8_t timeToWait; /* Seconds to be waited before retry */
422 F1CritDiagnostic critDiagnostic; /* Critical diagnostics */
425 typedef struct f1LogicalConnUeAssoc
427 uint32_t gnbCuUeF1apId;
428 uint32_t gnbDuUeF1apId;
429 }F1LogicalConnUeAssoc;
431 typedef struct f1ResetType
435 F1ResetAll resetAll; /* Reset All */
436 F1LogicalConnUeAssoc ueAssocLogicalConn[MAX_F1_CONNECTIONS]; /* In case of Partial Reset : UE associated logical F1 conn list*/
440 typedef struct nrEcgi
446 typedef struct f1SibType
453 typedef struct f1TxBw
455 F1NrScs nrScs; /* NR subcarrier spacing */
456 F1Nrb nrb; /* Transmission bandwidth expressed in units of RBs */
459 typedef struct f1SulInfo
461 uint32_t sulArfcn; /* SUL ARFCN */
462 F1TxBw sulTxBw; /* SUL transmission bandwidth */
465 typedef struct f1FreqBand
468 uint16_t sulBand[MAXNRCELLBANDS];
471 typedef struct f1NrFreqInfo
475 F1FreqBand freqBand[MAXNRCELLBANDS];
478 typedef struct f1NrFddInfo
480 F1NrFreqInfo ulNrFreqInfo; /* UL NR Frequency Info */
481 F1NrFreqInfo dlNrFreqInfo; /* DL NR Frequency Info */
482 F1TxBw ulTxBw; /* UL Transmission bandwidth */
483 F1TxBw dlTxBw; /* DL Transmission bandwidth */
486 typedef struct f1NrTddInfo
488 F1NrFreqInfo nrFreqInfo; /* NR Frequency Info */
489 F1TxBw nrTxBw; /* NR Transmission Bandwidth */
492 typedef struct f1NrModeInfo
501 typedef struct f1EutraFddInfo
503 uint16_t ulOffset; /* UL offset to Point A */
504 uint16_t dlOffset; /* DL offset to Point A */
507 typedef struct f1EutraTddInfo
509 uint16_t tddOffset; /* Offset to Point A */
512 typedef struct f1EutraModeInfo
521 typedef struct f1Snsaai
527 typedef struct epIpAddr
529 char transportAddr[20]; /* Transport Layer Address */
532 typedef struct epIpAddrPort
538 typedef struct f1TaiSliceSuppLst
541 F1Snsaai snssai[MAX_NUM_OF_SLICE_ITEMS];
544 typedef struct f1SrvdPlmn
547 F1TaiSliceSuppLst taiSliceSuppLst;
550 typedef struct f1BrdcstPlmnInfo
552 Plmn plmn[MAX_PLMN]; /* PLMN id list */
553 Plmn extPlmn[MAX_PLMN]; /* Extended PLMN id list */
554 uint16_t tac; /* 5GS-TAC */
555 uint32_t nrCellId; /* NR Cell id */
556 uint8_t ranac; /* RAN Area code */
559 typedef struct f1CellInfo
561 NrEcgi nrCgi; /* Cell global Identity */
562 uint32_t nrPci; /* Physical Cell Identity */
563 Plmn plmn[MAX_PLMN]; /* Available PLMN list */
564 Plmn extPlmn[MAX_PLMN]; /* Extended available PLMN list */
567 typedef struct f1DuCellInfo
569 F1CellInfo cellInfo; /* cell info */
570 uint16_t tac; /* tracking area code */
571 uint16_t epsTac; /* Configured EPS TAC */
572 NrModeInfo f1Mode; /* NR mode info : FDD/TDD */
573 uint8_t measTimeCfg; /* Measurement timing configuration */
574 F1CellDir cellDir; /* Cell Direction */
575 F1CellType cellType; /* Cell Type */
576 F1BrdcstPlmnInfo brdcstPlmnInfo[MAXBPLMNNRMINUS1]; /* Broadcast PLMN Identity Info List */
579 typedef struct f1DuSysInfo
581 uint8_t *mibMsg; /* MIB message */
583 uint8_t *sib1Msg; /* SIB1 message */
587 typedef struct f1CuSysInfo
589 F1SibType sibTypeToUpd[MAXNUMOFSIBTYPES]; /* SIB types to be updated */
592 typedef struct f1DuSrvdCellInfo
594 F1DuCellInfo duCellInfo; /* gNB-DU served cell info */
595 F1DuSysInfo duSysInfo; /* gNB-DU System Information */
598 typedef struct f1DuSrvdCellToDel
600 NrEcgi oldNrCgi; /* Old NR CGI */
601 F1DuSrvdCellInfo srvdCellInfo; /* Info of served cell to be deleted */
604 typedef struct f1CuActCellInfo
606 F1CellInfo cuCellInfo; /* gNB-CU available cell info */
607 F1CuSysInfo cuSysInfo; /* gNB-CU System Information */
610 typedef struct f1ActCellFail
616 typedef struct srvStatus
619 bool switchOffOngoing;
622 typedef struct f1CellStatus
625 SrvStatus status; /* Service status */
628 typedef struct f1DedSIDelUE
630 uint32_t gnbCuUeF1apId;
634 typedef struct tnlAssocInfo
637 EpIpAddr epIpAddr; /* Endpoint-IP Address */
638 EpIpAddrPort epIpAddrport; /* Endpoint-IP Address and Port */
641 typedef struct f1TnlAssocUsage
647 typedef struct f1TnlAssoc
649 F1TnlAssocAddr assocInfo; /* TNL Assoc Transport Layer Info */
650 F1TnlAssocUsage assocUsage; /* TNL Assoc usage */
653 typedef struct f1TnlAssocToRmv
655 F1TnlAssocAddr assocInfoCu; /* TNL Assoc Transport Layer Info of CU */
656 F1TnlAssocAddr assocInfoDu; /* TNL Assoc Transport Layer Info of DU */
659 typedef struct f1TnlAssocSetupFail
661 F1TnlAssocAddr assocInfo;
663 }F1TnlAssocSetupFail;
666 typedef struct f1CellBarred
669 CellBarred cellBarred;
672 typedef struct f1EutraCell
674 uint32_t eutraCellId; /* EUTRA cell id */
675 F1EutraModeInfo mode; /* EUTRA mode info : FDD/TDD */
676 uint8_t rsrcInd; /* Protected EUTRA resource Indication */
679 typedef struct f1ProtectEUTRARsrc
681 uint32_t specShareGrpId; /* Spectrum sharing group id */
682 F1EutraCell eutraCellList[MAXCELLINENB]; /* EUTRA cells list */
685 typedef struct f1UacOperatorDefined
687 uint8_t accessCategory;
689 }F1UacOperatorDefined;
691 typedef struct f1UacCategoryType
695 F1UacStandardAction action; /* UAC standardized action */
696 F1UacOperatorDefined operatorDef; /* UAC operator defined */
700 typedef struct f1UacType
702 uint8_t uacReducInd; /* Value 0 means no access rate reduction. Value 100 means full access rate reduction */
703 F1UacCategoryType uacCategoryType; /* UAC Category type */
706 /* Unified Access Class Assistance Information */
707 typedef struct f1UacAssistInfo
709 Plmn plmn[MAXNUMOFUACPLMN]; /* UAC PLMN list */
710 F1UacType uacType[MAXNUMOFUACPERPLMN]; /* UAC Type list */
713 /* F1 setup related structures */
715 typedef struct f1SetupReq
717 uint32_t transId; /* Uniquely identify transaction */
718 uint32_t duId; /* DU ID */
719 char duName[CU_DU_NAME_LEN_MAX]; /* DU name */
720 F1DuSrvdCellInfo srvdCellLst[DU_MAX_CELLS]; /* Serving cell list */
721 F1RrcVersion rrcVersion; /* RRC version */
724 typedef struct f1setupRsp
726 uint32_t transId; /* Uniquely identify transaction */
727 char cuName[CU_DU_NAME_LEN_MAX]; /* CU Name */
728 F1CuActCellInfo actCellInfo; /* cells to be activated */
729 F1RrcVersion rrcVersion; /* RRC version */
732 typedef struct f1SetupFail
734 F1FailureIE setupFail;
737 /* At reception of the RESET message the gNB-DU shall release all allocated resources on F1
738 * and radio resources related to the UE association(s) indicated explicitly or implicitly in
739 * the RESET message and remove the indicated UE contexts including F1AP ID. */
740 typedef struct f1Reset
742 uint32_t transId; /* Uniquely identify transaction */
743 F1FailCause cause; /* Failure cause */
744 F1ResetType resetType; /* type of reset */
747 /* After the gNB-CU has released all assigned F1 resources and the UE F1AP IDs for all indicated
748 * UE associations which can be used for new UE-associated logical F1-connections over the F1 interface,
749 * the gNB-CU shall respond with the RESET ACKNOWLEDGE message. */
750 typedef struct f1ResetAck
752 uint32_t transId; /* Uniquely identify transaction */
753 F1LogicalConnUeAssoc ueAssocLogicalConn[MAX_F1_CONNECTIONS]; /* UE associated logical F1-connection list */
754 F1CritDiagnostic critDiagnostic; /* Critical diagnostics */
757 typedef struct f1ErrorInd
759 uint32_t transId; /* Uniquely identify transaction */
760 F1Entity errorOrigin; /* Specifies if error is originated at DU or CU */
761 F1FailCause cause; /* Failure cause */
762 /* If failure is due to Ue related message. */
763 uint32_t gnbCuUeF1apId; /* gNB-CU UE F1AP Id */
764 uint32_t gnbDuUeF1apId; /* gNB-DU UE F1AP Id */
765 F1CritDiagnostic critDiagnostic; /* Critical diagnostics */
768 typedef struct f1GnbDuCfgUpd
770 uint32_t transId; /* Uniquely identify transaction */
771 F1DuSrvdCellInfo srvdCellLstAdd[DU_MAX_CELLS]; /* Served cell list to be added */
772 F1DuSrvdCellToDel srvdCellLstMod[DU_MAX_CELLS]; /* Served cell list to be modified */
773 NrEcgi srvdCellLstDel[DU_MAX_CELLS]; /* Served cell list to be deleted */
774 F1CellStatus cellStatus[DU_MAX_CELLS]; /* Cell status */
775 F1DedSIDelUE ueLst[MAX_UEID]; /* Ue list that requires dedicated SI delivery */
777 F1TnlAssocToRmv gnbDuTnlAssocRmv[MAX_TNL_ASSOC]; /* TNL Assoc list to remove */
780 typedef struct f1GnbDuCfgUpdAck
782 uint32_t transId; /* Uniquely identify transaction */
783 F1CuActCellInfo cellLstAct[DU_MAX_CELLS]; /* List of cells to be activated */
784 F1CritDiagnostic critDiagnostic; /* Critical diagnostics */
785 NrEcgi cellLstDeact[DU_MAX_CELLS]; /* List of cells to be deactivated */
788 typedef struct f1GnbDuCfgUpdFail
790 F1FailureIE gnbDuCfgUpdFail;
793 /* Sent by the gNB-CU to transfer updated information associated to an F1-C interface instance */
794 typedef struct f1GnbCuCfgUpd
796 uint32_t transId; /* Uniquely identifies transaction */
797 F1CuActCellInfo cellLstAct[DU_MAX_CELLS]; /* List of cells to be activated */
798 NrEcgi cellLstDeact[DU_MAX_CELLS]; /* List of cells to be deactivated */
799 F1TnlAssoc assocLstAdd[MAX_TNL_ASSOC]; /* List of TNL assocs to be added */
800 F1TnlAssoc assocLstUpd[MAX_TNL_ASSOC]; /* List of TNL assocs to be updated */
801 F1TnlAssocToRmv assocLstRmv[MAX_TNL_ASSOC]; /* List of TNL assocs to be removed */
802 F1CellBarred cellToBarList[DU_MAX_CELLS]; /* List of Cells to be barred */
803 F1ProtectEUTRARsrc protectEutraRsrcList[MAXCELLINENB]; /* List of Protected EUTRA resources */
806 /* Sent by a gNB-DU to a gNB-CU to acknowledge update of information
807 * associated to an F1-C interface instance */
808 typedef struct f1GnbCuCfgUpdAck
810 uint32_t transId; /* Uniquely identify transaction */
811 F1ActCellFail actCellFailList[DU_MAX_CELLS]; /* Cells failed to be activated list */
812 F1CritDiagnostic critDiagnostic; /* Critical diagnostics */
813 F1TnlAssocAddr assocSetupList[MAX_TNL_ASSOC]; /* TNL Assoc Setup list */
814 F1TnlAssocSetupFail assocSetupFailList[MAX_TNL_ASSOC]; /* TNL Assoc Setup fail list */
815 F1DedSIDelUE dedSiDelUelist[MAX_NUM_OF_UE_ID]; /* Dedicated SI delivery needed UE list */
818 typedef struct f1GnbCuCfgUpdFail
820 F1FailureIE gnbCuCfgUpdFail;
823 /* This procedure enables coordination of radio resource allocation between a gNB-CU and
824 * a gNB-DU. Coordination request is sent by CU to DU */
825 typedef struct f1GnbDuRsrcCoordReq
827 uint32_t transId; /* Uniquely identifies transaction */
828 F1ReqType reqType; /* Request type */
829 uint8_t cellResCoordReqCont; /* Container for X2AP E-UTRA - NR cell resource coordination request */
830 F1IgnoreReq ignoreReq; /* Ignore coordination request */
831 }F1GnbDuRsrcCoordReq;
833 /* This message is sent by a gNB-DU to a gNB-CU, to express the desired resource allocation
834 * for data traffic, as a response to the GNB-DU RESOURCE COORDINATION REQUEST. */
835 typedef struct f1GnbDuRsrcCoordRsp
837 uint32_t transId; /* Uniquely identifies transaction */
838 uint8_t cellResCoordRspCont; /* Container for X2AP E-UTRA - NR cell resource coordination response */
839 }F1GnbDuRsrcCoordRsp;
841 /* This message is sent by the gNB-DU to indicate to the gNB-CU its status of overload */
842 typedef struct f1GnbDuStatusInd
844 uint32_t transId; /* Uniquely identifies transaction */
845 F1GnbDuOvrloadInfo ovrloadInfo; /* gNB-DU overloaded information */
848 /* This message is sent by either the gNB-DU or the gNB-CU to intiate the removal
849 * of the interface instance and the related resources */
850 typedef struct f1RmvReq
852 uint32_t transId; /* Uniquely identifies transaction */
855 /* This message acknowledges the initiation of removal of the interface
856 * instance and the related resources */
857 typedef struct f1RmvRsp
859 uint32_t transId; /* Uniquely identifies transaction */
860 F1CritDiagnostic critDiagnos; /* Crititcality diagnostics */
863 /* This message indicates that removing the interface instance and the related
864 * resources cannot be accepted */
865 typedef struct f1RmvFail
867 uint32_t transId; /* Uniquely identifies transaction */
868 F1FailCause cause; /* Failure cause */
869 F1CritDiagnostic critDiagnostic; /* Criticality diagnostics */
872 /* This message is sent by the gNB-CU to indicate to the gNB-DU a need to reduce
873 * the rate at which UEs access the network. */
874 typedef struct f1NwkAccessRateRed
876 uint32_t transId; /* Uniquely identifies transaction */
877 F1UacAssistInfo uacAssistInfo; /* UAC Assistance Information */
880 typedef struct f1Ipaddr
886 typedef struct sctpParams
889 U16 duPort[MAX_DU_PORT];
896 typedef struct f1EgtpParams
898 F1IpAddr localIp; /* Ip address of local node */
899 uint16_t localPort; /* Sender Port at local node */
900 F1IpAddr destIp; /* Ip address of peer node */
901 uint16_t destPort; /* Sender port at peer node */
902 uint32_t minTunnelId;
903 uint32_t maxTunnelId;
906 typedef struct schedulerCfg
908 uint8_t numTxAntPorts; /*!< Number of Tx antenna ports */
909 uint8_t ulSchdType; /*!< Indicates which UL scheduler to use, range
910 * is 0..(number of schedulers - 1) */
911 uint8_t dlSchdType; /*!< Indicates which DL scheduler to use, range
912 * is 0..(number of schedulers - 1) */
913 uint8_t numCells; /*!< Max number of cells */
914 uint8_t maxUlUePerTti; /*!< Max number of UE in UL per TTI */
915 uint8_t maxDlUePerTti; /*!< Max number of UE in DL per TTI */
918 typedef struct mibParams
921 long subCarrierSpacingCommon;
922 long ssb_SubcarrierOffset;
923 long dmrs_TypeA_Position;
924 long controlResourceSetZero;
925 long searchSpaceZero;
927 long intraFreqReselection;
930 typedef struct siSchedInfo
932 long winLen; /* SI Window Length */
933 long broadcastSta; /* Broadcast status */
934 long preiodicity; /* si periodicity */
936 long sibValTag; /* Value tag */
939 typedef struct pdcchCfgCommon
942 long ctrlRsrcSetZero; /* Control resource set zero */
943 long searchSpcZero; /* Search space zero */
944 long searchSpcId; /* Search space id */
945 long ctrlRsrcSetId; /* Control resource set id */
946 uint8_t monitorSlotPrdAndOffPresent;
947 long monitorSlotPrdAndOff; /* Monitoring slot periodicity and offset */
948 uint8_t monitorSymbolsInSlot[2]; /* Monitoring symbols within slot */
949 long numCandAggLvl1; /* Number of candiates at aggregation level 1 */
950 long numCandAggLvl2; /* Number of candiates at aggregation level 2 */
951 long numCandAggLvl4; /* Number of candiates at aggregation level 4 */
952 long numCandAggLvl8; /* Number of candiates at aggregation level 8 */
953 long numCandAggLvl16; /* Number of candiates at aggregation level 16 */
954 uint8_t searchSpcType; /* Search Space type */
955 uint8_t commSrchSpcDciFrmt; /* DCI format of common search space type */
956 long searchSpcSib1; /* Id of serch space for SIB1 */
957 long pagingSearchSpc; /* Id of search space for paging */
958 long raSearchSpc; /* Id of search space for Random Access proc */
961 typedef struct pdschCfgCommon
965 long mapType; /* Mapping Type */
966 long startSymbAndLen; /* Start Symbol and Length */
969 typedef struct bcchCfg
971 long modPrdCoeff; /* Modification period co-efficient */
974 typedef struct pcchCfg
976 long dfltPagingCycle; /* Default paging cycle */
977 long nAndPagingFrmOffPresent;
978 long nAndPagingFrmOff; /* n and Paging Frame offset */
979 long numPagingOcc; /* Number of paging occassions in paging frame */
982 typedef struct scsSpecCarrier
984 long scsOffset; /* Offset to point A considering subcarrier spacing */
985 long scs; /* subcarrier spacing */
986 long scsBw; /* Carrier bandwidth considering subcarrier spacing */
990 typedef struct dlCfgCommon
992 long freqBandInd; /* Downlink frequency band indicator */
993 long offsetToPointA; /* DL ofset to point A */
994 long locAndBw; /* Frequency location and bandwidth */
995 ScsSpecCarrier dlScsCarrier; /* SCS Specific carrier */
996 PdcchCfgCommon pdcchCfg;
997 PdschCfgCommon pdschCfg;
1002 typedef struct rachCfgCommon
1005 long prachCfgIdx; /* PRACH configuration index */
1006 long msg1Fdm; /* Num of PRACH transmission occassions */
1007 long msg1FreqStart; /* Offset of lowest msg1 transmission occassion */
1008 long zeroCorrZoneCfg; /* Zero correlation zone configuration */
1009 long preambleRcvdTgtPwr; /* Traget power level */
1010 long preambleTransMax; /* Max num of preamble transmission */
1011 long pwrRampingStep; /* Power ramping steps for PRACH */
1012 long raRspWindow; /* RA response window */
1013 long numRaPreamble; /* Total num of preamble used in random access */
1014 uint8_t ssbPerRachOccPresent;
1015 long numSsbPerRachOcc; /* Numer of SSBs per RACH Occassion */
1016 long contResTimer; /* Contention resolution timer */
1018 uint8_t rootSeqIdxPresent;
1019 long rootSeqIdx; /* PRACH root sequence index */
1020 long msg1Scs; /* Msg1 subcarrier spacing */
1021 long restrictedSetCfg; /* Restricted set configuration */
1024 typedef struct puschCfgCommon
1029 long startSymbAndLen;
1030 long msg3DeltaPreamble;
1031 long p0NominalWithGrant;
1034 typedef struct pucchCfgCommon
1042 typedef struct ulCfgCommon
1044 long pMax; /* Max UL transmission power that UE applies */
1045 long locAndBw; /* Frequency location and bandwidth */
1046 ScsSpecCarrier ulScsCarrier; /* SCS Specific carrier */
1047 RachCfgCommon rachCfg;
1048 PuschCfgCommon puschCfg;
1049 PucchCfgCommon pucchCfg;
1050 long timeAlignTimerComm;
1053 typedef struct tddUlDlCfgCommon
1055 long refScs; /* Reference subcarrier spacing */
1056 long txPrd; /* Transmission periodicity */
1063 typedef struct srvCellCfgCommSib
1067 uint8_t ssbPosInBurst;
1068 long ssbPrdServingCell;
1069 TddUlDlCfgCommon tddCfg;
1070 long ssPbchBlockPwr;
1073 typedef struct sib1Params
1078 uint8_t cellIdentity;
1079 long cellResvdForOpUse;
1080 long connEstFailCnt;
1081 long connEstFailOffValidity;
1082 SiSchedInfo siSchedInfo;
1083 SrvCellCfgCommSib srvCellCfgCommSib;
1086 typedef struct duCfgParams
1088 SctpParams sctpParams; /* SCTP Params */
1089 F1EgtpParams egtpParams; /* EGTP Params */
1092 uint8_t duName[CU_DU_NAME_LEN_MAX];
1093 SchedulerCfg schedCfg;
1094 F1DuSrvdCellInfo srvdCellLst[DU_MAX_CELLS]; /* Serving cell list *///TODO: this must be removed eventually
1095 F1RrcVersion rrcVersion; /* RRC version */
1096 MacCellCfg macCellCfg; /* MAC cell configuration */
1097 MibParams mibParams; /* MIB Params */
1098 Sib1Params sib1Params; /* SIB1 Params */
1101 /*function declarations */
1102 void FillSlotConfig();
1106 S16 bitStringToInt(BIT_STRING_t *bitString, uint16_t *val);
1108 #endif /* __DU_CONFIG_H__ */
1110 /**********************************************************************
1112 **********************************************************************/