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 *******************************************************************************/
26 #include <netinet/in.h>
27 #include "gnbCommon.h"
29 #define MAX_CU_NAME_LEN 256
30 #define MAX_CUCP_NAME_LEN 256
31 #define MAX_CUUP_NAME_LEN 256
33 #define MAX_OM_MSG_BUF_LEN 64
35 /****************************************oam active message code****************************************/
36 #define OAM_CU_ACTIVE_BASE 0x7000
37 #define OAM_CUUP_NET_ELEMENT_ACTIVE_REQ OAM_CU_ACTIVE_BASE + 1
38 #define OAM_CUCP_NET_ELEMENT_ACTIVE_REQ OAM_CU_ACTIVE_BASE + 2
39 #define CUCP_OAM_CELL_ACTIVE_RSP OAM_CU_ACTIVE_BASE + 3
40 #define CUUP_OAM_CELL_ACTIVE_RSP OAM_CU_ACTIVE_BASE + 3
64 typedef enum CuCpVosTask
77 typedef enum CuUpVosTask
107 CUCP_END_USER_TASK = 100
112 CUUP_BEGIN_USER_TASK=200,
130 CUUP_PDCPU_USER_TASK,
135 CUUP_END_USER_TASK=400,
141 UINT8 cuName[MAX_CU_NAME_LEN]; /* CU Name */
143 IpAddress_t cuIpAddr;
144 IpAddress_t omIpAddr;
146 IpAddress_t amfIpAddr;
147 IpAddress_t umfIpAddr;
149 IpAddress_t cucpF1SctpIpAddr;
150 IpAddress_t cuupF1GtpuIpAddr;
152 IpAddress_t duF1SctpIpAddr;
153 IpAddress_t duF1GtpuIpAddr;
155 IpAddress_t cucpE1SctpIpAddr;
156 IpAddress_t cuupE1SctpIpAddr;
158 IpAddress_t cucpNgSctpIpAddr;
159 IpAddress_t cuupNgGtpuIpAddr;
161 IpAddress_t cuXnSctpIpAddr;
166 UINT8 NodeBName[MAX_CU_NAME_LEN];
168 UserTaskInfo_t userTaskInfo[MAX_TASK_NUM];
182 NrCellId_t CellId[MAX_CELL_NUM];
185 typedef struct oamCuUpNetElementActReq
188 CellIdList_t cellIdList;
189 } OamCuUpNetElementActReq_t;
191 typedef struct oamCuUpCellActRsp
193 UINT8 successCellNum;
195 NrCellId_t failCellId[MAX_CELL_NUM];
196 } OamCuUpCellActRsp_t;
198 typedef struct oamCuCpNetElementActReq
200 UINT8 cuCpNetElementAct[MAX_CELL_NUM];
201 } OamCuCpNetElementActReq_t;
203 typedef struct oamCuCpCellActRsp
205 UINT8 cuCpCellActFlag[MAX_CELL_NUM];
206 } OamCuCpCellActRsp_t;
225 #endif /* _CU_COMMON_H_*/