code-cleanup-20210716
This commit is contained in:
@@ -51,7 +51,7 @@
|
||||
#include "LTE_MBSFN-SubframeConfigList.h"
|
||||
#include "LTE_MBSFN-SubframeConfig.h"
|
||||
#include "LTE_PMCH-InfoList-r9.h"
|
||||
|
||||
#include <openair2/LAYER2/MAC/mac_proto.h>
|
||||
|
||||
extern RAN_CONTEXT_t RC;
|
||||
extern int l2_init_eNB(void);
|
||||
|
||||
@@ -57,6 +57,7 @@
|
||||
#include "LTE_PMCH-InfoList-r9.h"
|
||||
|
||||
|
||||
#include <openair2/LAYER2/MAC/mac_proto.h>
|
||||
extern void mac_init_cell_params(int Mod_idP,int CC_idP);
|
||||
extern void phy_reset_ue(module_id_t Mod_id,uint8_t CC_id,uint8_t eNB_index);
|
||||
|
||||
|
||||
@@ -556,10 +556,7 @@ copy_ulreq(module_id_t module_idP, frame_t frameP, sub_frame_t subframeP) {
|
||||
}
|
||||
}
|
||||
|
||||
extern int16_t find_dlsch(uint16_t rnti, PHY_VARS_eNB *eNB,find_type_t type);
|
||||
extern int16_t find_ulsch(uint16_t rnti, PHY_VARS_eNB *eNB,find_type_t type);
|
||||
extern void clean_eNb_ulsch(LTE_eNB_ULSCH_t *ulsch);
|
||||
extern void clean_eNb_dlsch(LTE_eNB_DLSCH_t *dlsch);
|
||||
#include <openair1/PHY/LTE_TRANSPORT/transport_proto.h>
|
||||
|
||||
void
|
||||
eNB_dlsch_ulsch_scheduler(module_id_t module_idP,
|
||||
|
||||
@@ -58,7 +58,6 @@ extern unsigned char NB_eNB_INST;
|
||||
extern uint16_t NB_UE_INST;
|
||||
extern uint16_t NB_THREAD_INST;
|
||||
extern unsigned char NB_RN_INST;
|
||||
extern unsigned short NODE_ID[1];
|
||||
|
||||
extern const int cqi_to_mcs[16];
|
||||
|
||||
|
||||
@@ -44,8 +44,7 @@
|
||||
|
||||
|
||||
#include "common/ran_context.h"
|
||||
extern void openair_rrc_top_init_ue( int eMBMS_active, char *uecap_xer, uint8_t cba_group_active, uint8_t HO_active);
|
||||
|
||||
#include <openair2/RRC/LTE/rrc_proto.h>
|
||||
void dl_phy_sync_success(module_id_t module_idP, frame_t frameP, unsigned char eNB_index, uint8_t first_sync) { //init as MR
|
||||
LOG_D(MAC, "[UE %d] Frame %d: PHY Sync to eNB_index %d successful \n",
|
||||
module_idP, frameP, eNB_index);
|
||||
|
||||
@@ -41,7 +41,6 @@
|
||||
#define DEBUG_RAR
|
||||
|
||||
extern unsigned int localRIV2alloc_LUT25[512];
|
||||
extern unsigned int distRIV2alloc_LUT25[512];
|
||||
extern unsigned short RIV2nb_rb_LUT25[512];
|
||||
extern unsigned short RIV2first_rb_LUT25[512];
|
||||
extern RAN_CONTEXT_t RC;
|
||||
|
||||
@@ -56,7 +56,6 @@ extern unsigned char NB_UE_INST;*/
|
||||
extern unsigned char NB_INST;
|
||||
extern unsigned char NB_eNB_INST;
|
||||
extern unsigned char NB_RN_INST;
|
||||
extern unsigned short NODE_ID[1];
|
||||
|
||||
/* Scheduler */
|
||||
extern RAN_CONTEXT_t RC;
|
||||
|
||||
@@ -32,7 +32,6 @@
|
||||
#include "rtos_header.h"
|
||||
#include "platform.h"
|
||||
#include "protocol_vars_extern.h"
|
||||
#include "print.h"
|
||||
//-----------------------------------------------------------------------------
|
||||
#include "rlc.h"
|
||||
#include "pdcp.h"
|
||||
|
||||
@@ -503,8 +503,8 @@ int openair2_stats_read(char *buffer, char **my_buffer, off_t off, int length) {
|
||||
} else if(Mac_rlc_xface->Is_cluster_head[k] ==1) {
|
||||
Mod_id=k;
|
||||
len+=sprintf(&buffer[len],
|
||||
"-------------------------------------------------------------------CH %d: TTI: %d------------------------------------------------------------------\n",
|
||||
NODE_ID[Mod_id],Mac_rlc_xface->frame);
|
||||
"------------------------------------------------------------------- TTI: %d------------------------------------------------------------------\n",
|
||||
Mac_rlc_xface->frame);
|
||||
|
||||
for(i=1; i<=NB_CNX_CH; i++) {
|
||||
if (CH_mac_inst[Mod_id].Dcch_lchan[i].Active==1) {
|
||||
|
||||
@@ -54,7 +54,6 @@
|
||||
# define X2AP_ENB_REGISTER_RETRY_DELAY 10
|
||||
|
||||
#include "openair1/PHY/INIT/phy_init.h"
|
||||
extern unsigned char NB_MCE_INST;
|
||||
|
||||
extern RAN_CONTEXT_t RC;
|
||||
|
||||
|
||||
@@ -110,7 +110,6 @@ extern RAN_CONTEXT_t RC;
|
||||
extern eNB_MAC_INST *eNB_mac_inst;
|
||||
extern UE_MAC_INST *UE_mac_inst;
|
||||
|
||||
extern uint16_t two_tier_hexagonal_cellIds[7];
|
||||
|
||||
mui_t rrc_eNB_mui = 0;
|
||||
|
||||
@@ -6120,7 +6119,6 @@ rrc_eNB_generate_HO_RRCConnectionReconfiguration(const protocol_ctxt_t *const ct
|
||||
mobilityInfo = CALLOC(1, sizeof(*mobilityInfo));
|
||||
memset((void *)mobilityInfo, 0, sizeof(*mobilityInfo));
|
||||
mobilityInfo->targetPhysCellId = RC.rrc[ctxt_pP->module_id]->carrier[0].physCellId;
|
||||
//(PhysCellId_t) two_tier_hexagonal_cellIds[ue_context_pP->ue_context.handover_info->modid_t];
|
||||
LOG_D(RRC, "[eNB %d] Frame %d: handover preparation: targetPhysCellId: %ld mod_id: %d ue: %x \n",
|
||||
ctxt_pP->module_id,
|
||||
ctxt_pP->frame,
|
||||
|
||||
@@ -47,7 +47,6 @@ extern LTE_LogicalChannelConfig_t SRB2_logicalChannelConfig_defaultValue;
|
||||
extern unsigned char NB_INST;
|
||||
extern unsigned char NB_eNB_INST;
|
||||
extern uint16_t NB_UE_INST;
|
||||
extern unsigned short NODE_ID[1];
|
||||
extern void* bigphys_malloc(int);
|
||||
|
||||
|
||||
|
||||
@@ -47,7 +47,6 @@ extern NR_LogicalChannelConfig_t NR_SRB3_logicalChannelConfig_defaultValue;
|
||||
extern unsigned char NB_INST;
|
||||
extern unsigned char NB_eNB_INST;
|
||||
extern uint16_t NB_UE_INST;
|
||||
extern unsigned short NODE_ID[1];
|
||||
extern void* bigphys_malloc(int);
|
||||
|
||||
|
||||
|
||||
@@ -1,117 +0,0 @@
|
||||
/*
|
||||
* 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
|
||||
*/
|
||||
|
||||
/*
|
||||
* fifo_printf.c
|
||||
* -------------------
|
||||
* AUTHOR : Lionel GAUTHIER
|
||||
* COMPANY : EURECOM
|
||||
* EMAIL : Lionel.Gauthier@eurecom.fr
|
||||
*
|
||||
*/
|
||||
#include "rtos_header.h"
|
||||
#include "platform.h"
|
||||
#include "protocol_vars_extern.h"
|
||||
|
||||
#include <asm/page.h>
|
||||
#include <asm/system.h>
|
||||
#include <stdarg.h>
|
||||
|
||||
|
||||
#include "fifo_printf.h"
|
||||
|
||||
#ifndef FIFO_PRINTF
|
||||
//-----------------------------------------------------------------------------
|
||||
int fifo_printf_null (const char *fmt, ...)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
#else
|
||||
static uint8_t fifo_printed_l1[FIFO_PRINTF_MAX_STRING_SIZE];
|
||||
static uint8_t fifo_printed_l2[FIFO_PRINTF_MAX_STRING_SIZE];
|
||||
//-----------------------------------------------------------------------------
|
||||
void
|
||||
fifo_printf_init (void)
|
||||
{
|
||||
//-----------------------------------------------------------------------------
|
||||
printk ("[TRACE] INIT\n");
|
||||
rtf_create (FIFO_PRINTF_L1_NO, FIFO_PRINTF_SIZE);
|
||||
rtf_create (FIFO_PRINTF_L2_NO, FIFO_PRINTF_SIZE);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
void
|
||||
fifo_printf_clean_up (void)
|
||||
{
|
||||
//-----------------------------------------------------------------------------
|
||||
rtf_destroy (FIFO_PRINTF_L1_NO);
|
||||
rtf_destroy (FIFO_PRINTF_L2_NO);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
int
|
||||
fifo_printf (const char *fmt, ...)
|
||||
{
|
||||
//-----------------------------------------------------------------------------
|
||||
int i;
|
||||
va_list args;
|
||||
|
||||
va_start (args, fmt);
|
||||
|
||||
if (pthread_self () == &task_l1l) {
|
||||
i = vsprintf (fifo_printed_l1, fmt, args);
|
||||
va_end (args);
|
||||
|
||||
/* perhaps we should discard old data instead */
|
||||
if (i > FIFO_PRINTF_MAX_STRING_SIZE) {
|
||||
rt_printk ("[WCDMA] FIFO_PRINTF WROTE OUTSIDE ITS MEMORY BOUNDARY : ERRORS WILL OCCUR\n");
|
||||
}
|
||||
|
||||
if (i <= 0) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
rtf_put (FIFO_PRINTF_L1_NO, fifo_printed_l1, i);
|
||||
|
||||
return i;
|
||||
}
|
||||
|
||||
if (pthread_self () == &task_l2) {
|
||||
i = vsprintf (fifo_printed_l2, fmt, args);
|
||||
va_end (args);
|
||||
|
||||
/* perhaps we should discard old data instead */
|
||||
if (i > FIFO_PRINTF_MAX_STRING_SIZE) {
|
||||
rt_printk ("[WCDMA] FIFO_PRINTF WROTE OUTSIDE ITS MEMORY BOUNDARY : ERRORS WILL OCCUR\n");
|
||||
}
|
||||
|
||||
if (i <= 0) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
rtf_put (FIFO_PRINTF_L2_NO, fifo_printed_l2, i);
|
||||
|
||||
return i;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
@@ -1,37 +0,0 @@
|
||||
/*
|
||||
* 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
|
||||
*/
|
||||
|
||||
/***************************************************************************
|
||||
fifo_printf.h - description
|
||||
-------------------
|
||||
AUTHOR : Lionel GAUTHIER
|
||||
COMPANY : EURECOM
|
||||
EMAIL : Lionel.Gauthier@eurecom.fr
|
||||
|
||||
|
||||
***************************************************************************/
|
||||
#ifndef __FIFO_PRINTF_H__
|
||||
# define __FIFO_PRINTF_H__
|
||||
# define FIFO_PRINTF_MAX_STRING_SIZE 500
|
||||
# define FIFO_PRINTF_L1_NO 63
|
||||
# define FIFO_PRINTF_L2_NO 62
|
||||
# define FIFO_PRINTF_SIZE 65536
|
||||
#endif
|
||||
@@ -1,41 +0,0 @@
|
||||
/*
|
||||
* 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
|
||||
*/
|
||||
|
||||
/***************************************************************************
|
||||
fifo_printf_proto_extern.h - description
|
||||
-------------------
|
||||
AUTHOR : Lionel GAUTHIER
|
||||
COMPANY : EURECOM
|
||||
EMAIL : Lionel.Gauthier@eurecom.fr
|
||||
|
||||
|
||||
|
||||
***************************************************************************/
|
||||
#ifndef __FIFO_PRINTF_PROTO_EXTERN_H__
|
||||
# define __FIFO_PRINTF_PROTO_EXTERN_H__
|
||||
#ifdef FIFO_PRINTF
|
||||
extern void fifo_printf_init (void);
|
||||
extern void fifo_printf_clean_up (void);
|
||||
extern int fifo_printf (const char *fmt, ...);
|
||||
#else
|
||||
extern int fifo_printf_null (const char *fmt, ...);
|
||||
#endif
|
||||
#endif
|
||||
@@ -1,32 +0,0 @@
|
||||
/*
|
||||
* 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
|
||||
*/
|
||||
|
||||
/***************************************************************************
|
||||
print.h - description
|
||||
-------------------
|
||||
AUTHOR : Lionel GAUTHIER
|
||||
COMPANY : EURECOM
|
||||
EMAIL : Lionel.Gauthier@eurecom.fr
|
||||
***************************************************************************/
|
||||
#ifndef __PRINT_H__
|
||||
# define __PRINT_H__
|
||||
# define msg printf
|
||||
#endif
|
||||
Reference in New Issue
Block a user