|
ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
|
Caller-owned metadata for one physical erase block. More...
#include <ra8_ftl.h>
Data Fields | |
| uint32_t | erase_count |
| Cumulative erases of this block (wear metric). | |
| uint8_t | state |
| ra8_ftl_pstate_t lifecycle state (private). | |
Caller-owned metadata for one physical erase block.
One entry per physical block of the underlying device. Zero-initialise the whole array (= {}): all-zero means every block is FREE with a zero erase count, which is the correct cold-start state. Treat the fields as private; the FTL maintains them.
| uint32_t ra8_ftl_pblock_t::erase_count |
Cumulative erases of this block (wear metric).
Definition at line 163 of file ra8_ftl.h.
Referenced by internal_alloc_blank(), internal_decode_commit(), internal_encode(), internal_pick_free(), internal_reclaim_stale(), internal_reset_tables(), and ra8_ftl_wear_stats().
| uint8_t ra8_ftl_pblock_t::state |
ra8_ftl_pstate_t lifecycle state (private).
Definition at line 164 of file ra8_ftl.h.
Referenced by internal_decode_commit(), internal_dev_erase(), internal_encode(), internal_native_window(), internal_pick_free(), internal_reclaim_stale(), internal_reset_tables(), and internal_write_one().