Skip to content

Commit 0cf2f35

Browse files
committed
add: Implementation of netcnfif module
1 parent cd6f331 commit 0cf2f35

File tree

6 files changed

+1373
-0
lines changed

6 files changed

+1373
-0
lines changed

iop/network/netcnfif/Makefile

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# _____ ___ ____ ___ ____
2+
# ____| | ____| | | |____|
3+
# | ___| |____ ___| ____| | \ PS2DEV Open Source Project.
4+
#-----------------------------------------------------------------------
5+
# Copyright ps2dev - http://www.ps2dev.org
6+
# Licenced under Academic Free License version 2.0
7+
# Review ps2sdk README & LICENSE files for further details.
8+
9+
IOP_BIN ?= netcnfif.irx
10+
11+
IOP_IMPORT_INCS += \
12+
network/netcnf \
13+
system/intrman \
14+
system/loadcore \
15+
system/sifcmd \
16+
system/sifman \
17+
system/stdio \
18+
system/sysclib \
19+
system/threadman \
20+
system/heaplib
21+
22+
IOP_OBJS = netcnfif.o exports.o imports.o
23+
24+
include $(PS2SDKSRC)/Defs.make
25+
include $(PS2SDKSRC)/iop/Rules.bin.make
26+
include $(PS2SDKSRC)/iop/Rules.make
27+
include $(PS2SDKSRC)/iop/Rules.release

iop/network/netcnfif/README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Network configuration library interface
2+
3+
This module provides a SIF RPC server for `netcnf` for accessing the library
4+
from the EE.
5+
6+
## Configurations
7+
8+
There are multiple configurations of this library, allowing the choice of
9+
balancing between size, speed, and features.
10+
11+
* `netcnf` -> The recommended version.
12+
13+
## How to use this module in your program
14+
15+
In order to use this module in your program, use `LoadModule` or \
16+
`LoadModuleBuffer` with no arguments.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
2+
DECLARE_EXPORT_TABLE(netcnfif, 1, 1)
3+
DECLARE_EXPORT(_retonly)
4+
DECLARE_EXPORT(_retonly)
5+
DECLARE_EXPORT(_retonly)
6+
END_EXPORT_TABLE
7+
8+
void _retonly() {}
Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
2+
netcnf_IMPORTS_start
3+
I_sceNetCnfGetCount
4+
I_sceNetCnfGetList
5+
I_sceNetCnfLoadEntry
6+
I_sceNetCnfAddEntry
7+
I_sceNetCnfDeleteEntry
8+
I_sceNetCnfSetLatestEntry
9+
I_sceNetCnfAllocMem
10+
I_sceNetCnfInitIFC
11+
I_sceNetCnfName2Address
12+
I_sceNetCnfAddress2String
13+
I_sceNetCnfEditEntry
14+
I_sceNetCnfDeleteAll
15+
I_sceNetCnfCheckCapacity
16+
I_sceNetCnfConvA2S
17+
I_sceNetCnfConvS2A
18+
I_sceNetCnfCheckSpecialProvider
19+
I_sceNetCnfSetCallback
20+
netcnf_IMPORTS_end
21+
22+
intrman_IMPORTS_start
23+
I_CpuSuspendIntr
24+
I_CpuResumeIntr
25+
intrman_IMPORTS_end
26+
27+
loadcore_IMPORTS_start
28+
I_RegisterLibraryEntries
29+
I_ReleaseLibraryEntries
30+
loadcore_IMPORTS_end
31+
32+
sifcmd_IMPORTS_start
33+
I_sceSifInitRpc
34+
I_sceSifBindRpc
35+
I_sceSifCallRpc
36+
I_sceSifRegisterRpc
37+
I_sceSifCheckStatRpc
38+
I_sceSifSetRpcQueue
39+
I_sceSifRpcLoop
40+
I_sceSifRemoveRpc
41+
I_sceSifRemoveRpcQueue
42+
sifcmd_IMPORTS_end
43+
44+
sifman_IMPORTS_start
45+
I_sceSifSetDma
46+
I_sceSifDmaStat
47+
sifman_IMPORTS_end
48+
49+
stdio_IMPORTS_start
50+
I_printf
51+
stdio_IMPORTS_end
52+
53+
sysclib_IMPORTS_start
54+
I_look_ctype_table
55+
I_memcpy
56+
I_memset
57+
I_strcat
58+
I_strcmp
59+
I_strcpy
60+
I_strlen
61+
I_strncmp
62+
I_strtol
63+
sysclib_IMPORTS_end
64+
65+
thbase_IMPORTS_start
66+
I_CreateThread
67+
I_DeleteThread
68+
I_StartThread
69+
I_TerminateThread
70+
I_GetThreadId
71+
thbase_IMPORTS_end
72+
73+
heaplib_IMPORTS_start
74+
I_CreateHeap
75+
I_DeleteHeap
76+
I_AllocHeapMemory
77+
I_FreeHeapMemory
78+
heaplib_IMPORTS_end
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
/*
2+
# _____ ___ ____ ___ ____
3+
# ____| | ____| | | |____|
4+
# | ___| |____ ___| ____| | \ PS2DEV Open Source Project.
5+
#-----------------------------------------------------------------------
6+
# Copyright ps2dev - http://www.ps2dev.org
7+
# Licenced under Academic Free License version 2.0
8+
# Review ps2sdk README & LICENSE files for further details.
9+
#
10+
# Defines all IRX imports.
11+
*/
12+
13+
#ifndef IOP_IRX_IMPORTS_H
14+
#define IOP_IRX_IMPORTS_H
15+
16+
#include <irx.h>
17+
18+
/* Please keep these in alphabetical order! */
19+
20+
#include <heaplib.h>
21+
#include <intrman.h>
22+
#include <loadcore.h>
23+
#include <netcnf.h>
24+
#include <sifcmd.h>
25+
#include <sifman.h>
26+
#include <stdio.h>
27+
#include <sysclib.h>
28+
#include <thbase.h>
29+
30+
#endif /* IOP_IRX_IMPORTS_H */

0 commit comments

Comments
 (0)