PS2SDK
PS2 Homebrew Libraries
|
#include <tamtypes.h>
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 |
Enumerations | |
enum | NETMAN_NETIF_ETH_LINK_MODE { NETMAN_NETIF_ETH_LINK_MODE_AUTO = 0 , NETMAN_NETIF_ETH_LINK_MODE_10M_HDX , NETMAN_NETIF_ETH_LINK_MODE_10M_FDX , NETMAN_NETIF_ETH_LINK_MODE_100M_HDX , NETMAN_NETIF_ETH_LINK_MODE_100M_FDX , NETMAN_NETIF_ETH_LINK_MODE_COUNT } |
enum | NETMAN_NETIF_ETH_LINK_STATE { NETMAN_NETIF_ETH_LINK_STATE_DOWN = 0 , NETMAN_NETIF_ETH_LINK_STATE_UP } |
enum | NETMAN_NETIF_IOCTL_CODES { NETMAN_NETIF_IOCTL_ETH_GET_MAC = 0x1000 , 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 , NETMAN_NETIF_IOCTL_GET_LINK_STATUS = 0x3000 , NETMAN_NETIF_IOCTL_GET_TX_DROPPED_COUNT , NETMAN_NETIF_IOCTL_GET_RX_DROPPED_COUNT } |
Functions | |
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.
struct NetManEthRuntimeStats |
struct NetManEthStatus |
Data Fields | ||
---|---|---|
u8 | LinkStatus | |
u8 | LinkMode | |
struct NetManEthRuntimeStats | stats |
#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 |
int NetManSetMainIF | ( | const char * | name | ) |
Definition at line 293 of file rpc_client.c.
int NetManQueryMainIF | ( | char * | name | ) |
Definition at line 312 of file rpc_client.c.
int NetManRegisterNetworkStack | ( | const struct NetManNetProtStack * | stack | ) |
int NetManIoctl | ( | unsigned int | command, |
void * | args, | ||
unsigned int | args_len, | ||
void * | output, | ||
unsigned int | length | ||
) |
int NetManSetLinkMode | ( | int | mode | ) |
Definition at line 335 of file rpc_client.c.
void * NetManNetProtStackAllocRxPacket | ( | unsigned int | length, |
void ** | payload | ||
) |
void NetManNetProtStackReallocRxPacket | ( | void * | packet, |
unsigned int | length | ||
) |
int NetManRegisterNetIF | ( | struct NetManNetIF * | NetIF | ) |