10 typedef u64 FSPXI_Archive;
11 typedef u64 FSPXI_File;
12 typedef u64 FSPXI_Directory;
FS_ArchiveID
Archive IDs.
Definition: fs.h:52
FS_MediaType
Media types.
Definition: fs.h:35
u64 FS_Archive
Filesystem archive handle, providing access to a filesystem's contents.
Definition: fs.h:247
FS_CardSpiBusMode
Card SPI bus mode.
Definition: fs.h:108
FS_CardType
Definition: fs.h:122
FS_SystemMediaType
System media types.
Definition: fs.h:43
FS_SpecialContentType
Card SPI bus mode.
Definition: fs.h:115
FS_CardSpiBaudRate
Card SPI baud rate.
Definition: fs.h:97
Result FSPXI_WriteFileSHA256(Handle serviceHandle, FSPXI_File file, u32 *bytesWritten, u64 offset, const void *writeBuffer, u32 writeBufferSize, void *hashtable, u32 hashtableSize, u32 unk1, u32 unk2)
Assumedly writes data and stores SHA256 hashes of blocks.
Result FSPXI_CalculateFileHashSHA256(Handle serviceHandle, FSPXI_File file, void *buffer, u32 size)
Calculate SHA256 of a file.
Result FSPXI_DeleteSdmcRoot(Handle serviceHandle)
Deletes the 3DS SDMC root.
Result FSPXI_InitializeCtrFilesystem(Handle serviceHandle)
Initializes the CTR file system.
Result FSPXI_GetNandSpeedInfo(Handle serviceHandle, FS_SdMmcSpeedInfo *out)
Gets the NAND speed info.
Result FSPXI_ClearSdmcLog(Handle serviceHandle)
Clears the SDMC log.
Result FSPXI_CardNorDirectRead_4xIO(Handle serviceHandle, u8 commandId, u32 address, u32 size, void *output)
Executes a CARDNOR 4xIO direct read.
Result FSPXI_IsSdmcWritable(Handle serviceHandle, bool *out)
Gets whether PXIFS0 can write to the SD.
Result FSPXI_DeleteFile(Handle serviceHandle, FSPXI_Archive archive, FS_Path path)
Deletes a file.
Result FSPXI_GetSdmcCtrRootPath(Handle serviceHandle, u16 *out, u32 length)
Gets the CTR SDMC root path.
Result FSPXI_GetLegacySubBannerData(Handle serviceHandle, u32 bannerSize, FS_MediaType mediaType, u64 programId, void *banner)
Gets the legacy sub banner data of a program.
Result FSPXI_OpenFile(Handle serviceHandle, FSPXI_File *out, FSPXI_Archive archive, FS_Path path, u32 flags, u32 attributes)
Opens a file.
Result FSPXI_HasDirectory(Handle serviceHandle, FSPXI_Archive archive, bool *out, FS_Path path)
Checks if the archive contains a directory at path.
Result FSPXI_ReadSpecialFile(Handle serviceHandle, u32 *bytesRead, u64 fileOffset, u32 size, void *data)
Reads from a special file.
Result FSPXI_SendInitializeInfoTo9(Handle serviceHandle, u8 unk)
Sends initialization info to ARM9.
Result FSPXI_CloseDirectory(Handle serviceHandle, FSPXI_Directory directory)
Close a directory.
Result FSPXI_CreateFile(Handle serviceHandle, FSPXI_Archive archive, FS_Path path, u32 attributes, u64 fileSize)
Creates a file.
Result FSPXI_EnumerateSystemSaveData(Handle serviceHandle, u32 *idsWritten, u32 idsSize, u32 *ids)
Enumerates system save data.
Result FSPXI_GetSdmcSpeedInfo(Handle serviceHandle, FS_SdMmcSpeedInfo *out)
Gets the SDMC speed info.
Result FSPXI_CardSlotIsInserted(Handle serviceHandle, bool *inserted)
Gets whether a card is inserted.
Result FSPXI_GetNandLog(Handle serviceHandle, void *out, u32 size)
Gets the NAND log.
Result FSPXI_GetArchiveResource(Handle serviceHandle, FS_ArchiveResource *archiveResource, FS_SystemMediaType mediaType)
Gets an archive's resource information.
Result FSPXI_ReadDirectory(Handle serviceHandle, FSPXI_Directory directory, u32 *entriesRead, u32 entryCount, FS_DirectoryEntry *entries)
Reads one or more directory entries.
Result FSPXI_GetLegacyBannerData(Handle serviceHandle, FS_MediaType mediaType, u64 programId, void *banner, u8 unk)
Gets the legacy banner data of a program.
Result FSPXI_GetNandArchiveResource(Handle serviceHandle, FS_ArchiveResource *out)
Gets the NAND archive resource information.
Result FSPXI_GetSpecialFileSize(Handle serviceHandle, u64 *fileSize)
Gets the size of a special file.
Result FSPXI_CardNorDirectWriteWithAddress(Handle serviceHandle, u8 commandId, u32 address, u32 size, const void *input)
Executes a CARDNOR direct write with an address.
Result FSPXI_CloseArchive(Handle serviceHandle, FSPXI_Archive archive)
Close an archive.
Result FSPXI_FormatCardNorDevice(Handle serviceHandle, u32 unk)
Formats the CARDNOR device.
Result FSPXI_ClearNandLog(Handle serviceHandle)
Clears the NAND log.
Result FSPXI_DeleteDirectory(Handle serviceHandle, FSPXI_Archive archive, FS_Path path)
Deletes a directory.
Result FSPXI_CardSlotPowerOff(Handle serviceHandle, bool *status)
Powers off the card slot.
Result FSPXI_GetNandCid(Handle serviceHandle, void *out, u32 size)
Gets the NAND CID.
Result FSPXI_SetCtrCardLatencyParameter(Handle serviceHandle, u64 latency)
Configures CTRCARD latency emulation.
Result FSPXI_RenameDirectory(Handle serviceHandle, FSPXI_Archive srcArchive, FS_Path srcPath, FSPXI_Archive dstArchive, FS_Path dstPath)
Renames a directory.
Result FSPXI_CloseFile(Handle serviceHandle, FSPXI_File file)
Close a file.
Result FSPXI_DeleteExtSaveData(Handle serviceHandle, FS_ExtSaveDataInfo info)
Deletes ext save data.
Result FSPXI_SetPriority(Handle serviceHandle, u32 priority)
Sets the file system priority.
Result FSPXI_GetCardType(Handle serviceHandle, FS_CardType *out)
Gets the inserted card type.
Result FSPXI_ExportIntegrityVerificationSeed(Handle serviceHandle, FS_IntegrityVerificationSeed *seed)
Exports the integrity verification seed.
Result FSPXI_CreateExtSaveData(Handle serviceHandle, FS_ExtSaveDataInfo info)
Creates ext save data.
Result FSPXI_GetSdmcFatFsError(Handle serviceHandle, u32 *out)
Gets the error code from the SDMC FatFS driver.
Result FSPXI_CreateSeed(Handle serviceHandle)
Creates the FS seed.
Result FSPXI_SetFileSize(Handle serviceHandle, FSPXI_File file, u64 size)
Set size of a file.
Result FSPXI_CreateDirectory(Handle serviceHandle, FSPXI_Archive archive, FS_Path path, u32 attributes)
Creates a directory.
Result FSPXI_WriteFile(Handle serviceHandle, FSPXI_File file, u32 *bytesWritten, u64 offset, const void *buffer, u32 size, u32 flags)
Writes to a file.
Result FSPXI_OpenDirectory(Handle serviceHandle, FSPXI_Directory *out, FSPXI_Archive archive, FS_Path path)
Opens a directory.
Result FSPXI_ReadFile(Handle serviceHandle, FSPXI_File file, u32 *bytesRead, u64 offset, void *buffer, u32 size)
Reads from a file.
Result FSPXI_CardNorDirectSectorEraseWithoutVerify(Handle serviceHandle, u32 address)
Executes a CARDNOR direct sector erase without verify.
Result FSPXI_GetSdmcArchiveResource(Handle serviceHandle, FS_ArchiveResource *out)
Gets the SDMC archive resource information.
Result FSPXI_GetSpecialContentIndex(Handle serviceHandle, u16 *index, FS_MediaType mediaType, u64 programId, FS_SpecialContentType type)
Gets a special content's index.
Result FSPXI_CalcSavegameMAC(Handle serviceHandle, FSPXI_File file, const void *inBuffer, u32 inSize, void *outBuffer, u32 outSize)
Calculates the MAC used in a DISA/DIFF header?
Result FSPXI_CardNorDirectCommand(Handle serviceHandle, u8 commandId)
Executes a CARDNOR direct command.
Result FSPXI_OpenArchive(Handle serviceHandle, FSPXI_Archive *archive, FS_ArchiveID archiveID, FS_Path path)
Opens an archive.
Result FSPXI_IsSdmcDetected(Handle serviceHandle, bool *out)
Gets whether PXIFS0 detects the SD.
Result FSPXI_GetSdmcLog(Handle serviceHandle, void *out, u32 size)
Gets the SDMC log.
Result FSPXI_CardNorDirectReadWithAddress(Handle serviceHandle, u8 commandId, u32 address, u32 size, void *output)
Executes a CARDNOR direct read with an address.
Result FSPXI_StartDeviceMoveAsSource(Handle serviceHandle, FS_DeviceMoveContext *context)
Initiates a device move as the source device.
Result FSPXI_CardSlotPowerOn(Handle serviceHandle, bool *status)
Powers on the card slot.
Result FSPXI_GetProductInfo(Handle serviceHandle, FS_ProductInfo *info, FSPXI_Archive archive)
Gets an NCCH's product info.
Result FSPXI_GetFileSize(Handle serviceHandle, FSPXI_File file, u64 *size)
Get size of a file.
Result FSPXI_CommitSaveData(Handle serviceHandle, FSPXI_Archive archive, u32 id)
Commits an archive's save data.
Result FSPXI_ReadNandReport(Handle serviceHandle, void *buffer, u32 size, u32 unk)
Reads the NAND report.
Result FSPXI_Unknown0x17(Handle serviceHandle, FSPXI_Archive archive, bool *out)
Unknown 0x17.
Result FSPXI_CardNorDirectWrite(Handle serviceHandle, u8 commandId, u32 size, const void *input)
Executes a CARDNOR direct write.
Result FSPXI_SetCardSpiBaudrate(Handle serviceHandle, FS_CardSpiBaudRate baudRate)
Sets the CARDSPI baud rate.
Result FSPXI_ReadFileSHA256(Handle serviceHandle, FSPXI_File file, u32 *bytesRead, u64 offset, void *readBuffer, u32 readBufferSize, void *hashtable, u32 hashtableSize, u32 unk)
Reads data and stores SHA256 hashes of blocks.
Result FSPXI_CardNorDirectRead(Handle serviceHandle, u8 commandId, u32 size, void *output)
Executes a CARDNOR direct read.
Result FSPXI_SetCardSpiBusMode(Handle serviceHandle, FS_CardSpiBusMode busMode)
Sets the CARDSPI bus mode.
Result FSPXI_RenameFile(Handle serviceHandle, FSPXI_Archive srcArchive, FS_Path srcPath, FSPXI_Archive dstArchive, FS_Path dstPath)
Renames a file.
Result FSPXI_EnumerateExtSaveData(Handle serviceHandle, u32 *idsWritten, u32 idsSize, FS_MediaType mediaType, u32 idSize, bool shared, u8 *ids)
Enumerates ext save data.
Result FSPXI_GetFileLastModified(Handle serviceHandle, FSPXI_Archive archive, u64 *out, const u16 *path, u32 size)
Gets the last modified time of a file in an archive.
Result FSPXI_CardSlotGetCardIFPowerStatus(Handle serviceHandle, bool *status)
Gets the card's power status.
Result FSPXI_GenerateRandomBytes(Handle serviceHandle, void *buffer, u32 size)
Generates random bytes.
Result FSPXI_CardNorDirectCpuWriteWithoutVerify(Handle serviceHandle, u32 address, u32 size, const void *input)
Executes a CARDNOR direct CPU write without verify.
Result FSPXI_CardNorDirectCommandWithAddress(Handle serviceHandle, u8 commandId, u32 address)
Executes a CARDNOR direct command with an address.
Result FSPXI_GetSdmcCid(Handle serviceHandle, void *out, u32 size)
Gets the SDMC CID.
Result FSPXI_HasFile(Handle serviceHandle, FSPXI_Archive archive, bool *out, FS_Path path)
Checks if the archive contains a file at path.
Result FSPXI_StartDeviceMoveAsDestination(Handle serviceHandle, FS_DeviceMoveContext context, bool clear)
Initiates a device move as the destination device.
Result FSPXI_DeleteAllExtSaveDataOnNand(Handle serviceHandle)
Deletes all ext save data on the NAND.
Result FSPXI_ImportIntegrityVerificationSeed(Handle serviceHandle, const FS_IntegrityVerificationSeed *seed)
Imports an integrity verification seed.
Result FSPXI_Unknown0x56(Handle serviceHandle, u32 out[4], FS_Archive archive, FS_Path path)
Unknown command 0x56.
Result FSPXI_SwitchCleanupInvalidSaveData(Handle serviceHandle, bool enable)
Toggles cleaning up invalid save data.
Result FSPXI_GetLegacyRomHeader(Handle serviceHandle, FS_MediaType mediaType, u64 programId, void *header)
Gets the legacy ROM header of a program.
Archive resource information.
Definition: fs.h:174
Device move context.
Definition: fs.h:225
Directory entry.
Definition: fs.h:162
Ext save data information.
Definition: fs.h:206
Integrity verification seed.
Definition: fs.h:199
Filesystem path data, detailing the specific target of an operation.
Definition: fs.h:232
Product information.
Definition: fs.h:191
SDMC/NAND speed information.
Definition: fs.h:240
uint64_t u64
64-bit unsigned integer
Definition: types.h:24
uint8_t u8
would be nice if newlib had this already
Definition: types.h:21
u32 Handle
Resource handle.
Definition: types.h:41
s32 Result
Function result.
Definition: types.h:42
uint16_t u16
16-bit unsigned integer
Definition: types.h:22
uint32_t u32
32-bit unsigned integer
Definition: types.h:23