JIRA-ID ODUHIGH-275 classification of logs of RLC part -3
[o-du/l2.git] / src / 5gnrrlc / kw_udx.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 /********************************************************************20**
20   
21         Name:    UDX  Control Interface
22     
23         Type:    C include file
24   
25         Desc:    This file Contains the Data structures for and prototypes
26                   UDX Interface
27  
28         File:    kw_udx.h
29   
30 *********************************************************************21*/
31
32 #ifndef __KW_UDX_H__
33 #define __KW_UDX_H__
34
35 #ifdef __cplusplus
36 extern "C" {
37 #endif /* __cplusplus */
38
39
40 /** @file kw_udx.h
41     @brief UDX Interface File (ckw.h)
42 */
43  
44 /* UDX Interface Hash Defines */
45
46 /* Loose Coupling define */
47 #define UDX_SEL_LC            0     /*!< Loose Coupling Option */
48 #define UDX_SEL_LWLC          1
49 #define RLC_MAX_UDX 3
50
51
52 /* CKW Interface defines */
53 #define UDX_MAX_ENT_CFG       24    /*!< Maximum number of entities to configure */
54
55 #define   ERRUDX 0
56 #define   EUDXXXX 0
57 /* ckw_h_001.main_3 added support for L2 Measurement */   
58 #ifdef LTE_L2_MEAS
59 #define UDX_MAX_QCI           10
60 #endif
61 /* CKW Interface configuration type */
62 #define UDX_CFG_ADD           1     /*!< Add RLC Entity */
63 #define UDX_CFG_MODIFY        2     /*!< Modify RLC Entity */
64 #define UDX_CFG_DELETE        3     /*!< Delete RLC entity */
65 #define UDX_CFG_REESTABLISH   4     /*!< Re-establish RLC entity */
66 #define UDX_CFG_DELETE_UE     5     /*!< Release RLC entities per UE */
67 #define UDX_CFG_DELETE_CELL   6     /*!< Release RLC entities per Cell */
68
69 /* CKW RLC entity direction configuration */
70 #define UDX_CFG_DIR_UL        1     /*!< Unlink direction */
71 #define UDX_CFG_DIR_DL        2     /*!< Downlink direction */
72 #define UDX_CFG_DIR_BOTH      3     /*!< Both Downlink and Unlink */
73
74 /* CKW Configuration confirmations */
75 #define UDX_CFG_CFM_OK        1     /*!< Configuration confirmation success */
76 #define UDX_CFG_CFM_NOK       2     /*!< Configuration confirmation failed */
77
78 /***********************************************************************
79         Defines for  CKW Interface Events
80  ***********************************************************************/
81 #define UDX_EVT_BND_REQ              0x01   /*!< Bind Request */
82 #define UDX_EVT_BND_CFM              0x02   /*!< Bind Confirm */
83 #define UDX_EVT_UBND_REQ             0x03   /*!< Unbind Request */
84 #define UDX_EVT_CFG_REQ              0x04   /*!< Config Request */
85 #define UDX_EVT_CFG_CFM              0x05   /*!< Config Confirm */
86 #define UDX_EVT_UEIDCHG_REQ          0x06   /*!< UE Id Change Request */
87 #define UDX_EVT_UEIDCHG_CFM          0x07   /*!< UE Id Change Confirm */
88 #define UDX_EVT_STA_UPD_REQ          0x08
89 #define UDX_EVT_STA_UPD_CFM          0x09
90 #define UDX_EVT_STA_PDU_REQ          0x0A
91 #define UDX_EVT_STA_PHBT_TMR_START   0x0B
92 #define UDX_EVT_DL_CLEANUP_MEM       0x10   /*!< To cleanup memory in DL inst */
93
94 /***********************************************************************
95         Defines for Measurements 
96  ***********************************************************************/
97 #define UDX_EVT_L2MEAS_REQ           0x11 
98 #define UDX_EVT_L2MEAS_SEND_REQ      0x12 
99 #define UDX_EVT_L2MEAS_STOP_REQ      0x13 
100
101 #ifdef __cplusplus
102 }
103 #endif /* __cplusplus */
104
105 #endif
106
107 \f  
108 /********************************************************************30**
109          End of file
110 **********************************************************************/