Block Drivers (Compact 7)
3/12/2014
Block device drivers read or write data to block devices in fixed-size blocks. Block devices do not allow you to read or write individual bytes of data. Common block sizes are 512 bytes, 1 kilobyte (KB), 2 KB, and 4 KB. Block devices are ideally suited for mass storage and persistent storage applications, such as disk drives or nonvolatile RAM disks.
Some common types of block devices are hard disks, Advanced Technology Attachment (ATA) flash memory disks in miniature cards, and memory card form factors.
To add this feature to your OS, see Block Driver Catalog Items and Sysgen Variables.
For reference information, see Block Driver Reference.
Sample application code is available at the following locations.
Driver | Source file location | Binary |
---|---|---|
ATAPI PCI/IDE storage block driver |
Public\Common\OAK\Drivers\Block\ATAPI\Common |
Atapi.dll |
USB host mass storage client driver |
Public\Common\OAK\Drivers\USB\Class\Storage\Class Public\Common\OAK\Drivers\USB\Class\Storage\Disk\SCSI2 |
Usbmsc.dll Usbdisk6.dll |
USB function mass storage driver |
Public\Common\OAK\Drivers\USBFN\Class\Storage\Transport\BOT |
Usbmsfn.dll |
Secure Digital (SD) Memory Card driver |
Not applicable. |
Sdmemory.dll |
The recommended location for your driver implementation is in %_WINCEROOT%\\Platform\<BSP Name>\Src\Drivers\Block.
The Windows Embedded Compact Test Kit (CTK) tests that apply to this type of driver are:
- CD.DVD-ROM Block Driver Test
- Storage Block Device Driver API Test for Hard Drive
- Storage Block Driver API Verification Test for SDHC Card
- Storage Block Driver API Verification Tests for MMC
- Storage Block Driver API Verification Tests for SD Card
- Storage Block Driver Performance Test for MMC
- Storage Block Driver Performance Test for SD Card
- Storage Block Driver Performance Tests for SDHC Card
- Storage Block Driver ReadWrite Test for MMC
- Storage Block Driver ReadWrite Test for SD Card
- Storage Block Driver ReadWrite Tests for SDHC Card
- Storage Device Block Driver API Test for Flash
- Storage Device Block Driver API Test for USB Device
- Storage Device Block Driver Benchmark Test for USB Device
- Storage Device Block Driver Performance Test for Hard Drive
- Storage Device Block Driver Performance Test for USB Storage
- Storage Device Block Driver ReadWrite Test for Flash
- Storage Device Block Driver ReadWrite Test for Hard Drive
- Storage Device Block Driver ReadWrite Tests for USB Device
- Storage Device File System Driver Test for USB Device