ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
ra8_io_blockdev_vsource.h
Go to the documentation of this file.
1
54
55#pragma once
56
57#ifdef __cplusplus
58extern "C" {
59#endif
60
61#include <stdint.h>
62
63#include "ra8_err.h"
64#include "ra8_io_blockdev.h"
65#include "ra8_vsource.h"
66
89
118 const ra8_io_blockdev_t* bd);
119
155[[nodiscard]] ra8_err_t
156ra8_io_blockdev_vsource_read(void* ctx, uint64_t offset, uint8_t* buf, uint32_t len);
157
158#ifdef __cplusplus
159}
160#endif
Error Code Definitions for ra8-firmware.
ra8_err_codes_t ra8_err_t
Canonical error-return type used by every ra8-firmware API.
Definition ra8_err.h:546
ra8_io block-device fabric – one LBA vtable across every storage medium.
@ k_ra8_io_block_size_bytes
Bytes per logical block (the only size).
ra8_err_t ra8_io_blockdev_vsource_read(void *ctx, uint64_t offset, uint8_t *buf, uint32_t len)
Read len bytes at byte offset from the bound block device.
ra8_err_t ra8_io_blockdev_vsource_init(ra8_io_blockdev_vsource_ctx_t *ctx, const ra8_io_blockdev_t *bd)
Bind a block device into a vsource adapter context.
Virtual-memory object sources – the page-cache storage seam (Layer 1, #147).
Caller-allocated block-device handle binding a backend to its context.
Caller-owned adapter context binding a block device to a vsource read.
uint8_t scratch[(uint32_t) k_ra8_io_block_size_bytes]
One-sector bounce buffer (private).
const ra8_io_blockdev_t * bd
Bound block device (private; read-only use).