ps2sdk
1.1
A collection of Open Source libraries used for developing applications on Sony's PlayStation 2® (PS2).
|
#include <tamtypes.h>
#include <kernel.h>
#include <sifrpc.h>
#include <stdarg.h>
#include <string.h>
#include <malloc.h>
#include <fcntl.h>
#include <stdio.h>
#include <sio.h>
#include "sior_rpc.h"
Go to the source code of this file.
Data Structures | |
struct | init_arguments_t |
Macros | |
#define | IOP_MEM 0xbc000000 |
Enumerations | |
enum | { SIOR_INIT = 1 , SIOR_PUTC , SIOR_GETC , SIOR_GETCBLOCK , SIOR_WRITE , SIOR_READ , SIOR_PUTS , SIOR_PUTSN , SIOR_GETS , SIOR_FLUSH } |
Functions | |
static void * | sior_rpc_server (u32 funcno, void *data, int size) |
static void | sior_thread (void) |
int | SIOR_Init (int priority) |
Variables | |
static SifRpcDataQueue_t | qd |
static SifRpcServerData_t | Sd0 |
static u32 | buffer [32] |
SIOR EE-side RPC code.
Definition in file sior_rpc.c.
#define IOP_MEM 0xbc000000 |
EE mapped IOP mem
Definition at line 32 of file sior_rpc.c.
anonymous enum |
Enumerator | |
---|---|
SIOR_INIT | |
SIOR_PUTC | |
SIOR_GETC | |
SIOR_GETCBLOCK | |
SIOR_WRITE | |
SIOR_READ | |
SIOR_PUTS | |
SIOR_PUTSN | |
SIOR_GETS | |
SIOR_FLUSH |
Definition at line 34 of file sior_rpc.c.
int SIOR_Init | ( | int | priority | ) |
Definition at line 134 of file sior_rpc.c.
References CreateThread(), ee_thread_t::func, ee_thread_t::gp_reg, ee_thread_t::initial_priority, NULL, sior_thread(), ee_thread_t::stack, ee_thread_t::stack_size, and StartThread().
|
static |
Definition at line 55 of file sior_rpc.c.
References init_arguments_t::baudrate, data, DI, ee_kmode_enter(), ee_kmode_exit(), EI, IOP_MEM, init_arguments_t::lcr_ueps, init_arguments_t::lcr_umode, init_arguments_t::lcr_upen, init_arguments_t::lcr_usbl, s, sio_flush(), sio_getc(), sio_getc_block(), sio_gets(), sio_init(), sio_putc(), sio_puts(), sio_putsn(), sio_read(), sio_write(), SIOR_FLUSH, SIOR_GETC, SIOR_GETCBLOCK, SIOR_GETS, SIOR_INIT, SIOR_PUTC, SIOR_PUTS, SIOR_PUTSN, SIOR_READ, and SIOR_WRITE.
Referenced by sior_thread().
|
static |
Definition at line 127 of file sior_rpc.c.
References buffer, GetThreadId(), NULL, qd, Sd0, SifInitRpc(), SifRegisterRpc(), SifRpcLoop(), SifSetRpcQueue(), SIOR_IRX, and sior_rpc_server().
Referenced by SIOR_Init().
|
static |
Definition at line 29 of file sior_rpc.c.
Referenced by sior_thread().
|
static |
Definition at line 27 of file sior_rpc.c.
Referenced by sior_thread().
|
static |
Definition at line 28 of file sior_rpc.c.
Referenced by sior_thread().