|
ps2sdk
1.1
A collection of Open Source libraries used for developing applications on Sony's PlayStation 2® (PS2).
|
#include <stdio.h>#include <kernel.h>#include <iopcontrol.h>#include <iopheap.h>#include <debug.h>#include <netman.h>#include <ps2ip.h>#include <sifrpc.h>#include <loadfile.h>#include <sbv_patches.h>
Include dependency graph for ps2ip.c:Go to the source code of this file.
Functions | |
| static int | ethApplyNetIFConfig (int mode) |
| static void | EthStatusCheckCb (s32 alarm_id, u16 time, void *common) |
| static int | WaitValidNetState (int(*checkingFunction)(void)) |
| static int | ethGetNetIFLinkStatus (void) |
| static int | ethWaitValidNetIFLinkState (void) |
| static int | ethGetDHCPStatus (void) |
| static int | ethWaitValidDHCPState (void) |
| static int | ethApplyIPConfig (int use_dhcp, const struct ip4_addr *ip, const struct ip4_addr *netmask, const struct ip4_addr *gateway, const struct ip4_addr *dns) |
| static void | ethPrintIPConfig (void) |
| static void | ethPrintLinkStatus (void) |
| int | main (int argc, char *argv[]) |
Variables | |
| unsigned char | DEV9_irx [] |
| unsigned int | size_DEV9_irx |
| unsigned char | SMAP_irx [] |
| unsigned int | size_SMAP_irx |
| unsigned char | NETMAN_irx [] |
| unsigned int | size_NETMAN_irx |
|
static |
Definition at line 102 of file ps2ip.c.
References t_ip_info::dhcp_enabled, dns_getserver(), dns_setserver(), t_ip_info::gw, ip_addr_cmp, ip_addr_set, ip_info, t_ip_info::ipaddr, t_ip_info::netmask, ps2ip_getconfig(), ps2ip_setconfig(), and result.
Referenced by main().
|
static |
Definition at line 32 of file ps2ip.c.
References mode, NETMAN_NETIF_ETH_LINK_MODE_AUTO, NetManSetLinkMode(), and result.
Referenced by main().
|
static |
Definition at line 81 of file ps2ip.c.
References t_ip_info::dhcp_enabled, DHCP_STATE_BOUND, DHCP_STATE_OFF, t_ip_info::dhcp_status, ip_info, ps2ip_getconfig(), and result.
Referenced by ethWaitValidDHCPState().
|
static |
Definition at line 71 of file ps2ip.c.
References NETMAN_NETIF_ETH_LINK_STATE_UP, NETMAN_NETIF_IOCTL_GET_LINK_STATUS, NetManIoctl(), and NULL.
Referenced by ethWaitValidNetIFLinkState().
|
static |
Definition at line 147 of file ps2ip.c.
References dns_getserver(), t_ip_info::gw, ip4_addr1, ip4_addr2, ip4_addr3, ip4_addr4, ip_info, t_ip_info::ipaddr, t_ip_info::netmask, ps2ip_getconfig(), and scr_printf().
Referenced by main().
|
static |
Definition at line 194 of file ps2ip.c.
References mode, NETMAN_NETIF_ETH_LINK_DISABLE_PAUSE, NETMAN_NETIF_ETH_LINK_MODE_100M_FDX, NETMAN_NETIF_ETH_LINK_MODE_100M_HDX, NETMAN_NETIF_ETH_LINK_MODE_10M_FDX, NETMAN_NETIF_ETH_LINK_MODE_10M_HDX, NETMAN_NETIF_ETH_LINK_STATE_UP, NETMAN_NETIF_IOCTL_ETH_GET_LINK_MODE, NETMAN_NETIF_IOCTL_GET_LINK_STATUS, NetManIoctl(), NULL, and scr_printf().
Referenced by main().
Definition at line 48 of file ps2ip.c.
References iWakeupThread().
Referenced by WaitValidNetState().
|
static |
Definition at line 97 of file ps2ip.c.
References ethGetDHCPStatus(), and WaitValidNetState().
Referenced by main().
|
static |
Definition at line 76 of file ps2ip.c.
References ethGetNetIFLinkStatus(), and WaitValidNetState().
Referenced by main().
| int main | ( | int | argc, |
| char * | argv[] | ||
| ) |
Definition at line 234 of file ps2ip.c.
References DEV9_irx, ethApplyIPConfig(), ethApplyNetIFConfig(), ethPrintIPConfig(), ethPrintLinkStatus(), ethWaitValidDHCPState(), ethWaitValidNetIFLinkState(), init_scr(), ip4_addr_set_zero, NETMAN_irx, NETMAN_NETIF_ETH_LINK_MODE_AUTO, NetManDeinit(), NetManInit(), NULL, ps2ipDeinit(), ps2ipInit(), sbv_patch_enable_lmb(), scr_printf(), SifExecModuleBuffer(), SifExitRpc(), SifInitIopHeap(), SifInitRpc(), SifIopReset(), SifIopSync(), SifLoadFileInit(), size_DEV9_irx, size_NETMAN_irx, size_SMAP_irx, SleepThread(), and SMAP_irx.
|
static |
Definition at line 53 of file ps2ip.c.
References EthStatusCheckCb(), GetThreadId(), SetAlarm(), and SleepThread().
Referenced by ethWaitValidDHCPState(), and ethWaitValidNetIFLinkState().
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |