uOFW
Reverse engineered PSP kernel 6.60.
Loading...
Searching...
No Matches
Functions
Media_Manager Kernel

Functions

s32 sceUmd_040A7090 (s32 errorState)
 
s32 sceUmdActivate (s32 mode, const char *aliasName)
 
s32 sceUmdDeactivate (s32 mode, const char *aliasName)
 
s32 sceUmdGetDiscInfo (SceUmdDiscInfo *pDiscInfo)
 
s32 sceUmdRegisterUMDCallBack (SceUID callbackId)
 
s32 sceUmdUnRegisterUMDCallBack (SceUID callbackId)
 
s32 sceUmdCheckMedium (void)
 
s32 sceUmdWaitDriveStat (s32 umdState)
 
s32 sceUmdWaitDriveStatWithTimer (u32 umdState, u32 timeout)
 
s32 sceUmdWaitDriveStatCB (u32 umdState, u32 timeout)
 
s32 sceUmdCancelWaitDriveStat (void)
 
s32 sceUmdReplaceProhibit (void)
 
s32 sceUmdReplacePermit (void)
 
s32 sceUmdUseUMDInMsUsbWlan (void)
 
s32 sceUmdUnuseUMDInMsUsbWlan (void)
 

Detailed Description

Kernel application API.

Function Documentation

◆ sceUmd_040A7090()

s32 sceUmd_040A7090 ( s32  errorState)

Get corresponding 1.50 error code used by the UMD drivers. On 1.50, a bunch of error codes were
mistakenly returned by the UMD modules.

Parameters
errorStateGet the 1.50 version of this error code.
Returns
The error code used on 1.50.

◆ sceUmdActivate()

s32 sceUmdActivate ( s32  mode,
const char *  aliasName 
)

Activate the UMD drive. This includes assigning the file system, the block device (set to "umd0:") and setting the alias name for the file system access.

Parameters
modeThe initial UMD drive power mode. One of SceUmdDevicePowerModes.
aliasNameThe alias name for the mounted filesystem device name. Pass SCE_UMD_ALIAS_NAME.
Returns
SCE_ERROR_OK on success, otherwise SCE_ERROR_ERRNO_INVALID_ARGUMENT.

◆ sceUmdDeactivate()

s32 sceUmdDeactivate ( s32  mode,
const char *  aliasName 
)

Deactivate the UMD drive.

Parameters
modeThe new UMD drive power mode. One of SceUmdDevicePowerModes.
aliasNamealiasName The alias name for the mounted filesystem device name. Pass SCE_UMD_ALIAS_NAME.
Returns
SCE_ERROR_OK on success, otherwise SCE_ERROR_ERRNO_INVALID_ARGUMENT.

◆ sceUmdGetDiscInfo()

s32 sceUmdGetDiscInfo ( SceUmdDiscInfo *  pDiscInfo)

Get the disc information

Parameters
pDiscInfoPointer to a SceUmdDiscInfo structure to retrieve the disc information.
Returns
SCE_ERROR_OK on success, otherwise SCE_ERROR_ERRNO_INVALID_ARGUMENT on invalid arguments; SCE_UMD_ERROR_NO_MEDIUM if there is no UMD medium inserted.

◆ sceUmdRegisterUMDCallBack()

s32 sceUmdRegisterUMDCallBack ( SceUID  callbackId)

Register a callback that is called when the UMD disc state changes. Only exactly one callback can be registered at any given time.

Parameters
callbackIdThe ID of the callback.
Returns
SCE_ERROR_OK on success, otherwise SCE_ERROR_ERRNO_INVALID_ARGUMENT (when the passed ID does not belong to a callback).

◆ sceUmdUnRegisterUMDCallBack()

s32 sceUmdUnRegisterUMDCallBack ( SceUID  callbackId)

Unregister a callback that is called when the UMD disc state changes.

Parameters
callbackIdThe ID of the callback.
Returns
SCE_ERROR_OK on success, otherwise SCE_ERROR_ERRNO_INVALID_ARGUMENT (when the passed ID does not match the ID of the previously registered callback).

◆ sceUmdCheckMedium()

s32 sceUmdCheckMedium ( void  )

Verify the existence of an UMD medium.

Returns
0, if no disc is present, a value != 0 indicates disc is present.

◆ sceUmdWaitDriveStat()

s32 sceUmdWaitDriveStat ( s32  umdState)

Wait for a UMD drive status event.

Parameters
umdStateThe state to wait for until it occurs. One of SceUmdDiscStates.
Returns
SCE_ERROR_OK, otherwise SCE_ERROR_ERRNO_INVALID_ARGUMENT if the given UMD state isn't one of the following: SCE_UMD_MEDIA_OUT, SCE_UMD_MEDIA_IN, SCE_UMD_NOT_READY, SCE_UMD_READY, SCE_UMD_READABLE Other errors indicate a thread synchronization error.

◆ sceUmdWaitDriveStatWithTimer()

s32 sceUmdWaitDriveStatWithTimer ( u32  umdState,
u32  timeout 
)

Wait for a UMD drive status event.

Parameters
umdStateThe state to wait for until it occurs. One of SceUmdDiscStates.
timeoutTimeout value in microseconds for the wait.
Returns
SCE_ERROR_OK, otherwise SCE_ERROR_ERRNO_INVALID_ARGUMENT if the given UMD state isn't one of the following: SCE_UMD_MEDIA_OUT, SCE_UMD_MEDIA_IN, SCE_UMD_NOT_READY, SCE_UMD_READY, SCE_UMD_READABLE. Other errors indicate a thread synchronization error.

◆ sceUmdWaitDriveStatCB()

s32 sceUmdWaitDriveStatCB ( u32  umdState,
u32  timeout 
)

Wait for a UMD drive status event with callback.

Parameters
umdStateThe state to wait for until it occurs. One of SceUmdDiscStates.
timeoutTimeout value in microseconds for the wait.
Returns
SCE_ERROR_OK, otherwise SCE_ERROR_ERRNO_INVALID_ARGUMENT if the given UMD state isn't one of the following: SCE_UMD_MEDIA_OUT, SCE_UMD_MEDIA_IN, SCE_UMD_NOT_READY, SCE_UMD_READY, SCE_UMD_READABLE Other errors indicate a thread synchronization error.

◆ sceUmdCancelWaitDriveStat()

s32 sceUmdCancelWaitDriveStat ( void  )

Cancel a wait for a UMD drive status event.

Returns
SCE_ERROR_OK on success, otherwise less than 0.

◆ sceUmdReplaceProhibit()

s32 sceUmdReplaceProhibit ( void  )

Prohibit UMD disc being replaced.

Returns
SCE_ERROR_OK on success, otherwise less than 0.

◆ sceUmdReplacePermit()

s32 sceUmdReplacePermit ( void  )

Permit UMD disc being replaced.

Returns
SCE_ERROR_OK on success, otherwise less than 0.

◆ sceUmdUseUMDInMsUsbWlan()

s32 sceUmdUseUMDInMsUsbWlan ( void  )

Unknown.

Returns
SCE_ERROR_OK on success, otherwise less than 0.

◆ sceUmdUnuseUMDInMsUsbWlan()

s32 sceUmdUnuseUMDInMsUsbWlan ( void  )

Unknown.

Returns
SCE_ERROR_OK on success, otherwise less than 0.