aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/include/uhdlib/rfnoc/rfnoc_common.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'host/lib/include/uhdlib/rfnoc/rfnoc_common.hpp')
-rw-r--r--host/lib/include/uhdlib/rfnoc/rfnoc_common.hpp18
1 files changed, 14 insertions, 4 deletions
diff --git a/host/lib/include/uhdlib/rfnoc/rfnoc_common.hpp b/host/lib/include/uhdlib/rfnoc/rfnoc_common.hpp
index bac510f04..c08c8d74a 100644
--- a/host/lib/include/uhdlib/rfnoc/rfnoc_common.hpp
+++ b/host/lib/include/uhdlib/rfnoc/rfnoc_common.hpp
@@ -56,16 +56,26 @@ static constexpr sep_addr_t NULL_DEVICE_ADDR{NULL_DEVICE_ID, 0};
static constexpr sep_id_t NULL_EPID = 0;
+//! Flow control buffer configuration parameters
+struct stream_buff_params_t
+{
+ uint64_t bytes;
+ uint32_t packets;
+};
+
+//! The data type of the buffer used to capture/generate data
+enum sw_buff_t { BUFF_U64 = 0, BUFF_U32 = 1, BUFF_U16 = 2, BUFF_U8 = 3 };
+
// TODO: Update these
struct chdr_ctrl_xport_t
{
chdr_ctrl_xport_t() = default;
uhd::transport::zero_copy_if::sptr recv;
uhd::transport::zero_copy_if::sptr send;
- size_t recv_buff_size = 0;
- size_t send_buff_size = 0;
- sep_id_t src_epid = 0;
- sep_id_t dst_epid = 0;
+ stream_buff_params_t recv_buff_params{0, 0};
+ stream_buff_params_t send_buff_params{0, 0};
+ sep_id_t src_epid{0};
+ sep_id_t dst_epid{0};
};
using chdr_data_xport_t = chdr_ctrl_xport_t;