PS2SDK
PS2 Homebrew Libraries
Loading...
Searching...
No Matches
rpc_server.c File Reference
#include <stdio.h>
#include <thbase.h>
#include <thsemap.h>
#include <loadcore.h>
#include <sysmem.h>
#include <intrman.h>
#include <sifcmd.h>
#include <audsrv.h>
#include "audsrv_internal.h"
#include "common.h"
#include "rpc_client.h"
#include "debug_printf.h"
+ Include dependency graph for rpc_server.c:

Go to the source code of this file.

Functions

static int rpc_buffer[18000/4] __attribute__ ((__aligned__(4)))
 
static void * rpc_command (int func, unsigned *data, int size)
 
static void rpc_server_thread (void *arg)
 
int initialize_rpc_thread ()
 

Variables

static SifRpcDataQueue_t qd
 
static SifRpcServerData_t sd0
 

Detailed Description

audsrv iop rpc server.

Definition in file rpc_server.c.

Function Documentation

◆ __attribute__()

static int rpc_buffer[18000/4] __attribute__ ( (__aligned__(4))  )
static

buffer for RPC DMA

◆ rpc_command()

static void * rpc_command ( int  func,
unsigned *  data,
int  size 
)
static

◆ rpc_server_thread()

static void rpc_server_thread ( void *  arg)
static

RPC listener thread

Parameters
argnot used

This is the main RPC thread. Nothing fancy here.

Definition at line 182 of file rpc_server.c.

References qd, rpc_command(), and sd0.

◆ initialize_rpc_thread()

int initialize_rpc_thread ( )

Definition at line 195 of file rpc_server.c.

Variable Documentation

◆ qd

SifRpcDataQueue_t qd
static

RPC thread variables

Definition at line 33 of file rpc_server.c.

Referenced by rpc_server_thread().

◆ sd0

SifRpcServerData_t sd0
static

RPC thread variables

Definition at line 35 of file rpc_server.c.

Referenced by rpc_server_thread().