PS2SDK
PS2 Homebrew Libraries
Loading...
Searching...
No Matches
ps2ip.c File Reference
#include <types.h>
#include <stdio.h>
#include <intrman.h>
#include <netman.h>
#include <loadcore.h>
#include <thbase.h>
#include <sysclib.h>
#include <thevent.h>
#include <sysmem.h>
#include <lwip/memp.h>
#include "lwip/sys.h"
#include "lwip/tcp.h"
#include "lwip/tcpip.h"
#include "lwip/prot/dhcp.h"
#include "lwip/netif.h"
#include "lwip/dhcp.h"
#include "lwip/inet.h"
#include "netif/etharp.h"
#include "ps2ip_internal.h"
+ Include dependency graph for ps2ip.c:

Go to the source code of this file.

Macros

#define MODNAME   "TCP/IP Stack"
 

Functions

 IRX_ID (MODNAME, 2, 3)
 
int ps2ip_getconfig (char *pszName, t_ip_info *pInfo)
 
int ps2ip_setconfig (const t_ip_info *pInfo)
 
static void InitDone (void *pvArg)
 
err_t ps2ip_input (PBuf *pInput, NetIF *pNetIF)
 
int _exit (int argc, char *argv[])
 
static void LinkStateUp (void)
 
static void LinkStateDown (void)
 
static void * AllocRxPacket (unsigned int size, void **payload)
 
static void FreeRxPacket (void *packet)
 
static void EnQRxPacket (void *packet)
 
static int NextTxPacket (void **payload)
 
static void DeQTxPacket (void)
 
static void EnQTxPacket (struct pbuf *tx)
 
static err_t SMapLowLevelOutput (struct netif *pNetIF, struct pbuf *pOutput)
 
static err_t SMapIFInit (struct netif *pNetIF)
 
static int InitializeLWIP (void)
 
static int InitLWIPStack (IPAddr *IP, IPAddr *NM, IPAddr *GW)
 
int _start (int argc, char *argv[])
 

Variables

static struct pbufTxHead
 
static struct pbufTxTail
 
struct irx_export_table _exp_ps2ip
 
static struct netif NIF
 

Detailed Description

PS2 TCP/IP STACK FOR IOP

Definition in file ps2ip.c.

Macro Definition Documentation

◆ MODNAME

#define MODNAME   "TCP/IP Stack"

Definition at line 44 of file ps2ip.c.

Function Documentation

◆ ps2ip_getconfig()

int ps2ip_getconfig ( char * pszName,
t_ip_info * pInfo )

Definition at line 58 of file ps2ip.c.

◆ ps2ip_setconfig()

int ps2ip_setconfig ( const t_ip_info * pInfo)

Definition at line 102 of file ps2ip.c.

◆ InitDone()

static void InitDone ( void * pvArg)
static

Definition at line 153 of file ps2ip.c.

◆ ps2ip_input()

err_t ps2ip_input ( PBuf * pInput,
NetIF * pNetIF )

Definition at line 212 of file ps2ip.c.

◆ _exit()

int _exit ( int argc,
char * argv[] )

Definition at line 222 of file ps2ip.c.

◆ LinkStateUp()

static void LinkStateUp ( void )
static

Definition at line 232 of file ps2ip.c.

◆ LinkStateDown()

static void LinkStateDown ( void )
static

Definition at line 236 of file ps2ip.c.

◆ AllocRxPacket()

static void * AllocRxPacket ( unsigned int size,
void ** payload )
static

Definition at line 240 of file ps2ip.c.

◆ FreeRxPacket()

static void FreeRxPacket ( void * packet)
static

Definition at line 252 of file ps2ip.c.

◆ EnQRxPacket()

static void EnQRxPacket ( void * packet)
static

Definition at line 257 of file ps2ip.c.

◆ NextTxPacket()

static int NextTxPacket ( void ** payload)
static

Definition at line 262 of file ps2ip.c.

◆ DeQTxPacket()

static void DeQTxPacket ( void )
static

Definition at line 276 of file ps2ip.c.

◆ EnQTxPacket()

static void EnQTxPacket ( struct pbuf * tx)
static

Definition at line 305 of file ps2ip.c.

◆ SMapLowLevelOutput()

static err_t SMapLowLevelOutput ( struct netif * pNetIF,
struct pbuf * pOutput )
static

Definition at line 324 of file ps2ip.c.

◆ SMapIFInit()

static err_t SMapIFInit ( struct netif * pNetIF)
static

Definition at line 367 of file ps2ip.c.

◆ InitializeLWIP()

static int InitializeLWIP ( void )
inlinestatic

Definition at line 396 of file ps2ip.c.

◆ InitLWIPStack()

static int InitLWIPStack ( IPAddr * IP,
IPAddr * NM,
IPAddr * GW )
inlinestatic

Definition at line 426 of file ps2ip.c.

◆ _start()

int _start ( int argc,
char * argv[] )

Definition at line 452 of file ps2ip.c.

Variable Documentation

◆ TxHead

struct pbuf* TxHead
static

Definition at line 42 of file ps2ip.c.

◆ TxTail

struct pbuf * TxTail
static

Definition at line 42 of file ps2ip.c.

◆ NIF

struct netif NIF
static

Definition at line 230 of file ps2ip.c.