diff options
author | Ashish Chaudhari <ashish@ettus.com> | 2019-05-31 14:55:59 -0700 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2019-11-26 11:49:21 -0800 |
commit | de9cbe9c7c0a6e9296c561423d3b568bc1513133 (patch) | |
tree | 4ad7f19e6a33d409afe163aef3b4844442b094a8 /host/lib/include/uhdlib/rfnoc/rfnoc_common.hpp | |
parent | fff4fd59b7b7995904ecb2b010f05f78e9d0a0de (diff) | |
download | uhd-de9cbe9c7c0a6e9296c561423d3b568bc1513133.tar.gz uhd-de9cbe9c7c0a6e9296c561423d3b568bc1513133.tar.bz2 uhd-de9cbe9c7c0a6e9296c561423d3b568bc1513133.zip |
rfnoc: Graph and link stream manager API cleanup
Diffstat (limited to 'host/lib/include/uhdlib/rfnoc/rfnoc_common.hpp')
-rw-r--r-- | host/lib/include/uhdlib/rfnoc/rfnoc_common.hpp | 18 |
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; |