|
PS2SDK
PS2 Homebrew Libraries
|
#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"
Include dependency graph for ps2_fio.c:Go to the source code of this file.
Data Structures | |
| struct | fd_table_t |
Macros | |
| #define | PACKET_MAXSIZE 4096 |
| #define | FIOTRAN_MAXSIZE 65535 |
| #define | FDH_MAX 50 |
| #define | fdh_get(a) (&fd_info_list[a]) |
| #define | fdh_getused(a) (fd_info_list[a].used) |
| #define | fdh_getfdtype(a) (fd_info_list[a].devtype) |
| #define | fdh_getrealfd(a) (fd_info_list[a].realfd) |
| #define | PFS_ZONE_SIZE 8192 |
| #define | PFS_FRAGMENT 0x00000000 |
Functions | |
| int | fsysUnmount (void) |
| static char ps2netfs_send_packet[PACKET_MAXSIZE] | __attribute__ ((aligned(16))) |
| static void | fdh_setup () |
| static int | fdh_getfd (int devtype, int fd) |
| static void | fdh_freefd (int fd) |
| static int | convmode_to_iomanx (int stat) |
| static int | convmode_from_iomanx (int stat) |
| int | ps2netfs_close_socket (void) |
| void | ps2netfs_close_fsys (void) |
| static int | ps2netfs_lwip_send (int sock, void *buf, int len, int flag) |
| int | ps2netfs_recv_bytes (int sock, char *buf, int bytes) |
| int | ps2netfs_accept_pktunknown (int sock, char *buf) |
| static int | ps2netfs_op_info (char *buf, int len) |
| static int | ps2netfs_op_fstype (char *buf, int len) |
| static int | ps2netfs_op_devlist (char *buf, int len) |
| static int | ps2netfs_op_open (char *buf, int len) |
| static int | ps2netfs_op_close (char *buf, int len) |
| static int | ps2netfs_op_read (char *buf, int len) |
| static int | ps2netfs_op_write (char *buf, int len) |
| static int | ps2netfs_op_lseek (char *buf, int len) |
| static int | ps2netfs_op_ioctl (char *buf, int len) |
| static int | ps2netfs_op_remove (char *buf, int len) |
| static int | ps2netfs_op_mkdir (char *buf, int len) |
| static int | ps2netfs_op_rmdir (char *buf, int len) |
| static int | ps2netfs_op_dopen (char *buf, int len) |
| static int | ps2netfs_op_dclose (char *buf, int len) |
| static int | ps2netfs_op_dread (char *buf, int len) |
| static int | ps2netfs_op_getstat (char *buf, int len) |
| static int | ps2netfs_op_chstat (char *buf, int len) |
| static int | ps2netfs_op_format (char *buf, int len) |
| static int | ps2netfs_op_rename (char *buf, int len) |
| static int | ps2netfs_op_chdir (char *buf, int len) |
| static int | ps2netfs_op_sync (char *buf, int len) |
| static int | ps2netfs_op_mount (char *buf, int len) |
| static int | ps2netfs_op_umount (char *buf, int len) |
| static int | ps2netfs_op_lseek64 (char *buf, int len) |
| static int | ps2netfs_op_devctl (char *buf, int len) |
| static int | ps2netfs_op_symlink (char *buf, int len) |
| static int | ps2netfs_op_readlink (char *buf, int len) |
| static int | ps2netfs_op_ioctl2 (char *buf, int len) |
| static void | ps2netfs_Listener (int sock) |
| void | ps2netfs_serv (void *argv) |
| int | ps2netfs_Init (void) |
| int | ps2fs_Destroy (void) |
Variables | |
| static int | ps2netfs_sock = -1 |
| static int | ps2netfs_active = 0 |
| static int | ps2netfs_sema |
| static int | ps2netfs_pid = 0 |
| static char | ps2netfs_fiobuffer [FIOTRAN_MAXSIZE+1] |
| static fd_table_t | fd_info_list [FDH_MAX+1] |
iop tcp fs driver.
Definition in file ps2_fio.c.
| struct fd_table_t |
| #define fdh_get | ( | a | ) | (&fd_info_list[a]) |
| #define fdh_getused | ( | a | ) | (fd_info_list[a].used) |
| #define fdh_getfdtype | ( | a | ) | (fd_info_list[a].devtype) |
| #define fdh_getrealfd | ( | a | ) | (fd_info_list[a].realfd) |
| 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.
Referenced by 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.
References ps2netfs_recv_bytes().
Referenced by ps2netfs_Listener().