From 7d69dcdcc318ccdf87038b732acbf2bf7c087b60 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Tue, 20 Aug 2019 10:00:47 -0700 Subject: Remove proto-RFNoC files This commit removes all files and parts of files that are used by proto-RFNoC only. uhd: Fix include CMakeLists.txt, add missing files --- host/lib/rfnoc/wb_iface_adapter.cpp | 44 ------------------------------------- 1 file changed, 44 deletions(-) delete mode 100644 host/lib/rfnoc/wb_iface_adapter.cpp (limited to 'host/lib/rfnoc/wb_iface_adapter.cpp') diff --git a/host/lib/rfnoc/wb_iface_adapter.cpp b/host/lib/rfnoc/wb_iface_adapter.cpp deleted file mode 100644 index d035ce881..000000000 --- a/host/lib/rfnoc/wb_iface_adapter.cpp +++ /dev/null @@ -1,44 +0,0 @@ -// -// Copyright 2016 Ettus Research LLC -// Copyright 2018 Ettus Research, a National Instruments Company -// -// SPDX-License-Identifier: GPL-3.0-or-later -// - -#include -#include - -using namespace uhd::rfnoc; - -wb_iface_adapter::wb_iface_adapter(ctrl_iface::sptr iface, - const gettickrate_type& gettickrate_functor_, - const settime_type& settime_functor_, - const gettime_type& gettime_functor_) - : _iface(iface) - , gettickrate_functor(gettickrate_functor_) - , settime_functor(settime_functor_) - , gettime_functor(gettime_functor_) -{ - // nop -} - -void wb_iface_adapter::poke32(const wb_addr_type addr, const uint32_t data) -{ - const uint64_t timestamp = gettime_functor().to_ticks(gettickrate_functor()); - _iface->send_cmd_pkt(addr / 4, data, false, timestamp); -} - -uint32_t wb_iface_adapter::peek32(const wb_addr_type addr) -{ - const uint64_t reg_value = peek64(addr); - return ((addr / 4) & 0x1) ? uint32_t(reg_value >> 32) - : uint32_t(reg_value & 0xffffffff); -} - -uint64_t wb_iface_adapter::peek64(const wb_addr_type addr) -{ - const uint64_t timestamp = gettime_functor().to_ticks(gettickrate_functor()); - // TODO: Figure out if we should have a timestamp here - _iface->send_cmd_pkt(SR_READBACK_ADDR, addr / 8, false, timestamp); - return _iface->send_cmd_pkt(SR_READBACK, SR_READBACK_REG_USER, true, timestamp); -} -- cgit v1.2.3