vitasdk
Documentation of the vitasdk
kbl.h
Go to the documentation of this file.
1 
6 #ifndef _PSP2KERN_KERNEL_KBL_KBL_H_
7 #define _PSP2KERN_KERNEL_KBL_KBL_H_
8 
10 #include <psp2kern/types.h>
13 
14 #ifdef __cplusplus
15 extern "C" {
16 #endif
17 
18 typedef struct SceKblParam { // size is 0x100 or 0x200. must 0x200 on 3.60.
19  uint16_t version;
20  uint16_t size;
23  uint32_t unk_C;
24  uint32_t unk_10;
25  uint8_t unk_14[0xC];
26  uint8_t qa_flags[0x10];
27  uint8_t boot_flags[0x10];
30  uint32_t unk_68;
39  uint32_t unk_AC;
40  uint8_t session_id[0x10];
41 
42  /*
43  * poweroff factor
44  * 0x00000001:bsod reboot(or other serious factors)
45  * 0x00000010:bsod poweroff
46  * 0x00000400:always?
47  * 0x00020000:maybe low battery
48  */
49  uint32_t unk_C0;
50  uint32_t wakeup_factor;
51  uint32_t unk_C8; // usb_info
52  uint32_t hold_ctrl;
54  uint32_t hardware_info;
55  uint32_t boot_type_indicator_2; // may power_info 0x4:always? 0x8:AC connected
56  uint32_t unk_DC;
57  uint32_t unk_E0; // if resume, always 0
58  uint32_t unk_E4;
59  uint8_t hardware_flags[0x10];
60  uint32_t bootldr_revision;
61  uint32_t magic;
62  uint8_t coredump_session_key[0x20];
63  uint8_t unused[0xE0];
64 } __attribute__((packed)) SceKblParam;
66 
67 #ifdef __cplusplus
68 }
69 #endif
70 
71 #endif /* _PSP2KERN_KERNEL_KBL_KBL_H_ */
Definition: dipsw.h:16
uint32_t unk_C0
Definition: kbl.h:49
SceOpenPsId openpsid
Definition: kbl.h:32
uint32_t __stack_chk_guard
Definition: kbl.h:38
uint32_t resume_context_addr
Definition: kbl.h:53
uint32_t unk_DC
Definition: kbl.h:56
ScePsCode pscode
Definition: kbl.h:37
SceKernelPARange context_auth_sm
Definition: kbl.h:34
uint8_t coredump_session_key[0x20]
Definition: kbl.h:62
uint8_t unused[0xE0]
Definition: kbl.h:63
uint32_t hardware_info
Definition: kbl.h:54
uint32_t unk_E4
Definition: kbl.h:58
SceKernelPARange secure_kernel
Definition: kbl.h:33
uint32_t boot_type_indicator_2
Definition: kbl.h:55
struct SceKblParam __attribute__((packed)) SceKblParam
SceKernelPARange dram
Definition: kbl.h:29
uint32_t current_fw_version
Definition: kbl.h:21
SceDipsw dipsw
Definition: kbl.h:28
VITASDK_BUILD_ASSERT_EQ(0x200, SceKblParam)
uint32_t unk_10
Definition: kbl.h:24
uint8_t qa_flags[0x10]
Definition: kbl.h:26
uint32_t unk_E0
Definition: kbl.h:57
uint8_t session_id[0x10]
Definition: kbl.h:40
uint32_t boot_type_indicator_1
Definition: kbl.h:31
uint8_t unk_14[0xC]
Definition: kbl.h:25
uint32_t magic
Definition: kbl.h:61
uint32_t unk_C
Definition: kbl.h:23
uint32_t wakeup_factor
Definition: kbl.h:50
uint16_t size
Definition: kbl.h:20
uint32_t unk_68
Definition: kbl.h:30
uint32_t hold_ctrl
Definition: kbl.h:52
uint32_t bootldr_revision
Definition: kbl.h:60
uint32_t factory_fw_version
Definition: kbl.h:22
uint32_t unk_C8
Definition: kbl.h:51
uint16_t version
Definition: kbl.h:19
uint32_t unk_AC
Definition: kbl.h:39
SceKernelPARange prog_rvk
Definition: kbl.h:36
uint8_t hardware_flags[0x10]
Definition: kbl.h:59
SceKernelPARange kprx_auth_sm
Definition: kbl.h:35
uint8_t boot_flags[0x10]
Definition: kbl.h:27
Definition: kbl.h:18
Definition: ssmgr.h:32
Definition: ssmgr.h:37
Definition: types.h:122