Added code for MAC-PHY interface, DU_APP, F1AP, SCTP and CU stub
[o-du/l2.git] / src / cu_app / cu_common.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 /* This file contains common defines for CU Config Params */
20
21 #ifndef __CU_COMMON_H__
22 #define __CU_COMMON_H__
23
24 #include "envdep.h"
25
26 #define MAX_IPV4_LEN 16
27 #define MAX_IPV6_LEN 40
28 #define CU_DU_NAME_LEN_MAX 150      /* Max length of CU/DU name string */
29
30 typedef struct ipAddr
31 {
32  Bool ipV4Pres;
33  char ipV4Addr[MAX_IPV4_LEN];
34  Bool ipV6Pres;
35  char ipV6Addr[MAX_IPV6_LEN];
36 }SctpIpAddr;
37
38 typedef struct sctpParams
39 {
40    SctpIpAddr  duIpAddr;
41    U16         duPort;
42    SctpIpAddr  cuIpAddr;
43    U16         cuPort;
44 }SctpParams;
45
46 typedef struct cuCfgParams
47 {
48    U32              cuId;
49    char             cuName[CU_DU_NAME_LEN_MAX];
50    SctpParams       sctpParams;
51 }CuCfgParams;
52
53 extern CuCfgParams cuCfgParams;
54
55 #endif
56 /**********************************************************************
57          End of file
58 **********************************************************************/