|
ps2sdk
1.1
A collection of Open Source libraries used for developing applications on Sony's PlayStation 2® (PS2).
|
#include <tamtypes.h>
Include dependency graph for netman.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Data Structures | |
| struct | NetManNetProtStack |
| struct | NetManEthRuntimeStats |
| struct | NetManEthStatus |
| struct | NetManNetIF |
Macros | |
| #define | NETMAN_NETIF_NAME_MAX_LEN 4 |
| #define | NETMAN_NETIF_FRAME_SIZE 1514 |
| #define | NETMAN_FRAME_GROUP_SIZE 8 |
| #define | NETMAN_NETIF_ETH_LINK_DISABLE_PAUSE 0x40 |
| #define | NETMAN_NETIF_IN_USE 0x80 |
| #define | NETMAN_NETIF_ETHERNET 1 |
| #define | NETMAN_NETIF_DIALUP 2 |
| #define | NETMAN_NETIF_LINK_UP 4 |
| #define | NETMAN_NETIF_EVF_UP 0x01 |
| #define | NETMAN_NETIF_EVF_DOWN 0x02 |
| #define | NETMAN_MAX_NETIF_COUNT 2 |
Functions | |
| int | NetManInit (void) |
| void | NetManDeinit (void) |
| int | NetManGetGlobalNetIFLinkState (void) |
| int | NetManSetMainIF (const char *name) |
| int | NetManQueryMainIF (char *name) |
| int | NetManRegisterNetworkStack (const struct NetManNetProtStack *stack) |
| void | NetManUnregisterNetworkStack (void) |
| int | NetManIoctl (unsigned int command, void *args, unsigned int args_len, void *output, unsigned int length) |
| int | NetManSetLinkMode (int mode) |
| void | NetManNetIFXmit (void) |
| 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) |
| int | NetManRegisterNetIF (struct NetManNetIF *NetIF) |
| void | NetManUnregisterNetIF (const char *name) |
| void | NetManToggleNetIFLinkState (int NetIFID, unsigned char state) |
Netman common definitions
Definition in file netman.h.
| #define NETMAN_NETIF_DIALUP 2 |
| #define NETMAN_NETIF_ETH_LINK_DISABLE_PAUSE 0x40 |
| #define NETMAN_NETIF_ETHERNET 1 |
| #define NETMAN_NETIF_IN_USE 0x80 |
| #define NETMAN_NETIF_LINK_UP 4 |
Definition at line 52 of file netman.h.
| Enumerator | |
|---|---|
| NETMAN_NETIF_IOCTL_ETH_GET_MAC | Output = 6 bytes of MAC address. |
| NETMAN_NETIF_IOCTL_ETH_GET_LINK_MODE | |
| NETMAN_NETIF_IOCTL_ETH_GET_RX_EOVERRUN_CNT | |
| NETMAN_NETIF_IOCTL_ETH_GET_RX_EBADLEN_CNT | |
| NETMAN_NETIF_IOCTL_ETH_GET_RX_EBADFCS_CNT | |
| NETMAN_NETIF_IOCTL_ETH_GET_RX_EBADALIGN_CNT | |
| NETMAN_NETIF_IOCTL_ETH_GET_TX_ELOSSCR_CNT | |
| NETMAN_NETIF_IOCTL_ETH_GET_TX_EEDEFER_CNT | |
| NETMAN_NETIF_IOCTL_ETH_GET_TX_ECOLL_CNT | |
| NETMAN_NETIF_IOCTL_ETH_GET_TX_EUNDERRUN_CNT | |
| NETMAN_NETIF_IOCTL_ETH_GET_STATUS | |
| NETMAN_NETIF_IOCTL_ETH_SET_LINK_MODE | Input = struct NetManIFLinkModeParams. Note: does not wait for the IF to finish. Use NetManSetLinkMode() instead. |
| NETMAN_NETIF_IOCTL_GET_LINK_STATUS | |
| NETMAN_NETIF_IOCTL_GET_TX_DROPPED_COUNT | |
| NETMAN_NETIF_IOCTL_GET_RX_DROPPED_COUNT | |
Definition at line 72 of file netman.h.
| 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 * | args, | ||
| unsigned int | args_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 NetManQueryMainIF | ( | char * | name | ) |
Definition at line 309 of file rpc_client.c.
References IsInitialized, NETMAN_IOP_RPC_FUNC_QUERY_MAIN_NETIF, NETMAN_NETIF_NAME_MAX_LEN, NETMAN_rpc_cd, NetManIOSemaID, NULL, ReceiveBuffer, result, SifCallRpc(), SignalSema(), and WaitSema().
| int NetManRegisterNetIF | ( | struct NetManNetIF * | NetIF | ) |
| 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().
| int NetManSetLinkMode | ( | int | mode | ) |
Definition at line 332 of file rpc_client.c.
References IsInitialized, mode, NETMAN_IOP_RPC_FUNC_SET_LINK_MODE, NETMAN_rpc_cd, NetManIOSemaID, NULL, ReceiveBuffer, result, SifCallRpc(), SignalSema(), TransmitBuffer, and WaitSema().
Referenced by ethApplyNetIFConfig().
| int NetManSetMainIF | ( | const char * | name | ) |
Definition at line 290 of file rpc_client.c.
References IsInitialized, NETMAN_IOP_RPC_FUNC_SET_MAIN_NETIF, NETMAN_NETIF_NAME_MAX_LEN, NETMAN_rpc_cd, NetManIOSemaID, NULL, ReceiveBuffer, result, SifCallRpc(), SignalSema(), TransmitBuffer, and WaitSema().
| void NetManToggleNetIFLinkState | ( | int | NetIFID, |
| unsigned char | state | ||
| ) |
| 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 NetManUnregisterNetIF | ( | const char * | name | ) |
| void NetManUnregisterNetworkStack | ( | void | ) |
Definition at line 92 of file netman.c.
References IsNetStackInitialized, MainNetProtStack, and NetManRPCUnregisterNetworkStack().
Referenced by NetManDeinit(), and ps2ipDeinit().