uOFW
Reverse engineered PSP kernel 6.60.
|
Modules | |
Media_Manager Kernel | |
Media_Manager User | |
Macros | |
#define | SCE_UMD_ALIAS_NAME "disc0:" |
#define | SCE_UMD_LBA_DEVICE_NAME "umd1:" |
Enumerations | |
enum | SceUmdDiscStates { SCE_UMD_INIT = (0) , SCE_UMD_MEDIA_OUT = (1 << 0) , SCE_UMD_MEDIA_IN = (1 << 1) , SCE_UMD_MEDIA_CHG = (1 << 2) , SCE_UMD_NOT_READY = (1 << 3) , SCE_UMD_READY = (1 << 4) , SCE_UMD_READABLE = (1 << 5) } |
enum | SceUmdDevicePowerModes { SCE_UMD_MODE_POWER_ON = (1 << 0) , SCE_UMD_MODE_POWER_CUR = (1 << 1) } |
enum | SceUmdMediaTypeFormats { SCE_UMD_FMT_UNKNOWN = 0x00000 , SCE_UMD_FMT_GAME = 0x00010 , SCE_UMD_FMT_VIDEO = 0x00020 , SCE_UMD_FMT_AUDIO = 0x00040 , SCE_UMD_FMT_CLEAN = 0x00080 } |
Mediaman enables users to access the UMD drive. The drive can be accessed through files or sectors.
To access the UMD drive via a file, the PSP provides the ISO-9660 file system. A file can be accessed
by standard I/O functions as in sceIoOpen(), sceIoClose() and sceIoRead(). The general path format is the
following: "device alias name" + "unit number" + ":" + "file path name". Here, the device alias name and
the unit number are set by the sceUmdActivate() function ("disc0:" being the standard).
To open a file, consider this example:
sceIoOpen("disc0:PSP_GAME/EXAMPLEDIR/examplefile.exp");
To access the UMD drive by sectors, the PSP provides a UMD block device driver. You can read the sectors
by using standard I/O functions (i.e. sceIoOpen(), sceIoClose() and sceIoRead()). The general path format
is the following: "block device name" + "unit number" + ':'. Note that the block device is set by the
sceUmdActivate() function to "umd0:".
To open a phyisical device as a device file, consider this example:
sceIoOpen("UMD0:....");
By default, opening a new physical device sets the first sector to read at sector_0.
A sector contains 2048 bytes and reading is performed sector wise. That is, in sceIoRead() the read size
has to be specified in the number of sectors you want to read.
#define SCE_UMD_ALIAS_NAME "disc0:" |
UMD file system alias name.
#define SCE_UMD_LBA_DEVICE_NAME "umd1:" |
LBA raw sector access.
enum SceUmdDiscStates |
SCE UMD disc states.