uOFW
Reverse engineered PSP kernel 6.60.
Data Structures | Enumerations | Functions
Init For Kernel
Module Manager

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  SceInitApiType {
  SCE_INIT_APITYPE_UNK0x100 = 0x100, SCE_INIT_APITYPE_GAME_EBOOT = 0x110, SCE_INIT_APITYPE_GAME_BOOT = 0x111, SCE_INIT_APITYPE_EMU_EBOOT_MS = 0x112,
  SCE_INIT_APITYPE_EMU_BOOT_MS = 0x113, SCE_INIT_APITYPE_EMU_EBOOT_EF = 0x114, SCE_INIT_APITYPE_EMU_BOOT_EF = 0x115, SCE_INIT_APITYPE_NPDRM_MS = 0x116,
  SCE_INIT_APITYPE_NPDRM_EF = 0x118, SCE_INIT_APITYPE_DISC = 0x120, SCE_INIT_APITYPE_DISC_UPDATER = 0x121, SCE_INIT_APITYPE_DISC_DEBUG = 0x122,
  SCE_INIT_APITYPE_DISC_EMU_MS1 = 0x123, SCE_INIT_APITYPE_DISC_EMU_MS2 = 0x124, SCE_INIT_APITYPE_DISC_EMU_EF1 = 0x125, SCE_INIT_APITYPE_DISC_EMU_EF2 = 0x126,
  SCE_INIT_APITYPE_USBWLAN = 0x130, SCE_INIT_APITYPE_USBWLAN_DEBUG = 0x131, SCE_INIT_APITYPE_UNK = 0x132, SCE_INIT_APITYPE_UNK_DEBUG = 0x133,
  SCE_INIT_APITYPE_MS1 = 0x140, SCE_INIT_APITYPE_MS2 = 0x141, SCE_INIT_APITYPE_MS3 = 0x142, SCE_INIT_APITYPE_MS4 = 0x143,
  SCE_INIT_APITYPE_MS5 = 0x144, SCE_INIT_APITYPE_MS6 = 0x145, SCE_INIT_APITYPE_EF1 = 0x151, SCE_INIT_APITYPE_EF2 = 0x152,
  SCE_INIT_APITYPE_EF3 = 0x153, SCE_INIT_APITYPE_EF4 = 0x154, SCE_INIT_APITYPE_EF5 = 0x155, SCE_INIT_APITYPE_EF6 = 0x156,
  SCE_INIT_APITYPE_UNK_GAME1 = 0x160, SCE_INIT_APITYPE_UNK_GAME2 = 0x161, SCE_INIT_APITYPE_MLNAPP_MS = 0x170, SCE_INIT_APITYPE_MLNAPP_EF = 0x171,
  SCE_INIT_APITYPE_KERNEL_1 = 0x200, SCE_INIT_APITYPE_VSH_1 = 0x210, SCE_INIT_APITYPE_VSH_2 = 0x220, SCE_INIT_APITYPE_KERNEL_REBOOT = 0x300,
  SCE_INIT_APITYPE_DEBUG = 0x420
}

Functions

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

Detailed Description

The InitForKernel library.


Enumeration Type Documentation

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.

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).

API types of an executable.

Enumerator:
SCE_INIT_APITYPE_UNK0x100 

Unknown.

SCE_INIT_APITYPE_GAME_EBOOT 

GAME EBOOT.

SCE_INIT_APITYPE_GAME_BOOT 

GAME BOOT.

SCE_INIT_APITYPE_EMU_EBOOT_MS 

Emulated EBOOT Memory-Stick.

SCE_INIT_APITYPE_EMU_BOOT_MS 

Emulated BOOT Memory-Stick.

SCE_INIT_APITYPE_EMU_EBOOT_EF 

Emulated EBOOT EF.

SCE_INIT_APITYPE_EMU_BOOT_EF 

Emulated BOOT EF.

SCE_INIT_APITYPE_NPDRM_MS 

NP-DRM Memory-Stick.

SCE_INIT_APITYPE_NPDRM_EF 

NP-DRM EF.

SCE_INIT_APITYPE_DISC 

Executable on a disc.

SCE_INIT_APITYPE_DISC_UPDATER 

Updater executable on a disc.

SCE_INIT_APITYPE_DISC_DEBUG 

Disc debugger.

SCE_INIT_APITYPE_DISC_EMU_MS1 

NP-9660 game.

SCE_INIT_APITYPE_DISC_EMU_MS2 

Unknown.

SCE_INIT_APITYPE_DISC_EMU_EF1 

Unknown.

SCE_INIT_APITYPE_DISC_EMU_EF2 

Unknown.

SCE_INIT_APITYPE_USBWLAN 

Game-sharing executable.

SCE_INIT_APITYPE_USBWLAN_DEBUG 

Unknown.

SCE_INIT_APITYPE_UNK 

Unknown.

SCE_INIT_APITYPE_UNK_DEBUG 

Unknown.

SCE_INIT_APITYPE_MS1 

Unknown.

SCE_INIT_APITYPE_MS2 

Unknown.

SCE_INIT_APITYPE_MS3 

Unknown.

SCE_INIT_APITYPE_MS4 

Applications (i.e. Comic Reader)

SCE_INIT_APITYPE_MS5 

Playstation One executable.

SCE_INIT_APITYPE_MS6 

Unknown.

SCE_INIT_APITYPE_EF1 

Unknown.

SCE_INIT_APITYPE_EF2 

Unknown.

SCE_INIT_APITYPE_EF3 

Unknown.

SCE_INIT_APITYPE_EF4 

Unknown.

SCE_INIT_APITYPE_EF5 

Unknown.

SCE_INIT_APITYPE_EF6 

Unknown.

SCE_INIT_APITYPE_UNK_GAME1 

Unknown.

SCE_INIT_APITYPE_UNK_GAME2 

Unknown.

SCE_INIT_APITYPE_MLNAPP_MS 

Unknown.

SCE_INIT_APITYPE_MLNAPP_EF 

Unknown.

SCE_INIT_APITYPE_KERNEL_1 

Unknown.

SCE_INIT_APITYPE_VSH_1 

Exit Game.

SCE_INIT_APITYPE_VSH_2 

Exit VSH.

SCE_INIT_APITYPE_KERNEL_REBOOT 

Kernel reboot.

SCE_INIT_APITYPE_DEBUG 

Debug.


Function Documentation

s32 sceKernelBootFrom ( void  )

Get the boot medium of the executable calling this function.

Returns:
The boot medium type. One of SceBootMediumType.
s32 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.
s32 sceKernelApplicationType ( void  )

Get the application type of a module.

Returns:
The application type. One of SceApplicationType.
s32 sceKernelInitApitype ( void  )

Get the API type of a module.

Returns:
The API type. One of SceInitApiType.
u32 sceKernelSetInitCallback ( SceKernelBootCallbackFunction  bootCBFunc,
u32  flag,
s32 *  status 
)

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.
statusThe 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.
u32 sceKernelStartIntrLogging ( void  )

Disabled debug function.

Returns:
SCE_ERROR_OK.

Disabled debug function.

Returns:
SCE_ERROR_OK.
u32 sceKernelShowIntrMaskTime ( void  )

Disabled debug function.

Returns:
SCE_ERROR_OK.

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.
char* sceKernelInitFileName ( void  )

Get the file name of the currently booted executable.

Returns:
The file name.
void* sceKernelInitDiscImage ( void  )

Get the disc image of the currently booted executable.

Returns:
The disc image. Return null if there is no disc image.
void* sceKernelInitParamSfo ( SceSize *  size)

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

Parameters:
sizeThe size of the paramSfo block.
Returns:
A pointer to the head address of the paramSfo block.
s32 sceKernelInitLptSummary ( void  )

Get the LPT summary. Unknown.

Returns:
The LPT summary of the system.
SceUID sceKernelGetChunk ( SceUID  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.
SceUID sceKernelRegisterChunk ( SceUID  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.
SceUID 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.
 All Data Structures Files Variables