Memory handling fixes
[o-du/l2.git] / src / 5gnrmac / rg_prg.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:    MAC to MAC interface (PRG)
21
22      Type:    C header file
23
24      Desc:    Constants needed for PRG(MAC to MAC) interface
25
26      File:    rg_prg.h
27
28 *********************************************************************21*/
29
30 #ifndef __RGPRG_H__ 
31 #define __RGPRG_H__
32
33 #ifdef LTE_ADV
34
35 #define RG_PRG_MAX                     1             /* MAC interface support only LC and TC*/
36 #define PRG_DIR_TX                     CRG_DIR_TX    /*!< Macreo for Transmit 
37                                                       *   direction Mask */
38 #define PRG_DIR_RX                     CRG_DIR_RX    /*!< Macro For Receive
39                                                       *   direction Mask */
40 #define PRG_DIR_TX_RX                  CRG_DIR_TX_RX /*!< Macro for Transmitt and Receive
41                                                       *   direction Mask */
42 /* Event corresponding to each primitive at this interface. PRG interface
43  *events values starts from 50 onwards and 1 to 49 reserved for SCH interface*/
44 #define EVTPRGUESCELLCFGREQ           50  /* Add Ue SCell Config Req from PMAC
45                                             to SMAC*/
46 #define EVTPRGUESCELLCFGCFM           51  /* Config confirm for Add Ue Scell on PRG
47                                             interface from SMAC to PMAC*/
48 #define EVTPRGUESCELLDELREQ           52  /* Ue SCell delete Req from PMAC to
49                                             SMAC*/
50 #define EVTPRGUESCELLLCHMODREQ        53    /*  SCell Lch recfg Req from PMAC to
51                                             SMAC*/
52
53 #define EVTPRGUESCELLLCHMODCFM        54    /* Lch ReConfig confirm for Scell on PRG
54                                             interface from SMAC to PMAC*/
55
56 #define EVTPRGUESCELLLCHDELCFM        55    /* Delete Lch  confirm for Scell on PRG
57                                             interface from SMAC to PMAC*/
58
59 #define EVTPRGUESCELLLCHDELREQ        56    /* Delete Lch request for Scell on PRG
60                                             interface from SMAC to PMAC*/
61
62 #define EVTPRGUESCELLLCHADDREQ        57    /* Lch config req for Scell on PRG 
63                                                   interface from SMAC to PMAC */
64
65 #define EVTPRGUESCELLLCHADDCFM        58    /* Lch Config confirm for Scell on PRG
66                                             interface from SMAC to PMAC*/
67 #define PRG_CFG_CFM_OK    CRG_CFG_CFM_OK  /* mapping to CRG NOK macro*/
68 #define PRG_CFG_CFM_NOK   CRG_CFG_CFM_NOK /* mapping to CRG NOK macro*/
69
70 #define RGPRG_FREE_MSG(_buf)\
71 {\
72    if (NULLP != (_buf)) \
73    { \
74       ODU_PUT_MSG_BUF((_buf)); \
75       _buf = NULLP; \
76    } \
77 }
78
79 #endif /* LTE_ADV*/
80 #endif /* __RGPRG_H__ */
81
82 /********************************************************************30**
83
84          End of file:     rg_prg.h
85 **********************************************************************/