PS2SDK
PS2 Homebrew Libraries
fileXio_iop.c File Reference
#include <types.h>
#include <stdio.h>
#include <sysclib.h>
#include <thbase.h>
#include <intrman.h>
#include <iomanX.h>
#include <loadcore.h>
#include <sysmem.h>
#include <sifman.h>
#include <sifcmd.h>
#include <errno.h>
#include <fileXio.h>
+ Include dependency graph for fileXio_iop.c:

Go to the source code of this file.

Macros

#define MODNAME   "fileXio"
 
#define M_PRINTF(format, args...)   printf(MODNAME ": " format, ##args)
 
#define M_DEBUG(format, args...)
 
#define TRUE   1
 
#define FALSE   0
 
#define MIN(a, b)   (((a)<(b))?(a):(b))
 
#define RDOWN_64(a)   ((unsigned int)(a)&~0x3F)
 
#define DEFAULT_RWSIZE   16384
 

Functions

 IRX_ID ("IOX/File_Manager_Rpc", 1, 2)
 
static unsigned char fileXio_rpc_buffer[0x4C00] __attribute__ ((__aligned__(4)))
 
static int fileXio_GetDeviceList_RPC (struct fileXioDevice *ee_devices, int eecount)
 
static int fileXio_CopyFile_RPC (const char *src, const char *dest, int mode)
 
static int fileXio_Read_RPC (int infd, char *read_buf, int read_size, void *intr_data)
 
static int fileXio_Write_RPC (int outfd, const char *write_buf, int write_size, int mis, u8 *misbuf)
 
static int fileXio_GetDir_RPC (const char *pathname, struct fileXioDirEntry dirEntry[], unsigned int req_entries)
 
static int fileXio_Mount_RPC (const char *mountstring, const char *mountpoint, int flag)
 
static int fileXio_chstat_RPC (char *filename, void *eeptr, int mask)
 
static int fileXio_getstat_RPC (char *filename, void *eeptr)
 
static int fileXio_dread_RPC (int fd, void *eeptr)
 
static void * fileXioRpc_Stop ()
 
static void * fileXioRpc_GetDeviceList (unsigned int *sbuff)
 
static void * fileXioRpc_Getdir (unsigned int *sbuff)
 
static void * fileXioRpc_Mount (unsigned int *sbuff)
 
static void * fileXioRpc_uMount (unsigned int *sbuff)
 
static void * fileXioRpc_CopyFile (unsigned int *sbuff)
 
static void * fileXioRpc_MkDir (unsigned int *sbuff)
 
static void * fileXioRpc_RmDir (unsigned int *sbuff)
 
static void * fileXioRpc_Remove (unsigned int *sbuff)
 
static void * fileXioRpc_Rename (unsigned int *sbuff)
 
static void * fileXioRpc_SymLink (unsigned int *sbuff)
 
static void * fileXioRpc_ReadLink (unsigned int *sbuff)
 
static void * fileXioRpc_ChDir (unsigned int *sbuff)
 
static void * fileXioRpc_Open (unsigned int *sbuff)
 
static void * fileXioRpc_Close (unsigned int *sbuff)
 
static void * fileXioRpc_Read (unsigned int *sbuff)
 
static void * fileXioRpc_Write (unsigned int *sbuff)
 
static void * fileXioRpc_Lseek (unsigned int *sbuff)
 
static void * fileXioRpc_Lseek64 (unsigned int *sbuff)
 
static void * fileXioRpc_ChStat (unsigned int *sbuff)
 
static void * fileXioRpc_GetStat (unsigned int *sbuff)
 
static void * fileXioRpc_Format (unsigned int *sbuff)
 
static void * fileXioRpc_AddDrv (unsigned int *sbuff)
 
static void * fileXioRpc_DelDrv (unsigned int *sbuff)
 
static void * fileXioRpc_Sync (unsigned int *sbuff)
 
static void * fileXioRpc_Devctl (unsigned int *sbuff)
 
static void * fileXioRpc_Ioctl (unsigned int *sbuff)
 
static void * fileXioRpc_Ioctl2 (unsigned int *sbuff)
 
static void * fileXioRpc_Dopen (unsigned int *sbuff)
 
static void * fileXioRpc_Dread (unsigned int *sbuff)
 
static void * fileXioRpc_Dclose (unsigned int *sbuff)
 
static void * filexioRpc_SetRWBufferSize (void *sbuff)
 
static void DirEntryCopy (struct fileXioDirEntry *dirEntry, iox_dirent_t *internalDirEntry)
 
static void * fileXio_rpc_server (int fno, void *data, int size)
 
static void fileXio_Thread (void *param)
 
int _start (int argc, char *argv[])
 

Variables

static void * rwbuf = NULL
 
static unsigned int RWBufferSize =DEFAULT_RWSIZE
 
struct t_SifRpcDataQueue qd
 
struct t_SifRpcServerData sd0
 
static rests_pkt rests
 

Detailed Description

fileXio RPC Server This module provides an RPC interface to the EE for all the functions of ioman/fileio.

Definition in file fileXio_iop.c.