FlashRegion (Windows Embedded Compact 7)

Switch View :
ScriptFree
FlashRegion (Windows Embedded Compact 7)
9/29/2011

This structure describes an individual flash region. An array of these structures make up the flash region table located in the flash layout sector.

Syntax


typedef struct _FlashRegion {
  REGION_TYPE regionType;
  DWORD dwStartPhysBlock;
  DWORD dwNumPhysBlocks;
  DWORD dwNumLogicalBlocks;
  DWORD dwSectorsPerBlock;
  DWORD dwBytesPerBlock;
  DWORD dwCompactBlocks;
} FlashRegion, *PFlashRegion;
Members

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.

Remarks

Either the dwStartPhysBlock and dwNumPhysBlocks members or the dwNumLogicalBlocks member must be specified.

Requirements

Header

fls.h

See Also

Reference

Flash Media Driver Structures