PS2SDK
PS2 Homebrew Libraries
Loading...
Searching...
No Matches
rpcserver.c File Reference
#include "types.h"
#include "sifcmd.h"
#include "thbase.h"
#include "stdio.h"
#include "sifman.h"
#include "freepad.h"
+ Include dependency graph for rpcserver.c:

Go to the source code of this file.

Macros

#define PAD_BIND_RPC_ID1   0x80000100
 
#define PAD_BIND_RPC_ID2   0x80000101
 
#define PAD_BIND_OLD_RPC_ID1   0x8000010f
 
#define PAD_BIND_OLD_RPC_ID2   0x8000011f
 

Enumerations

enum  PAD_RPCCMD {
  PAD_RPCCMD_OPEN = 0x80000100 , PAD_RPCCMD_INFO_ACT = 0x80000102 , PAD_RPCCMD_INFO_COMB , PAD_RPCCMD_INFO_MODE ,
  PAD_RPCCMD_SET_MMODE , PAD_RPCCMD_SET_ACTDIR , PAD_RPCCMD_SET_ACTALIGN , PAD_RPCCMD_GET_BTNMASK ,
  PAD_RPCCMD_SET_BTNINFO , PAD_RPCCMD_SET_VREF , PAD_RPCCMD_GET_PORTMAX , PAD_RPCCMD_GET_SLOTMAX ,
  PAD_RPCCMD_CLOSE , PAD_RPCCMD_END
}
 

Functions

static u32 sb[2][32] __attribute__ ((__aligned__(4)))
 
static void * RpcPadOpen (u32 *data)
 
static void * RpcPadSetMainMode (u32 *data)
 
static void * RpcPadInfoAct (u32 *data)
 
static void * RpcPadInfoComb (u32 *data)
 
static void * RpcPadInfoMode (u32 *data)
 
static void * RpcPadSetActDirect (u32 *data)
 
static void * RpcPadSetActAlign (u32 *data)
 
static void * RpcPadGetButtonMask (u32 *data)
 
static void * RpcPadSetButtonInfo (u32 *data)
 
static void * RpcPadSetVrefParam (u32 *data)
 
static void * RpcPadGetPortMax (u32 *data)
 
static void * RpcPadGetSlotMax (u32 *data)
 
static void * RpcPadClose (u32 *data)
 
static void * RpcPadEnd (u32 *data)
 
static void * RpcServer (int fno, void *buffer, int length)
 
static void * RpcServerExt (int fno, void *buffer, int length)
 
static void RpcThread (void *arg)
 
static void RpcThreadExt (void *arg)
 
int InitRpcServers (int prio)
 

Variables

static s32 ThreadIdRpcServer
 
static SifRpcDataQueue_t qd
 
static SifRpcServerData_t sd [2]
 
static s32 ThreadIdRpcServerExt
 
static SifRpcDataQueue_t qdext
 
static SifRpcServerData_t sdext [2]
 

Detailed Description

IOP pad driver

Definition in file rpcserver.c.

Macro Definition Documentation

◆ PAD_BIND_RPC_ID1

#define PAD_BIND_RPC_ID1   0x80000100

Definition at line 20 of file rpcserver.c.

◆ PAD_BIND_RPC_ID2

#define PAD_BIND_RPC_ID2   0x80000101

Definition at line 21 of file rpcserver.c.

◆ PAD_BIND_OLD_RPC_ID1

#define PAD_BIND_OLD_RPC_ID1   0x8000010f

Definition at line 23 of file rpcserver.c.

◆ PAD_BIND_OLD_RPC_ID2

#define PAD_BIND_OLD_RPC_ID2   0x8000011f

Definition at line 24 of file rpcserver.c.

Enumeration Type Documentation

◆ PAD_RPCCMD

enum PAD_RPCCMD

Definition at line 26 of file rpcserver.c.

Function Documentation

◆ RpcPadOpen()

static void * RpcPadOpen ( u32 *  data)
static

Definition at line 78 of file rpcserver.c.

◆ RpcPadSetMainMode()

static void * RpcPadSetMainMode ( u32 *  data)
static

Definition at line 86 of file rpcserver.c.

◆ RpcPadInfoAct()

static void * RpcPadInfoAct ( u32 *  data)
static

Definition at line 93 of file rpcserver.c.

◆ RpcPadInfoComb()

static void * RpcPadInfoComb ( u32 *  data)
static

Definition at line 101 of file rpcserver.c.

◆ RpcPadInfoMode()

static void * RpcPadInfoMode ( u32 *  data)
static

Definition at line 108 of file rpcserver.c.

◆ RpcPadSetActDirect()

static void * RpcPadSetActDirect ( u32 *  data)
static

Definition at line 115 of file rpcserver.c.

◆ RpcPadSetActAlign()

static void * RpcPadSetActAlign ( u32 *  data)
static

Definition at line 122 of file rpcserver.c.

◆ RpcPadGetButtonMask()

static void * RpcPadGetButtonMask ( u32 *  data)
static

Definition at line 130 of file rpcserver.c.

◆ RpcPadSetButtonInfo()

static void * RpcPadSetButtonInfo ( u32 *  data)
static

Definition at line 138 of file rpcserver.c.

◆ RpcPadSetVrefParam()

static void * RpcPadSetVrefParam ( u32 *  data)
static

Definition at line 145 of file rpcserver.c.

◆ RpcPadGetPortMax()

static void * RpcPadGetPortMax ( u32 *  data)
static

Definition at line 152 of file rpcserver.c.

◆ RpcPadGetSlotMax()

static void * RpcPadGetSlotMax ( u32 *  data)
static

Definition at line 159 of file rpcserver.c.

◆ RpcPadClose()

static void * RpcPadClose ( u32 *  data)
static

Definition at line 166 of file rpcserver.c.

◆ RpcPadEnd()

static void * RpcPadEnd ( u32 *  data)
static

Definition at line 173 of file rpcserver.c.

◆ RpcServer()

static void * RpcServer ( int  fno,
void *  buffer,
int  length 
)
static

Definition at line 198 of file rpcserver.c.

◆ RpcServerExt()

static void * RpcServerExt ( int  fno,
void *  buffer,
int  length 
)
static

Definition at line 253 of file rpcserver.c.

◆ RpcThread()

static void RpcThread ( void *  arg)
static

Definition at line 264 of file rpcserver.c.

◆ RpcThreadExt()

static void RpcThreadExt ( void *  arg)
static

Definition at line 283 of file rpcserver.c.

◆ InitRpcServers()

int InitRpcServers ( int  prio)

Definition at line 302 of file rpcserver.c.

Variable Documentation

◆ ThreadIdRpcServer

s32 ThreadIdRpcServer
static

Definition at line 67 of file rpcserver.c.

◆ qd

SifRpcDataQueue_t qd
static

Definition at line 68 of file rpcserver.c.

◆ sd

SifRpcServerData_t sd[2]
static

Definition at line 69 of file rpcserver.c.

◆ ThreadIdRpcServerExt

s32 ThreadIdRpcServerExt
static

Definition at line 73 of file rpcserver.c.

◆ qdext

SifRpcDataQueue_t qdext
static

Definition at line 74 of file rpcserver.c.

◆ sdext

SifRpcServerData_t sdext[2]
static

Definition at line 75 of file rpcserver.c.