1 /******************************************************************************
3 * Copyright (c) 2020 ICT/CAS.
5 * Licensed under the O-RAN Software License, Version 1.0 (the "Software 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 * https://www.o-ran.org/software
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.
17 *******************************************************************************/
20 #ifndef __GNB_COMM_TYPE_H__
21 #define __GNB_COMM_TYPE_H__
23 /** @brief max cell num */
24 #define MAX_CELL_NUM 4
26 /** @brief max cell id */
27 #define MAX_CELL_ID (MAX_CELL_NUM - 1)
29 /** @brief max ue num */
31 #define MAX_UE_NUM_PER_CELL 21
33 /** @brief max ue id */
34 #define MAX_UE_ID (MAX_UE_NUM - 1)
36 /** @brief max drb num */
37 #define MAX_DRB_NUM 33
39 /** @brief max drb id */
40 #define MAX_DRB_ID (MAX_DRB_NUM - 1)
42 /** @brief max srb num */
45 /** @brief max srb id */
46 #define MAX_SRB_ID (MAX_SRB_NUM - 1)
48 /** @brief max logical channel num */
49 #define MAX_LCH_NUM 33
51 #define MAX_PLMN_ID_NUM 8
53 /** @brief tunnel port */
54 #define TUNNEL_PORT 2152
56 #define MAX_PDU_SESSION_NUM (10)
58 #define MAC_CU_DU_TNL_ASSOC_NUM (32)
60 typedef UINT16 CmNrCellId;
63 typedef UINT16 CmNrRnti;
66 typedef UINT64 CmNrIRnti;
69 typedef UINT16 CmNrUeId;
71 /** @brief Radio Bearer ID */
72 typedef UINT8 CmNrRbId;
74 /** @brief Logical Channel Type */
75 typedef UINT8 CmNrLcType;
77 /** @brief Radio Bearer ID */
78 typedef UINT8 CmNrRbId;
80 /** @brief Mode Type TM/UM/AM */
81 typedef UINT8 CmNrRlcMode;
83 /** @brief Logical Channel ID */
84 typedef UINT8 CmNrLcId;
86 /** @brief Logical Channel Type */
87 typedef UINT8 CmNrLcType;
90 typedef UINT8 CmRlcSnLen;
92 /*见协议38401 8.5 F1 Startup and cells activation*/
101 typedef struct PlmnId
111 /* NR CELL Identity */
112 typedef struct NrCellId
117 #define TRACKING_AREA_CODE (1<<0)
119 typedef struct plmnInformation
123 PlmnId_t plmnId[MAX_PLMN_ID_NUM];
124 UINT32 trackingAreaCode; /*option*/
125 UINT8 ranac; /*option*/
127 BOOL cellReservedForOperatorUse;
144 typedef LONG GnbSrbId_t;//9.3.1.7
147 typedef LONG GnbDrbId_t;
149 /** @brief Transaction ID */
150 typedef LONG GnbTransId;
152 /** @brief gND DU ID */
153 typedef LONG GnbDuId;
155 /** @brief gND CU ID */
156 typedef LONG GnbCuId;