SceDeci4pDfMgr: Difference between revisions
Jump to navigation
Jump to search
CelesteBlue (talk | contribs) No edit summary |
CelesteBlue (talk | contribs) No edit summary |
||
(5 intermediate revisions by 2 users not shown) | |||
Line 26: | Line 26: | ||
typedef int (* SceDfMgrOpen_handler)(int a1, void *a2, void *args); | typedef int (* SceDfMgrOpen_handler)(int a1, void *a2, void *args); | ||
// Also used in sceSDfMgrOpenForKernel in System Software version 3.20 | |||
typedef struct SceDfMgrOpen_param_0940 { // Size is 0x1C-bytes | typedef struct SceDfMgrOpen_param_0940 { // Size is 0x1C-bytes | ||
SceSize size; | SceSize size; | ||
uint32_t | uint32_t uProtocol; | ||
uint32_t unk8; | uint32_t unk8; | ||
uint32_t | uint32_t uVersion; | ||
uint32_t | uint32_t uVersionLimit; | ||
uint16_t unk14; // ex: 0 | uint16_t unk14; // ex: 0 | ||
uint16_t unk16; // ex: 1 | uint16_t unk16; // ex: 1 | ||
Line 39: | Line 40: | ||
typedef struct SceDfMgrOpen_param_360 { // Size is 0x38-bytes | typedef struct SceDfMgrOpen_param_360 { // Size is 0x38-bytes | ||
SceSize size; | SceSize size; | ||
uint32_t | uint32_t uProtocol; | ||
uint32_t unk8; | uint32_t unk8; | ||
uint32_t | uint32_t uVersion; | ||
uint32_t | uint32_t uVersionLimit; | ||
uint16_t unk14; // ex: 0 | uint16_t unk14; // ex: 0 | ||
uint16_t unk16; // ex: 1 | uint16_t unk16; // ex: 1 | ||
Line 113: | Line 114: | ||
Writes <code>val</code> as a 3-byte unsigned integer to <code>ptr</code>. | Writes <code>val</code> as a 3-byte unsigned integer to <code>ptr</code>. | ||
<source lang="C">void SceDeci4pDfMgrForDebugger_6D26CC56(void *ptr, SceUInt32 val);</source> | <source lang="C">void SceDeci4pDfMgrForDebugger_6D26CC56(void *ptr, SceUInt32 val);</source> | ||
Line 167: | Line 169: | ||
! Version !! NID | ! Version !! NID | ||
|- | |- | ||
| 0.931.010-0.995.000 || | | 0.931.010-0.995.000 || not present | ||
|- | |- | ||
| 2.500.071-3.730.011 || 0xD0CCF840 | | 2.500.071-3.730.011 || 0xD0CCF840 | ||
|} | |} | ||
[[Category:ARM]] | |||
[[Category:Kernel]] | |||
[[Category:Modules]] | [[Category:Modules]] | ||
[[Category: | [[Category:Library]] |
Latest revision as of 23:33, 19 May 2023
Module
Version | World | Privilege |
---|---|---|
0.940-3.730.011 | Non-secure | Kernel |
Libraries
Known NIDs
Version | Name | World | Visibility | NID |
---|---|---|---|---|
0.940-3.730.011 | SceDeci4pDfMgrForDebugger | Non-secure | Kernel | 0x849E3DF5 |
Types
typedef SceInt32 SceDfMgr_id; //ID returned by sceDfMgrOpen typedef int (* SceDfMgrOpen_handler)(int a1, void *a2, void *args); // Also used in sceSDfMgrOpenForKernel in System Software version 3.20 typedef struct SceDfMgrOpen_param_0940 { // Size is 0x1C-bytes SceSize size; uint32_t uProtocol; uint32_t unk8; uint32_t uVersion; uint32_t uVersionLimit; uint16_t unk14; // ex: 0 uint16_t unk16; // ex: 1 char *name; } SceDfMgrOpen_param_0940; typedef struct SceDfMgrOpen_param_360 { // Size is 0x38-bytes SceSize size; uint32_t uProtocol; uint32_t unk8; uint32_t uVersion; uint32_t uVersionLimit; uint16_t unk14; // ex: 0 uint16_t unk16; // ex: 1 char name[0x20]; } SceDfMgrOpen_param_360; // sceDeci4pDfMgrRegisterSysEventForDebugger_internal_struct *pInfoInt = (sceDeci4pDfMgrRegisterSysEventForDebugger_internal *)(data_seg + 0x14); // max number of entries is 32 typedef struct sceDeci4pDfMgrRegisterSysEventForDebugger_internal_struct { // size is 0x54 SceDfMgrOpen_handler handler; SceDfMgrOpen_param info; int data_0x3C; int data_0x40; int data_0x44; int data_0x48; int data_0x4C; int data_0x50; } sceDeci4pDfMgrRegisterSysEventForDebugger_internal_struct;
SceDeci4pDfMgrForDebugger
sceDfMgrCloseForDebugger
Version | NID |
---|---|
0.940-3.730.011 | 0x1CC6ED4B |
SceInt32 sceDfMgrCloseForDebugger(SceDfMgr_id id);
sceDfMgrOpenForDebugger
Version | NID |
---|---|
0.940-3.730.011 | 0x529979FB |
Handler is called on reboot/standby/suspend/SceShell process create.
Up to 32 handles can be opened at a time, and (besides some exceptions) there should be no duplicate IDs (unk4
of a2
).
// Returns an id (not UID) on success, < 0 on error. // 0x80080004 -> no entry remaining (too many Open) SceDfMgr_id sceDfMgrOpenForDebugger(SceDfMgrOpen_handler handler, SceDfMgrOpen_param *a2, void *args);
sceDfMgrRecvForDebugger
Version | NID |
---|---|
0.940-3.730.011 | 0x5F2C7E11 |
// Returns received size on success, < 0 on error. SceSSize sceDfMgrRecvForDebugger(SceDfMgr_id id, void* buf, SceSize size);
SceDeci4pDfMgrForDebugger_6D26CC56
Version | NID |
---|---|
0.940-3.730.011 | 0x6D26CC56 |
Writes val
as a 3-byte unsigned integer to ptr
.
void SceDeci4pDfMgrForDebugger_6D26CC56(void *ptr, SceUInt32 val);
sceDfMgrSendSpaceForDebugger
Version | NID |
---|---|
0.940-3.730.011 | 0x7EAE4FA2 |
SceInt32 sceDfMgrSendSpaceForDebugger(SceDfMgr_id id);
sceDfMgrReqSendForDebugger
Version | NID |
---|---|
0.940-3.730.011 | 0xBADEF855 |
SceInt32 sceDfMgrReqSendForDebugger(SceDfMgr_id id);
sceDfMgrSendForDebugger
Version | NID |
---|---|
0.940-3.730.011 | 0xC3390112 |
// Returns sent size on success, < 0 on error. SceSSize sceDfMgrSendForDebugger(SceDfMgr_id id, const void* buf, SceSize size);
SceDeci4pDfMgrForDebugger_CACAB5F9
Version | NID |
---|---|
0.940-3.730.011 | 0xCACAB5F9 |
Reads the value at ptr
as a 3-byte unsigned integer.
SceUInt32 SceDeci4pDfMgrForDebugger_CACAB5F9(void *ptr);
sceDfMgrDcmpReqSendForLoadpForDebugger
Version | NID |
---|---|
0.931.010-0.995.000 | not present |
2.500.071-3.730.011 | 0xD0CCF840 |