PS2SDK
PS2 Homebrew Libraries
|
#include <stdio.h>
#include <string.h>
#include <netman.h>
#include <lwip/memp.h>
#include "lwip/sys.h"
#include "lwip/tcp.h"
#include "lwip/tcpip.h"
#include "lwip/netif.h"
#include "lwip/dhcp.h"
#include "lwip/prot/dhcp.h"
#include "lwip/inet.h"
#include "netif/etharp.h"
#include "ps2ip_internal.h"
Go to the source code of this file.
Typedefs | |
typedef struct pbuf | PBuf |
typedef struct netif | NetIF |
typedef struct ip4_addr | IPAddr |
Functions | |
int | ps2ip_getconfig (char *pszName, t_ip_info *pInfo) |
int | ps2ip_setconfig (const t_ip_info *pInfo) |
static void | EnQTxPacket (struct pbuf *tx) |
static err_t | SMapLowLevelOutput (struct netif *pNetIF, struct pbuf *pOutput) |
static void | LinkStateUp (void) |
static void | LinkStateDown (void) |
static void * | AllocRxPacket (unsigned int size, void **payload) |
static void | ReallocRxPacket (void *packet, unsigned int size) |
static void | FreeRxPacket (void *packet) |
static void | EnQRxPacket (void *packet) |
static int | NextTxPacket (void **payload) |
static void | DeQTxPacket (void) |
static int | AfterTxPacket (void **payload) |
static void | InitDone (void *pvArg) |
static err_t | SMapIFInit (struct netif *pNetIF) |
err_t | ps2ip_input (PBuf *pInput, NetIF *pNetIF) |
static void | InitializeLWIP (void) |
void | _ps2sdk_ps2ipee_init (void) |
void | _ps2sdk_ps2ipee_deinit (void) |
int | ps2ipInit (struct ip4_addr *ip_address, struct ip4_addr *subnet_mask, struct ip4_addr *gateway) |
void | ps2ipDeinit (void) |
void | ps2ipSetHsyncTicksPerMSec (unsigned char ticks) |
Variables | |
static struct netif | NIF |
static struct pbuf * | TxHead |
static struct pbuf * | TxTail |
unsigned short int | hsyncTicksPerMSec = 16 |
PS2 TCP/IP STACK FOR EE
Definition in file ps2ip.c.
|
static |
|
static |
|
static |
Should be called at the beginning of the program to set up the network interface.
Definition at line 272 of file ps2ip.c.
References netif::flags, netif::hwaddr, netif::hwaddr_len, netif::linkoutput, netif::mtu, netif::name, NETIF_FLAG_BROADCAST, NETIF_FLAG_ETHARP, NETIF_MAX_HWADDR_LEN, NETMAN_NETIF_IOCTL_ETH_GET_MAC, and netif::output.
Referenced by ps2ipInit().
|
extern |
Definition at line 461 of file ps2ip_ps2sdk.c.
|
extern |
Definition at line 467 of file ps2ip_ps2sdk.c.
int ps2ipInit | ( | struct ip4_addr * | ip_address, |
struct ip4_addr * | subnet_mask, | ||
struct ip4_addr * | gateway | ||
) |
Initializes PS2IP. Specify a dummy address like "169.254.0.1" if DHCP is to be used, before enabling DHCP via ps2ip_setconfig().
Definition at line 323 of file ps2ip.c.
References SMapIFInit().
void ps2ipSetHsyncTicksPerMSec | ( | unsigned char | ticks | ) |
Use to specify the number of H-sync ticks per milisecond (Default: 16). Use this function to keep timings accurate, if a mode like 480P (~31KHz H-sync) is used instead of NTSC/PAL (~16KHz H-sync).
This function is obsolete, so it is stubbed for compatibility purposes.