vitasdk
Documentation of the vitasdk
vshbridge.h
Go to the documentation of this file.
1 
6 #ifndef _PSP2_VSHBRIDGE_H_
7 #define _PSP2_VSHBRIDGE_H_
8 
10 #include <psp2/types.h>
11 #include <psp2/kernel/modulemgr.h>
12 
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
16 
17 typedef enum SceVshMountId {
18  SCE_VSH_MOUNT_SD0 = 0x00100,
19  SCE_VSH_MOUNT_OS0 = 0x00200,
20  SCE_VSH_MOUNT_VS0 = 0x00300,
21  SCE_VSH_MOUNT_VD0 = 0x00400,
22  SCE_VSH_MOUNT_TM0 = 0x00500,
23  SCE_VSH_MOUNT_UR0 = 0x00600,
24  SCE_VSH_MOUNT_UD0 = 0x00700,
25  SCE_VSH_MOUNT_UX0 = 0x00800,
26  SCE_VSH_MOUNT_GRO0 = 0x00900,
27  SCE_VSH_MOUNT_GRW0 = 0x00A00,
28  SCE_VSH_MOUNT_SA0 = 0x00B00,
29  SCE_VSH_MOUNT_PD0 = 0x00C00,
30  SCE_VSH_MOUNT_IMC0 = 0x00D00,
31  SCE_VSH_MOUNT_XMC0 = 0x00E00,
32  SCE_VSH_MOUNT_UMA0 = 0x00F00,
33  SCE_VSH_MOUNT_LMA0 = 0x10000,
34  SCE_VSH_MOUNT_LMB0 = 0x20000,
35  SCE_VSH_MOUNT_MFA0 = 0x50000,
36  SCE_VSH_MOUNT_MFB0 = 0x60000,
38 
45 
54 
55 int _vshSblAimgrGetConsoleId(char CID[32]);
56 
65 SceUID _vshKernelSearchModuleByName(const char *module_name, const void *buffer);
66 
77 int _vshIoMount(SceVshMountId id, const char *path, int permission, void *buf);
78 
93 int vshIoUmount(SceVshMountId id, int force, int unk2, int unk3);
94 
98 
105 int vshIdStorageReadLeaf(SceSize leafnum, void *buf);
106 
115 int vshIdStorageWriteLeaf(SceSize leafnum, const void *buf);
116 
126 int _vshNpDrmEbootSigVerify(const char *eboot_pbp_path, const char *eboot_signature, char** eboot_signature_header);
127 
137 int _vshNpDrmPspEbootVerify(const char *eboot_pbp_path, const char *eboot_signature, char** eboot_signature_header);
138 
148 int _vshNpDrmPspEbootSigGen(const char *eboot_pbp_path, const void *eboot_sha256, void *eboot_signature);
149 
159 int _vshNpDrmEbootSigConvert(const char *eboot_pbp_path, const void* old_eboot_signature, void* new_eboot_signature);
160 
161 
172 int _vshNpDrmEbootSigGenPsp(const char *eboot_pbp_path, const void* eboot_sha256, void *eboot_signature, int *sw_version);
173 
174 
185 int _vshNpDrmEbootSigGenPs1(const char *eboot_pbp_path, const void *eboot_sha256, void *eboot_signature, int *sw_version);
186 
197 int _vshNpDrmEbootSigGenMultiDisc(const char *eboot_pbp_path, const void *sce_discinfo, void *eboot_signature, int *sw_version);
198 
208 
210 
215 
218 
221 
224 
226 
227 #ifdef __cplusplus
228 }
229 #endif
230 
231 #endif /* _PSP2_VSHBRIDGE_H_ */
void * buffer
Definition: bt.h:6
Definition: modulemgr.h:108
Definition: msif.h:16
unsigned int SceSize
Definition: types.h:56
int SceUID
UIDs are used to describe many different kernel objects.
Definition: types.h:90
uint32_t SceUInt32
Definition: types.h:45
int vshSblAimgrIsDEX(void)
int vshIoUmount(SceVshMountId id, int force, int unk2, int unk3)
Unmount a partition.
int vshRemovableMemoryGetCardInsertState(void)
int _vshNpDrmPspEbootVerify(const char *eboot_pbp_path, const char *eboot_signature, char **eboot_signature_header)
Verify an older 0x100 byte eboot.pbp signature "__sce_ebootpbp" from firmware <2.00.
int vshIdStorageWriteLeaf(SceSize leafnum, const void *buf)
int _vshSblGetSystemSwVersion(SceKernelFwInfo *data)
Gets real system firmware information.
int vshSblSsIsDevelopmentMode(void)
int vshIdStorageIsFormatted(void)
int vshIdStorageIsReadOnly(void)
int _vshNpDrmEbootSigConvert(const char *eboot_pbp_path, const void *old_eboot_signature, void *new_eboot_signature)
Convert an older 0x100 byte eboot.pbp signature "__sce_ebootpbp" to a 0x200 byte one used in firmware...
int _vshNpDrmEbootSigVerify(const char *eboot_pbp_path, const char *eboot_signature, char **eboot_signature_header)
Verify a eboot.pbp signature "__sce_ebootpbp".
int _vshNpDrmEbootSigGenPs1(const char *eboot_pbp_path, const void *eboot_sha256, void *eboot_signature, int *sw_version)
Generate eboot.pbp signature "__sce_ebootpbp" for a single-disc PS1 game.
int vshSysconIsIduMode(void)
int vshSysconHasWWAN(void)
int _vshSblAimgrGetSMI(SceUInt32 *info)
Get service/manufacturing information (factory/minimum firmware).
int _vshNpDrmEbootSigGenPsp(const char *eboot_pbp_path, const void *eboot_sha256, void *eboot_signature, int *sw_version)
Generate eboot.pbp signature "__sce_ebootpbp" for a PSP game.
int vshSysconIsDownLoaderMode(void)
int vshSysconIsShowMode(void)
int vshSblAimgrIsCEX(void)
int vshSblAimgrIsVITA(void)
int vshSblAimgrIsDolce(void)
int vshIdStorageReadLeaf(SceSize leafnum, void *buf)
SceVshMountId
Definition: vshbridge.h:17
int vshSysconIsMCEmuCapable(void)
int vshSblAimgrIsGenuineVITA(void)
int _vshSblAimgrGetConsoleId(char CID[32])
int _vshIoMount(SceVshMountId id, const char *path, int permission, void *buf)
Mount a partition.
int vshSysconShowModeClear(void)
int vshSblAimgrIsTool(void)
SceUID _vshKernelSearchModuleByName(const char *module_name, const void *buffer)
Check if a module is loaded.
int _vshNpDrmEbootSigGenMultiDisc(const char *eboot_pbp_path, const void *sce_discinfo, void *eboot_signature, int *sw_version)
Generate eboot.pbp signature "__sce_discinfo" for a multi-disc PS1 game.
int vshMsifGetMsInfo(SceMsInfo *info)
int vshSblAimgrIsGenuineDolce(void)
int vshSysconIduModeSet(void)
int vshMemoryCardGetCardInsertState(void)
int vshSblAimgrIsTest(void)
int vshSysconShowModeSet(void)
int vshIdStorageIsDirty(void)
int vshSysconIduModeClear(void)
int _vshNpDrmPspEbootSigGen(const char *eboot_pbp_path, const void *eboot_sha256, void *eboot_signature)
Generate an older 0x100 byte eboot.pbp signature "__sce_ebootpbp" for a PSP game - this is unused in ...
@ SCE_VSH_MOUNT_OS0
Definition: vshbridge.h:19
@ SCE_VSH_MOUNT_XMC0
Definition: vshbridge.h:31
@ SCE_VSH_MOUNT_UD0
Definition: vshbridge.h:24
@ SCE_VSH_MOUNT_MFB0
Definition: vshbridge.h:36
@ SCE_VSH_MOUNT_SD0
Definition: vshbridge.h:18
@ SCE_VSH_MOUNT_TM0
Definition: vshbridge.h:22
@ SCE_VSH_MOUNT_LMA0
Definition: vshbridge.h:33
@ SCE_VSH_MOUNT_MFA0
Definition: vshbridge.h:35
@ SCE_VSH_MOUNT_LMB0
Definition: vshbridge.h:34
@ SCE_VSH_MOUNT_UMA0
Definition: vshbridge.h:32
@ SCE_VSH_MOUNT_GRO0
Definition: vshbridge.h:26
@ SCE_VSH_MOUNT_SA0
Definition: vshbridge.h:28
@ SCE_VSH_MOUNT_VD0
Definition: vshbridge.h:21
@ SCE_VSH_MOUNT_PD0
Definition: vshbridge.h:29
@ SCE_VSH_MOUNT_IMC0
Definition: vshbridge.h:30
@ SCE_VSH_MOUNT_UX0
Definition: vshbridge.h:25
@ SCE_VSH_MOUNT_GRW0
Definition: vshbridge.h:27
@ SCE_VSH_MOUNT_UR0
Definition: vshbridge.h:23
@ SCE_VSH_MOUNT_VS0
Definition: vshbridge.h:20