9368b2acced71d754780a334d71c78622051857b
[o-du/l2.git] / src / 5gnrmac / rg_cl.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 /* Contains definitions for MAC CL modules */
20 #ifndef __RG_CL_H__
21 #define __RG_CL_H__
22
23 #define MAX_NUM_CELL_SUPP 1
24
25 typedef enum
26 {
27    PHY_STATE_IDLE,
28    PHY_STATE_CONFIGURED,
29    PHY_STATE_RUNNING,
30    PHY_STATE_INVALID
31 }PhyState;
32
33 typedef struct clCb
34 {
35    Region          region;
36    Pool            pool;
37    Bool            clCfgDone;   /* CL configuration done */
38    CmHashListCp    cellCbLst;   /* List of Cells configured */
39    U8              numOfCells;  /* Number of Cells configured */
40    PhyState        phyState;    /* State of PHY */
41 }ClCb;
42
43 typedef struct cellCb
44 {
45    U16         cellId;
46    ClCellCfg   cellCfg;
47    PhyState    phyState;
48 }ClCellCb;
49
50 EXTERN ClCb clGlobalCp; 
51 EXTERN ClCellCb * rgClUtlGetCellCb ARGS((U16 cellId));
52
53 #endif
54
55 /**********************************************************************
56          End of file
57 **********************************************************************/