blob: 6f8daca99f2572365c29f3bf0aa5d1dca5b172c9 (
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
36
37
38
39
40
41
|
//
// Copyright 2013-2014 Ettus Research LLC
//
// SPDX-License-Identifier: GPL-3.0
//
#ifndef INCLUDED_E300_FIFO_CONFIG_HPP
#define INCLUDED_E300_FIFO_CONFIG_HPP
#include <uhd/types/device_addr.hpp>
#include <uhd/types/wb_iface.hpp>
#include <uhd/transport/zero_copy.hpp>
#include <boost/enable_shared_from_this.hpp>
struct e300_fifo_config_t
{
size_t ctrl_length;
size_t buff_length;
size_t phys_addr;
};
e300_fifo_config_t e300_read_sysfs(void);
std::string e300_get_sysfs_attr(const std::string &node, const std::string &attr);
struct e300_fifo_interface : boost::enable_shared_from_this<e300_fifo_interface>
{
typedef boost::shared_ptr<e300_fifo_interface> sptr;
static sptr make(const e300_fifo_config_t &config);
virtual uhd::transport::zero_copy_if::sptr make_recv_xport(
const size_t which_stream,
const uhd::transport::zero_copy_xport_params ¶ms) = 0;
virtual uhd::transport::zero_copy_if::sptr make_send_xport(
const size_t which_stream,
const uhd::transport::zero_copy_xport_params &parms) = 0;
virtual size_t get_global_regs_base(void) const = 0;
};
#endif /* INCLUDED_E300_FIFO_CONFIG_HPP */
|