Home |
The ISO 9660 File System Structure The exFAT File System Structure RTFiles-32 in Embedded Applications M-Systems DiskOnChip Driver |
M-Systems DiskOnChip DriverThe M-Systems DiskOnChip flash disk driver supports up to two DiskOnChip 2000 or DiskOnChip Millennium devices with a maximum capacity of 166M each. Parts of the driver have been supplied by M-Systems. The driver's source code is not included with RTFiles-32, but it can be licensed from M-Systems (please contact On Time for details). The DiskOnChip driver is not included in library Rtfiles.lib or RtfilesX.lib. Rather, library Drvdoc.lib must also be linked to be able to use this driver. Memory WindowsDiskOnChips are configured to map a memory window of 8k or 32k into the host computer's address space. Typically, this address will be C8000h, D0000h, or D8000h. The DiskOnChip driver must know the address of this memory window and must have read/write access to it. The driver will call a system driver function to find the memory window. With RTTarget-32's and RTKernel-32's system drivers, the memory window must be located explicitly in the application's RTTarget-32 configuration file with an entry such as: Region DiskOnChip D0000h 8k Device ReadWrite If a second DiskOnChip must be supported, another such region with name DiskOnChip1 is required. Example:Region DiskOnChip1 D8000h 8k Device ReadWrite The driver will search for regions with these names at program startup to find the installed devices. If the driver does not find the "DiskOnChip" region at run-time, any access to the device will return error RTF_DEVICE_RESOURCE_ERROR. RTFDevice.DeviceTypeRTFDevice.DeviceType must be set to RTF_DEVICE_FDISK for this driver. RTFDevice.DeviceNumberThe device number of the first DiskOnChip device is 0, while the second device is numbered 1. Currently, only two DiskOnChip devices are supported simultaneously. RTFDevice.DeviceFlagsThis driver does not define any device-specific flags, but device independent flags documented in section Device List can be used. The DiskOnChip driver is reentrant and supports device flag RTF_DEVICE_NEW_LOCK for every device entry. RTFDevice.DriverThis field must point to RTFDrvDOC. RTFDevice.DriverDataThis field must point to a unique structure of type RTFDrvDOCData. This structure should be initialized to 0 or be left uninitialized.
|