Note: this new feature is not compiled (and therefore not used) if libpgm-dev is not installed git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4011 818b1a75-f10b-46b9-bf7c-635c3b92a50f
54 lines
2.1 KiB
C
54 lines
2.1 KiB
C
/*! \file proto.h
|
|
* \brief
|
|
* \author Navid Nikaein
|
|
* \date 2011
|
|
* \version 1.0
|
|
* \company Eurecom
|
|
* \email: navid.nikaein@eurecom.fr
|
|
*/
|
|
|
|
#include "SIMULATION/ETH_TRANSPORT/defs.h"
|
|
|
|
#ifndef EMU_PROTO_H_
|
|
#define EMU_PROTO_H_
|
|
|
|
void init_bypass (void);
|
|
void bypass_init ( unsigned int (*tx_handlerP) (unsigned char,char*, unsigned int*, unsigned int*),unsigned int (*rx_handlerP) (unsigned char,char*,unsigned int));
|
|
int bypass_rx_data(unsigned int frame, unsigned int last_slot,
|
|
unsigned int next_slot, uint8_t is_master);
|
|
void bypass_signal_mac_phy(unsigned int frame, unsigned int last_slot,
|
|
unsigned int next_slot, uint8_t is_master);
|
|
#ifndef USER_MODE
|
|
int multicast_link_write_sock (int groupP, char *dataP, unsigned int sizeP);
|
|
int bypass_tx_handler(unsigned int fifo, int rw);
|
|
int bypass_rx_handler(unsigned int fifo, int rw);
|
|
#else
|
|
void bypass_rx_handler(unsigned int Num_bytes,char *Rx_buffer);
|
|
#endif
|
|
|
|
void bypass_tx_data (emu_transport_info_t Type, unsigned int frame, unsigned int next_slot);
|
|
|
|
void emulation_tx_rx(void);
|
|
|
|
unsigned int emul_tx_handler(unsigned char Mode,char *Tx_buffer,unsigned int* Nbytes,unsigned int *Nb_flows);
|
|
unsigned int emul_rx_handler(unsigned char Mode,char *rx_buffer, unsigned int Nbytes);
|
|
|
|
unsigned int emul_rx_data(void);
|
|
|
|
void emu_transport_info(unsigned int last_slot, unsigned int next_slot);
|
|
void fill_phy_enb_vars(unsigned int enb_id, unsigned int next_slot);
|
|
void fill_phy_ue_vars(unsigned int ue_id, unsigned int last_slot);
|
|
void emu_transport_sync(void);
|
|
void emu_transport(unsigned int frame, unsigned int last_slot,unsigned int next_slot, lte_subframe_t direction, unsigned char frame_type, int ethernet_flag );
|
|
void emu_transport_DL(unsigned int frame, unsigned int last_slot,unsigned int next_slot);
|
|
void emu_transport_UL(unsigned int frame, unsigned int last_slot,unsigned int next_slot);
|
|
void emu_transport_release(void);
|
|
|
|
int multicast_link_read_data_from_sock(uint8_t eNB_flag);
|
|
|
|
void clear_eNB_transport_info(u8);
|
|
void clear_UE_transport_info(u8);
|
|
int netlink_init(void);
|
|
|
|
#endif /* EMU_PROTO_H_ */
|