PS2SDK
PS2 Homebrew Libraries
|
#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 SifRpcClientData_t rmmanif | __attribute__ ((aligned(64))) |
static struct rmEEData * | rmGetDmaStr (int port, int slot) |
int | RMMan_Init (void) |
Initialise librm. | |
u32 | RMMan_GetModuleVersion (void) |
Returns the rmman.irx version. | |
int | RMMan_Open (int port, int slot, void *pData) |
int | RMMan_End (void) |
Ends all remote communication. | |
int | RMMan_Close (int port, int slot) |
Closes an opened port. | |
void | RMMan_Read (int port, int slot, struct remote_data *data) |
Read remote data. | |
Variables | |
static int | rmman_type = 0 |
static struct port_state | ports [2] |
RPC Interface for PS2 Remote Control Driver (RMMAN)
Definition in file librm.c.
struct port_state |
|
static |
int RMMan_Init | ( | void | ) |
Initialise librm.
Definition at line 54 of file librm.c.
References __attribute__.
u32 RMMan_GetModuleVersion | ( | void | ) |
int RMMan_Open | ( | int | port, |
int | slot, | ||
void * | pData ) |
[in] | port | Port number to open (0 or 1) |
[in] | slot | Slot to open (0 or 1: multitap not supported) |
[out] | pData | The address of the buffer for storing the pad status. Must be a 256-byte region (2xsizeof(struct pad_data). Must be a 64-byte aligned address. |
int RMMan_End | ( | void | ) |
int RMMan_Close | ( | int | port, |
int | slot ) |
void RMMan_Read | ( | int | port, |
int | slot, | ||
struct remote_data * | data ) |
|
static |