ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
cbs_backend_t Struct Reference

One byte-addressed backing store the sweep reads through – the backend DIP seam the #208 hardware leg will implement. More...

#include <sweep_block_internal.h>

Detailed Description

One byte-addressed backing store the sweep reads through – the backend DIP seam the #208 hardware leg will implement.

setup prepares a backing for one (blob, block size) pair and publishes read/read_ctx (an ra8_vsource_read_fn, so the backing plugs straight into ra8_vsource_add_paged); teardown releases whatever setup acquired. backing_bytes reports the on-medium size of the backing (the container size for a chunked backend), and src_bytes, when non-NULL, points at a counter of raw medium bytes transferred (compressed stream bytes for the RBKC backend) so the report can separate bytes-on-the-wire from bytes-delivered-to-the-cache.

Invariant
After a successful setup, read is non-NULL until teardown.
setup/teardown calls alternate (no nested setups).
See also
cb_sweep_block() The driver that exercises a backend at every size.
Since
0.1.0

The documentation for this struct was generated from the following file: