|
ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
|
Caller-owned adapter context binding a block device to a vsource read. More...
#include <ra8_io_blockdev_vsource.h>
Data Fields | |
| const ra8_io_blockdev_t * | bd |
| Bound block device (private; read-only use). | |
| uint8_t | scratch [(uint32_t) k_ra8_io_block_size_bytes] |
| One-sector bounce buffer (private). | |
Caller-owned adapter context binding a block device to a vsource read.
Zero-initialise and pass to ra8_io_blockdev_vsource_init, which records the bound block device and prepares the embedded one-sector bounce buffer. The ctx you register with ra8_vsource_add_paged is the address of this struct, and ra8_io_blockdev_vsource_read is the callback. Treat the fields as private. The struct and the bound device must out-live every read made through them.
Definition at line 84 of file ra8_io_blockdev_vsource.h.
| const ra8_io_blockdev_t* ra8_io_blockdev_vsource_ctx_t::bd |
Bound block device (private; read-only use).
Definition at line 85 of file ra8_io_blockdev_vsource.h.
Referenced by internal_bd_read_middle(), internal_bd_read_sector(), and ra8_io_blockdev_vsource_init().
| uint8_t ra8_io_blockdev_vsource_ctx_t::scratch[(uint32_t) k_ra8_io_block_size_bytes] |
One-sector bounce buffer (private).
Definition at line 87 of file ra8_io_blockdev_vsource.h.
Referenced by internal_bd_copy_slice(), internal_bd_read_sector(), and ra8_io_blockdev_vsource_init().