6#ifndef _PSP2_VSHBRIDGE_H_
7#define _PSP2_VSHBRIDGE_H_
#define VITASDK_BUILD_ASSERT_EQ(__size__, __name__)
Definition build_utils.h:13
void * buffer
Definition bt.h:6
Describes a single directory entry.
Definition iofilemgr.h:147
Structure to hold the status information about a file.
Definition iofilemgr.h:127
ScePsCode pscode
Definition kbl.h:18
SceUID pid
Definition debug.h:1
Definition modulemgr.h:130
Eight-byte platform security code returned in host byte order.
Definition sblssmgr.h:46
Parameters used to create the 0x200-byte CMA account pass phrase.
Definition sblssmgr.h:62
Opaque 32-byte visible identifier returned by aimgr_sm command 8.
Definition sblssmgr.h:17
int ScePID
Process ID.
Definition types.h:91
int SceBool
Definition types.h:59
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
uint8_t SceUInt8
Definition types.h:36
int _vshSblAimgrGetPscode(ScePsCode *pscode)
Get the primary platform security code.
int vshSblAimgrIsDEX(void)
SceUInt32 reserved[2]
Ignored on FW 3.60.
Definition vshbridge.h:271
int vshIoUmount(SceVshMountId id, int force, int unk2, int unk3)
Unmount a partition.
SceUInt32 reserved[2]
Definition vshbridge.h:156
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 _vshKernelGetCompiledSdkVersionByPid(ScePID pid, SceUInt32 *sdk_version)
Get the compiled SDK version of a process.
int _vshSblGetSystemSwVersion(SceKernelFwInfo *data)
Gets real system firmware information.
SceUInt32 download_status
Set from SceShell's 4-bit state: 7 maps to 2, 8 to 1, 9 to 3, 0xC to 4, and every other value to 0.
Definition vshbridge.h:256
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 vshSblUtMgrHasNpTestFlag(void)
Check whether the NP-test flag is set.
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 _vshIoDread(SceUID fd, SceIoDirent *dir)
Read the next directory entry.
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)
SceUInt8 * document_key
Destination for the 16-byte document key.
Definition vshbridge.h:276
int _vshIoGetstat(const char *file, SceIoStat *stat, const sceIoGetstatOpt *opt)
Get path metadata.
int vshSysconIsShowMode(void)
int vshSblUtMgrHasComTestFlag(void)
Check whether the communication-test flag is set.
SceUID vshIoCreateMountEvent(SceVshMountId mount_id, SceUInt32 event_bits)
Create a mount event.
int vshSblUtMgrHasStoreFlag(void)
Check whether the store flag is set.
int vshSblAimgrIsCEX(void)
SceSize document_data_size
Number of bytes to copy from the document data, at most 0x200.
Definition vshbridge.h:277
char identifier[0x30]
NUL-terminated BGDL identifier; AppMgr treats bytes 7 through 15 as a title ID.
Definition vshbridge.h:261
int vshSblAimgrIsVITA(void)
int vshSblAimgrIsDolce(void)
int _vshAppMgrAcInstGetAcdirParam(const char title_id[0x10], const char addcont_id[0x14], SceAppMgrAcInstResult *result)
Get add-on-content installation data.
int vshIdStorageReadLeaf(SceSize leafnum, void *buf)
SceVshMountId
Definition vshbridge.h:23
int _vshAppMgrCloudDataCreateHeader(const SceUInt8 setup_key[0x18], SceSize data_size, const SceUInt8 digest[0x20], SceUInt8 header[0x170])
Create and sign a cloud-data header.
SceVshAppMgrBgdlQueueStatusEntry entries[32]
Definition vshbridge.h:266
int vshSysconIsMCEmuCapable(void)
int vshSblAimgrIsGenuineVITA(void)
int _vshAppMgrCheckPfsMounted(const char *path, const SceVshAppMgrCheckPfsMountedOpt *opt)
Check whether a PFS path is mounted.
int _vshIoMount(SceVshMountId id, const char *path, int permission, void *buf)
Mount a partition.
int vshSysconShowModeClear(void)
SceUInt32 reserved[2]
Ignored on FW 3.60.
Definition vshbridge.h:251
int vshSblAimgrIsTool(void)
int vshKernelSendSysEvent(SceUInt32 event_id)
Notify the kernel that SceShell is ready.
int _vshSblAimgrGetPscode2(ScePsCode *pscode)
Get the secondary platform security code.
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 _vshSblAimgrGetVisibleId(SceVisibleId *visible_id)
Get the 0x20-byte visible ID when the system is in product mode.
int vshMsifGetMsInfo(SceMsInfo *info)
int vshSblAimgrIsGenuineDolce(void)
int vshSysconIduModeSet(void)
int _vshSblAuthMgrVerifySpsfo(const char *path, void *verified_data, SceSize verified_data_capacity, const SceVshSblAuthMgrVerifySpsfoOpt *opt)
Verify a signed PARAM.SFO file and copy its embedded payload.
int _vshSblAimgrGetConsoleId(char console_id[0x10])
Get the console identifier.
int _vshSblSsCreatePassPhrase(const SceSblSsCreatePassPhraseParam *args, void *pass_phrase, const SceVshSblSsCreatePassPhraseOpt *opt)
Create a 0x200-byte account pass phrase.
SceSize pass_phrase_size
Number of pass-phrase bytes to copy, at most 0x200.
Definition vshbridge.h:283
SceUInt32 reserved[2]
Ignored on FW 3.60.
Definition vshbridge.h:278
int vshMemoryCardGetCardInsertState(void)
int vshSblAimgrIsTest(void)
int _vshSysconGetManufacturesStatus(SceUInt32 *manufacturing_status)
Get the manufacturing-status value.
int _vshIoChstat(const char *file, const SceIoStat *stat, unsigned int bits, const sceIoChstatOpt *opt)
Change selected attributes of a path.
int vshSysconShowModeSet(void)
int vshIdStorageIsDirty(void)
int _vshAppMgrBgdlSetQueueStatus(const SceVshAppMgrBgdlQueueStatus *queue_status)
Update the background-download queue status table.
SceUInt32 reserved
Ignored on FW 3.60.
Definition vshbridge.h:284
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 ...
SceBool unknown_boolean
Set for SceShell state 9, or when an unidentified source word is zero, flags 0x300 are clear,...
Definition vshbridge.h:258
int _vshNpDrmGetLegacyDocKey(const SceUInt8 rif_data[0x200], const void *document_data, SceSize document_data_size, const SceVshNpDrmGetLegacyDocKeyOpt *opt)
Derive the 16-byte key for a legacy document.
@ SCE_VSH_MOUNT_OS0
Definition vshbridge.h:25
@ SCE_VSH_MOUNT_XMC0
Definition vshbridge.h:37
@ SCE_VSH_MOUNT_UD0
Definition vshbridge.h:30
@ SCE_VSH_MOUNT_MFB0
Definition vshbridge.h:42
@ SCE_VSH_MOUNT_SD0
Definition vshbridge.h:24
@ SCE_VSH_MOUNT_TM0
Definition vshbridge.h:28
@ SCE_VSH_MOUNT_LMA0
Definition vshbridge.h:39
@ SCE_VSH_MOUNT_MFA0
Definition vshbridge.h:41
@ SCE_VSH_MOUNT_LMB0
Definition vshbridge.h:40
@ SCE_VSH_MOUNT_UMA0
Definition vshbridge.h:38
@ SCE_VSH_MOUNT_GRO0
Definition vshbridge.h:32
@ SCE_VSH_MOUNT_SA0
Definition vshbridge.h:34
@ SCE_VSH_MOUNT_VD0
Definition vshbridge.h:27
@ SCE_VSH_MOUNT_PD0
Definition vshbridge.h:35
@ SCE_VSH_MOUNT_IMC0
Definition vshbridge.h:36
@ SCE_VSH_MOUNT_UX0
Definition vshbridge.h:31
@ SCE_VSH_MOUNT_GRW0
Definition vshbridge.h:33
@ SCE_VSH_MOUNT_UR0
Definition vshbridge.h:29
@ SCE_VSH_MOUNT_VS0
Definition vshbridge.h:26
Definition vshbridge.h:265
Definition vshbridge.h:255
Definition vshbridge.h:250
FW 3.60 copies the entire option block but ignores its contents.
Definition vshbridge.h:155
Definition vshbridge.h:275
Definition vshbridge.h:270
Definition vshbridge.h:282