SceCodecEngineWrapper: Difference between revisions

From Vita Development Wiki
Jump to navigation Jump to search
(Add lots of functions and datatypes (RE by GrapheneCt))
Line 16: Line 16:
! Version !! Name !! World !! Visibility !! NID
! Version !! Name !! World !! Visibility !! NID
|-
|-
| 3.65 || [[SceCodecEngineWrapper#SceCodecEngineWrapperForDriver|SceCodecEngineWrapperForDriver]] || Non-secure || Kernel || 0x51593F20
| 3.60-3.74 || [[SceCodecEngineWrapper#SceCodecEngineWrapperForDriver|SceCodecEngineWrapperForDriver]] || Non-secure || Kernel || 0x51593F20
|-
|-
| 3.65 || [[SceCodecEngineWrapper#SceCodecEngineWrapperForDebugger|SceCodecEngineWrapperForDebugger]] || Non-secure || Kernel || 0x615771E2
| 3.60-3.74 || [[SceCodecEngineWrapper#SceCodecEngineWrapperForDebugger|SceCodecEngineWrapperForDebugger]] || Non-secure || Kernel || 0x615771E2
|-
|-
| 3.65 || [[SceCodecEngineWrapper#SceCodecEngineWrapper|SceCodecEngineWrapper]] || Non-secure || User || 0x5C9EE5B9
| 3.60-3.74 || [[SceCodecEngineWrapper#SceCodecEngineWrapper|SceCodecEngineWrapper]] || Non-secure || User || 0x5C9EE5B9
|}
|}
== Types ==
<source lang="C">
typedef void* SceVeneziaRpcMemoryContext;
typedef struct SceVeneziaThunkArg {
void *pVThreadProcessingResource;
void *userArg2;
void *userArg3;
void *userArg4;
} SceVeneziaThunkArg;
typedef struct SceVeneziaConvertOpt {
int flags;
unsigned int size;
} SceVeneziaConvertOpt;
typedef SceVoid(*SceVeneziaRpcMemoryCommBegin)(SceVeneziaRpcMemoryContext context, SceVeneziaThunkArg *in, SceVeneziaThunkArg *out);
typedef SceVoid(*SceVeneziaRpcMemoryCommEnd)(SceVeneziaRpcMemoryContext context);
</source>


== SceCodecEngineWrapperForDriver ==
== SceCodecEngineWrapperForDriver ==


          SceCodecEngineWrapperForDriver_03EA6C2A: 0x03EA6C2A
=== sceVeneziaInitRpcMemoryForDriver ===
          SceCodecEngineWrapperForDriver_07C53B4E: 0x07C53B4E
{| class="wikitable"
          SceCodecEngineWrapperForDriver_091B0231: 0x091B0231
|-
          SceCodecEngineWrapperForDriver_0D140628: 0x0D140628
! Version !! NID
          SceCodecEngineWrapperForDriver_0D3BB164: 0x0D3BB164
|-
| 3.60-3.74 || 0x03EA6C2A
|}
 
This is a guessed name.
 
<source lang="C">int sceVeneziaInitRpcMemoryForDriver(SceVeneziaRpcMemoryContext context);</source>
 
=== sceVeneziaConvertPhysicalToVirtualForDriver ===
{| class="wikitable"
|-
! Version !! NID
|-
| 3.60-3.74 || 0x07C53B4E
|}
 
<source lang="C">int sceVeneziaConvertPhysicalToVirtualForDriver(SceVeneziaRpcMemoryContext context);</source>
 
=== sceVeneziaUnlockProcessSuspendForDriver ===
{| class="wikitable"
|-
! Version !! NID
|-
| 3.60-3.74 || 0x091B0231
|}
 
<source lang="C">int sceVeneziaUnlockProcessSuspendForDriver();</source>
 
          SceCodecEngineWrapperForDriver_0D140628: 0x0D140628
 
=== sceVeneziaRpcCallGenericThunk2ForDriver ===
{| class="wikitable"
|-
! Version !! NID
|-
| 3.60-3.74 || 0x0D3BB164
|}
 
This is a guessed name. Calls the same internal routine as sceVeneziaRpcCallGenericThunk with different arguments arragement.
 
<source lang="C">int sceVeneziaRpcCallGenericThunk2ForDriver(unsigned int id, int arg1, int arg2);</source>
 
           SceCodecEngineWrapperForDriver_0E38B133: 0x0E38B133
           SceCodecEngineWrapperForDriver_0E38B133: 0x0E38B133
          SceCodecEngineWrapperForDriver_0F235F44: 0x0F235F44
 
=== sceVeneziaOpenPublicMemoryForDriver ===
{| class="wikitable"
|-
! Version !! NID
|-
| 3.60-3.74 || 0x0F235F44
|}
 
<source lang="C">void *sceVeneziaOpenPublicMemoryForDriver(void *paddr, SceUInt32 size);</source>
 
           SceCodecEngineWrapperForDriver_16506603: 0x16506603
           SceCodecEngineWrapperForDriver_16506603: 0x16506603
           SceCodecEngineWrapperForDriver_18197103: 0x18197103
           SceCodecEngineWrapperForDriver_18197103: 0x18197103
          SceCodecEngineWrapperForDriver_1C2BC9F7: 0x1C2BC9F7
 
          SceCodecEngineWrapperForDriver_26FAF6EC: 0x26FAF6EC
=== sceVeneziaTermRpcMemoryForDriver ===
{| class="wikitable"
|-
! Version !! NID
|-
| 3.60-3.74 || 0x1C2BC9F7
|}
 
This is a guessed name.
 
<source lang="C">int sceVeneziaTermRpcMemoryForDriver(SceVeneziaRpcMemoryContext context);</source>
 
=== sceVeneziaClosePublicMemoryForDriver ===
{| class="wikitable"
|-
! Version !! NID
|-
| 3.60-3.74 || 0x26FAF6EC
|}
 
<source lang="C">void *sceVeneziaClosePublicMemoryForDriver(void *vnzVaddr, SceUInt32 size);</source>
 
           SceCodecEngineWrapperForDriver_2B74706E: 0x2B74706E
           SceCodecEngineWrapperForDriver_2B74706E: 0x2B74706E
           SceCodecEngineWrapperForDriver_2B7CC150: 0x2B7CC150
           SceCodecEngineWrapperForDriver_2B7CC150: 0x2B7CC150
          SceCodecEngineWrapperForDriver_2DD83BB0: 0x2DD83BB0
 
 
=== sceVeneziaHeapAllocForDriver ===
{| class="wikitable"
|-
! Version !! NID
|-
| 3.60-3.74 || 0x2DD83BB0
|}
 
This is a guessed name.
 
<source lang="C">
#define SCE_VENEZIA_HEAP_IMAGE_0 0 // First allocation paddr = 0x40963900, heap size = 0x80600
#define SCE_VENEZIA_HEAP_IMAGE 1 // First allocation paddr = 0x40A45700, heap size = 0x1BAA00
#define SCE_VENEZIA_HEAP_VRAM 2 // First allocation paddr = 0x20000000, heap size = 0x8000100
 
void *sceVeneziaHeapAllocForDriver(unsigned int heapType, int size);
</source>
 
           SceCodecEngineWrapperForDriver_30F6AFD4: 0x30F6AFD4
           SceCodecEngineWrapperForDriver_30F6AFD4: 0x30F6AFD4
          SceCodecEngineWrapperForDriver_391BD4FD: 0x391BD4FD
 
=== sceVeneziaRpcCallGenericThunkForDriverForDriver ===
{| class="wikitable"
|-
! Version !! NID
|-
| 3.60-3.74 || 0x391BD4FD
|}
 
<source lang="C">int sceVeneziaRpcCallGenericThunkForDriver(unsigned int id, SceVeneziaThunkArg *arg, SceVeneziaRpcMemoryCommBegin beginCallback, SceVeneziaRpcMemoryCommEnd endCallback);</source>
 
           SceCodecEngineWrapperForDriver_3A79A935: 0x3A79A935
           SceCodecEngineWrapperForDriver_3A79A935: 0x3A79A935
          SceCodecEngineWrapperForDriver_3C5E9CC3: 0x3C5E9CC3
 
          SceCodecEngineWrapperForDriver_47AED6FF: 0x47AED6FF
=== sceVeneziaHeapFreeForDriver ===
{| class="wikitable"
|-
! Version !! NID
|-
| 3.60-3.74 || 0x3C5E9CC3
|}
 
This is a guessed name.
 
<source lang="C">void sceVeneziaHeapFreeForDriver(unsigned int heapType, void *addr, int size);</source>
 
 
=== sceVeneziaConvertVirtualToPhysicalForDriver ===
{| class="wikitable"
|-
! Version !! NID
|-
| 3.60-3.74 || 0x47AED6FF
|}
 
<source lang="C">int sceVeneziaConvertVirtualToPhysicalForDriver(SceVeneziaRpcMemoryContext context, void *vaddr, unsigned int size, SceVeneziaConvertOpt *opt);</source>
 
           SceCodecEngineWrapperForDriver_54F39D1D: 0x54F39D1D
           SceCodecEngineWrapperForDriver_54F39D1D: 0x54F39D1D
           SceCodecEngineWrapperForDriver_62996F94: 0x62996F94
           SceCodecEngineWrapperForDriver_62996F94: 0x62996F94
          SceCodecEngineWrapperForDriver_6A1184EA: 0x6A1184EA
 
=== sceVeneziaGetVThreadProcessingResourceForDriver ===
{| class="wikitable"
|-
! Version !! NID
|-
| 3.60-3.74 || 0x6A1184EA
|}
 
<source lang="C">void *sceVeneziaGetVThreadProcessingResourceForDriver(unsigned int key);</source>
 
           SceCodecEngineWrapperForDriver_6A3638A8: 0x6A3638A8
           SceCodecEngineWrapperForDriver_6A3638A8: 0x6A3638A8
          SceCodecEngineWrapperForDriver_6D41287F: 0x6D41287F
 
          SceCodecEngineWrapperForDriver_744D4C3F: 0x744D4C3F
=== sceCodecEngineUnmapUserVAtoPAForDriver ===
{| class="wikitable"
|-
! Version !! NID
|-
| 3.60-3.74 || 0x6D41287F
|}
 
<source lang="C">int sceCodecEngineUnmapUserVAtoPAForDriver(SceUID pid, SceUIntVAddr memory, void **paddr);</source>
 
=== sceCodecEngineUnmapKernelVAtoUserVAForDriver ===
{| class="wikitable"
|-
! Version !! NID
|-
| 3.60-3.74 || 0x744D4C3F
|}
 
<source lang="C">int sceCodecEngineUnmapKernelVAtoUserVAForDriver(SceUID pid, SceUIntVAddr kernelMemory, SceUIntVAddr *memory);</source>
 
           SceCodecEngineWrapperForDriver_7492DE05: 0x7492DE05
           SceCodecEngineWrapperForDriver_7492DE05: 0x7492DE05
          SceCodecEngineWrapperForDriver_82E378BD: 0x82E378BD
 
=== sceCodecEngineUnmapUserVAtoKernelVAForDriver ===
{| class="wikitable"
|-
! Version !! NID
|-
| 3.60-3.74 || 0x82E378BD
|}
 
<source lang="C">int sceCodecEngineUnmapUserVAtoKernelVAForDriver(SceUID pid, SceUIntVAddr memory, SceUIntVAddr *kernelMemory);</source>
 
           SceCodecEngineWrapperForDriver_86861877: 0x86861877
           SceCodecEngineWrapperForDriver_86861877: 0x86861877
           SceCodecEngineWrapperForDriver_8CD35820: 0x8CD35820
           SceCodecEngineWrapperForDriver_8CD35820: 0x8CD35820
Line 65: Line 247:
           SceCodecEngineWrapperForDriver_BB02EB22: 0xBB02EB22
           SceCodecEngineWrapperForDriver_BB02EB22: 0xBB02EB22
           SceCodecEngineWrapperForDriver_BB388700: 0xBB388700
           SceCodecEngineWrapperForDriver_BB388700: 0xBB388700
          SceCodecEngineWrapperForDriver_BCDCEA13: 0xBCDCEA13
 
          SceCodecEngineWrapperForDriver_C5478DD5: 0xC5478DD5
=== sceCodecEngineUnmapPAtoUserVAForDriver ===
          SceCodecEngineWrapperForDriver_C7C150AE: 0xC7C150AE
{| class="wikitable"
          SceCodecEngineWrapperForDriver_CB8703D8: 0xCB8703D8
|-
          SceCodecEngineWrapperForDriver_D1F94D9D: 0xD1F94D9D
! Version !! NID
|-
| 3.60-3.74 || 0xBCDCEA13
|}
 
<source lang="C">int sceCodecEngineUnmapPAtoUserVAForDriver(SceUID pid, void *paddr, SceUIntVAddr *memory);</source>
 
=== sceCodecEngineUnregisterUnmapMemoryForDriver ===
{| class="wikitable"
|-
! Version !! NID
|-
| 3.60-3.74 || 0xC5478DD5
|}
 
<source lang="C">int sceCodecEngineUnregisterUnmapMemoryForDriver(SceUID pid, SceUIntVAddr memory, SceUInt32 size);</source>
 
=== sceVeneziaConvertVirtualToPhysicalForVeneziaForDriver ===
{| class="wikitable"
|-
! Version !! NID
|-
| 3.60-3.74 || 0xC7C150AE
|}
 
This is a guessed name.
 
<source lang="C">void *sceVeneziaConvertVirtualToPhysicalForVeneziaForDriver(void *vaddr);</source>
 
=== sceVeneziaLockProcessSuspendForDriver ===
{| class="wikitable"
|-
! Version !! NID
|-
| 3.60-3.74 || 0xCB8703D8
|}
 
<source lang="C">int sceVeneziaLockProcessSuspendForDriver();</source>
 
=== sceVeneziaMemcpyChainForDriver ===
{| class="wikitable"
|-
! Version !! NID
|-
| 3.60-3.74 || 0xD1F94D9D
|}
 
<source lang="C">int sceVeneziaMemcpyChainForDriver(SceVeneziaRpcMemoryContext context);</source>
 
           SceCodecEngineWrapperForDriver_EA88ABE5: 0xEA88ABE5
           SceCodecEngineWrapperForDriver_EA88ABE5: 0xEA88ABE5
           SceCodecEngineWrapperForDriver_F3F71CEF: 0xF3F71CEF
           SceCodecEngineWrapperForDriver_F3F71CEF: 0xF3F71CEF
          SceCodecEngineWrapperForDriver_F9495589: 0xF9495589
 
=== sceVeneziaConvertPhysicalToVirtualForVeneziaForDriver ===
{| class="wikitable"
|-
! Version !! NID
|-
| 3.60-3.74 || 0xF9495589
|}
 
This is a guessed name. Used to convert return value of sceVeneziaHeapAlloc().
<source lang="C">void *sceVeneziaConvertPhysicalToVirtualForVeneziaForDriver(void *paddr);</source>
 
           SceCodecEngineWrapperForDriver_FAF590A6: 0xFAF590A6
           SceCodecEngineWrapperForDriver_FAF590A6: 0xFAF590A6
          SceCodecEngineWrapperForDriver_FBD4853E: 0xFBD4853E
 
=== sceCodecEngineRegisterUnmapMemoryForDriver ===
{| class="wikitable"
|-
! Version !! NID
|-
| 3.60-3.74 || 0xFBD4853E
|}
 
<source lang="C">int sceCodecEngineRegisterUnmapMemoryForDriver(SceUID pid, SceUIntVAddr memory, SceUInt32 size);</source>


== SceCodecEngineWrapperForDebugger ==
== SceCodecEngineWrapperForDebugger ==

Revision as of 18:00, 2 September 2022

Module

Version World Privilege
3.60-3.65 Non-secure Kernel

Libraries

Known NIDs

Version Name World Visibility NID
3.60-3.74 SceCodecEngineWrapperForDriver Non-secure Kernel 0x51593F20
3.60-3.74 SceCodecEngineWrapperForDebugger Non-secure Kernel 0x615771E2
3.60-3.74 SceCodecEngineWrapper Non-secure User 0x5C9EE5B9

Types

typedef void* SceVeneziaRpcMemoryContext;

typedef struct SceVeneziaThunkArg {
	void *pVThreadProcessingResource;
	void *userArg2;
	void *userArg3;
	void *userArg4;
} SceVeneziaThunkArg;

typedef struct SceVeneziaConvertOpt {
	int flags;
	unsigned int size;
} SceVeneziaConvertOpt;

typedef SceVoid(*SceVeneziaRpcMemoryCommBegin)(SceVeneziaRpcMemoryContext context, SceVeneziaThunkArg *in, SceVeneziaThunkArg *out);
typedef SceVoid(*SceVeneziaRpcMemoryCommEnd)(SceVeneziaRpcMemoryContext context);

SceCodecEngineWrapperForDriver

sceVeneziaInitRpcMemoryForDriver

Version NID
3.60-3.74 0x03EA6C2A

This is a guessed name.

int sceVeneziaInitRpcMemoryForDriver(SceVeneziaRpcMemoryContext context);

sceVeneziaConvertPhysicalToVirtualForDriver

Version NID
3.60-3.74 0x07C53B4E
int sceVeneziaConvertPhysicalToVirtualForDriver(SceVeneziaRpcMemoryContext context);

sceVeneziaUnlockProcessSuspendForDriver

Version NID
3.60-3.74 0x091B0231
int sceVeneziaUnlockProcessSuspendForDriver();
          SceCodecEngineWrapperForDriver_0D140628: 0x0D140628

sceVeneziaRpcCallGenericThunk2ForDriver

Version NID
3.60-3.74 0x0D3BB164

This is a guessed name. Calls the same internal routine as sceVeneziaRpcCallGenericThunk with different arguments arragement.

int sceVeneziaRpcCallGenericThunk2ForDriver(unsigned int id, int arg1, int arg2);
         SceCodecEngineWrapperForDriver_0E38B133: 0x0E38B133

sceVeneziaOpenPublicMemoryForDriver

Version NID
3.60-3.74 0x0F235F44
void *sceVeneziaOpenPublicMemoryForDriver(void *paddr, SceUInt32 size);
         SceCodecEngineWrapperForDriver_16506603: 0x16506603
         SceCodecEngineWrapperForDriver_18197103: 0x18197103

sceVeneziaTermRpcMemoryForDriver

Version NID
3.60-3.74 0x1C2BC9F7

This is a guessed name.

int sceVeneziaTermRpcMemoryForDriver(SceVeneziaRpcMemoryContext context);

sceVeneziaClosePublicMemoryForDriver

Version NID
3.60-3.74 0x26FAF6EC
void *sceVeneziaClosePublicMemoryForDriver(void *vnzVaddr, SceUInt32 size);
         SceCodecEngineWrapperForDriver_2B74706E: 0x2B74706E
         SceCodecEngineWrapperForDriver_2B7CC150: 0x2B7CC150


sceVeneziaHeapAllocForDriver

Version NID
3.60-3.74 0x2DD83BB0

This is a guessed name.

#define SCE_VENEZIA_HEAP_IMAGE_0	0 // First allocation paddr = 0x40963900, heap size = 0x80600
#define SCE_VENEZIA_HEAP_IMAGE		1 // First allocation paddr = 0x40A45700, heap size = 0x1BAA00
#define SCE_VENEZIA_HEAP_VRAM		2 // First allocation paddr = 0x20000000, heap size = 0x8000100

void *sceVeneziaHeapAllocForDriver(unsigned int heapType, int size);
         SceCodecEngineWrapperForDriver_30F6AFD4: 0x30F6AFD4

sceVeneziaRpcCallGenericThunkForDriverForDriver

Version NID
3.60-3.74 0x391BD4FD
int sceVeneziaRpcCallGenericThunkForDriver(unsigned int id, SceVeneziaThunkArg *arg, SceVeneziaRpcMemoryCommBegin beginCallback, SceVeneziaRpcMemoryCommEnd endCallback);
         SceCodecEngineWrapperForDriver_3A79A935: 0x3A79A935

sceVeneziaHeapFreeForDriver

Version NID
3.60-3.74 0x3C5E9CC3

This is a guessed name.

void sceVeneziaHeapFreeForDriver(unsigned int heapType, void *addr, int size);


sceVeneziaConvertVirtualToPhysicalForDriver

Version NID
3.60-3.74 0x47AED6FF
int sceVeneziaConvertVirtualToPhysicalForDriver(SceVeneziaRpcMemoryContext context, void *vaddr, unsigned int size, SceVeneziaConvertOpt *opt);
         SceCodecEngineWrapperForDriver_54F39D1D: 0x54F39D1D
         SceCodecEngineWrapperForDriver_62996F94: 0x62996F94

sceVeneziaGetVThreadProcessingResourceForDriver

Version NID
3.60-3.74 0x6A1184EA
void *sceVeneziaGetVThreadProcessingResourceForDriver(unsigned int key);
         SceCodecEngineWrapperForDriver_6A3638A8: 0x6A3638A8

sceCodecEngineUnmapUserVAtoPAForDriver

Version NID
3.60-3.74 0x6D41287F
int sceCodecEngineUnmapUserVAtoPAForDriver(SceUID pid, SceUIntVAddr memory, void **paddr);

sceCodecEngineUnmapKernelVAtoUserVAForDriver

Version NID
3.60-3.74 0x744D4C3F
int sceCodecEngineUnmapKernelVAtoUserVAForDriver(SceUID pid, SceUIntVAddr kernelMemory, SceUIntVAddr *memory);
         SceCodecEngineWrapperForDriver_7492DE05: 0x7492DE05

sceCodecEngineUnmapUserVAtoKernelVAForDriver

Version NID
3.60-3.74 0x82E378BD
int sceCodecEngineUnmapUserVAtoKernelVAForDriver(SceUID pid, SceUIntVAddr memory, SceUIntVAddr *kernelMemory);
         SceCodecEngineWrapperForDriver_86861877: 0x86861877
         SceCodecEngineWrapperForDriver_8CD35820: 0x8CD35820
         SceCodecEngineWrapperForDriver_8DEF9631: 0x8DEF9631
         SceCodecEngineWrapperForDriver_8FE370E6: 0x8FE370E6
         SceCodecEngineWrapperForDriver_91535820: 0x91535820
         SceCodecEngineWrapperForDriver_972F0D0F: 0x972F0D0F
         SceCodecEngineWrapperForDriver_9D3B1425: 0x9D3B1425
         SceCodecEngineWrapperForDriver_9EB3D63E: 0x9EB3D63E
         SceCodecEngineWrapperForDriver_B280BA55: 0xB280BA55
         SceCodecEngineWrapperForDriver_B420ABAC: 0xB420ABAC
         SceCodecEngineWrapperForDriver_B48B02A3: 0xB48B02A3
         SceCodecEngineWrapperForDriver_BB02EB22: 0xBB02EB22
         SceCodecEngineWrapperForDriver_BB388700: 0xBB388700

sceCodecEngineUnmapPAtoUserVAForDriver

Version NID
3.60-3.74 0xBCDCEA13
int sceCodecEngineUnmapPAtoUserVAForDriver(SceUID pid, void *paddr, SceUIntVAddr *memory);

sceCodecEngineUnregisterUnmapMemoryForDriver

Version NID
3.60-3.74 0xC5478DD5
int sceCodecEngineUnregisterUnmapMemoryForDriver(SceUID pid, SceUIntVAddr memory, SceUInt32 size);

sceVeneziaConvertVirtualToPhysicalForVeneziaForDriver

Version NID
3.60-3.74 0xC7C150AE

This is a guessed name.

void *sceVeneziaConvertVirtualToPhysicalForVeneziaForDriver(void *vaddr);

sceVeneziaLockProcessSuspendForDriver

Version NID
3.60-3.74 0xCB8703D8
int sceVeneziaLockProcessSuspendForDriver();

sceVeneziaMemcpyChainForDriver

Version NID
3.60-3.74 0xD1F94D9D
int sceVeneziaMemcpyChainForDriver(SceVeneziaRpcMemoryContext context);
         SceCodecEngineWrapperForDriver_EA88ABE5: 0xEA88ABE5
         SceCodecEngineWrapperForDriver_F3F71CEF: 0xF3F71CEF

sceVeneziaConvertPhysicalToVirtualForVeneziaForDriver

Version NID
3.60-3.74 0xF9495589

This is a guessed name. Used to convert return value of sceVeneziaHeapAlloc().

void *sceVeneziaConvertPhysicalToVirtualForVeneziaForDriver(void *paddr);
         SceCodecEngineWrapperForDriver_FAF590A6: 0xFAF590A6

sceCodecEngineRegisterUnmapMemoryForDriver

Version NID
3.60-3.74 0xFBD4853E
int sceCodecEngineRegisterUnmapMemoryForDriver(SceUID pid, SceUIntVAddr memory, SceUInt32 size);

SceCodecEngineWrapperForDebugger

         SceCodecEngineWrapperForDebugger_771190E7: 0x771190E7

SceCodecEngineWrapper