aboutsummaryrefslogtreecommitdiffstats
path: root/mpm/python/usrp_mpm/xports
diff options
context:
space:
mode:
Diffstat (limited to 'mpm/python/usrp_mpm/xports')
-rw-r--r--mpm/python/usrp_mpm/xports/CMakeLists.txt1
-rw-r--r--mpm/python/usrp_mpm/xports/__init__.py1
-rw-r--r--mpm/python/usrp_mpm/xports/xportmgr_liberio.py74
3 files changed, 0 insertions, 76 deletions
diff --git a/mpm/python/usrp_mpm/xports/CMakeLists.txt b/mpm/python/usrp_mpm/xports/CMakeLists.txt
index e89fcec9b..bd5ddcf36 100644
--- a/mpm/python/usrp_mpm/xports/CMakeLists.txt
+++ b/mpm/python/usrp_mpm/xports/CMakeLists.txt
@@ -8,7 +8,6 @@ set(USRP_MPM_FILES ${USRP_MPM_FILES})
set(USRP_MPM_XPORT_FILES
${CMAKE_CURRENT_SOURCE_DIR}/__init__.py
${CMAKE_CURRENT_SOURCE_DIR}/xportmgr_udp.py
- ${CMAKE_CURRENT_SOURCE_DIR}/xportmgr_liberio.py
)
list(APPEND USRP_MPM_FILES ${USRP_MPM_XPORT_FILES})
set(USRP_MPM_FILES ${USRP_MPM_FILES} PARENT_SCOPE)
diff --git a/mpm/python/usrp_mpm/xports/__init__.py b/mpm/python/usrp_mpm/xports/__init__.py
index e3e2bc89b..e96208361 100644
--- a/mpm/python/usrp_mpm/xports/__init__.py
+++ b/mpm/python/usrp_mpm/xports/__init__.py
@@ -8,4 +8,3 @@ Transport managers
"""
from .xportmgr_udp import XportMgrUDP
-from .xportmgr_liberio import XportMgrLiberio
diff --git a/mpm/python/usrp_mpm/xports/xportmgr_liberio.py b/mpm/python/usrp_mpm/xports/xportmgr_liberio.py
deleted file mode 100644
index 1b4f87fbf..000000000
--- a/mpm/python/usrp_mpm/xports/xportmgr_liberio.py
+++ /dev/null
@@ -1,74 +0,0 @@
-#
-# Copyright 2017 Ettus Research, a National Instruments Company
-#
-# SPDX-License-Identifier: GPL-3.0-or-later
-#
-"""
-Liberio Transport manager
-"""
-
-from builtins import object
-import pyudev
-
-class XportMgrLiberio(object):
- """
- Transport manager for Liberio connections
- """
- # udev label for the UIO device that controls the DMA engine
- liberio_label = 'liberio'
- # Number of available DMA channels
- max_chan = 4
-
- def __init__(self, log, max_chan=-1):
- self.log = log.getChild('Liberio')
- if max_chan < 0:
- context = pyudev.Context()
- rx_of_nodes = list(context.list_devices(subsystem="platform",
- OF_COMPATIBLE_0="ettus,usrp-rx-dma"))
- tx_of_nodes = list(context.list_devices(subsystem="platform",
- OF_COMPATIBLE_0="ettus,usrp-tx-dma"))
- self.max_chan = min(len(rx_of_nodes), len(tx_of_nodes))
- self.log.debug("Found {} channels".format(self.max_chan))
- else:
- self.max_chan = max_chan
- self.log.debug("Reporting {} channels".format(self.max_chan))
-
- def init(self, args):
- """
- Call this when the user calls 'init' on the periph manager
- """
- pass
-
- def deinit(self):
- " Clean up after a session terminates "
- pass
-
- def get_xport_info(self):
- """
- Returns a dictionary of useful information, e.g. for appending into the
- device info.
-
- Note: This can be run by callers not owning a claim, even when the
- device has been claimed by someone else.
-
- In this case, returns an empty dict.
- """
- assert hasattr(self, 'log')
- return {}
-
- def get_chdr_link_options(self):
- """
- Returns a list of dictionaries for returning by
- PeriphManagerBase.get_chdr_link_options().
-
- Note: This requires a claim, which means that init() was called, and
- deinit() was not yet called.
- """
- return [
- {
- 'tx_dev': "/dev/tx-dma{}".format(chan),
- 'rx_dev': "/dev/rx-dma{}".format(chan),
- 'dma_chan': str(chan),
- }
- for chan in range(self.max_chan)
- ]