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

Go to the source code of this file.

Macros

#define MTAPSERV_PORT_OPEN   0x80000901
 
#define MTAPSERV_PORT_CLOSE   0x80000902
 
#define MTAPSERV_GET_CONNECTION   0x80000903
 
#define MTAPSERV_GET_SLOT_NUMBER   0x800009FE
 
#define MTAPSERV_CHANGE_SLOT   0x800009FF
 

Functions

static u32 sb[4] __attribute__ ((__aligned__(4)))
 
void * rpc_server_change_slot (s32 fno, u32 *data, s32 size)
 
void rpc_thread_change_slot ()
 
void * rpc_server_get_slot_number (s32 fno, u32 *data, s32 size)
 
void rpc_thread_get_slot_number ()
 
void * RpcServerGetConnection (s32 fno, u32 *data, s32 size)
 
void RpcThreadGetConnection ()
 
void * RpcServerPortClose (s32 fno, u32 *data, s32 size)
 
void RpcThreadPortClose ()
 
void * RpcServerPortOpen (s32 fno, u32 *data, s32 size)
 
void RpcThreadPortOpen ()
 
s32 InitRpcServers ()
 

Variables

static s32 threadid_rpc1
 
static SifRpcDataQueue_t qd1
 
static SifRpcServerData_t sd1
 
static s32 threadid_rpc2
 
static SifRpcDataQueue_t qd2
 
static SifRpcServerData_t sd2
 
static s32 threadid_rpc3
 
static SifRpcDataQueue_t qd3
 
static SifRpcServerData_t sd3
 
static s32 threadid_rpc4
 
static SifRpcDataQueue_t qd4
 
static SifRpcServerData_t sd4
 
static s32 threadid_rpc5
 
static SifRpcDataQueue_t qd5
 
static SifRpcServerData_t sd5
 

Detailed Description

IOP multitap driver

Definition in file rpcservers.c.

Macro Definition Documentation

◆ MTAPSERV_PORT_OPEN

#define MTAPSERV_PORT_OPEN   0x80000901

Definition at line 20 of file rpcservers.c.

◆ MTAPSERV_PORT_CLOSE

#define MTAPSERV_PORT_CLOSE   0x80000902

Definition at line 21 of file rpcservers.c.

◆ MTAPSERV_GET_CONNECTION

#define MTAPSERV_GET_CONNECTION   0x80000903

Definition at line 22 of file rpcservers.c.

◆ MTAPSERV_GET_SLOT_NUMBER

#define MTAPSERV_GET_SLOT_NUMBER   0x800009FE

Definition at line 23 of file rpcservers.c.

◆ MTAPSERV_CHANGE_SLOT

#define MTAPSERV_CHANGE_SLOT   0x800009FF

Definition at line 24 of file rpcservers.c.

Function Documentation

◆ rpc_server_change_slot()

void * rpc_server_change_slot ( s32  fno,
u32 *  data,
s32  size 
)

Definition at line 50 of file rpcservers.c.

◆ rpc_thread_change_slot()

void rpc_thread_change_slot ( )

Definition at line 61 of file rpcservers.c.

◆ rpc_server_get_slot_number()

void * rpc_server_get_slot_number ( s32  fno,
u32 *  data,
s32  size 
)

Definition at line 76 of file rpcservers.c.

◆ rpc_thread_get_slot_number()

void rpc_thread_get_slot_number ( )

Definition at line 87 of file rpcservers.c.

◆ RpcServerGetConnection()

void * RpcServerGetConnection ( s32  fno,
u32 *  data,
s32  size 
)

Definition at line 101 of file rpcservers.c.

◆ RpcThreadGetConnection()

void RpcThreadGetConnection ( )

Definition at line 111 of file rpcservers.c.

◆ RpcServerPortClose()

void * RpcServerPortClose ( s32  fno,
u32 *  data,
s32  size 
)

Definition at line 125 of file rpcservers.c.

◆ RpcThreadPortClose()

void RpcThreadPortClose ( )

Definition at line 135 of file rpcservers.c.

◆ RpcServerPortOpen()

void * RpcServerPortOpen ( s32  fno,
u32 *  data,
s32  size 
)

Definition at line 149 of file rpcservers.c.

◆ RpcThreadPortOpen()

void RpcThreadPortOpen ( )

Definition at line 159 of file rpcservers.c.

◆ InitRpcServers()

s32 InitRpcServers ( )

Definition at line 180 of file rpcservers.c.

Variable Documentation

◆ threadid_rpc1

s32 threadid_rpc1
static

Definition at line 29 of file rpcservers.c.

◆ qd1

SifRpcDataQueue_t qd1
static

Definition at line 30 of file rpcservers.c.

◆ sd1

SifRpcServerData_t sd1
static

Definition at line 31 of file rpcservers.c.

◆ threadid_rpc2

s32 threadid_rpc2
static

Definition at line 33 of file rpcservers.c.

◆ qd2

SifRpcDataQueue_t qd2
static

Definition at line 34 of file rpcservers.c.

◆ sd2

SifRpcServerData_t sd2
static

Definition at line 35 of file rpcservers.c.

◆ threadid_rpc3

s32 threadid_rpc3
static

Definition at line 37 of file rpcservers.c.

◆ qd3

SifRpcDataQueue_t qd3
static

Definition at line 38 of file rpcservers.c.

◆ sd3

SifRpcServerData_t sd3
static

Definition at line 39 of file rpcservers.c.

◆ threadid_rpc4

s32 threadid_rpc4
static

Definition at line 41 of file rpcservers.c.

◆ qd4

SifRpcDataQueue_t qd4
static

Definition at line 42 of file rpcservers.c.

◆ sd4

SifRpcServerData_t sd4
static

Definition at line 43 of file rpcservers.c.

◆ threadid_rpc5

s32 threadid_rpc5
static

Definition at line 45 of file rpcservers.c.

◆ qd5

SifRpcDataQueue_t qd5
static

Definition at line 46 of file rpcservers.c.

◆ sd5

SifRpcServerData_t sd5
static

Definition at line 47 of file rpcservers.c.