diff options
author | michael-west <michael.west@ettus.com> | 2019-01-18 18:42:36 -0800 |
---|---|---|
committer | Brent Stapleton <brent.stapleton@ettus.com> | 2019-01-21 16:53:03 -0800 |
commit | 86932606e3fe6b7ec89183e7f63252148047ad42 (patch) | |
tree | d87946fb0e297e379ea48f4eeb9b863d330f317b /host/include | |
parent | f25e807f7862b02ede02547424ee11d414279ed9 (diff) | |
download | uhd-86932606e3fe6b7ec89183e7f63252148047ad42.tar.gz uhd-86932606e3fe6b7ec89183e7f63252148047ad42.tar.bz2 uhd-86932606e3fe6b7ec89183e7f63252148047ad42.zip |
transport: muxed_zero_copy_if fixes
Changed muxed_zero_copy_if to make each stream buffer the same number
of frames as the underlying transport and changed the size of the
underlying control transport for X300 and MPMD devices to match the
size of the command FIFO in order to prevent starvation of any single
control transport. Added some constants to remove hard coded values.
Signed-off-by: michael-west <michael.west@ettus.com>
Diffstat (limited to 'host/include')
-rw-r--r-- | host/include/uhd/rfnoc/constants.hpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/host/include/uhd/rfnoc/constants.hpp b/host/include/uhd/rfnoc/constants.hpp index 53a4a01d8..3e67a3cae 100644 --- a/host/include/uhd/rfnoc/constants.hpp +++ b/host/include/uhd/rfnoc/constants.hpp @@ -83,12 +83,16 @@ static const uint32_t AXIS_CONFIG_BUS_TLAST = AXI_WRAPPER_BASE + 2; // tdata with tvalid & tlast asserted static const size_t CMD_FIFO_SIZE = 256; // Lines == multiples of 8 bytes +static const size_t MAX_CMD_PKT_SIZE = 3; // Lines == multiples of 8 bytes // Named settings registers static const uhd::dict<std::string, uint32_t> DEFAULT_NAMED_SR = boost::assign::map_list_of("AXIS_CONFIG_BUS", AXIS_CONFIG_BUS)( "AXIS_CONFIG_BUS_TLAST", AXIS_CONFIG_BUS_TLAST); +// Blocks +static const size_t MAX_NUM_BLOCKS = 16; + // Block ports static const size_t ANY_PORT = size_t(~0); static const size_t MAX_NUM_PORTS = 16; |