From de9cbe9c7c0a6e9296c561423d3b568bc1513133 Mon Sep 17 00:00:00 2001 From: Ashish Chaudhari Date: Fri, 31 May 2019 14:55:59 -0700 Subject: rfnoc: Graph and link stream manager API cleanup --- host/lib/include/uhdlib/rfnoc/epid_allocator.hpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'host/lib/include/uhdlib/rfnoc/epid_allocator.hpp') 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. * -- cgit v1.2.3