1 /******************************************************************************
3 * Copyright (c) 2020 Intel.
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
9 * http://www.apache.org/licenses/LICENSE-2.0
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.
17 *******************************************************************************/
20 * @brief This file consists of parameters that are to be read from ebbu_pool_cfg.xml
21 * to configure the application at system initialization
22 * @file ebbu_pool_cfg.h
24 * @author Intel Corporation
27 #ifndef _EBBUPOOLCFG_H_
28 #define _EBBUPOOLCFG_H_
34 #include "ebbu_pool_api.h"
35 #include "aux_cline.h"
37 #define EBBU_POOL_FILE_NAME "config_file/ebbu_pool_cfg_basic.xml"
39 #define EBBU_POOL_CFG_ERRORCODE__SUCCESS ( 0 )
40 #define EBBU_POOL_CFG_ERRORCODE__FAIL ( 1 )
41 #define EBBU_POOL_CFG_ERRORCODE__VER_MISMATCH ( 2 )
43 #define EBBU_POOL_MAX_TEST_CELL 40
44 #define EBBU_POOL_MAX_TEST_CORE 256
45 #define EBBU_POOL_MAX_CTRL_THREAD 8
48 #define EBBU_POOL_MAX_FRAME_FORMAT 3
49 #define EBBU_POOL_TDD_PERIOD 10
50 #define EBBU_POOL_TEST_DL 1
51 #define EBBU_POOL_TEST_UL 2
53 extern uint32_t nD2USwitch[EBBU_POOL_MAX_FRAME_FORMAT][EBBU_POOL_TDD_PERIOD];
57 uint32_t frameFormat; //FDD or TDD:DDDSU, DDDDDDDSUU
58 uint32_t tti; //micro-second
60 }eBbuPoolTestCellStruc;
64 //eBbuPool general config
65 uint32_t mainThreadCoreId;
75 uint32_t ctrlThreadNum;
76 uint32_t ctrlThreadCoreId[EBBU_POOL_MAX_CTRL_THREAD];
78 eBbuPoolTestCellStruc sTestCell[EBBU_POOL_MAX_TEST_CELL];
80 uint32_t testCoreList[EBBU_POOL_MAX_TEST_CORE];
84 } eBbuPoolCfgVarsStruct, *peBbuPoolCfgVarsStruct;
86 peBbuPoolCfgVarsStruct ebbu_pool_cfg_get_ctx(void);
87 uint32_t ebbu_pool_cfg_init_from_xml(void);
88 void ebbu_pool_cfg_set_cfg_filename(int argc, char *argv[], char filename[512]);
94 #endif /* #ifndef _EBBUPOOLCFG_H_ */