17#define SCE_UPDATE_MODE_SWU_GUI 0x10
18#define SCE_UPDATE_MODE_SWU_CUI 0x30
29#define sceSblSsUpdateMgrGetBootMode sceSblUsGetUpdateMode
40#define sceSblSsUpdateMgrSetBootMode sceSblUsSetUpdateMode
#define VITASDK_BUILD_ASSERT_EQ(__size__, __name__)
Definition build_utils.h:13
int flags
Event flags.
Definition debug.h:3
SceSize size
Definition lsdb.h:11
int sceSblUsSetSwInfoInt(const char *name, SceSize name_length, SceUInt32 value)
Set an integer software-information value.
SceSize buffer_size
Must equal the size passed to sceSblUsAllocateBuffer for this buffer.
Definition update.h:141
int sceSblUsGetSpkgInfo(int package_type, SceSblUsSpkgInfo *info)
Get information about an installed package.
void * buffer
Process-owned buffer returned by sceSblUsAllocateBuffer.
Definition update.h:140
SceUInt32 version
Applicable package version.
Definition update.h:171
SceInt32 * request_result
Receives the operation result; valid when the request is completed.
Definition update.h:145
int sceSblUsVerifyPupSegmentById(const char *path, SceUInt64 segment_id)
Verify a PUP segment by ID.
int sceSblUsVerifyPupAdditionalSign(const char *path)
Verify an additional PUP signature.
int sceSblUsGetExtractSpackage(int request_type, int request_id, SceKernelSpackageArgs *args)
Return a request buffer's user-space mapping.
int sceSblUsInformUpdateOngoing(SceUInt32 task, SceUInt32 percentage)
Inform the system that an update is ongoing.
int sceSblUsPowerControl(int mode, SceUInt32 flags)
Perform an update-related power-control operation.
SceUInt32 package_type
One of SceSblUsSpackageType; the function uses its package_type argument instead on FW 3....
Definition update.h:139
int sceSblUsAllocateBuffer(SceSize size, void **user_buffer)
Allocate a process-owned update buffer.
int sceSblUsReleaseBuffer(void *user_buffer)
Release an update buffer allocated by sceSblUsAllocateBuffer.
int sceSblUsVerifyPupHeader(const char *path)
Verify a PUP header.
int sceSblUsGetStatus(int request_type, int request_id, const SceKernelSpackageArgs *args)
Get the state of an asynchronous package request.
SceSblUsSpackageFlags
Flag values used by package-operation callers on FW 3.60.
Definition update.h:117
int sceSblUsVerifyPup(const char *path)
Verify PUP.
char SceUpdateMode
Definition update.h:14
SceSblUsSpackageType
Secure-package component types accepted on FW 3.60.
Definition update.h:64
SceSblUsSpackageRequestState
Values reported through SceKernelSpackageArgs::request_state.
Definition update.h:99
SceUInt32 handled
Set to 1 for OS0 and SLB2, or 0 for an unsupported package type.
Definition update.h:172
int sceSblUsUpdateSpackage(int package_type, const SceKernelSpackageArgs *args, int *request_id)
Submit an asynchronous package-update request.
int sceSblUsExtractSpackage(int package_type, const SceKernelSpackageArgs *args, int *request_id)
Submit an asynchronous package-extraction request.
int sceSblUsSetSwInfoBin(const char *name, SceSize name_length, const void *value, SceSize value_length)
Set a binary software-information value.
SceUInt32 * request_state
Receives one of SceSblUsSpackageRequestState.
Definition update.h:146
SceSize size
Initialize to sizeof(SceKernelSpackageArgs); copied but not validated on FW 3.60.
Definition update.h:138
int sceSblUsInspectSpackage(int package_type, const SceKernelSpackageArgs *args, int *request_id)
Submit an asynchronous package-inspection request.
SceInt32 sceSblUsCheckSystemIntegrity(void)
Check system integrity.
SceSize size
Set to sizeof(SceSblUsSpkgInfo) on success.
Definition update.h:160
SceSblUsPowerControlMode
Definition update.h:123
SceUInt32 flags
One of SceSblUsSpackageFlags.
Definition update.h:142
int sceSblUsSetSwInfoStr(const char *name, SceSize name_length, const char *value, SceSize value_length)
Set a string software-information value.
int sceSblUsInformUpdateFinished(SceUInt32 task, const char *message, SceSize message_length)
Inform the system that an update has finished.
SceUInt32 * written_rate
Receives the write-rate value; applicable update paths report 100 when finished.
Definition update.h:147
int sceSblUsVerifyPupSegment(const char *path, SceUInt64 segment_index)
Verify a PUP segment by index.
int sceSblUsGetApplicableVersion(int package_type, SceSblUsApplicableVersionInfo *version_info)
Get an applicable package version.
SceUInt8 status[4]
Package-specific status bytes; only elements 0 and 1 are used on FW 3.60.
Definition update.h:162
SceUInt32 reserved[2]
Preserved by sceSblUsGetExtractSpackage and ignored by SceSblUpdateMgr.
Definition update.h:143
SceUInt32 reserved[2]
Set to 0 on FW 3.60.
Definition update.h:173
int sceSblUsVerifyPupWatermark(const char *path)
Verify a PUP watermark.
int sceSblUsGetUpdateMode(SceUpdateMode *mode)
Getting system update mode on boot.
int sceSblUsSetUpdateMode(SceUpdateMode mode)
Setting system update mode on boot.
SceSblUsSpackageRequestType
Asynchronous secure-package operation types.
Definition update.h:91
SceUInt32 version
Installed package version.
Definition update.h:161
SceUInt32 * sequence_number
Receives a counter incremented each time the request state changes.
Definition update.h:144
SceInt32 reserved
Set to 0 on FW 3.60.
Definition update.h:163
int sceSblUsInformUpdateStarted(SceUInt32 task, SceUInt32 value, const char *message, SceSize message_length)
Inform the system that an update has started.
@ SCE_SBL_US_SPACKAGE_FLAGS_SKIP_SYSTEM_VERSION_CHECK
Definition update.h:118
@ SCE_SBL_US_SPACKAGE_FLAGS_CHECK_SYSTEM_VERSION
Definition update.h:119
@ SCE_SBL_US_SPACKAGE_TYPE_BBMC_FIRMWARE
Definition update.h:73
@ SCE_SBL_US_SPACKAGE_TYPE_PREINSTALL_DATA
Definition update.h:85
@ SCE_SBL_US_SPACKAGE_TYPE_TOUCH_CONFIGURATION
Definition update.h:76
@ SCE_SBL_US_SPACKAGE_TYPE_CP_FIRMWARE
Definition update.h:71
@ SCE_SBL_US_SPACKAGE_TYPE_BIC_FIRMWARE
Definition update.h:77
@ SCE_SBL_US_SPACKAGE_TYPE_PD0
Definition update.h:83
@ SCE_SBL_US_SPACKAGE_TYPE_SYSCON_C5E7
Definition update.h:84
@ SCE_SBL_US_SPACKAGE_TYPE_PREINSTALL_DATA_PATCH
Definition update.h:86
@ SCE_SBL_US_SPACKAGE_TYPE_TOUCH_FIRMWARE
Definition update.h:75
@ SCE_SBL_US_SPACKAGE_TYPE_SLB2
Definition update.h:69
@ SCE_SBL_US_SPACKAGE_TYPE_UNKNOWN_4
Definition update.h:67
@ SCE_SBL_US_SPACKAGE_TYPE_VS0_PATCH
Definition update.h:81
@ SCE_SBL_US_SPACKAGE_TYPE_MOTION_FIRMWARE_1
Definition update.h:74
@ SCE_SBL_US_SPACKAGE_TYPE_UNKNOWN_3
Definition update.h:66
@ SCE_SBL_US_SPACKAGE_TYPE_VS0
Definition update.h:70
@ SCE_SBL_US_SPACKAGE_TYPE_SYSCON_3665
Definition update.h:79
@ SCE_SBL_US_SPACKAGE_TYPE_SYSCON_9A54
Definition update.h:68
@ SCE_SBL_US_SPACKAGE_TYPE_SA0
Definition update.h:82
@ SCE_SBL_US_SPACKAGE_TYPE_OS0_PATCH
Definition update.h:80
@ SCE_SBL_US_SPACKAGE_TYPE_BIC_DATA_FLASH
Definition update.h:78
@ SCE_SBL_US_SPACKAGE_TYPE_OS0
Definition update.h:65
@ SCE_SBL_US_SPACKAGE_TYPE_MOTION_FIRMWARE_0
Definition update.h:72
@ SCE_SBL_US_SPACKAGE_STATE_ACCEPTED
Definition update.h:100
@ SCE_SBL_US_SPACKAGE_STATE_VALIDATING
Definition update.h:101
@ SCE_SBL_US_SPACKAGE_STATE_APPLYING
Definition update.h:102
@ SCE_SBL_US_SPACKAGE_STATE_COMPLETED
Definition update.h:104
@ SCE_SBL_US_SPACKAGE_STATE_FINALIZING
Definition update.h:103
@ SCE_SBL_US_POWER_CONTROL_REBOOT
Definition update.h:124
@ SCE_SBL_US_POWER_CONTROL_LOCK
Definition update.h:126
@ SCE_SBL_US_POWER_CONTROL_LED_OFF
Definition update.h:129
@ SCE_SBL_US_POWER_CONTROL_SHUTDOWN
Definition update.h:125
@ SCE_SBL_US_POWER_CONTROL_TICK
Definition update.h:131
@ SCE_SBL_US_POWER_CONTROL_CHECK_CP_ENABLED
On tool/test units, check DIP switch 194; other units return success.
Definition update.h:133
@ SCE_SBL_US_POWER_CONTROL_UNLOCK
Definition update.h:127
@ SCE_SBL_US_POWER_CONTROL_LED_ON
Definition update.h:128
@ SCE_SBL_US_POWER_CONTROL_LED_INIT
Definition update.h:130
@ SCE_SBL_US_SPACKAGE_REQUEST_UPDATE
Validate and install a package.
Definition update.h:92
@ SCE_SBL_US_SPACKAGE_REQUEST_INSPECT
Validate a package without installing it.
Definition update.h:93
@ SCE_SBL_US_SPACKAGE_REQUEST_EXTRACT
Validate and decrypt a package without installing it.
Definition update.h:94
Applicable version information for OS0 and SLB2 packages.
Definition update.h:170
Installed secure-package information.
Definition update.h:159
int32_t SceInt32
Definition types.h:44
unsigned int SceSize
Definition types.h:56
uint64_t SceUInt64
Definition types.h:51
uint32_t SceUInt32
Definition types.h:45
uint8_t SceUInt8
Definition types.h:36