uOFW
Reverse engineered PSP kernel 6.60.
Loading...
Searching...
No Matches
Modules | Macros | Enumerations

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
}
 

Detailed Description

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.

Macro Definition Documentation

◆ SCE_UMD_ALIAS_NAME

#define SCE_UMD_ALIAS_NAME   "disc0:"

UMD file system alias name.

◆ SCE_UMD_LBA_DEVICE_NAME

#define SCE_UMD_LBA_DEVICE_NAME   "umd1:"

LBA raw sector access.

Enumeration Type Documentation

◆ SceUmdDiscStates

SCE UMD disc states.

Enumerator
SCE_UMD_INIT 

The UMD driver has been initiated.

SCE_UMD_MEDIA_OUT 

A medium has been removed.

SCE_UMD_MEDIA_IN 

A medium has been inserted.

SCE_UMD_MEDIA_CHG 

The inserted medium has changed.

SCE_UMD_NOT_READY 

The UMD device is not ready.

SCE_UMD_READY 

The UMD device is ready.

SCE_UMD_READABLE 

The inserted medium is readable.

◆ SceUmdDevicePowerModes

UMD drive power modes.

Enumerator
SCE_UMD_MODE_POWER_ON 

Set the UMD drive's power state to ON.

SCE_UMD_MODE_POWER_CUR 

Set the UMD drive's power state to the cuurent power state.

◆ SceUmdMediaTypeFormats

Enumerator
SCE_UMD_FMT_UNKNOWN 

Unknown format.

SCE_UMD_FMT_GAME 

Game format.

SCE_UMD_FMT_VIDEO 

Video format.

SCE_UMD_FMT_AUDIO 

Audio format.

SCE_UMD_FMT_CLEAN 

Cleaning format.