Go to the source code of this file.
|
struct | ctr_fatfs_disk |
| Structure holding information used by the fatfs implementation for keeping track of which io interfaces are used for which partition access. More...
|
|
Convenience function to initialize the fatfs system with the io interfaces required to mount CTRNAND, TWLN, TWLP, and SD.
- Parameters
-
[in,out] | ctr_io | A pointer to an initialized CTRNAND io layer. |
[in,out] | twl_io | A pointer to an initialized TWL io layer. |
[in,out] | sd_io | A pointer to an initialized SD io layer. |
- Postcondition
- The underlying structures in fatfs have been updated (using the custom CTR_SETUP_DISK ioctl) to be able to mount CTRNAND, TWLN, TWLP, and SD.
void ctr_fatfs_disk_initialize |
( |
ctr_fatfs_disk * |
disk, |
|
|
void * |
io, |
|
|
size_t |
sector_offset, |
|
|
size_t |
sectors |
|
) |
| |
Initializes the ctr_fatfs_disk structure.
- Parameters
-
[in] | disk | Pointer to structure to initialize. |
[in,out] | io | Pointer to ctr_io_interface to use for the disk being initialized. |
[in] | sector_offset | Offset in sectors from the beginning of the given io interface to use as the beginning of the fatfs drive (beginning of FAT partition or MBR with FAT partition) |
| sectors | Size in sectors of the FATFS disk/partition. |