| 52 | |
| 53 | To support varions block device peripheral, this FAT32 implementation defines a generic _fat_ioc_access() function to access the physical block device defined in the target architecture. This function transfer one or several blocks between the block device and the file_cache by calling the relevant driver. |
| 54 | |
| 55 | === int '''_fat_ioc_access'''( unsigned int use_irq , unsigned int to_mem , unsigned int lba , unsigned int buf_vaddr , unsigned int count ) === |
| 56 | * '''use_irq''' : boolean (RX transfer if non zero) |
| 57 | * '''to_mem''' : boolean (from block device to memory if non zero) |
| 58 | * '''lba''' : logical block address on block device |
| 59 | * '''buf_vaddr''' : memory buffer virtual address |
| 60 | * ''' count''' : number of blocks to be transfered |