flexran_agent_extern.h 2.6 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

/*! \file ENB_APP/extern.h
23 24 25
 * \brief FlexRAN agent - Extern VSF xfaces
 * \author Xenofon Foukas and shahab SHARIAT BAGHERI
 * \date 2017
26 27 28 29
 * \version 0.1
 * \mail x.foukas@sms.ed.ac.uk
 */

30 31
#ifndef __FLEXRAN_AGENT_EXTERN_H__
#define __FLEXRAN_AGENT_EXTERN_H__
32

33
#include "flexran_agent_defs.h"
Robert Schmidt's avatar
Robert Schmidt committed
34
#include "flexran_agent_phy_defs.h"
35
#include "flexran_agent_mac_defs.h"
36
#include "flexran_agent_rrc_defs.h"
37
#include "flexran_agent_pdcp_defs.h"
38
#include "flexran_agent_s1ap_defs.h"
39

Robert Schmidt's avatar
Robert Schmidt committed
40 41 42
/* Control module interface for the communication of the PHY control module with the agent */
AGENT_PHY_xface *flexran_agent_get_phy_xface(mid_t mod_id);

43
/* Control module interface for the communication of the MAC Control Module with the agent */
44

laurent's avatar
laurent committed
45 46 47 48 49 50
extern AGENT_MAC_xface *agent_mac_xface[NUM_MAX_ENB];
#define flexran_agent_get_mac_xface(mod_id) (agent_mac_xface[mod_id])
/* Control module interface for the communication of the RRC Control Module with the agent */
// AGENT_RRC_xface *flexran_agent_get_rrc_xface(mid_t mod_id);
extern AGENT_RRC_xface *agent_rrc_xface[NUM_MAX_ENB];
#define flexran_agent_get_rrc_xface(mod_id) (agent_rrc_xface[mod_id])
51

52
/* Control module interface for the communication of the RRC Control Module with the agent */
53
AGENT_PDCP_xface *flexran_agent_get_pdcp_xface(mid_t mod_id);
54

55 56 57
/* Control module interface for the communication of the S1AP Control Module with the agent */
AGENT_S1AP_xface *flexran_agent_get_s1ap_xface(mid_t mod_id);

58
/* Requried to know which UEs had a harq updated over some subframe */
59 60
extern int harq_pid_updated[NUM_MAX_UE][8];
extern int harq_pid_round[NUM_MAX_UE][8];
61

62
#endif