#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.
|
|
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) |
| |
|
|
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.
◆ SMapIFInit()
| static err_t SMapIFInit |
( |
struct netif * |
pNetIF | ) |
|
|
static |
Should be called at the beginning of the program to set up the network interface.
Definition at line 272 of file ps2ip.c.
◆ ps2ipInit()
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.
◆ ps2ipSetHsyncTicksPerMSec()
| 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.
Definition at line 358 of file ps2ip.c.