Exports for Kernel.
More...
Exports for Kernel.
Using this library in your project
Include the header file in your project:
Using this library in your project
Include the header file in your project:
Link the library to the executable:
◆ SceMsInfo
◆ SCE_MSIF_SECTOR_SIZE
| #define SCE_MSIF_SECTOR_SIZE (0x200) |
◆ SceMsifErrorCode
MSIF errors returned directly by the FW 3.60 sector APIs.
| Enumerator |
|---|
| SCE_MSIF_ERROR_INTERNAL | |
| SCE_MSIF_ERROR_INVALID_ARGUMENT | |
| SCE_MSIF_ERROR_UNALIGNED_BUFFER | |
| SCE_MSIF_ERROR_WRITE_PROTECTED | |
◆ VITASDK_BUILD_ASSERT_EQ() [1/2]
◆ ksceMsifGetMsInfo()
◆ VITASDK_BUILD_ASSERT_EQ() [2/2]
◆ ksceMsifDisableSlowCardMode()
| int ksceMsifDisableSlowCardMode |
( |
void |
| ) |
|
Disable slow-card mode.
Slow-card mode does not change the MSIF controller clock. It adds minimum completion delays after successful sector reads and writes, including periodic 350 or 400 ms pauses.
- Returns
- Always 0.
◆ ksceMsifEnableSlowCardMode()
| int ksceMsifEnableSlowCardMode |
( |
void |
| ) |
|
◆ ksceMsifGetSlowCardModeState()
| SceBool ksceMsifGetSlowCardModeState |
( |
void |
| ) |
|
Check whether slow-card mode is enabled.
- Returns
- SCE_TRUE when enabled, or SCE_FALSE when disabled.
◆ ksceMsifReadSector()
Read sectors from the Memory Stick medium.
- Parameters
-
| [in] | sector | - First logical sector to read. |
| [out] | buffer | - Destination for sector_count * SCE_MSIF_SECTOR_SIZE bytes. Must be aligned to 4 bytes. |
| [in] | sector_count | - Number of sectors to read. Must not be 0. |
- Returns
- 0 on success, a negative SceMsifErrorCode value, a mapped medium error, or a fast-mutex error.
◆ ksceMsifWriteSector()
Write sectors to the Memory Stick medium.
- Parameters
-
| [in] | sector | - First logical sector to write. |
| [in] | buffer | - Source containing sector_count * SCE_MSIF_SECTOR_SIZE bytes. Must be aligned to 4 bytes. |
| [in] | sector_count | - Number of sectors to write. Must not be 0. |
- Returns
- 0 on success, a negative SceMsifErrorCode value, a mapped medium error, or a fast-mutex error.
◆ unk_0x00
◆ unk_0x04
◆ nbytes
◆ nbytes2
◆ sector_size
◆ unk_0x1C
◆ fs_offset
◆ unk_0x24
◆ unk_0x28
◆ unk_0x2C
◆ id