wavelength 1.0.0
Loading...
Searching...
No Matches
EzNetCnf Class Reference

The eznetcnf module reads network configuration files for the EE through a SIF RPC server. More...

#include <eznetcnf.h>

Collaboration diagram for EzNetCnf:

Public Types

enum  Function { kFunctionGetCount = 0 , kFunctionGetList = 1 , kFunctionLoadEntry = 2 }
 RPC function numbers. More...

Static Public Member Functions

static int ModuleStart ()
 Start the module.
static int ModuleStop (int argc, char **argv)
 Unload the module.
static unsigned int SendToEe (void *data, void *destination, int size, bool noWait)
 Copy a buffer to EE memory by SIF DMA.

Static Public Attributes

static constexpr unsigned int kRpcServerId = 0x75499128
 SIF RPC server identifier of the module.
static int sThread
 Thread that runs the RPC server.
static int sInterruptState
 Interrupt state that CpuSuspendIntr() saves around memory allocation and DMA.
static NetcnfifEnv sEnv
 Environment each load fills.

Detailed Description

The eznetcnf module reads network configuration files for the EE through a SIF RPC server.

It counts and lists the entries of a file and sends loaded entries to the EE as NetcnfifData.

The module was built without RTTI. The name is inferred from the module's name.

Member Enumeration Documentation

◆ Function

RPC function numbers.

Enumerator
kFunctionGetCount 

Count the combinations of NetCnfRequest::mFileName.

kFunctionGetList 

NetCnfRequest::GetList().

kFunctionLoadEntry 

NetCnfRequest::LoadEntry().

Member Function Documentation

◆ ModuleStart()

int EzNetCnf::ModuleStart ( )
static

Start the module.

Create and start the RPC server thread.

Returns
A ModuleStartResult.
Ghidra address:
NTSC-U/C: 0x00000034
Ghidra address:
PAL: 0x00000034

◆ ModuleStop()

int EzNetCnf::ModuleStop ( int argc,
char ** argv )
static

Unload the module.

Only an other argument stops the RPC server thread.

Parameters
argcArgument count.
argvArguments.
Returns
A ModuleStartResult.
Ghidra address:
NTSC-U/C: 0x000000d8
Ghidra address:
PAL: 0x000000d8

◆ SendToEe()

unsigned int EzNetCnf::SendToEe ( void * data,
void * destination,
int size,
bool noWait )
static

Copy a buffer to EE memory by SIF DMA.

A size that is not a multiple of 16 bytes is padded, with a warning.

Parameters
dataSource in IOP memory.
destinationDestination in EE memory.
sizeByte count.
noWaitFalse to wait for the transfer to complete.
Returns
The transfer identifier.
Ghidra address:
NTSC-U/C: 0x00000a68
Ghidra address:
PAL: 0x00000a68

Member Data Documentation

◆ kRpcServerId

unsigned int EzNetCnf::kRpcServerId = 0x75499128
staticconstexpr

SIF RPC server identifier of the module.

◆ sThread

int EzNetCnf::sThread
static

Thread that runs the RPC server.

◆ sInterruptState

int EzNetCnf::sInterruptState
static

Interrupt state that CpuSuspendIntr() saves around memory allocation and DMA.

◆ sEnv

NetcnfifEnv EzNetCnf::sEnv
static

Environment each load fills.


The documentation for this class was generated from the following file: