|
ps2sdk
1.1
A collection of Open Source libraries used for developing applications on Sony's PlayStation 2® (PS2).
|
#include <errno.h>#include <string.h>#include <kernel.h>#include <netman.h>#include <netman_rpc.h>#include "internal.h"#include "rpc_client.h"#include "rpc_server.h"
Include dependency graph for netman.c:Go to the source code of this file.
Functions | |
| void | NetManToggleGlobalNetIFLinkState (unsigned char state) |
| int | NetManGetGlobalNetIFLinkState (void) |
| void | NetManUpdateStackNIFLinkState (void) |
| int | NetManInit (void) |
| void | NetManDeinit (void) |
| int | NetManRegisterNetworkStack (const struct NetManNetProtStack *stack) |
| void | NetManUnregisterNetworkStack (void) |
| void | NetManNetIFXmit (void) |
| int | NetManIoctl (unsigned int command, void *arg, unsigned int arg_len, void *output, unsigned int length) |
| void * | NetManNetProtStackAllocRxPacket (unsigned int length, void **payload) |
| void | NetManNetProtStackFreeRxPacket (void *packet) |
| void | NetManNetProtStackEnQRxPacket (void *packet) |
| int | NetManTxPacketNext (void **payload) |
| void | NetManTxPacketDeQ (void) |
| int | NetManTxPacketAfter (void **payload) |
| void | NetManNetProtStackReallocRxPacket (void *packet, unsigned int length) |
Variables | |
| static struct NetManNetProtStack | MainNetProtStack |
| static unsigned char | IsInitialized =0 |
| static unsigned char | IsNetStackInitialized =0 |
| static char | NIFLinkState = 0 |
| void NetManDeinit | ( | void | ) |
Definition at line 58 of file netman.c.
References IsInitialized, NetManDeinitRPCClient(), NetManDeinitRPCServer(), and NetManUnregisterNetworkStack().
Referenced by main().
| int NetManGetGlobalNetIFLinkState | ( | void | ) |
Definition at line 27 of file netman.c.
References NIFLinkState.
| int NetManInit | ( | void | ) |
Definition at line 43 of file netman.c.
References IsInitialized, NetManInitRPCClient(), NetManInitRPCServer(), and result.
Referenced by main(), NetManRegisterNetworkStack(), and ps2ipInit().
| int NetManIoctl | ( | unsigned int | command, |
| void * | arg, | ||
| unsigned int | arg_len, | ||
| void * | output, | ||
| unsigned int | length | ||
| ) |
Definition at line 109 of file netman.c.
References command, IsInitialized, and NetManRpcIoctl().
Referenced by ethGetNetIFLinkStatus(), ethPrintLinkStatus(), and SMapIFInit().
| void NetManNetIFXmit | ( | void | ) |
Definition at line 103 of file netman.c.
References IsInitialized, and NetManRpcNetIFXmit().
Referenced by SMapLowLevelOutput().
| void* NetManNetProtStackAllocRxPacket | ( | unsigned int | length, |
| void ** | payload | ||
| ) |
Definition at line 114 of file netman.c.
References NetManNetProtStack::AllocRxPacket, IsNetStackInitialized, MainNetProtStack, and NULL.
Referenced by NETMAN_RxThread(), and NetManRPCAllocRxBuffers().
| void NetManNetProtStackEnQRxPacket | ( | void * | packet | ) |
Definition at line 124 of file netman.c.
References NetManNetProtStack::EnQRxPacket, IsNetStackInitialized, MainNetProtStack, and packet.
Referenced by NETMAN_RxThread().
| void NetManNetProtStackFreeRxPacket | ( | void * | packet | ) |
Definition at line 119 of file netman.c.
References NetManNetProtStack::FreeRxPacket, IsNetStackInitialized, MainNetProtStack, and packet.
| void NetManNetProtStackReallocRxPacket | ( | void * | packet, |
| unsigned int | length | ||
| ) |
Definition at line 146 of file netman.c.
References IsNetStackInitialized, MainNetProtStack, packet, and NetManNetProtStack::ReallocRxPacket.
Referenced by NETMAN_RxThread().
| int NetManRegisterNetworkStack | ( | const struct NetManNetProtStack * | stack | ) |
Definition at line 70 of file netman.c.
References IsNetStackInitialized, MainNetProtStack, NetManInit(), NetManRPCAllocRxBuffers(), NetManRPCRegisterNetworkStack(), NetManUpdateStackNIFLinkState(), and result.
Referenced by ps2ipInit().
| void NetManToggleGlobalNetIFLinkState | ( | unsigned char | state | ) |
Definition at line 20 of file netman.c.
References NetManUpdateStackNIFLinkState(), and NIFLinkState.
| int NetManTxPacketAfter | ( | void ** | payload | ) |
Definition at line 141 of file netman.c.
References NetManNetProtStack::AfterTxPacket, IsInitialized, and MainNetProtStack.
Referenced by NETMAN_TxThread().
| void NetManTxPacketDeQ | ( | void | ) |
Definition at line 135 of file netman.c.
References NetManNetProtStack::DeQTxPacket, IsInitialized, and MainNetProtStack.
Referenced by NETMAN_TxThread().
| int NetManTxPacketNext | ( | void ** | payload | ) |
Definition at line 130 of file netman.c.
References IsInitialized, MainNetProtStack, and NetManNetProtStack::NextTxPacket.
Referenced by NETMAN_TxThread().
| void NetManUnregisterNetworkStack | ( | void | ) |
Definition at line 92 of file netman.c.
References IsNetStackInitialized, MainNetProtStack, and NetManRPCUnregisterNetworkStack().
Referenced by NetManDeinit(), and ps2ipDeinit().
| void NetManUpdateStackNIFLinkState | ( | void | ) |
Definition at line 32 of file netman.c.
References IsNetStackInitialized, NetManNetProtStack::LinkStateDown, NetManNetProtStack::LinkStateUp, MainNetProtStack, and NIFLinkState.
Referenced by NetManRegisterNetworkStack(), and NetManToggleGlobalNetIFLinkState().
|
static |
Definition at line 12 of file netman.c.
Referenced by NetManDeinit(), NetManInit(), NetManIoctl(), NetManNetIFXmit(), NetManTxPacketAfter(), NetManTxPacketDeQ(), and NetManTxPacketNext().
|
static |
Definition at line 12 of file netman.c.
Referenced by NetManNetProtStackAllocRxPacket(), NetManNetProtStackEnQRxPacket(), NetManNetProtStackFreeRxPacket(), NetManNetProtStackReallocRxPacket(), NetManRegisterNetworkStack(), NetManUnregisterNetworkStack(), and NetManUpdateStackNIFLinkState().
|
static |
Definition at line 1 of file netman.c.
Referenced by NetManNetProtStackAllocRxPacket(), NetManNetProtStackEnQRxPacket(), NetManNetProtStackFreeRxPacket(), NetManNetProtStackReallocRxPacket(), NetManRegisterNetworkStack(), NetManTxPacketAfter(), NetManTxPacketDeQ(), NetManTxPacketNext(), NetManUnregisterNetworkStack(), and NetManUpdateStackNIFLinkState().
|
static |
Definition at line 13 of file netman.c.
Referenced by NetManGetGlobalNetIFLinkState(), NetManToggleGlobalNetIFLinkState(), and NetManUpdateStackNIFLinkState().