- Create task for GAB_APP and GAN_RRC - Create the NR FAPI for P5 interface - *It could be build, but still have a lot of warning need to maintain
97 lines
3.2 KiB
C
97 lines
3.2 KiB
C
/*
|
|
* Licensed to the OpenAirInterface (OAI) Software Alliance under one or more
|
|
* contributor license agreements. See the NOTICE file distributed with
|
|
* this work for additional information regarding copyright ownership.
|
|
* The OpenAirInterface Software Alliance licenses this file to You under
|
|
* the OAI Public License, Version 1.1 (the "License"); you may not use this file
|
|
* except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.openairinterface.org/?page_id=698
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*-------------------------------------------------------------------------------
|
|
* For more information about the OpenAirInterface (OAI) Software Alliance:
|
|
* contact@openairinterface.org
|
|
*/
|
|
|
|
/*! \file LAYER2/MAC/defs.h
|
|
* \brief MAC data structures, constant, and function prototype
|
|
* \author Navid Nikaein and Raymond Knopp
|
|
* \date 2011
|
|
* \version 0.5
|
|
* \email navid.nikaein@eurecom.fr
|
|
|
|
*/
|
|
/** @defgroup _oai2 openair2 Reference Implementation
|
|
* @ingroup _ref_implementation_
|
|
* @{
|
|
*/
|
|
|
|
/*@}*/
|
|
|
|
#ifndef __LAYER2_NR_MAC_DEFS_H__
|
|
#define __LAYER2_NR_MAC_DEFS_H__
|
|
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
|
|
#include "COMMON/platform_constants.h"
|
|
|
|
#include "NR_BCCH-BCH-Message.h"
|
|
#include "NR_ServingCellConfigCommon.h"
|
|
|
|
#include "nfapi_nr_interface.h"
|
|
|
|
#include "NR_PHY_INTERFACE/IF_Module.h"
|
|
|
|
#include "PHY/TOOLS/time_meas.h"
|
|
|
|
#include "PHY/defs_common.h" // for PRACH_RESOURCES_t
|
|
|
|
#include "targets/ARCH/COMMON/common_lib.h"
|
|
|
|
#include "LAYER2/MAC/mac.h" // temporary
|
|
|
|
/*! \brief top level eNB MAC structure */
|
|
typedef struct gNB_MAC_INST_s {
|
|
/// Ethernet parameters for northbound midhaul interface
|
|
eth_params_t eth_params_n;
|
|
/// Ethernet parameters for fronthaul interface
|
|
eth_params_t eth_params_s;
|
|
/// Module
|
|
module_id_t Mod_id;
|
|
/// frame counter
|
|
frame_t frame;
|
|
/// subframe counter
|
|
sub_frame_t subframe;
|
|
/// Pointer to IF module instance for PHY
|
|
NR_IF_Module_t *if_inst;
|
|
/// NFAPI Config Request Structure
|
|
nfapi_nr_config_request_t config[NFAPI_CC_MAX];
|
|
/// NFAPI DL Config Request Structure
|
|
nfapi_dl_config_request_t DL_req[NFAPI_CC_MAX];
|
|
/// NFAPI UL Config Request Structure, send to L1 4 subframes before processing takes place
|
|
nfapi_ul_config_request_t UL_req[NFAPI_CC_MAX];
|
|
/// Preallocated DL pdu list
|
|
nfapi_dl_config_request_pdu_t dl_config_pdu_list[NFAPI_CC_MAX][MAX_NUM_DL_PDU];
|
|
/// Preallocated UL pdu list
|
|
nfapi_ul_config_request_pdu_t ul_config_pdu_list[NFAPI_CC_MAX][MAX_NUM_UL_PDU];
|
|
/// NFAPI HI/DCI0 Config Request Structure
|
|
nfapi_hi_dci0_request_t HI_DCI0_req[NFAPI_CC_MAX];
|
|
/// NFAPI DL PDU structure
|
|
nfapi_tx_request_t TX_req[NFAPI_CC_MAX];
|
|
/// Common cell resources
|
|
COMMON_channels_t common_channels[NFAPI_CC_MAX];
|
|
|
|
|
|
UE_list_t UE_list;
|
|
} gNB_MAC_INST;
|
|
|
|
#endif /*__LAYER2_NR_MAC_DEFS_H__ */
|