Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
ipcclt.c File Reference

Classes

struct  IOSRpcRequest
 

Typedefs

typedef struct IOSRpcRequest IOSRpcRequest
 

Functions

static u8 __rpcBuf[ROUNDUP(sizeof(IOSRpcRequest))] ATTRIBUTE_ALIGN (32)
 
void ACRWriteReg (u32 param_0, u32 param_1)
 
void IPCiProfQueueReq (void *, s32)
 
u32 strnlen (const u8 *str, u32 n)
 
static IOSRpcRequestipcAllocReq (void)
 
static IOSError ipcFree (IOSRpcRequest *rpc)
 
static IOSError __ipcQueueRequest (IOSResourceRequest *req)
 
static void __ipcSendRequest (void)
 
void IpcReplyHandler (__OSInterrupt interrupt, OSContext *context)
 
static void IpcAckHandler (__OSInterrupt interrupt, OSContext *context)
 
void IPCInterruptHandler (__OSInterrupt interrupt, OSContext *context)
 
IOSError IPCCltInit (void)
 
IOSError IPCCltReInit (void)
 
static IOSError __ios_Ipc1 (IOSFd fd, u32 cmd, IOSIpcCb cb, void *cbArg, IOSRpcRequest **rpc)
 
static IOSError __ios_Ipc2 (IOSRpcRequest *rpc, IOSIpcCb cb)
 
static IOSError __ios_Open (IOSRpcRequest *rpc, const char *path, u32 flags)
 
IOSError IOS_OpenAsync (const char *pPath, u32 flags, IOSIpcCb cb, void *callback_arg)
 
IOSError IOS_Open (const char *path, u32 flags)
 
IOSError IOS_CloseAsync (IOSFd fd, IOSIpcCb cb, void *cbArg)
 
IOSError IOS_Close (IOSFd fd)
 
static IOSError __ios_Read (IOSRpcRequest *rpc, void *buf, u32 len)
 
IOSError IOS_ReadAsync (IOSFd fd, void *buf, u32 len, IOSIpcCb cb, void *cbArg)
 
IOSError IOS_Read (IOSFd fd, void *buf, u32 len)
 
static IOSError __ios_Write (IOSRpcRequest *rpc, void *buf, u32 len)
 
IOSError IOS_WriteAsync (IOSFd fd, void *buf, u32 len, IOSIpcCb cb, void *cbArg)
 
IOSError IOS_Write (IOSFd fd, void *buf, u32 len)
 
static IOSError __ios_Seek (IOSRpcRequest *rpc, s32 offset, u32 whence)
 
IOSError IOS_SeekAsync (IOSFd fd, s32 offset, u32 whence, IOSIpcCb cb, void *cbArg)
 
IOSError IOS_Seek (IOSFd fd, s32 offset, u32 whence)
 
static IOSError __ios_Ioctl (IOSRpcRequest *rpc, s32 cmd, void *input, u32 inputLen, void *output, u32 outputLen)
 
IOSError IOS_IoctlAsync (IOSFd fd, s32 cmd, void *input, u32 inputLen, void *output, u32 outputLen, IOSIpcCb cb, void *cbArg)
 
IOSError IOS_Ioctl (IOSFd fd, s32 cmd, void *input, u32 inputLen, void *output, u32 outputLen)
 
static IOSError __ios_Ioctlv (IOSRpcRequest *rpc, s32 cmd, u32 readCount, u32 writeCount, IOSIoVector *vect)
 
IOSError IOS_IoctlvAsync (IOSFd fd, s32 cmd, u32 readCount, u32 writeCount, IOSIoVector *vect, IOSIpcCb cb, void *cbArg)
 
IOSError IOS_Ioctlv (IOSFd fd, s32 cmd, u32 readCount, u32 writeCount, IOSIoVector *vect)
 
IOSError IOS_IoctlvReboot (IOSFd fd, s32 cmd, u32 readCount, u32 writeCount, IOSIoVector *vect)
 

Variables

static s32 __mailboxAck = 1
 
static u32 __relnchFl = 0
 
static IOSRpcRequest__relnchRpc = 0
 
static IOSRpcRequest__relnchRpcSave = 0
 
struct { 
 
   u32   rcount 
 
   u32   wcount 
 
   u32   rptr 
 
   u32   wptr 
 
   IOSResourceRequest *   buf [48] 
 
__responses 
 
static OSAlarm __timeout_alarm
 
static IOSHeapId hid = -1
 

Typedef Documentation

◆ IOSRpcRequest

typedef struct IOSRpcRequest IOSRpcRequest

Function Documentation

◆ __ios_Ioctl()

static IOSError __ios_Ioctl ( IOSRpcRequest * rpc,
s32 cmd,
void * input,
u32 inputLen,
void * output,
u32 outputLen )
static

◆ __ios_Ioctlv()

static IOSError __ios_Ioctlv ( IOSRpcRequest * rpc,
s32 cmd,
u32 readCount,
u32 writeCount,
IOSIoVector * vect )
static

◆ __ios_Ipc1()

static IOSError __ios_Ipc1 ( IOSFd fd,
u32 cmd,
IOSIpcCb cb,
void * cbArg,
IOSRpcRequest ** rpc )
static

◆ __ios_Ipc2()

static IOSError __ios_Ipc2 ( IOSRpcRequest * rpc,
IOSIpcCb cb )
static

◆ __ios_Open()

static IOSError __ios_Open ( IOSRpcRequest * rpc,
const char * path,
u32 flags )
static

◆ __ios_Read()

static IOSError __ios_Read ( IOSRpcRequest * rpc,
void * buf,
u32 len )
static

◆ __ios_Seek()

static IOSError __ios_Seek ( IOSRpcRequest * rpc,
s32 offset,
u32 whence )
static

◆ __ios_Write()

static IOSError __ios_Write ( IOSRpcRequest * rpc,
void * buf,
u32 len )
static

◆ __ipcQueueRequest()

static IOSError __ipcQueueRequest ( IOSResourceRequest * req)
static

◆ __ipcSendRequest()

static void __ipcSendRequest ( void )
static

◆ ACRWriteReg()

void ACRWriteReg ( u32 param_0,
u32 param_1 )
extern

◆ ATTRIBUTE_ALIGN()

static u8 __rpcBuf[ROUNDUP(sizeof(IOSRpcRequest))] ATTRIBUTE_ALIGN ( 32 )
static

◆ IOS_Close()

IOSError IOS_Close ( IOSFd fd)

◆ IOS_CloseAsync()

IOSError IOS_CloseAsync ( IOSFd fd,
IOSIpcCb cb,
void * cbArg )

◆ IOS_Ioctl()

IOSError IOS_Ioctl ( IOSFd fd,
s32 cmd,
void * input,
u32 inputLen,
void * output,
u32 outputLen )

◆ IOS_IoctlAsync()

IOSError IOS_IoctlAsync ( IOSFd fd,
s32 cmd,
void * input,
u32 inputLen,
void * output,
u32 outputLen,
IOSIpcCb cb,
void * cbArg )

◆ IOS_Ioctlv()

IOSError IOS_Ioctlv ( IOSFd fd,
s32 cmd,
u32 readCount,
u32 writeCount,
IOSIoVector * vect )

◆ IOS_IoctlvAsync()

IOSError IOS_IoctlvAsync ( IOSFd fd,
s32 cmd,
u32 readCount,
u32 writeCount,
IOSIoVector * vect,
IOSIpcCb cb,
void * cbArg )

◆ IOS_IoctlvReboot()

IOSError IOS_IoctlvReboot ( IOSFd fd,
s32 cmd,
u32 readCount,
u32 writeCount,
IOSIoVector * vect )

◆ IOS_Open()

IOSError IOS_Open ( const char * path,
u32 flags )

◆ IOS_OpenAsync()

IOSError IOS_OpenAsync ( const char * pPath,
u32 flags,
IOSIpcCb cb,
void * callback_arg )

◆ IOS_Read()

IOSError IOS_Read ( IOSFd fd,
void * buf,
u32 len )

◆ IOS_ReadAsync()

IOSError IOS_ReadAsync ( IOSFd fd,
void * buf,
u32 len,
IOSIpcCb cb,
void * cbArg )

◆ IOS_Seek()

IOSError IOS_Seek ( IOSFd fd,
s32 offset,
u32 whence )

◆ IOS_SeekAsync()

IOSError IOS_SeekAsync ( IOSFd fd,
s32 offset,
u32 whence,
IOSIpcCb cb,
void * cbArg )

◆ IOS_Write()

IOSError IOS_Write ( IOSFd fd,
void * buf,
u32 len )

◆ IOS_WriteAsync()

IOSError IOS_WriteAsync ( IOSFd fd,
void * buf,
u32 len,
IOSIpcCb cb,
void * cbArg )

◆ IpcAckHandler()

static void IpcAckHandler ( __OSInterrupt interrupt,
OSContext * context )
static

◆ ipcAllocReq()

static IOSRpcRequest * ipcAllocReq ( void )
static

◆ IPCCltInit()

IOSError IPCCltInit ( void )

◆ IPCCltReInit()

IOSError IPCCltReInit ( void )

◆ ipcFree()

static IOSError ipcFree ( IOSRpcRequest * rpc)
static

◆ IPCInterruptHandler()

void IPCInterruptHandler ( __OSInterrupt interrupt,
OSContext * context )

◆ IPCiProfQueueReq()

void IPCiProfQueueReq ( void * req,
s32 handle )
extern

◆ IpcReplyHandler()

void IpcReplyHandler ( __OSInterrupt interrupt,
OSContext * context )

◆ strnlen()

u32 strnlen ( const u8 * str,
u32 n )

Variable Documentation

◆ __mailboxAck

s32 __mailboxAck = 1
static

◆ __relnchFl

u32 __relnchFl = 0
static

◆ __relnchRpc

IOSRpcRequest* __relnchRpc = 0
static

◆ __relnchRpcSave

IOSRpcRequest* __relnchRpcSave = 0
static

◆ [struct]

struct { ... } __responses

◆ __timeout_alarm

OSAlarm __timeout_alarm
static

◆ buf

◆ hid

IOSHeapId hid = -1
static

◆ rcount

u32 rcount

◆ rptr

u32 rptr

◆ wcount

u32 wcount

◆ wptr

u32 wptr