Driver for address remap for flash devices. More...
Driver for address remap for flash devices.
This MTD module allows for remapping multiple different regions on a single MTD device and present them as separate MTD devices. This is similar to partitions on a hard drive, although this system only allows hardcoded partitions and lacks a partition table.
The use case for this module is to be able to split a single MTD device, for example a SPI NOR flash chip into multiple separate regions which all can contain their own content or file systems.
To use this module include it in your makefile:
To define new regions with an existing MTD device the following is required:
 The snippet here defines a region within an existing MTD_0 device of half the size of MTD_0 and starting in the middle of the device.
Interface definitions for mtd mapper support
Data Structures | |
| struct | mtd_mapper_parent_t | 
| MTD mapper backing device context.  More... | |
| struct | mtd_mapper_region_t | 
| MTD mapped region.  More... | |
Macros | |
| #define | MTD_PARENT_INIT(_parent) | 
| Shortcut macro for initializing the members of an mtd_mapper_parent_t struct.  More... | |
Variables | |
| const mtd_desc_t | mtd_mapper_driver | 
| Mapper MTD device operations table.  | |
| #define MTD_PARENT_INIT | ( | _parent | ) | 
Shortcut macro for initializing the members of an mtd_mapper_parent_t struct.
Definition at line 77 of file mtd_mapper.h.