2020-09-13 21:32:55 -04:00
|
|
|
#pragma once
|
|
|
|
|
2020-08-22 22:30:12 -04:00
|
|
|
/*!
|
|
|
|
* @file kdgo.h
|
|
|
|
* Loading DGO Files. Also has some general SIF RPC stuff used for RPCs other than DGO loading.
|
|
|
|
* DONE!
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "common/common_types.h"
|
|
|
|
#include "Ptr.h"
|
|
|
|
#include "kmalloc.h"
|
|
|
|
|
|
|
|
void kdgo_init_globals();
|
|
|
|
u32 InitRPC();
|
2022-01-21 21:11:57 -05:00
|
|
|
void load_and_link_dgo_from_c(const char* name,
|
|
|
|
Ptr<kheapinfo> heap,
|
|
|
|
u32 linkFlag,
|
|
|
|
s32 bufferSize,
|
|
|
|
bool jump_from_c_to_goal);
|
2020-08-22 22:30:12 -04:00
|
|
|
void load_and_link_dgo(u64 name_gstr, u64 heap_info, u64 flag, u64 buffer_size);
|
|
|
|
void StopIOP();
|
|
|
|
|
2020-12-23 11:15:41 -05:00
|
|
|
u64 RpcCall_wrapper(void* args);
|
2021-08-22 20:12:47 -04:00
|
|
|
s32 RpcCall(s32 rpcChannel,
|
|
|
|
u32 fno,
|
|
|
|
bool async,
|
|
|
|
void* sendBuff,
|
|
|
|
s32 sendSize,
|
|
|
|
void* recvBuff,
|
|
|
|
s32 recvSize);
|
2020-08-22 22:30:12 -04:00
|
|
|
u32 RpcBusy(s32 channel);
|
|
|
|
void LoadDGOTest();
|