mac_extern.h 2.33 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
/*! \file extern.h
* \brief mac externs
24 25
* \author  Navid Nikaein and Raymond Knopp
* \date 2010 - 2014
26 27 28 29 30
* \version 1.0
* \email navid.nikaein@eurecom.fr
* @ingroup _mac

*/
31 32 33 34

#ifndef __MAC_EXTERN_H__
#define __MAC_EXTERN_H__

35 36
//#include "PHY/defs_common.h"
#include "mac.h"
37

38
#include "RRC/LTE/rrc_defs.h"
39

40 41
extern const uint32_t BSR_TABLE[BSR_TABLE_SIZE];
//extern uint32_t EBSR_Level[63];
fnabet's avatar
fnabet committed
42 43
extern const uint32_t Extended_BSR_TABLE[BSR_TABLE_SIZE];
//extern uint32_t Extended_BSR_TABLE[63];  ----currently not used 
44

45 46 47 48 49 50
extern const uint8_t cqi2fmt0_agg[MAX_SUPPORTED_BW][CQI_VALUE_RANGE];

extern const uint8_t cqi2fmt1x_agg[MAX_SUPPORTED_BW][CQI_VALUE_RANGE];

extern const uint8_t cqi2fmt2x_agg[MAX_SUPPORTED_BW][CQI_VALUE_RANGE];

51
extern UE_RRC_INST *UE_rrc_inst;
52
extern UE_MAC_INST *UE_mac_inst;
53

54

55 56
extern eNB_ULSCH_INFO eNB_ulsch_info[NUMBER_OF_eNB_MAX][MAX_NUM_CCs][MAX_MOBILES_PER_ENB];	// eNBxUE = 8x8
extern eNB_DLSCH_INFO eNB_dlsch_info[NUMBER_OF_eNB_MAX][MAX_NUM_CCs][MAX_MOBILES_PER_ENB];	// eNBxUE = 8x8
57 58 59 60 61 62 63 64 65 66 67




#ifndef PHYSIM
#define NB_INST 1
#else
extern unsigned char NB_INST;
#endif
extern unsigned char NB_eNB_INST;
extern unsigned char NB_UE_INST;
68
extern unsigned char NB_RN_INST;
69 70 71
extern unsigned short NODE_ID[1];


72 73
extern int cqi_to_mcs[16];

74
extern uint32_t RRC_CONNECTION_FLAG;
75

76
extern uint8_t rb_table[34];
77 78 79


#endif //DEF_H