diff options
author | Princess of Sleeping | 2020-11-06 12:13:33 +0900 |
---|---|---|
committer | Reiko Asakura | 2020-11-06 12:13:33 +0900 |
commit | 425c446dd440122ccee4ec0ff4ed93230015ab44 (patch) | |
tree | 33cd581f610c5f63c12bfcac0e928cb3b4418427 | |
parent | Add prototypes and docs in kernel/sblacmgr.h (diff) | |
download | vds-libraries-425c446dd440122ccee4ec0ff4ed93230015ab44.tar.gz |
Update name, doc, prototype in sblaimgr.h
-rw-r--r-- | include/kernel/sblaimgr.h | 89 | ||||
-rw-r--r-- | nids/360/SceSysmem.yml | 2 |
2 files changed, 88 insertions, 3 deletions
diff --git a/include/kernel/sblaimgr.h b/include/kernel/sblaimgr.h index 3966d63..941d05e 100644 --- a/include/kernel/sblaimgr.h +++ b/include/kernel/sblaimgr.h @@ -5,19 +5,104 @@ #ifndef _VDSUITE_KERNEL_SBLAIMGR_H #define _VDSUITE_KERNEL_SBLAIMGR_H +#include <scetypes.h> + #ifdef __cplusplus extern "C" { #endif -int sceSblAimgrGetSMI(void); -int sceSblAimgrGetTargetId(void); +typedef enum SceProductCode { + SCE_PRODUCT_CODE_NONE = 0x00000000, + SCE_PRODUCT_CODE_TEST = 0x100, // Internal Test Unit + SCE_PRODUCT_CODE_TOOL = 0x101, // Development kit + SCE_PRODUCT_CODE_DEX = 0x102, // Testing kit + SCE_PRODUCT_CODE_CEX_J1 = 0x103, // Japan + SCE_PRODUCT_CODE_CEX_UC2 = 0x104, // united ctates + SCE_PRODUCT_CODE_CEX_CEL = 0x105, + SCE_PRODUCT_CODE_CEX_KR2 = 0x106, + SCE_PRODUCT_CODE_CEX_CEK = 0x107, + SCE_PRODUCT_CODE_CEX_MX2 = 0x108, + SCE_PRODUCT_CODE_CEX_AU3 = 0x109, + SCE_PRODUCT_CODE_CEX_E12 = 0x10A, + SCE_PRODUCT_CODE_CEX_TW1 = 0x10B, // taiwan + SCE_PRODUCT_CODE_CEX_RU3 = 0x10C, + SCE_PRODUCT_CODE_CEX_CN9 = 0x10D, + SCE_PRODUCT_CODE_CEX_HK5 = 0x10E, + SCE_PRODUCT_CODE_CEX_RSV1 = 0x10F, + SCE_PRODUCT_CODE_CEX_RSV2 = 0x110, + SCE_PRODUCT_CODE_CEX_RSV3 = 0x111 +} SceProductCode; + +/** + * @brief Get service/manufacturing information(factory fw). + * + * @param[out] info - The info output pointer + * + * @return 0 on success, < 0 on error. + */ +int sceSblAimgrGetSMI(SceUInt32 *info); + +/** + * @brief Get product code. + * + * @return see:SceProductCode. + */ +int sceSblAimgrGetProductCode(void); + +/** + * @brief Get system type state. + * + * @return If product code is TEST, 1. else 0. + */ int sceSblAimgrIsTest(void); + +/** + * @brief Get system type state. + * + * @return If product code is TOOL, 1. else 0. + */ int sceSblAimgrIsTool(void); + +/** + * @brief Get system type state. + * + * @return If product code is DEX, 1. else 0. + */ int sceSblAimgrIsDEX(void); + +/** + * @brief Get system type state. + * + * @return If product code is CEX, 1. else 0. + */ int sceSblAimgrIsCEX(void); + +/** + * @brief Get system type state. + * + * @return If device is vita, 1. else 0. + */ int sceSblAimgrIsVITA(void); + +/** + * @brief Get system type state. + * + * @return If device is dolce, or PSTV emu enabled, 1. else 0. + */ int sceSblAimgrIsDolce(void); + +/** + * @brief Get system type state. + * + * @return If device is vita, 1. else 0. + */ int sceSblAimgrIsGenuineVITA(void); + +/** + * @brief Get system type state. + * + * @return If device is dolce, 1. else 0. + */ int sceSblAimgrIsGenuineDolce(void); #ifdef __cplusplus diff --git a/nids/360/SceSysmem.yml b/nids/360/SceSysmem.yml index dd26764..7f71884 100644 --- a/nids/360/SceSysmem.yml +++ b/nids/360/SceSysmem.yml @@ -261,9 +261,9 @@ modules: SceSblAIMgrForDriver: nid: 0xFD00C69A functions: + sceSblAimgrGetProductCode: 0x14345161 sceSblAimgrGetProductSubCode: 0xB33CEC8F sceSblAimgrGetSMI: 0x47D9CF13 - sceSblAimgrGetTargetId: 0x14345161 sceSblAimgrIsCEX: 0xD78B04A2 sceSblAimgrIsDEX: 0xF4B98F66 sceSblAimgrIsDolce: 0x71608CA3 |