mirror of
https://github.com/wiiu-env/MochaLite.git
synced 2024-10-31 18:15:08 +01:00
43f1af08a3
NOTE: This is a work in progress commit. It includes debug and test functions and some features that existed before might not even work. It is not finished and not very well tested. So it's warning to NOT use this for everyday playing! This is target for developers to look some stuff up that I was working on. See also my post on gbatemp for more information.
30 lines
792 B
C
30 lines
792 B
C
#ifndef SVC_H
|
|
#define SVC_H
|
|
|
|
#include "types.h"
|
|
|
|
#define SHUTDOWN_TYPE_POWER_OFF 0
|
|
#define SHUTDOWN_TYPE_REBOOT 1
|
|
|
|
typedef struct
|
|
{
|
|
void* ptr;
|
|
u32 len;
|
|
u32 unk;
|
|
}iovec_s;
|
|
|
|
void* svcAlloc(u32 heapid, u32 size);
|
|
void* svcAllocAlign(u32 heapid, u32 size, u32 align);
|
|
void svcFree(u32 heapid, void* ptr);
|
|
int svcOpen(char* name, int mode);
|
|
int svcClose(int fd);
|
|
int svcIoctl(int fd, u32 request, void* input_buffer, u32 input_buffer_len, void* output_buffer, u32 output_buffer_len);
|
|
int svcIoctlv(int fd, u32 request, u32 vector_count_in, u32 vector_count_out, iovec_s* vector);
|
|
int svcInvalidateDCache(void* address, u32 size);
|
|
int svcFlushDCache(void* address, u32 size);
|
|
|
|
void svcShutdown(int shutdown_type);
|
|
int svcCustomKernelCommand(u32 command, ...);
|
|
|
|
#endif
|