ps2sdk
1.1
A collection of Open Source libraries used for developing applications on Sony's PlayStation 2® (PS2).
|
#include <stdio.h>
#include <tamtypes.h>
#include <sifrpc.h>
#include <kernel.h>
#include <string.h>
#include "librm.h"
Go to the source code of this file.
Data Structures | |
struct | port_state |
Functions | |
static struct rmEEData * | rmGetDmaStr (int port, int slot) |
int | RMMan_Init (void) |
u32 | RMMan_GetModuleVersion (void) |
int | RMMan_Open (int port, int slot, void *pData) |
int | RMMan_End (void) |
int | RMMan_Close (int port, int slot) |
void | RMMan_Read (int port, int slot, struct remote_data *data) |
Variables | |
static SifRpcClientData_t | rmmanif |
static struct rmRpcPacket | buffer |
static int | rmman_init = 0 |
static struct port_state | ports [2] |
RPC Interface for PS2 Remote Control Driver (RMMAN)
Definition in file librm.c.
|
static |
Definition at line 36 of file librm.c.
References rmEEData::frame, port, ports, port_state::rmData, and SyncDCache().
Referenced by RMMan_Read().
int RMMan_Close | ( | int | port, |
int | slot | ||
) |
Definition at line 138 of file librm.c.
References buffer, rmRpcPacket::cmd, NULL, port, ports, RMMAN_RPCFUNC_CLOSE, rmmanif, SifCallRpc(), and slot.
Referenced by main().
int RMMan_End | ( | void | ) |
Definition at line 127 of file librm.c.
References buffer, rmRpcPacket::cmd, NULL, RMMAN_RPCFUNC_END, rmmanif, and SifCallRpc().
Referenced by main().
u32 RMMan_GetModuleVersion | ( | void | ) |
Definition at line 87 of file librm.c.
References buffer, rmRpcPacket::cmd, NULL, RMMAN_RPCFUNC_VERSION, rmmanif, and SifCallRpc().
Referenced by main().
int RMMan_Init | ( | void | ) |
Definition at line 54 of file librm.c.
References buffer, rmRpcPacket::cmd, nopdelay(), NULL, port_state::opened, ports, port_state::rmData, rmman_init, RMMAN_RPC_ID, RMMAN_RPCFUNC_INIT, rmmanif, SifRpcClientData_t::server, SifBindRpc(), and SifCallRpc().
Referenced by main().
int RMMan_Open | ( | int | port, |
int | slot, | ||
void * | pData | ||
) |
Definition at line 98 of file librm.c.
References buffer, rmRpcPacket::cmd, NULL, port_state::opened, port, ports, port_state::rmData, RMMAN_RPCFUNC_OPEN, rmmanif, SifCallRpc(), and slot.
Referenced by main().
void RMMan_Read | ( | int | port, |
int | slot, | ||
struct remote_data * | data | ||
) |
Definition at line 162 of file librm.c.
References rmEEData::data, data, port, rmGetDmaStr(), and slot.
Referenced by main().
|
static |
Definition at line 23 of file librm.c.
Referenced by RMMan_Close(), RMMan_End(), RMMan_GetModuleVersion(), RMMan_Init(), and RMMan_Open().
|
static |
Definition at line 25 of file librm.c.
Referenced by rmGetDmaStr(), RMMan_Close(), RMMan_Init(), and RMMan_Open().
|
static |
Definition at line 25 of file librm.c.
Referenced by RMMan_Init().
|
static |
Definition at line 23 of file librm.c.
Referenced by RMMan_Close(), RMMan_End(), RMMan_GetModuleVersion(), RMMan_Init(), and RMMan_Open().