[Epic-ID: ODUHIGH-461][Task-ID: ODUHIGH-468]Unused files and functions removed/disabled
[o-du/l2.git] / src / cm / crg.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      Name:     LTE-MAC layer 
21   
22      Type:     C include file 
23   
24      Desc:     Defines required by the LTE MAC-RRC control (CRG) interface
25
26      File:     crg.h 
27
28 **********************************************************************/
29
30 #ifndef __CRG_H__
31 #define __CRG_H__
32
33 /** 
34   @file crg.h 
35   @brief Defines for CRG interface.
36   */
37
38 /* Cell/Ue/Logical channel MACROs */
39 /* crg_h_001.main_6: Removed transport channel types from CRG. */
40 #define CRG_CELL_CFG 1     /*!< Macro for Cell Configuration type*/
41 #define CRG_UE_CFG   2     /*!< Macro for UE configuration type*/
42 #define CRG_LCH_CFG  3     /*!< Macro for Logical channel Configuration type*/
43 #define CRG_SCELL_CFG 4    /*!< Macro for SCell Configuration type*/
44
45 #ifdef LTE_ADV
46 #define CRG_MAX_SCELL_PER_UE 7 /*!<Max SCELl Per UE */
47 #endif
48 /* Transport channel types related MACROs */
49 /* CRG related MAX Size MACROs */
50 #define CRG_CFG_TRANSID_SIZE 12  /*!< Macro for Transaction ID size */
51
52 /* Transmit/Recieve direction */
53 #define CRG_DIR_TX_RX CRG_DIR_TX | CRG_DIR_RX /*!< Macro for Transmit and Receive
54                                                *   direction Mask */
55 #define CRG_DIR_TX    (1<<0)                  /*!< Macro for Transmit 
56                                                *   direction Mask*/
57 #define CRG_DIR_RX    (1<<1)                  /*!< Macro for Receive
58                                                *   direction Mask*/
59
60 /* Confirm Status related MACROs */
61 #define CRG_CFG_CFM_OK  0x00 /*!< Macro for Positive confirmation */
62 #define CRG_CFG_CFM_NOK 0x0F /*!< Macro for Negative confirmation */
63
64 /* Event corresponding to each primitive at this interface */
65 #define EVTCRGBNDREQ   1     /*!< Macro for Bind Request */
66 #define EVTCRGBNDCFM   2     /*!< Macro for Bind Confirm */
67 #define EVTCRGUBNDREQ  3     /*!< Macro for Un-Bind Request */
68 #define EVTCRGCFGCFM   4     /*!< Macro for Configuration Confirm */
69
70 /* Activation time limit in terms of number of frames */
71 #define CRG_ACTV_WIN_SIZE 20 /*!< Macro for Size of activation time window
72                                 (in terms of number of frames) */
73
74 /* pack unpack error code */
75 #define ECRGXXX 0  /* reserved */
76 #define ERRCRG                  0
77
78 /* crg_h_001.main_7 - MODIFY - Added comments to these event definitions */
79 #define   ECRG001      (ERRCRG +    1)    /*        crg.c: 153 */
80 #define   ECRG002      (ERRCRG +    2)    /*        crg.c: 161 */
81 #define   ECRG003      (ERRCRG +    3)    /*        crg.c: 170 */
82 #define   ECRG004      (ERRCRG +    4)    /*        crg.c: 217 */
83 #define   ECRG005      (ERRCRG +    5)    /*        crg.c: 226 */
84 #define   ECRG006      (ERRCRG +    6)    /*        crg.c: 270 */
85 #define   ECRG007      (ERRCRG +    7)    /*        crg.c: 278 */
86 #define   ECRG008      (ERRCRG +    8)    /*        crg.c: 287 */
87 #define   ECRG009      (ERRCRG +    9)    /*        crg.c: 335 */
88 #define   ECRG010      (ERRCRG +   10)    /*        crg.c: 344 */
89 #define   ECRG011      (ERRCRG +   11)    /*        crg.c: 387 */
90 #define   ECRG012      (ERRCRG +   12)    /*        crg.c: 395 */
91 #define   ECRG013      (ERRCRG +   13)    /*        crg.c: 404 */
92 #define   ECRG014      (ERRCRG +   14)    /*        crg.c: 451 */
93 #define   ECRG015      (ERRCRG +   15)    /*        crg.c: 460 */
94 #define   ECRG016      (ERRCRG +   16)    /*        crg.c: 507 */
95 #define   ECRG017      (ERRCRG +   17)    /*        crg.c: 516 */
96 #define   ECRG018      (ERRCRG +   18)    /*        crg.c: 527 */
97 #define   ECRG019      (ERRCRG +   19)    /*        crg.c: 537 */
98 #define   ECRG020      (ERRCRG +   20)    /*        crg.c: 547 */
99 #define   ECRG021      (ERRCRG +   21)    /*        crg.c: 597 */
100 #define   ECRG022      (ERRCRG +   22)    /*        crg.c: 606 */
101 #define   ECRG023      (ERRCRG +   23)    /*        crg.c: 614 */
102 #define   ECRG024      (ERRCRG +   24)    /*        crg.c: 626 */
103 #define   ECRG025      (ERRCRG +   25)    /*        crg.c: 672 */
104 #define   ECRG026      (ERRCRG +   26)    /*        crg.c: 680 */
105 #define   ECRG027      (ERRCRG +   27)    /*        crg.c: 689 */
106 #define   ECRG028      (ERRCRG +   28)    /*        crg.c: 698 */
107 #define   ECRG029      (ERRCRG +   29)    /*        crg.c: 747 */
108 #define   ECRG030      (ERRCRG +   30)    /*        crg.c: 756 */
109 #define   ECRG031      (ERRCRG +   31)    /*        crg.c: 765 */
110
111 #endif /* __CRG_H__ */
112
113
114 /**********************************************************************
115   
116          End of file
117 **********************************************************************/