sdk-core v2026.11.05
PS2 SDK - core tier (build-critical EE/IOP modules)
Loading...
Searching...
No Matches
ps2_fio.c File Reference
#include <types.h>
#include <defs.h>
#include <irx.h>
#include <loadcore.h>
#include <ioman_mod.h>
#include <iomanX.h>
#include <thbase.h>
#include <thsemap.h>
#include <stdio.h>
#include <sysclib.h>
#include <errno.h>
#include <ps2ip.h>
#include <iopmgr.h>
#include "ps2_fio.h"
#include "ps2fs.h"
#include "byteorder.h"
#include "devscan.h"
#include "debug_printf.h"

Go to the source code of this file.

Classes

struct  fd_table_t

Macros

#define PACKET_MAXSIZE   4096
#define FIOTRAN_MAXSIZE   65535
#define FDH_MAX   50
#define fdh_get(a)
#define fdh_getused(a)
#define fdh_getfdtype(a)
#define fdh_getrealfd(a)
#define PFS_ZONE_SIZE   8192
#define PFS_FRAGMENT   0x00000000

Functions

int fsysUnmount (void)
int ps2netfs_close_socket (void)
void ps2netfs_close_fsys (void)
int ps2netfs_recv_bytes (int sock, char *buf, int bytes)
int ps2netfs_accept_pktunknown (int sock, char *buf)
void ps2netfs_serv (void *argv)
int ps2netfs_Init (void)
int ps2fs_Destroy (void)

Detailed Description

iop tcp fs driver.

Definition in file ps2_fio.c.

Macro Definition Documentation

◆ fdh_get

#define fdh_get ( a)
Value:
(&fd_info_list[a])

Get fd list entry.

Definition at line 128 of file ps2_fio.c.

◆ fdh_getfdtype

#define fdh_getfdtype ( a)
Value:
(fd_info_list[a].devtype)

Get fd list entry type value.

Definition at line 132 of file ps2_fio.c.

◆ fdh_getrealfd

#define fdh_getrealfd ( a)
Value:
(fd_info_list[a].realfd)

Get fd list entry ps2 file descriptor value.

Definition at line 134 of file ps2_fio.c.

◆ fdh_getused

#define fdh_getused ( a)
Value:
(fd_info_list[a].used)

Get fd list entry used value.

Definition at line 130 of file ps2_fio.c.

◆ FDH_MAX

#define FDH_MAX   50

Definition at line 69 of file ps2_fio.c.

◆ FIOTRAN_MAXSIZE

#define FIOTRAN_MAXSIZE   65535

Definition at line 53 of file ps2_fio.c.

◆ PACKET_MAXSIZE

#define PACKET_MAXSIZE   4096

Definition at line 42 of file ps2_fio.c.

◆ PFS_FRAGMENT

#define PFS_FRAGMENT   0x00000000

Definition at line 1309 of file ps2_fio.c.

Function Documentation

◆ ps2netfs_accept_pktunknown()

int ps2netfs_accept_pktunknown ( int sock,
char * buf )

Receive a 'packet' of unknown type, max size 4096 bytes

Definition at line 244 of file ps2_fio.c.

◆ ps2netfs_recv_bytes()

int ps2netfs_recv_bytes ( int sock,
char * buf,
int bytes )

Do repetetive recv() calls until 'bytes' bytes are received or error returned

Definition at line 219 of file ps2_fio.c.