This structure describes an individual flash region. An array of these structures make up the flash region table located in the flash layout sector.
typedef struct _FlashRegion {
REGION_TYPE regionType;
DWORD dwStartPhysBlock;
DWORD dwNumPhysBlocks;
DWORD dwNumLogicalBlocks;
DWORD dwSectorsPerBlock;
DWORD dwBytesPerBlock;
DWORD dwCompactBlocks;
} FlashRegion, *PFlashRegion;
- regionType
-
Type of region, which must be one of the following: XIP, READONLY_FILESYS, or FILESYS.
- dwStartPhysBlock
-
Starting physical block of the region. Set to zero (0) if not used.
- dwNumPhysBlocks
-
Number of physical blocks in the region. Set to zero (0) if not used.
- dwNumLogicalBlocks
-
Number of logical blocks in the region. Set to zero (0) if not used. Set to -1 to indicate that the region extends to the end of flash memory.
- dwSectorsPerBlock
-
Number of sectors in a flash block.
- dwBytesPerBlock
-
Number of bytes in a flash block.
- dwCompactBlocks
-
Number of blocks reserved for compaction by the FAL.
Either the dwStartPhysBlock and dwNumPhysBlocks members or the dwNumLogicalBlocks member must be specified.
|
Header |
fls.h |