aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/transport/liberio_zero_copy.hpp
blob: b41b6416cc24e64df2018db3f2eabc513d7184a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
//
// Copyright 2017 Ettus Research
// Copyright 2018 Ettus Research, a National Instruments Company
//
// SPDX-License-Identifier: GPL-3.0-or-later
//

#ifndef LIBERIO_HPP
#define LIBERIO_HPP

#include <uhd/config.hpp>
#include <uhd/transport/zero_copy.hpp>
#include <uhd/types/device_addr.hpp>
#include <boost/shared_ptr.hpp>
#include <string>
#include <vector>

namespace uhd { namespace transport {

/*!
 * A zero copy transport interface to the liberio DMA library.
 */
class liberio_zero_copy : public virtual zero_copy_if
{
public:
    typedef boost::shared_ptr<liberio_zero_copy> sptr;

    static sptr make(const std::string& tx_path,
        const std::string& rx_path,
        const zero_copy_xport_params& default_buff_args);
};

}} // namespace uhd::transport

#endif /* LIBERIO_HPP */