[ Jira id - ODUHIGH-593 ] Pack and unpack function nomenclature correction
[o-du/l2.git] / src / cm / kwu.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:    KWU user interface
22     
23         Type:    C include file
24   
25         Desc:    This file Contains the Data structures and prototypes
26                   for KWU Interface
27  
28         File:    kwu.h
29   
30 *********************************************************************21*/
31
32 #ifndef __KWU_H__
33 #define __KWU_H__
34
35 #ifdef __cplusplus
36 extern "C" {
37 #endif  /*for extern "C"*/
38
39 /** @file kwu.h
40     @brief KWU Interface File (kwu.h)
41 */
42  
43 /* KWU Interface Hash Defines */
44
45 /* CKW Interface Hash Defines */
46
47 /***********************************************************************
48         Defines for  KWU Interface Events
49  ***********************************************************************/
50 #define KWU_EVT_BND_REQ       0x50          /*!< Bind Request */
51 #define KWU_EVT_BND_CFM       0x51          /*!< Bind Confirm */
52 #define KWU_EVT_UBND_REQ      0x52          /*!< Unbind Request */
53 #ifdef L2_L3_SPLIT
54 #define KWU_EVT_CPLANE_DAT_REQ 0x53         /*!< C-Plane Data Request */
55 #define KWU_EVT_UPLANE_DAT_REQ 0x5b         /*!< U-Plane Data Request */
56 #endif
57 #define KWU_EVT_DAT_REQ       0x53          /*!< Data Request */
58 #define KWU_EVT_TTI_IND        0x5c         /*!<TTI Indication from CL */
59 #define KWU_EVT_DAT_IND       0x54          /*!< Data Indication */
60 #define KWU_EVT_DAT_CFM       0x55          /*!< Data Confirm */
61 #define KWU_EVT_DISC_SDU_REQ  0x56          /*!< Discard SDU Request */
62 #define KWU_EVT_STA_IND       0x57          /*!< Status Indication */
63 #define KWU_EVT_REEST_CMP_IND 0x58          /*!< Re-est Complete Indication */
64 /* kwu_h_001.main_2, Added support for L2 Measurement */
65 /* kwu_h_001.main_3, Correction in the text */
66 #define KWU_EVT_DISC_SDU_CFM  0x59          /*!< Discard SDU Confirm */
67 #define KWU_EVT_DAT_ACK_IND   0x5a          /*!< Status Indication */
68 #define KWU_EVT_FLOW_CNTRL_IND 0x5b         /*!< Flow control indication 
69                                                  for UM RB */
70 #define KWU_MAX_STA_IND_SDU   100          /*!< Maximum number of SDUs
71                                             in status indication */
72 #define KWU_MAX_DAT_CFM       1024         /*!< Max number of DatCfms to be
73                                                sent to PDCP in one go 
74                                                value should be the same as
75                                                defined in PDCP*/
76
77 /* Error Codes */
78 #define   ERRKWU 0
79 #define   EKWUXXX 0
80 #define   EKWU001      (ERRKWU +    1)    /*        kwu.c: 164 */
81 #define   EKWU002      (ERRKWU +    2)    /*        kwu.c: 169 */
82 #define   EKWU003      (ERRKWU +    3)    /*        kwu.c: 170 */
83 #define   EKWU004      (ERRKWU +    4)    /*        kwu.c: 215 */
84 #define   EKWU005      (ERRKWU +    5)    /*        kwu.c: 221 */
85 #define   EKWU006      (ERRKWU +    6)    /*        kwu.c: 222 */
86 #define   EKWU007      (ERRKWU +    7)    /*        kwu.c: 267 */
87 #define   EKWU008      (ERRKWU +    8)    /*        kwu.c: 272 */
88 #define   EKWU009      (ERRKWU +    9)    /*        kwu.c: 273 */
89 #define   EKWU010      (ERRKWU +   10)    /*        kwu.c: 411 */
90 #define   EKWU011      (ERRKWU +   11)    /*        kwu.c: 427 */
91 #define   EKWU012      (ERRKWU +   12)    /*        kwu.c: 512 */
92 #define   EKWU013      (ERRKWU +   13)    /*        kwu.c: 528 */
93 #define   EKWU014      (ERRKWU +   14)    /*        kwu.c: 616 */
94 #define   EKWU015      (ERRKWU +   15)    /*        kwu.c: 632 */
95 #define   EKWU016      (ERRKWU +   16)    /*        kwu.c: 689 */
96 #define   EKWU017      (ERRKWU +   17)    /*        kwu.c: 705 */
97 #define   EKWU018      (ERRKWU +   18)    /*        kwu.c: 799 */
98 #define   EKWU019      (ERRKWU +   19)    /*        kwu.c: 815 */
99 #define   EKWU020      (ERRKWU +   20)    /*        kwu.c: 855 */
100 #define   EKWU021      (ERRKWU +   21)    /*        kwu.c: 856 */
101 #define   EKWU022      (ERRKWU +   22)    /*        kwu.c: 893 */
102 #define   EKWU023      (ERRKWU +   23)    /*        kwu.c: 894 */
103 #define   EKWU024      (ERRKWU +   24)    /*        kwu.c: 931 */
104 #define   EKWU025      (ERRKWU +   25)    /*        kwu.c: 932 */
105 #define   EKWU026      (ERRKWU +   26)    /*        kwu.c:1065 */
106 #define   EKWU027      (ERRKWU +   27)    /*        kwu.c:1086 */
107 #define   EKWU028      (ERRKWU +   28)    /*        kwu.c:1172 */
108 #define   EKWU029      (ERRKWU +   29)    /*        kwu.c:1193 */
109 #define   EKWU030      (ERRKWU +   30)    /*        kwu.c:1276 */
110 #define   EKWU031      (ERRKWU +   31)    /*        kwu.c:1297 */
111 #define   EKWU032      (ERRKWU +   32)    /*        kwu.c:1350 */
112 #define   EKWU033      (ERRKWU +   33)    /*        kwu.c:1371 */
113 #define   EKWU034      (ERRKWU +   34)    /*        kwu.c:1463 */
114 #define   EKWU035      (ERRKWU +   35)    /*        kwu.c:1484 */
115
116
117 /*************************************************************************
118  *                      pack/unpack defines
119  ************************************************************************/
120 #define cmPkKwuDiscSduInfo       cmPkKwuDatCfmInfo
121 #define cmUnpkKwuDiscSduInfo     cmUnpkKwuDatCfmInfo
122 #ifdef __cplusplus
123 }
124 #endif /* __cplusplus */
125 #endif /* __KWU_H__ */
126
127 \f  
128 /********************************************************************30**
129          End of file
130 **********************************************************************/