SceUsbMass

From Vita Development Wiki
Revision as of 21:38, 1 May 2023 by Princess of Sleeping (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Module

Version World Privilege
3.60-3.65 Non-secure Kernel

Libraries

Known NIDs

Version Name World Visibility NID
3.60-3.65 SceUsbMassForDriver Non-secure Kernel 0x15243EC5

Types

typedef struct SceUsbMassDevInfo {
	SceSize number_of_all_sector;
	int data_04;
	SceSize sector_size;
	int data_0C;
} SceUsbMassDevInfo;

SceUsbMassForDriver

sceUsbMassGetDevInfoForDriver

Version NID
3.60-3.65 0xD989A9F6
int sceUsbMassGetDevInfoForDriver(SceUsbMassDevInfo *info);

sceUsbMassReadSectorForDriver

Version NID
3.60-3.65 0xB80D1DF8
int sceUsbMassReadSectorForDriver(SceSize sector_pos, void *data, SceSize sector_num);

sceUsbMassWriteSectorForDriver

Version NID
3.60-3.65 0x081CA197
int sceUsbMassWriteSectorForDriver(SceSize sector_pos, const void *data, SceSize sector_num);

sceUsbMassIntrHandlerForDriver

Version NID
3.60-3.65 0xF2BAB182
int sceUsbMassIntrHandlerForDriver(int intr_code, void *userCtx);

SceUsbMassForDriver_3C821E99

Version NID
3.60-3.65 0x3C821E99
int SceUsbMassForDriver_3C821E99(int a1, int a2);

SceUsbMassForDriver_7833D935

Version NID
3.60-3.65 0x7833D935
int SceUsbMassForDriver_7833D935(int a1, int a2);

Subroutines

The definitions in this section are based on offsets of System Software version 3.600.011.

/*
To be defined:
SceUsbMassLock
SceUsbMassUsbdSync
SceUsbMassIOBuf
_sceUsbMassProbe
*/

int sub_81000170(int a1);//_sceUsbMassDoRequestSense
int sub_81000A68(int a1); //_sceUsbMassDoReadCapacity
int sub_81000610(int a1, int a2, int a3, int a4);//_sceUsbMassDoCSW
int sub_8100030C(int a1, int a2, int a3, unsigned int a4);//_sceUsbMassDoCBW
int sub_81000B88(int a1);//_sceUsbMassAttach

int SceUsbMassForDriver_D989A9F6(int a1);//_sceUsbMassGetDevInfo
int SceUsbMassForDriver_081CA197(unsigned int a1, int a2, unsigned int a3);//_sceUsbMassWriteSector
int SceUsbMassForDriver_B80D1DF8(unsigned int a1, int a2, unsigned int a3);//_sceUsbMassReadSector