phy_extern.h 4.03 KB
Newer Older
1 2 3 4 5
/*
 * 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
6
 * the OAI Public License, Version 1.1  (the "License"); you may not use this file
7 8 9 10 11 12 13 14 15 16 17 18 19 20
 * 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
 */
21 22 23 24

#ifndef __PHY_EXTERN_H__
#define __PHY_EXTERN_H__

25
#include "PHY/defs_common.h"
26
#include "common/ran_context.h"
27 28 29

extern  char* namepointer_chMag ;
extern char* namepointer_log2;
30
extern  char fmageren_name2[512];
31 32 33 34

extern unsigned int RX_DMA_BUFFER[4][NB_ANTENNAS_RX];
extern unsigned int TX_DMA_BUFFER[4][NB_ANTENNAS_TX];

35 36
#include "PHY/LTE_TRANSPORT/transport_extern.h"
//#include "SIMULATION/ETH_TRANSPORT/extern.h"
37 38

extern unsigned int DAQ_MBOX;
39
extern int number_of_cards;
40

41

laurent's avatar
laurent committed
42
#ifndef OCP_FRAMEWORK
43 44
//extern PHY_VARS_eNB ***PHY_vars_eNB_g;
extern RAN_CONTEXT_t RC;
45
extern LTE_DL_FRAME_PARMS *lte_frame_parms_g;
laurent's avatar
laurent committed
46 47 48
#else
#define MAX_UE 10
#define MAX_eNB 20
49

laurent's avatar
laurent committed
50 51
extern PHY_VARS_eNB * PHY_vars_eNB_g[MAX_eNB][MAX_NUM_CCs];
#endif
52 53 54 55 56 57 58

extern short primary_synch0[144];
extern short primary_synch1[144];
extern short primary_synch2[144];
extern unsigned char primary_synch0_tab[72];
extern unsigned char primary_synch1_tab[72];
extern unsigned char primary_synch2_tab[72];
gauthier's avatar
gauthier committed
59 60 61 62 63 64
extern int16_t *primary_synch0_time; //!< index: [0..ofdm_symbol_size*2[
extern int16_t *primary_synch1_time; //!< index: [0..ofdm_symbol_size*2[
extern int16_t *primary_synch2_time; //!< index: [0..ofdm_symbol_size*2[
extern int *sync_corr_ue0; //!< index [0..10*samples_per_tti[
extern int *sync_corr_ue1; //!< index [0..10*samples_per_tti[
extern int *sync_corr_ue2; //!< index [0..10*samples_per_tti[
65 66 67 68 69 70

extern int flagMag;
//extern short **txdataF_rep_tmp;

extern char mode_string[4][20];

71

72 73 74 75 76


#ifndef OPENAIR2
extern unsigned char NB_eNB_INST;
extern unsigned char NB_UE_INST;
77
extern unsigned char NB_RN_INST;
78 79
#endif

80
extern unsigned int ULSCH_max_consecutive_errors;
81
extern int flag_LA;
82
extern double sinr_bler_map[MCS_COUNT][2][MCS_TABLE_LENGTH_MAX];
83 84
extern double sinr_bler_map_up[MCS_COUNT][2][16];
extern int table_length[MCS_COUNT];
85 86
extern double sinr_to_cqi[4][16];
extern int cqi_to_mcs[16];
87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107

//for MU-MIMO abstraction using MIESM
//this 2D arrarays contains SINR, MI and RBIR in rows 1, 2, and 3 respectively
extern double MI_map_4qam[3][162];
extern double MI_map_16qam[3][197];
extern double MI_map_64qam[3][227];

extern double beta1_dlsch_MI[6][MCS_COUNT];
extern double beta2_dlsch_MI[6][MCS_COUNT];

extern double q_qpsk[8];
extern double q_qam16[8];
extern double q_qam64[8];

extern double p_qpsk[8];
extern double p_qam16[8];
extern double p_qam64[8];

extern double beta1_dlsch[6][MCS_COUNT];
extern double beta2_dlsch[6][MCS_COUNT];

108
extern char eNB_functions[6][20];
knopp's avatar
knopp committed
109
extern char eNB_timing[2][20];
110
extern char ru_if_types[MAX_RU_IF_TYPES][20];
111

112 113 114
extern int16_t unscrambling_lut[65536*16];
extern uint8_t scrambling_lut[65536*16];

Bilel's avatar
Bilel committed
115 116 117 118 119 120 121 122 123 124 125
extern unsigned short msrsb_6_40[8][4];
extern unsigned short msrsb_41_60[8][4];
extern unsigned short msrsb_61_80[8][4];
extern unsigned short msrsb_81_110[8][4];
extern unsigned short Nb_6_40[8][4];
extern unsigned short Nb_41_60[8][4];
extern unsigned short Nb_61_80[8][4];
extern unsigned short Nb_81_110[8][4];

extern uint16_t hundred_times_log10_NPRB[100];
extern uint8_t alpha_lut[8];
126
extern uint8_t max_turbo_iterations;
127
#endif /*__PHY_EXTERN_H__ */
128