36#ifndef NAND_SIM_FLASHDEV_H
37#define NAND_SIM_FLASHDEV_H
67 void *(*alloc)(
size_t size);
rtems_flashdev * flash_sim_flashdev_init(struct flash_sim_flashdev_attributes *attr)
Initializes a simulated flash device. The flash device is not registered in this call....
Definition: flash_sim_flashdev.c:374
rtems_flashdev_flash_type
Enum for flash type returned from IOCTL call.
Definition: flashdev.h:239
Configuration options for NAND simulation.
Definition: flash_sim_flashdev.h:46
uint64_t write_delay_ns
The minimum delay in nanoseconds for a write operation.
Definition: flash_sim_flashdev.h:50
uint64_t total_sectors
The total number of sectors in the simulated device.
Definition: flash_sim_flashdev.h:60
uint64_t read_delay_ns
The minimum delay in nanoseconds for a read operation.
Definition: flash_sim_flashdev.h:48
uint64_t erase_delay_ns
The minimum delay in nanoseconds for a erase operation.
Definition: flash_sim_flashdev.h:52
uint64_t page_size_bytes
The number of bytes in each page.
Definition: flash_sim_flashdev.h:54
rtems_flashdev_flash_type type
The type of flash that is being simulated.
Definition: flash_sim_flashdev.h:62
void(* free)(void *ptr)
Free function for simulated flash, but not other allocations. free() will be used if NULL.
Definition: flash_sim_flashdev.h:72
uint64_t pages_per_sector
The number of pages in each sector.
Definition: flash_sim_flashdev.h:58
uint64_t page_oob_bytes
The number of spare/out of band (OOB) bytes per page.
Definition: flash_sim_flashdev.h:56
Flash device.
Definition: flashdev.h:358