aboutsummaryrefslogtreecommitdiffstats
path: root/host
diff options
context:
space:
mode:
authorVirendra Kakade <virendra.kakade@ni.com>2019-11-22 15:51:43 -0600
committerMartin Braun <martin.braun@ettus.com>2019-11-26 12:21:35 -0800
commit4d319c244aae601e4efc1780fa10ea1290789557 (patch)
treeb9483d85b52097807a7ea7b2b551701eab83029e /host
parenta98da1dfd4b3c044efdf54ca2bd636d2ad0a6f46 (diff)
downloaduhd-4d319c244aae601e4efc1780fa10ea1290789557.tar.gz
uhd-4d319c244aae601e4efc1780fa10ea1290789557.tar.bz2
uhd-4d319c244aae601e4efc1780fa10ea1290789557.zip
rfnoc: fix packet swapping from U32 to U64
Signed-off-by: Virendra Kakade <virendra.kakade@ni.com>
Diffstat (limited to 'host')
-rw-r--r--host/lib/transport/nirio_link.cpp13
1 files changed, 8 insertions, 5 deletions
diff --git a/host/lib/transport/nirio_link.cpp b/host/lib/transport/nirio_link.cpp
index d35d512a3..c6183001f 100644
--- a/host/lib/transport/nirio_link.cpp
+++ b/host/lib/transport/nirio_link.cpp
@@ -87,12 +87,15 @@ nirio_link::nirio_link(uhd::niusrprio::niusrprio_session::sptr fpga_session,
PROXY->poke(PCIE_RX_DMA_REG(DMA_FRAME_SIZE_REG, _fifo_instance),
static_cast<uint32_t>(_link_params.recv_frame_size / sizeof(fifo_data_t))),
status);
- // Config 32-bit word flipping and enable DMA streams
- nirio_status_chain(PROXY->poke(PCIE_TX_DMA_REG(DMA_CTRL_STATUS_REG, _fifo_instance),
- DMA_CTRL_SW_BUF_U32 | DMA_CTRL_ENABLED),
+
+ // Config 64-bit word flipping and enable DMA streams
+ nirio_status_chain(
+ PROXY->poke(PCIE_TX_DMA_REG(DMA_CTRL_STATUS_REG, _fifo_instance),
+ DMA_CTRL_SW_BUF_U64 | DMA_CTRL_ENABLED),
status);
- nirio_status_chain(PROXY->poke(PCIE_RX_DMA_REG(DMA_CTRL_STATUS_REG, _fifo_instance),
- DMA_CTRL_SW_BUF_U32 | DMA_CTRL_ENABLED),
+ nirio_status_chain(
+ PROXY->poke(PCIE_RX_DMA_REG(DMA_CTRL_STATUS_REG, _fifo_instance),
+ DMA_CTRL_SW_BUF_U64 | DMA_CTRL_ENABLED),
status);
// Create FIFOs