wavelength 1.0.0
Loading...
Searching...
No Matches
eznetcnf.h
Go to the documentation of this file.
1#pragma once
2
3#include <sifrpc.h>
4
7
14class EzNetCnf {
15public:
17 static constexpr unsigned int kRpcServerId = 0x75499128;
18
25
33 static int ModuleStart();
34
44 static int ModuleStop(int argc, char **argv);
45
58 static unsigned int SendToEe(void *data, void *destination, int size, bool noWait);
59
61 static int sThread;
62
64 static int sInterruptState;
65
68
69private:
76 static void RpcServerThread();
77
84 static void RemoveRpcServer();
85
93 static int Initialize();
94
102 static int Finalize();
103
114 static void *RpcHandler(unsigned int function, void *buffer, int size);
115
117 static sceSifQueueData sQueue;
118
120 static sceSifServeData sServer;
121
123 alignas(16) static NetCnfRequest sBuffer;
124};
125
135extern "C" int start(int argc, char **argv);
The eznetcnf module reads network configuration files for the EE through a SIF RPC server.
Definition eznetcnf.h:14
static int ModuleStart()
Start the module.
static int sThread
Thread that runs the RPC server.
Definition eznetcnf.h:61
static unsigned int SendToEe(void *data, void *destination, int size, bool noWait)
Copy a buffer to EE memory by SIF DMA.
static int sInterruptState
Interrupt state that CpuSuspendIntr() saves around memory allocation and DMA.
Definition eznetcnf.h:64
static int ModuleStop(int argc, char **argv)
Unload the module.
static constexpr unsigned int kRpcServerId
SIF RPC server identifier of the module.
Definition eznetcnf.h:17
Function
RPC function numbers.
Definition eznetcnf.h:20
@ kFunctionGetList
Definition eznetcnf.h:22
@ kFunctionLoadEntry
Definition eznetcnf.h:23
@ kFunctionGetCount
Definition eznetcnf.h:21
static NetcnfifEnv sEnv
Environment each load fills.
Definition eznetcnf.h:67
Argument buffer of an eznetcnf RPC request.
Definition netcnfrequest.h:13
A netcnf environment that loads into memory of the module.
Definition netcnfifenv.h:10
int start(int argc, char **argv)
Module entry.