uOFW
Reverse engineered PSP kernel 6.60.
Loading...
Searching...
No Matches
Data Structures | Macros | Functions
Chkreg Module

Data Structures

struct  ScePsCode
 

Macros

#define SCE_CHKREG_PSP_MODEL_UNKNOWN_SERIES   0
 
#define SCE_CHKREG_PSP_MODEL_1000_SERIES   1
 
#define SCE_CHKREG_PSP_MODEL_2000_SERIES   2
 
#define SCE_CHKREG_PSP_MODEL_3000_SERIES   3
 
#define SCE_CHKREG_PSP_MODEL_N1000_E1000_SERIES   5
 

Functions

s32 sceChkregGetPsCode (ScePsCode *pPsCode)
 
s32 sceChkregCheckRegion (u32 umdMediaType, u32 regionId)
 
s32 sceChkreg_driver_9C6E1D34 (const u8 *arg0, u8 *pHash)
 
s32 sceChkregGetPsFlags (u8 *pPsFlags, s32 index)
 Gets the PSP system's Ps flags.
 
s32 sceChkregGetPspModel (void)
 

Detailed Description

Region check and ConsoleId service.

Macro Definition Documentation

◆ SCE_CHKREG_PSP_MODEL_UNKNOWN_SERIES

#define SCE_CHKREG_PSP_MODEL_UNKNOWN_SERIES   0

The PSP model belongs to a PSP series which could not be identified.

◆ SCE_CHKREG_PSP_MODEL_1000_SERIES

#define SCE_CHKREG_PSP_MODEL_1000_SERIES   1

The PSP model belongs to the PSP-1000 series.

◆ SCE_CHKREG_PSP_MODEL_2000_SERIES

#define SCE_CHKREG_PSP_MODEL_2000_SERIES   2

The PSP model belongs to the PSP-2000 series.

◆ SCE_CHKREG_PSP_MODEL_3000_SERIES

#define SCE_CHKREG_PSP_MODEL_3000_SERIES   3

The PSP model belongs to the PSP-3000 series.

◆ SCE_CHKREG_PSP_MODEL_N1000_E1000_SERIES

#define SCE_CHKREG_PSP_MODEL_N1000_E1000_SERIES   5

The PSP model belongs to either the PSP-N1000 series or the PSP-E1000 series.

Function Documentation

◆ sceChkregGetPsCode()

s32 sceChkregGetPsCode ( ScePsCode pPsCode)

Gets the PSP system's PS code.

Parameters
pPsCodePointer to a ScePsCode variable which is to receive the PS code.
Returns
0 on success, otherwise < 0.

◆ sceChkregCheckRegion()

s32 sceChkregCheckRegion ( u32  umdMediaType,
u32  regionId 
)

Checks if the UMD with the given media type can be started for the specified region on the PSP system.

Parameters
umdMediaTypeThe type of the UMD medium to check for. Typically GAME, VIDEO or AUDIO.
regionIdThe region to check for. One of the SCE_PSP_REGION_* values.
Returns
SCE_TRUE if the UMD with the given media type and the specified region can be played on the PSP system, SCE_FALSE otherwise.
< on error.

◆ sceChkreg_driver_9C6E1D34()

s32 sceChkreg_driver_9C6E1D34 ( const u8 *  arg0,
u8 *  pHash 
)

Unknown.

Parameters
arg0Unknown. Could be a pointer to a PspHeader.
pHashA hash value.
Returns
SCE_ERROR_OK on success.
< on error.
Remarks
Outside of the corresponding VSH_bridge wrapper API (sceVshBridge_81706DA7) no call to this API has been found yet. And the wrapping API also does not appear to be called anywhere. The wrapping API has been added in FW 2.00.

◆ sceChkregGetPsFlags()

s32 sceChkregGetPsFlags ( u8 *  pPsFlags,
s32  index 
)

Gets the PSP system's Ps flags.

The Ps flags can be used to check for special hardware configurations like whether the QA flag is set. If, for example, the QA flag is set, this will enable a special menu point in the XMB called "Debug Settings" which can be used to change PSP system parameters (such as the available RAM (32MB/64MB), the WLAN coexistency max clock frequency or whether the Cross or Circle button acts as the [enter] button).

The Ps flags can only be successfully obtained on certain PSP systems (such as test/development hardware). On retail PSP systems, an error is returned.

Parameters
pPsFlagsPointer to an u8 variable which is to receive the Ps flags.
indexSpecify SCE_CHKREG_PS_FLAGS_INDEX_DEFAULT.
Returns
0 on success.
SCE_ERROR_INVALID_VALUE The PSP system is not allowed to obtain its Ps flags. This is typically the case for retail PSP systems.
< 0 on error.

◆ sceChkregGetPspModel()

s32 sceChkregGetPspModel ( void  )

Gets the PSP series this PSP model belongs to.

Returns
The PSP series on success, otherwise < 0.