SceCodecEngineWrapper: Difference between revisions

From Vita Development Wiki
Jump to navigation Jump to search
(Add lots of functions and datatypes (RE by GrapheneCt))
m (→‎Module: Add old module notice)
Line 1: Line 1:
== Module ==
== Module ==
'''For the firmware 1.69 and lower version of this module, see [[SceVeneziaWrapper]].'''


{| class="wikitable"
{| class="wikitable"

Revision as of 17:10, 4 September 2022

Module

For the firmware 1.69 and lower version of this module, see SceVeneziaWrapper.

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