vitasdk
Documentation of the vitasdk
vshbridge.h File Reference

Go to the source code of this file.

Data Structures

struct  SceVshNpDrmEbootSigOpt
 FW 3.60 copies the entire option block but ignores its contents. More...
 
struct  SceVshAppMgrCheckPfsMountedOpt
 
struct  SceVshAppMgrBgdlQueueStatusEntry
 
struct  SceVshAppMgrBgdlQueueStatus
 
struct  SceVshSblAuthMgrVerifySpsfoOpt
 
struct  SceVshNpDrmGetLegacyDocKeyOpt
 
struct  SceVshSblSsCreatePassPhraseOpt
 

Enumerations

enum  SceVshMountId {
  SCE_VSH_MOUNT_SD0 = 0x00100 , SCE_VSH_MOUNT_OS0 = 0x00200 , SCE_VSH_MOUNT_VS0 = 0x00300 , SCE_VSH_MOUNT_VD0 = 0x00400 ,
  SCE_VSH_MOUNT_TM0 = 0x00500 , SCE_VSH_MOUNT_UR0 = 0x00600 , SCE_VSH_MOUNT_UD0 = 0x00700 , SCE_VSH_MOUNT_UX0 = 0x00800 ,
  SCE_VSH_MOUNT_GRO0 = 0x00900 , SCE_VSH_MOUNT_GRW0 = 0x00A00 , SCE_VSH_MOUNT_SA0 = 0x00B00 , SCE_VSH_MOUNT_PD0 = 0x00C00 ,
  SCE_VSH_MOUNT_IMC0 = 0x00D00 , SCE_VSH_MOUNT_XMC0 = 0x00E00 , SCE_VSH_MOUNT_UMA0 = 0x00F00 , SCE_VSH_MOUNT_LMA0 = 0x10000 ,
  SCE_VSH_MOUNT_LMB0 = 0x20000 , SCE_VSH_MOUNT_MFA0 = 0x50000 , SCE_VSH_MOUNT_MFB0 = 0x60000
}
 

Functions

int _vshSblGetSystemSwVersion (SceKernelFwInfo *data)
 Gets real system firmware information.
 
int _vshSblAimgrGetSMI (SceUInt32 *info)
 Get service/manufacturing information (factory/minimum firmware).
 
int _vshSblAimgrGetConsoleId (char console_id[0x10])
 Get the console identifier.
 
SceUID _vshKernelSearchModuleByName (const char *module_name, const void *buffer)
 Check if a module is loaded.
 
int _vshIoMount (SceVshMountId id, const char *path, int permission, void *buf)
 Mount a partition.
 
int vshIoUmount (SceVshMountId id, int force, int unk2, int unk3)
 Unmount a partition.
 
int vshIdStorageIsDirty (void)
 
int vshIdStorageIsFormatted (void)
 
int vshIdStorageIsReadOnly (void)
 
int vshIdStorageReadLeaf (SceSize leafnum, void *buf)
 
int vshIdStorageWriteLeaf (SceSize leafnum, const void *buf)
 
int _vshNpDrmEbootSigVerify (const char *eboot_pbp_path, const char *eboot_signature, char **eboot_signature_header)
 Verify a eboot.pbp signature "__sce_ebootpbp".
 
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.
 
 VITASDK_BUILD_ASSERT_EQ (8, SceVshNpDrmEbootSigOpt)
 
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 firmware >2.00.
 
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 firmwares >2.00.
 
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 _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 _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 vshSblAimgrIsCEX (void)
 
int vshSblAimgrIsDEX (void)
 
int vshSblAimgrIsVITA (void)
 
int vshSblAimgrIsGenuineVITA (void)
 
int vshSblAimgrIsDolce (void)
 
int vshSblAimgrIsGenuineDolce (void)
 
int vshSblAimgrIsTest (void)
 
int vshSblAimgrIsTool (void)
 
int vshSblSsIsDevelopmentMode (void)
 
int vshSysconHasWWAN (void)
 
int vshSysconIsDownLoaderMode (void)
 
int vshSysconIsIduMode (void)
 
int vshSysconIsMCEmuCapable (void)
 
int vshSysconIsShowMode (void)
 
int vshSysconIduModeSet (void)
 
int vshSysconIduModeClear (void)
 
int vshSysconShowModeSet (void)
 
int vshSysconShowModeClear (void)
 
int vshMemoryCardGetCardInsertState (void)
 
int vshRemovableMemoryGetCardInsertState (void)
 
int vshMsifGetMsInfo (SceMsInfo *info)
 
 VITASDK_BUILD_ASSERT_EQ (8, SceVshAppMgrCheckPfsMountedOpt)
 
 VITASDK_BUILD_ASSERT_EQ (0x38, SceVshAppMgrBgdlQueueStatusEntry)
 
 VITASDK_BUILD_ASSERT_EQ (0x700, SceVshAppMgrBgdlQueueStatus)
 
 VITASDK_BUILD_ASSERT_EQ (8, SceVshSblAuthMgrVerifySpsfoOpt)
 
 VITASDK_BUILD_ASSERT_EQ (0x10, SceVshNpDrmGetLegacyDocKeyOpt)
 
 VITASDK_BUILD_ASSERT_EQ (8, SceVshSblSsCreatePassPhraseOpt)
 
int _vshAppMgrAcInstGetAcdirParam (const char title_id[0x10], const char addcont_id[0x14], SceAppMgrAcInstResult *result)
 Get add-on-content installation data.
 
int _vshAppMgrBgdlSetQueueStatus (const SceVshAppMgrBgdlQueueStatus *queue_status)
 Update the background-download queue status table.
 
int _vshAppMgrCheckPfsMounted (const char *path, const SceVshAppMgrCheckPfsMountedOpt *opt)
 Check whether a PFS path is mounted.
 
int _vshAppMgrCloudDataCreateHeader (const SceUInt8 setup_key[0x18], SceSize data_size, const SceUInt8 digest[0x20], SceUInt8 header[0x170])
 Create and sign a cloud-data header.
 
int _vshIoChstat (const char *file, const SceIoStat *stat, unsigned int bits, const sceIoChstatOpt *opt)
 Change selected attributes of a path.
 
int _vshIoDread (SceUID fd, SceIoDirent *dir)
 Read the next directory entry.
 
int _vshIoGetstat (const char *file, SceIoStat *stat, const sceIoGetstatOpt *opt)
 Get path metadata.
 
int _vshKernelGetCompiledSdkVersionByPid (ScePID pid, SceUInt32 *sdk_version)
 Get the compiled SDK version of a process.
 
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.
 
int _vshSblAimgrGetPscode (ScePsCode *pscode)
 Get the primary platform security code.
 
int _vshSblAimgrGetPscode2 (ScePsCode *pscode)
 Get the secondary platform security code.
 
int _vshSblAimgrGetVisibleId (SceVisibleId *visible_id)
 Get the 0x20-byte visible ID when the system is in product mode.
 
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 _vshSblSsCreatePassPhrase (const SceSblSsCreatePassPhraseParam *args, void *pass_phrase, const SceVshSblSsCreatePassPhraseOpt *opt)
 Create a 0x200-byte account pass phrase.
 
int _vshSysconGetManufacturesStatus (SceUInt32 *manufacturing_status)
 Get the manufacturing-status value.
 
SceUID vshIoCreateMountEvent (SceVshMountId mount_id, SceUInt32 event_bits)
 Create a mount event.
 
int vshKernelSendSysEvent (SceUInt32 event_id)
 Notify the kernel that SceShell is ready.
 
int vshSblUtMgrHasComTestFlag (void)
 Check whether the communication-test flag is set.
 
int vshSblUtMgrHasNpTestFlag (void)
 Check whether the NP-test flag is set.
 
int vshSblUtMgrHasStoreFlag (void)
 Check whether the store flag is set.