uOFW
Reverse engineered PSP kernel 6.60.
Loading...
Searching...
No Matches
Data Structures | Enumerations | Functions
Init For Kernel

Data Structures

struct  SceInit
 

Enumerations

enum  SceBootMediumType {
  SCE_INIT_BOOT_FLASH = 0 , SCE_INIT_BOOT_DISC = 0x20 , SCE_INIT_BOOT_USBWLAN = 0x30 , SCE_INIT_BOOT_MS = 0x40 ,
  SCE_INIT_BOOT_EF = 0x50 , SCE_INIT_BOOT_FLASH3 = 0x80
}
 
enum  SceApplicationType {
  SCE_INIT_APPLICATION_VSH = 0x100 , SCE_INIT_APPLICATION_UPDATER = 0x110 , SCE_INIT_APPLICATION_GAME = 0x200 , SCE_INIT_APPLICATION_POPS = 0x300 ,
  SCE_INIT_APPLICATION_APP = 0x400
}
 
enum  SceFileExecApiType {
}
 

Functions

u32 sceKernelBootFrom (void)
 
u32 InitForKernel_9D33A110 (void)
 
s32 sceKernelApplicationType (void)
 
s32 sceKernelInitApitype (void)
 
u32 sceKernelSetInitCallback (SceKernelBootCallbackFunction bootCBFunc, u32 flag, s32 *pStatus)
 
u32 sceKernelStartIntrLogging (void)
 
u32 sceKernelShowIntrHandlerInfo (void)
 
u32 sceKernelShowIntrMaskTime (void)
 
SceInitsceKernelQueryInitCB (void)
 
char * sceKernelInitFileName (void)
 
void * sceKernelInitDiscImage (void)
 
void * sceKernelInitParamSfo (SceSize *pSize)
 
s32 sceKernelInitLptSummary (void)
 
SceUID sceKernelGetChunk (s32 chunkId)
 
SceUID sceKernelRegisterChunk (s32 chunkId, SceUID blockId)
 
s32 sceKernelReleaseChunk (SceUID chunkId)
 

Detailed Description

The InitForKernel library.

Enumeration Type Documentation

◆ SceBootMediumType

The possible boot medium types for an executable.

Enumerator
SCE_INIT_BOOT_FLASH 

The executable was booted via Flash 0 (1, 2).

SCE_INIT_BOOT_DISC 

The executable was booted via a Disc medium.

SCE_INIT_BOOT_USBWLAN 

The executable was booted via a Game-sharing medium.

SCE_INIT_BOOT_MS 

The executable was booted via the Memory Stick medium.

SCE_INIT_BOOT_EF 

The executable was booted via an unknown medium.

SCE_INIT_BOOT_FLASH3 

The executable was booted via Flash 3.

◆ SceApplicationType

Application types of an executable.

Enumerator
SCE_INIT_APPLICATION_VSH 

The application is a VSH application (i.e. VSH modules).

SCE_INIT_APPLICATION_UPDATER 

The application is an updater.

SCE_INIT_APPLICATION_GAME 

The application is a PSP game.

SCE_INIT_APPLICATION_POPS 

The application is a Playstation One game.

SCE_INIT_APPLICATION_APP 

The application is a PSP application (i.e. Skype).

◆ SceFileExecApiType

API types of an executable.

Enumerator
SCE_EXEC_FILE_APITYPE_UNK100 

Unknown.

SCE_EXEC_FILE_APITYPE_GAME_EBOOT 

GAME EBOOT.

SCE_EXEC_FILE_APITYPE_GAME_BOOT 

GAME BOOT.

SCE_EXEC_FILE_APITYPE_EMU_EBOOT_MS 

Emulated EBOOT Memory-Stick.

SCE_EXEC_FILE_APITYPE_EMU_BOOT_MS 

Emulated BOOT Memory-Stick.

SCE_EXEC_FILE_APITYPE_EMU_EBOOT_EF 

Emulated EBOOT EF.

SCE_EXEC_FILE_APITYPE_EMU_BOOT_EF 

Emulated BOOT EF.

SCE_EXEC_FILE_APITYPE_NPDRM_MS 

NP-DRM Memory-Stick.

SCE_EXEC_FILE_APITYPE_UNK117 

Unknown.

SCE_EXEC_FILE_APITYPE_NPDRM_EF 

NP-DRM EF.

SCE_EXEC_FILE_APITYPE_UNK119 

Unknown.

SCE_EXEC_FILE_APITYPE_DISC 

Executable on a disc.

SCE_EXEC_FILE_APITYPE_DISC_UPDATER 

Updater executable on a disc.

SCE_EXEC_FILE_APITYPE_DISC_DEBUG 

Disc debugger.

SCE_EXEC_FILE_APITYPE_DISC_EMU_MS1 

NP-9660 game.

SCE_EXEC_FILE_APITYPE_DISC_EMU_MS2 

Unknown.

SCE_EXEC_FILE_APITYPE_DISC_EMU_EF1 

Unknown.

SCE_EXEC_FILE_APITYPE_DISC_EMU_EF2 

Unknown.

SCE_EXEC_FILE_APITYPE_USBWLAN 

Game-sharing executable.

SCE_EXEC_FILE_APITYPE_USBWLAN_DEBUG 

Unknown.

SCE_EXEC_FILE_APITYPE_UNK132 

Unknown.

SCE_EXEC_FILE_APITYPE_UNK133 

Unknown.

SCE_EXEC_FILE_APITYPE_MS1 

Unknown.

SCE_EXEC_FILE_APITYPE_MS2 

Unknown.

SCE_EXEC_FILE_APITYPE_MS3 

Unknown.

SCE_EXEC_FILE_APITYPE_MS4 

Applications (i.e. Comic Reader)

SCE_EXEC_FILE_APITYPE_MS5 

Playstation One executable.

SCE_EXEC_FILE_APITYPE_MS6 

Unknown.

SCE_EXEC_FILE_APITYPE_EF1 

Unknown.

SCE_EXEC_FILE_APITYPE_EF2 

Unknown.

SCE_EXEC_FILE_APITYPE_EF3 

Unknown.

SCE_EXEC_FILE_APITYPE_EF4 

Unknown.

SCE_EXEC_FILE_APITYPE_EF5 

Unknown.

SCE_EXEC_FILE_APITYPE_EF6 

Unknown.

SCE_EXEC_FILE_APITYPE_UNK160 

Unknown.

SCE_EXEC_FILE_APITYPE_UNK161 

Unknown.

SCE_EXEC_FILE_APITYPE_MLNAPP_MS 

Unknown.

SCE_EXEC_FILE_APITYPE_MLNAPP_EF 

Unknown.

SCE_EXEC_FILE_APITYPE_KERNEL_1 

Unknown.

SCE_EXEC_FILE_APITYPE_VSH_1 

Exit Game.

SCE_EXEC_FILE_APITYPE_VSH_2 

Exit VSH.

SCE_EXEC_FILE_APITYPE_KERNEL_REBOOT 

Kernel reboot.

SCE_EXEC_FILE_APITYPE_DEBUG 

Debug.

Function Documentation

◆ sceKernelBootFrom()

u32 sceKernelBootFrom ( void  )

Get the boot medium of the executable calling this function.

Returns
The boot medium type. One of SceBootMediumType.

◆ InitForKernel_9D33A110()

u32 InitForKernel_9D33A110 ( void  )

Get the boot medium of the executable calling this function. For PSP-GO only?

Returns
The boot medium type. One of SceBootMediumType.

◆ sceKernelApplicationType()

s32 sceKernelApplicationType ( void  )

Get the application type of a module.

Returns
The application type. One of SceApplicationType.

◆ sceKernelInitApitype()

s32 sceKernelInitApitype ( void  )

Get the API type of a module.

Returns
The API type. One of SceFileExecApiType.

◆ sceKernelSetInitCallback()

u32 sceKernelSetInitCallback ( SceKernelBootCallbackFunction  bootCBFunc,
u32  flag,
s32 *  pStatus 
)

Set a boot callback. Call this function during a module boot process.

Parameters
bootCBFuncThe boot callback function to execute once the module has been loaded by the Init module.
flagDefines the execute order of the callbacks. Pass 0 for earliest execution, 3 for latest. 1 and 2 are between these two. Pass 4 - 7 for execution after Init loaded all modules, again 4 is earliest, 7 is latest.
pStatusThe returned status of bootCBFunc in case it was executed directly.
Returns
SCE_ERROR_OK for directly executing the boot callback function. SCE_BOOT_CALLBACK_FUNCTION_QUEUED indicates boot callback function was enqueued into other existing boot callbacks and will be called when Init boots the rest of the system modules.

◆ sceKernelStartIntrLogging()

u32 sceKernelStartIntrLogging ( void  )

Disabled debug function.

Returns
SCE_ERROR_OK.

◆ sceKernelShowIntrHandlerInfo()

u32 sceKernelShowIntrHandlerInfo ( void  )

Disabled debug function.

Returns
SCE_ERROR_OK.

◆ sceKernelShowIntrMaskTime()

u32 sceKernelShowIntrMaskTime ( void  )

Disabled debug function.

Returns
SCE_ERROR_OK.

◆ sceKernelQueryInitCB()

SceInit * sceKernelQueryInitCB ( void  )

Retrieve Init's internal control block. This control block manages execution details of an executable, like its API type, its boot medium and its application type.

Returns
A pointer to Init's internal control block.

◆ sceKernelInitFileName()

char * sceKernelInitFileName ( void  )

Get the file name of the currently booted executable.

Returns
The file name.

◆ sceKernelInitDiscImage()

void * sceKernelInitDiscImage ( void  )

Get the disc image of the currently booted executable.

Returns
The disc image. Return null if there is no disc image.

◆ sceKernelInitParamSfo()

void * sceKernelInitParamSfo ( SceSize *  pSize)

Get information about a paramSfo block of a module to boot.

Parameters
pSizeThe size of the paramSfo block.
Returns
A pointer to the head address of the paramSfo block.

◆ sceKernelInitLptSummary()

s32 sceKernelInitLptSummary ( void  )

Get the LPT summary. Unknown.

Returns
The LPT summary of the system.

◆ sceKernelGetChunk()

SceUID sceKernelGetChunk ( s32  chunkId)

Get a chunk's memory block ID.

Parameters
chunkIdThe ID of the chunk which memory block ID you want to receive. Between 0 - 15.
Returns
The memory block ID on success (greater than or equal to 0) or SCE_ERROR_KERNEL_ILLEGAL_CHUNK_ID.

◆ sceKernelRegisterChunk()

SceUID sceKernelRegisterChunk ( s32  chunkId,
SceUID  blockId 
)

Register a chunk in the system.

Parameters
chunkIdThe ID of the chunk to hold the memory block ID. Between 0 - 15.
blockIdThe memory block ID to register.
Returns
The blockId stored into the chunk on success, otherwise SCE_ERROR_KERNEL_ILLEGAL_CHUNK_ID.

◆ sceKernelReleaseChunk()

s32 sceKernelReleaseChunk ( SceUID  chunkId)

Release a used chunk.

Parameters
chunkIdThe ID of the chunk to release. Between 0 -15.
Returns
The new value of the chunk, typically -1, on success, otherwise SCE_ERROR_KERNEL_ILLEGAL_CHUNK_ID.