pspinit.h

Go to the documentation of this file.
00001 /*
00002  * PSP Software Development Kit - http://www.pspdev.org
00003  * -----------------------------------------------------------------------
00004  * Licensed under the BSD license, see LICENSE in PSPSDK root for details.
00005  *
00006  * pspinit.h - Interface to InitForKernel.
00007  *
00008  * Copyright (c) 2007 moonlight
00009  *
00010  * $Id: pspinit.h 2433 2008-10-15 10:00:27Z iwn $
00011  */
00012 #ifndef __PSPINIT_H__
00013 #define __PSPINIT_H__
00014 
00015 enum PSPBootFrom
00016 {
00017         PSP_BOOT_FLASH = 0, /* ? */
00018         PSP_BOOT_DISC = 0x20,
00019         PSP_BOOT_MS = 0x40,
00020 };
00021 
00022 enum PSPInitApitype
00023 {
00024         PSP_INIT_APITYPE_DISC = 0x120,
00025         PSP_INIT_APITYPE_DISC_UPDATER = 0x121,
00026         PSP_INIT_APITYPE_MS1 = 0x140,
00027         PSP_INIT_APITYPE_MS2 = 0x141,
00028         PSP_INIT_APITYPE_MS3 = 0x142,
00029         PSP_INIT_APITYPE_MS4 = 0x143,
00030         PSP_INIT_APITYPE_MS5 = 0x144,
00031         PSP_INIT_APITYPE_VSH1 = 0x210, /* ExitGame */
00032         PSP_INIT_APITYPE_VSH2 = 0x220, /* ExitVSH */
00033 };
00034 
00035 enum PSPKeyConfig
00036 {
00037         PSP_INIT_KEYCONFIG_VSH = 0x100,
00038         PSP_INIT_KEYCONFIG_GAME = 0x200,
00039         PSP_INIT_KEYCONFIG_POPS = 0x300,
00040 };
00041 
00047 int sceKernelInitApitype();
00048 
00054 char *sceKernelInitFileName();
00055 
00062 int sceKernelBootFrom();
00063 
00069 int InitForKernel_7233B5BC();
00070 
00071 #define sceKernelInitKeyConfig InitForKernel_7233B5BC
00072 
00073 #endif
00074