|
| virtual desc_t::configuration | align(const typename desc_t::configuration& value, const typename desc_t::configuration &) |
| | a configuration the device can run: every stream's index within its configurations, one past them the stream off - a bus device narrows it to what its bus carries
|
| virtual uint64_t | budget(const typename desc_t::configuration &) |
| | the periodic bus time the configuration takes, in ns - a bus device with a periodic budget states it
|
| super::client* | client_create() override |
| template<typename... args_t> |
| | device(clock_server_t&& server, args_t&&... args) |
| template<typename target_t> |
| int | find(const target_t& targettarget) const |
| | the stream a client addresses, as the desc spells its target
|
| int | find(uint64_t id) const |
| | the stream carrying the given id - what a client knows its stream by (dx::stream::stream::id)
|
| auto& | format(unsigned int idx) |
| | the format the given stream's ring runs: a participant assigns its own and reads what was adopted
|
| os_result | ioctl(unsigned int ioctl, const void* in, size_t size_in, void* out, size_t size_out, size_t& size) override |
| os_result | open(unsigned int idx) |
| | a kernel endpoint's open: the ring sized as dx::stream::stream::initialize sizes it - a clock domain's stream by ticks of its interval, another by transactions
|
| os_result | open(unsigned int idx, uint32_t linesize, uint32_t lines, uint32_t slack= 0, uint32_t widest= 0) |
| | creates the stream's ring on its first open; the device holds its own reference, so the ring outlives its clients for the endpoints ticking on it. Its size is a session's lines, the allocation keeps the slack past them - the wrap's room, as dx::stream::stream::alloc() keeps it - in the widest line its stream configurations take
|
| const auto* | operator ()(const struct desc_t::stream& stream) |
| | the stream configuration the device runs the stream in, nullptr where it runs none: the stream is one of the desc's
|
| void | reset(int64_t timestamp) |
| | the host's session start: every ring begins at its size, in silence, without a transport - the participants anchor to it as it stands
|
| virtual ring* | ring_create(unsigned int idx, size_t size) |
| | the ring of one stream, sized in bytes: a bus device returns its own ring type, the stream's endpoint on it
|
| | ~device() override |
|
| broadcast | broadcast |
| | its values' listeners: every client's, woken on a commit of any of them
|
| promoted<typename desc_t::configuration, configuration_server<device_t>> | configuration{broadcast, configuration_server<device_t>{*this}} |
| | per stream the stream configuration the device runs it in, the richest by default
|
| class domain | hw |
| | the DAW clock: every client rides on it with its own buffer switch event
|
| dxd::stream* | io [streams] {} |
| | the shared ring of each stream, allocated with the first client opening it
|
| promoted<uint32_t, iosize_server<device_t>> | iosize{broadcast, iosize_server<device_t>{*this}} |
| class multichannel::stream<>::clock::monitor | monitor |
| | performance counters, allocated with the first client asking for them
|
| promoted<uint32_t, offset_server<device_t>> | safety_offset [dx::stream::direction::directions] |
| promoted<uint32_t, samplerate_server<device_t>> | samplerate{broadcast, samplerate_server<device_t>{*this}} |
| promoted<uint32_t, clock_server_t> | started |
| | started streams over all clients: the clock domain runs while this is not zero
|
| promoted<uint32_t, transport_server<device_t>> | transport [3] |
|
| uint32_t | blocks() |
| | the domain's cycle in ticks: the block a client of its iosize moves per switch
|
| auto& | clock_desc() |
| | the desc's single clock domain - the buses served here have exactly one
|
| template<typename value_t, typename server_t> |
| os_result | exchange(promoted<value_t, server_t>& value, const void* in, size_t size_in, void* out, size_t size_out, size_t& size) |
| | promoted value as a get (no input) or set-and-read-back IOCTL
|
| uint32_t | granularity() |
| | samples per clock tick, the unit both the tick and iosize are aligned to
|
| virtual uint32_t | rate(uint32_t value) |
| | the rate the domain takes: a bus that sets its device's clock hands the rate on and answers what the device took
|
| virtual void | transported(uint32_t, uint32_t) |
| | a bus running the transport takes a setting on (transport_server)
|
template<typename super_device_t, typename desc_t, typename clock_server_t>
class dxd::streaming::device< super_device_t, desc_t, clock_server_t >
generic streaming device: the control interface every bus's clients share
Answers the device and stream IOCTLs of dx::proxy::stream::device from promoted values, leaving the bus its streams and its clock: super_device_t is the platform's device(dxd::platform::device or dxd::kmdf::device, each with its client), clock_server_t the functor running and halting the concrete clock as the start reference count leaves and reaches zero.
template<typename super_device_t, typename desc_t, typename clock_server_t>
template<typename value_t, typename server_t>
promoted value as a get (no input) or set-and-read-back IOCTL
dx::stream::clock_value carries the clock domain alongside the value; the domain is not evaluated - the buses served here have a single one.
template<typename super_device_t, typename desc_t, typename clock_server_t>
template<typename target_t>
the stream a client addresses, as the desc spells its target
The target is the bus's own stream address - a direction here, an endpoint on USB - so matching it against the desc is what every bus has in common.
template<typename super_device_t, typename desc_t, typename clock_server_t>
| os_result dxd::streaming::device<super_device_t, desc_t, clock_server_t>::ioctl(unsigned int ioctl, const void* in, size_t size_in, void* out, size_t size_out, size_t& size) |
|
inlineoverride |