From bf286abc409d04dc1f317a2d74f050235958dac4 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Sat, 9 Jan 2016 13:13:37 +0100 Subject: WIP: Initial check-in of a new virtual BTS --- include/osmo-bts/gsm_data.h | 6 ++++++ include/osmo-bts/phy_link.h | 11 +++++++++++ 2 files changed, 17 insertions(+) (limited to 'include') diff --git a/include/osmo-bts/gsm_data.h b/include/osmo-bts/gsm_data.h index 772a7050..26c52032 100644 --- a/include/osmo-bts/gsm_data.h +++ b/include/osmo-bts/gsm_data.h @@ -112,6 +112,12 @@ struct gsm_bts_role_bts { struct { char *sock_path; } pcu; + + struct { + uint32_t last_fn; + struct timeval tv_clock; + struct osmo_timer_list fn_timer; + } vbts; }; enum lchan_ciph_state { diff --git a/include/osmo-bts/phy_link.h b/include/osmo-bts/phy_link.h index 6b2f21ea..38e7ffa8 100644 --- a/include/osmo-bts/phy_link.h +++ b/include/osmo-bts/phy_link.h @@ -10,11 +10,13 @@ #include "btsconfig.h" struct gsm_bts_trx; +struct virt_um_inst; enum phy_link_type { PHY_LINK_T_NONE, PHY_LINK_T_SYSMOBTS, PHY_LINK_T_OSMOTRX, + PHY_LINK_T_VIRTUAL, }; enum phy_link_state { @@ -54,6 +56,12 @@ struct phy_link { int power_oml; int power_sent; } osmotrx; + struct { + char *mcast_group; + char *mcast_dev; + uint16_t mcast_port; + struct virt_um_inst *virt_um; + } virt; struct { /* MAC address of the PHY */ struct sockaddr_ll phy_addr; @@ -101,6 +109,9 @@ struct phy_instance { struct trx_l1h *hdl; bool sw_act_reported; } osmotrx; + struct { + struct l1sched_trx sched; + } virt; struct { /* logical transceiver number within one PHY */ uint32_t trx_id; -- cgit v1.2.3