Home |
The ISO 9660 File System Structure The exFAT File System Structure RTFiles-32 in Embedded Applications Extended RAM Disk Driver |
Extended RAM Disk DriverThe Extended RAM disk driver uses RTTarget-32 Extended RAM Management API to allocate a disk image. ERAM disks format themselves automatically as a FAT-16 or FAT-32 volume when the disk is mounted, unless it was formatted already. The application can reformat ERAM disks as exFAT, if desired. Up to 8 ERAM disks can be installed. The ERAM Disk driver is reentrant. Device flag RTF_DEVICE_NEW_LOCK is supported for each ERAM disk. RTFDevice.DeviceTypeRTFDevice.DeviceType may be set to either RTF_DEVICE_FLOPPY or RTF_DEVICE_FDISK. RTFDevice.DeviceNumberThis field is ignored and should be set to 0, even if several ERAM disks are used. RTFDevice.DeviceFlagsApart from device independent device flags documented in section Device List, the following flag can be specified for RTFDevice.DeviceFlags: RTF_ERAM_CACHEABLEWhen this flag is specified, the driver will apply flag RTT_ERAM_CACHEABLE in its call to RTT_ERAM_Alloc to enable the CPU RAM cache for the ERAM disk. Please note that device independent flag RTF_DEVICE_SINGLE_FAT is not required, because the ERAM disk driver will format the ERAM disk with a file system with a single FAT by default. All other device independent flags documented in section Device List are supported. RTFDevice.DriverThis field must point to RTFDrvERAM. RTFDevice.DriverDataThe ERAM disk driver requires a pointer to a structure of type RTFDrvERAMData for RTFDevice.DriverData with the following layout: typedef struct { DWORD Blocks; ... } RTFDrvERAMData; RTFDrvRAMData.Blocks specifies the number of 4 megabyte blocks of Extended RAM the ERAM disk will use. If set to 0, the driver will allocate all available Extended RAM for the ERAM disk. The other fields of RTFDrvERAMData are for the driver's internal use and should be left uninitialized or initialized to 0.
|