aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/include/uhdlib/rfnoc/epid_allocator.hpp
diff options
context:
space:
mode:
authorAshish Chaudhari <ashish@ettus.com>2019-05-31 14:55:59 -0700
committerMartin Braun <martin.braun@ettus.com>2019-11-26 11:49:21 -0800
commitde9cbe9c7c0a6e9296c561423d3b568bc1513133 (patch)
tree4ad7f19e6a33d409afe163aef3b4844442b094a8 /host/lib/include/uhdlib/rfnoc/epid_allocator.hpp
parentfff4fd59b7b7995904ecb2b010f05f78e9d0a0de (diff)
downloaduhd-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/epid_allocator.hpp')
-rw-r--r--host/lib/include/uhdlib/rfnoc/epid_allocator.hpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/host/lib/include/uhdlib/rfnoc/epid_allocator.hpp b/host/lib/include/uhdlib/rfnoc/epid_allocator.hpp
index c92ca013d..ec23dcb50 100644
--- a/host/lib/include/uhdlib/rfnoc/epid_allocator.hpp
+++ b/host/lib/include/uhdlib/rfnoc/epid_allocator.hpp
@@ -33,12 +33,19 @@ public:
*/
sep_id_t allocate_epid(const sep_addr_t& addr);
+ /*! \brief Get a pre-allocated EPID. Throws an exception is not allocated
+ *
+ * \param addr The physical address (device, instance) of the stream endpoint
+ * \return The allocated EPID
+ */
+ sep_id_t get_epid(const sep_addr_t& addr);
+
/*! \brief Lookup an EPID and return the address associated with it.
*
* \param epid The allocated EPID
* \return The physical address (device, instance) of the stream endpoint
*/
- sep_addr_t lookup_epid(const sep_id_t& epid) const;
+ sep_addr_t lookup_addr(const sep_id_t& epid) const;
/*! \brief Deallocate the specified EPID.
*