sdk-core
v2026.11.05
PS2 SDK - core tier (build-critical EE/IOP modules)
Toggle main menu visibility
Loading...
Searching...
No Matches
smap_modular.h
Go to the documentation of this file.
1
5
6
#ifndef _SMAP_MODULAR_H
7
#define _SMAP_MODULAR_H
8
9
#include <
tamtypes.h
>
10
11
// This struct needs to be the exact same layout as struct RuntimeStats!
12
typedef
struct
SmapModularRuntimeStats
13
{
14
u32 RxDroppedFrameCount;
15
u32 RxErrorCount;
16
u16 RxFrameOverrunCount;
17
u16 RxFrameBadLengthCount;
18
u16 RxFrameBadFCSCount;
19
u16 RxFrameBadAlignmentCount;
20
u32 TxDroppedFrameCount;
21
u32 TxErrorCount;
22
u16 TxFrameLOSSCRCount;
23
u16 TxFrameEDEFERCount;
24
u16 TxFrameCollisionCount;
25
u16 TxFrameUnderrunCount;
26
u16 RxAllocFail;
27
} SmapModularRuntimeStats_t;
28
29
typedef
struct
SmapModularHookTable
30
{
31
int
Version;
32
int (*TxPacketNext)(
void
**data);
33
int (*TxPacketDeQ)(
void
**data);
34
int (*LinkStateDown)(void);
35
int (*LinkStateUp)(void);
36
void
*(*StackAllocRxPacket)(u16 LengthRounded,
void
**payload);
37
int (*EnQRxPacket)(
void
*
pbuf
);
38
} SmapModularHookTable_t;
39
40
typedef
struct
SmapModularExportTable
41
{
42
int
Version;
43
int (*GetMACAddress)(u8 *buffer);
44
void (*Xmit)(void);
45
void (*OutputDebugInformation)(void);
46
int (*RegisterHook)(
const
SmapModularHookTable_t *hooktbl,
int
priority);
47
unsigned
char
*RxBDIndexPtr;
48
SmapModularRuntimeStats_t *RuntimeStatsPtr;
49
} SmapModularExportTable_t;
50
51
extern
const
SmapModularExportTable_t *SmapModularGetExportTable(
void
);
52
53
#define smapmodu_IMPORTS_start DECLARE_IMPORT_TABLE(smapmodu, 1, 1)
54
#define smapmodu_IMPORTS_end END_IMPORT_TABLE
55
56
#define I_SmapModularGetExportTable DECLARE_IMPORT(4, SmapModularGetExportTable)
57
58
#endif
SmapModularExportTable
Definition
smap_modular.h:41
SmapModularHookTable
Definition
smap_modular.h:30
SmapModularRuntimeStats
Definition
smap_modular.h:13
pbuf
Definition
tcpip.h:234
tamtypes.h
core
smap
include
smap_modular.h
Generated by
1.18.0