aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/x300/x300_impl.hpp
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2019-08-13 15:28:13 -0700
committerMartin Braun <martin.braun@ettus.com>2019-08-16 13:42:02 -0700
commit3d157e09f642caa7a5d48c71468b444d0566cf8d (patch)
treeb29219cb40d3f887d97a068d4a6e45c5ce2b5a65 /host/lib/usrp/x300/x300_impl.hpp
parentbbb869ca80fa299f7888b35134218229521dd0c0 (diff)
downloaduhd-3d157e09f642caa7a5d48c71468b444d0566cf8d.tar.gz
uhd-3d157e09f642caa7a5d48c71468b444d0566cf8d.tar.bz2
uhd-3d157e09f642caa7a5d48c71468b444d0566cf8d.zip
x300: Introduce conn_manager
This is a superclass to eth_manager and pcie_manager, since they usually do the same thing. This saves storing and passing multiple pointers. Also, x300_impl now stores a shared_ptr of the conn_manager, because we'll need to pass it around in the future.
Diffstat (limited to 'host/lib/usrp/x300/x300_impl.hpp')
-rw-r--r--host/lib/usrp/x300/x300_impl.hpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/host/lib/usrp/x300/x300_impl.hpp b/host/lib/usrp/x300/x300_impl.hpp
index 933006eab..2ae586a5d 100644
--- a/host/lib/usrp/x300/x300_impl.hpp
+++ b/host/lib/usrp/x300/x300_impl.hpp
@@ -10,12 +10,11 @@
#define INCLUDED_X300_IMPL_HPP
#include "x300_clock_ctrl.hpp"
+#include "x300_conn_mgr.hpp"
#include "x300_defaults.hpp"
#include "x300_device_args.hpp"
-#include "x300_eth_mgr.hpp"
#include "x300_fw_common.h"
#include "x300_mboard_type.hpp"
-#include "x300_pcie_mgr.hpp"
#include "x300_radio_ctrl_impl.hpp"
#include "x300_regs.hpp"
#include <uhd/types/device_addr.hpp>
@@ -75,11 +74,7 @@ private:
std::vector<uhd::rfnoc::x300_radio_ctrl_impl::sptr> radios;
- // Ethernet-specific components:
- std::unique_ptr<uhd::usrp::x300::eth_manager> eth_mgr;
-
- // PCIe-specific components:
- std::unique_ptr<uhd::usrp::x300::pcie_manager> pcie_mgr;
+ uhd::usrp::x300::conn_manager::sptr conn_mgr;
};
std::vector<mboard_members_t> _mb;