PS2SDK
PS2 Homebrew Libraries
Loading...
Searching...
No Matches
fileXio.h File Reference
#include <tamtypes.h>
#include <iox_stat.h>
+ Include dependency graph for fileXio.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  rests_pkt
 
struct  fileXioDirEntry
 
struct  fileXioDevice
 
struct  fxio_devlist_packet
 
struct  fxio_getdir_packet
 
struct  fxio_mount_packet
 
struct  fxio_unmount_packet
 
struct  fxio_copyfile_packet
 
struct  fxio_mkdir_packet
 
struct  fxio_pathsel_packet
 
struct  fxio_rename_packet
 
struct  fxio_open_packet
 
struct  fxio_close_packet
 
struct  fxio_read_packet
 
struct  fxio_write_packet
 
struct  fxio_lseek_packet
 
struct  fxio_lseek64_packet
 
struct  fxio_chstat_packet
 
struct  fxio_getstat_packet
 
struct  fxio_format_packet
 
struct  fxio_sync_packet
 
struct  fxio_dread_packet
 
struct  fxio_devctl_packet
 
struct  fxio_ioctl_packet
 
struct  fxio_ioctl2_packet
 
struct  fxio_ctl_return_pkt
 
struct  fxio_lseek64_return_pkt
 
struct  fxio_rwbuff
 

Macros

#define FILEXIO_IRX   0xb0b0b00
 
#define FILEXIO_MOUNTFLAG_NORMAL   0
 
#define FILEXIO_MOUNTFLAG_READONLY   1
 
#define FILEXIO_MOUNTFLAG_ROBUST   2
 
#define FILEXIO_DIRFLAGS_DIR   0xa0
 
#define FILEXIO_DIRFLAGS_FILE   0x80
 
#define CTL_BUF_SIZE   2048
 
#define IOCTL_BUF_SIZE   1024
 
#define FILEXIO_MAX_DEVICES   32
 
#define FILEXIO_DT_CHAR   0x01
 
#define FILEXIO_DT_CONS   0x02
 
#define FILEXIO_DT_BLOCK   0x04
 
#define FILEXIO_DT_RAW   0x08
 
#define FILEXIO_DT_FS   0x10
 
#define FILEXIO_DT_FSEXT   0x10000000
 

Enumerations

enum  FILEXIO_CMDS {
  FILEXIO_DOPEN = 0x01 , FILEXIO_DREAD , FILEXIO_DCLOSE , FILEXIO_MOUNT ,
  FILEXIO_UMOUNT , FILEXIO_GETDIR , FILEXIO_STOP , FILEXIO_COPYFILE ,
  FILEXIO_OPEN , FILEXIO_CLOSE , FILEXIO_READ , FILEXIO_WRITE ,
  FILEXIO_LSEEK , FILEXIO_IOCTL , FILEXIO_RMDIR , FILEXIO_GETSTAT ,
  FILEXIO_CHSTAT , FILEXIO_FORMAT , FILEXIO_ADDDRV , FILEXIO_DELDRV ,
  FILEXIO_RENAME , FILEXIO_CHDIR , FILEXIO_SYNC , FILEXIO_DEVCTL ,
  FILEXIO_SYMLINK , FILEXIO_READLINK , FILEXIO_IOCTL2 , FILEXIO_LSEEK64 ,
  FILEXIO_MKDIR , FILEXIO_REMOVE , FILEXIO_GETDEVICELIST , FILEXIO_SETRWBUFFSIZE
}
 

Functions

struct fileXioDirEntry __attribute__ ((aligned(64)))
 

Variables

u32 fileSize
 
u8 fileProperties
 
char filename [128+1]
 
char name [16]
 
unsigned int type
 
unsigned int version
 
char desc [128]
 
struct fxio_devlist_packet __attribute__
 

Detailed Description

fileXio RPC client/server shared includes This header contains the common definitions for fileXio that are used by both IOP and EE sides. This header conflicts with ps2ip_rpc.h

Definition in file fileXio.h.


Data Structure Documentation

◆ rests_pkt

struct rests_pkt

Used for buffer alignment correction when reading data.

Definition at line 69 of file fileXio.h.

Data Fields
int ssize
int esize
void * sbuf
void * ebuf
u8 sbuffer[64]
u8 ebuffer[64]
s32 ssize
s32 esize
u8 * sbuf
u8 * ebuf

◆ fileXioDirEntry

struct fileXioDirEntry

Definition at line 99 of file fileXio.h.

Data Fields
u32 fileSize
u8 fileProperties
char filename[128+1]

◆ fileXioDevice

struct fileXioDevice

Definition at line 106 of file fileXio.h.

Data Fields
char name[16]
unsigned int type
unsigned int version

Not so sure about this one.

char desc[128]

◆ fxio_devlist_packet

struct fxio_devlist_packet

Definition at line 115 of file fileXio.h.

+ Collaboration diagram for fxio_devlist_packet:
Data Fields
struct fileXioDevice * deviceEntry
unsigned int reqEntries

◆ fxio_getdir_packet

struct fxio_getdir_packet

Definition at line 121 of file fileXio.h.

+ Collaboration diagram for fxio_getdir_packet:
Data Fields
char pathname[512]
struct fileXioDirEntry * dirEntry
unsigned int reqEntries

◆ fxio_mount_packet

struct fxio_mount_packet

Definition at line 128 of file fileXio.h.

Data Fields
char blockdevice[512]
char mountpoint[512]
int flags

◆ fxio_unmount_packet

struct fxio_unmount_packet

Definition at line 135 of file fileXio.h.

Data Fields
char mountpoint[512]

◆ fxio_copyfile_packet

struct fxio_copyfile_packet

Definition at line 140 of file fileXio.h.

Data Fields
char source[512]
char dest[512]
int mode

◆ fxio_mkdir_packet

struct fxio_mkdir_packet

Definition at line 147 of file fileXio.h.

Data Fields
char pathname[512]
int mode

◆ fxio_pathsel_packet

struct fxio_pathsel_packet

Also used for rmdir, chdir and dopen.

Definition at line 154 of file fileXio.h.

Data Fields
char pathname[512]

◆ fxio_rename_packet

struct fxio_rename_packet

Also used for symlink.

Definition at line 160 of file fileXio.h.

Data Fields
char source[512]
char dest[512]

◆ fxio_readlink_packet

struct fxio_readlink_packet

Definition at line 166 of file fileXio.h.

Data Fields
char source[512]
void * buffer
unsigned int buflen

◆ fxio_open_packet

struct fxio_open_packet

Definition at line 173 of file fileXio.h.

Data Fields
char pathname[512]
int flags
int mode

◆ fxio_close_packet

struct fxio_close_packet

Also used by dclose.

Definition at line 180 of file fileXio.h.

Data Fields
int fd

◆ fxio_read_packet

struct fxio_read_packet

Definition at line 185 of file fileXio.h.

Data Fields
int fd
void * buffer
int size
void * intrData

◆ fxio_write_packet

struct fxio_write_packet

Definition at line 193 of file fileXio.h.

Data Fields
int fd
const void * buffer
int size
unsigned int unalignedDataLen
unsigned char unalignedData[64]

◆ fxio_lseek_packet

struct fxio_lseek_packet

Definition at line 202 of file fileXio.h.

Data Fields
int fd
u32 offset
int whence

◆ fxio_lseek64_packet

struct fxio_lseek64_packet

Definition at line 209 of file fileXio.h.

Data Fields
int fd
u32 offset_lo
u32 offset_hi
int whence

◆ fxio_chstat_packet

struct fxio_chstat_packet

Definition at line 217 of file fileXio.h.

+ Collaboration diagram for fxio_chstat_packet:
Data Fields
char pathname[512]
iox_stat_t * stat
int mask

◆ fxio_getstat_packet

struct fxio_getstat_packet

Definition at line 224 of file fileXio.h.

+ Collaboration diagram for fxio_getstat_packet:
Data Fields
char pathname[512]
iox_stat_t * stat

◆ fxio_format_packet

struct fxio_format_packet

Definition at line 230 of file fileXio.h.

Data Fields
char device[128]
char blockDevice[512]
char args[512]
int arglen

◆ fxio_sync_packet

struct fxio_sync_packet

Definition at line 238 of file fileXio.h.

Data Fields
char device[512]
int flags

◆ fxio_dread_packet

struct fxio_dread_packet

Definition at line 244 of file fileXio.h.

+ Collaboration diagram for fxio_dread_packet:
Data Fields
int fd
iox_dirent_t * dirent

◆ fxio_devctl_packet

struct fxio_devctl_packet

Definition at line 250 of file fileXio.h.

Data Fields
char name[CTL_BUF_SIZE]
u8 arg[CTL_BUF_SIZE]
int cmd
int arglen
void * buf
int buflen
void * intr_data

◆ fxio_ioctl_packet

struct fxio_ioctl_packet

Definition at line 261 of file fileXio.h.

Data Fields
int fd
u8 arg[IOCTL_BUF_SIZE]
int cmd

◆ fxio_ioctl2_packet

struct fxio_ioctl2_packet

Definition at line 268 of file fileXio.h.

Data Fields
int fd
u8 arg[CTL_BUF_SIZE]
int cmd
int arglen
void * buf
int buflen
void * intr_data

◆ fxio_ctl_return_pkt

struct fxio_ctl_return_pkt

Definition at line 279 of file fileXio.h.

Data Fields
void * dest
int len
u8 buf[CTL_BUF_SIZE]
int padding[2]

◆ fxio_lseek64_return_pkt

struct fxio_lseek64_return_pkt

Definition at line 287 of file fileXio.h.

Data Fields
u32 pos_lo
u32 pos_hi

◆ fxio_rwbuff

struct fxio_rwbuff

Definition at line 292 of file fileXio.h.

Data Fields
int size

Macro Definition Documentation

◆ FILEXIO_IRX

#define FILEXIO_IRX   0xb0b0b00

Definition at line 32 of file fileXio.h.

◆ FILEXIO_MOUNTFLAG_NORMAL

#define FILEXIO_MOUNTFLAG_NORMAL   0

Definition at line 79 of file fileXio.h.

◆ FILEXIO_MOUNTFLAG_READONLY

#define FILEXIO_MOUNTFLAG_READONLY   1

Definition at line 80 of file fileXio.h.

◆ FILEXIO_MOUNTFLAG_ROBUST

#define FILEXIO_MOUNTFLAG_ROBUST   2

Definition at line 81 of file fileXio.h.

◆ FILEXIO_DIRFLAGS_DIR

#define FILEXIO_DIRFLAGS_DIR   0xa0

Definition at line 83 of file fileXio.h.

◆ FILEXIO_DIRFLAGS_FILE

#define FILEXIO_DIRFLAGS_FILE   0x80

Definition at line 84 of file fileXio.h.

◆ CTL_BUF_SIZE

#define CTL_BUF_SIZE   2048

Definition at line 86 of file fileXio.h.

◆ IOCTL_BUF_SIZE

#define IOCTL_BUF_SIZE   1024

Definition at line 87 of file fileXio.h.

◆ FILEXIO_MAX_DEVICES

#define FILEXIO_MAX_DEVICES   32

Definition at line 89 of file fileXio.h.

◆ FILEXIO_DT_CHAR

#define FILEXIO_DT_CHAR   0x01

Definition at line 91 of file fileXio.h.

◆ FILEXIO_DT_CONS

#define FILEXIO_DT_CONS   0x02

Definition at line 92 of file fileXio.h.

◆ FILEXIO_DT_BLOCK

#define FILEXIO_DT_BLOCK   0x04

Definition at line 93 of file fileXio.h.

◆ FILEXIO_DT_RAW

#define FILEXIO_DT_RAW   0x08

Definition at line 94 of file fileXio.h.

◆ FILEXIO_DT_FS

#define FILEXIO_DT_FS   0x10

Definition at line 95 of file fileXio.h.

◆ FILEXIO_DT_FSEXT

#define FILEXIO_DT_FSEXT   0x10000000

Supports calls after chstat().

Definition at line 97 of file fileXio.h.

Enumeration Type Documentation

◆ FILEXIO_CMDS

enum FILEXIO_CMDS

Definition at line 33 of file fileXio.h.

Variable Documentation

◆ fileSize

u32 fileSize

Definition at line 0 of file fileXio.h.

◆ fileProperties

u8 fileProperties

Definition at line 1 of file fileXio.h.

◆ filename

char filename[128+1]

Definition at line 2 of file fileXio.h.

◆ name

char name[16]

Definition at line 0 of file fileXio.h.

◆ type

unsigned int type

Definition at line 1 of file fileXio.h.

◆ version

unsigned int version

Not so sure about this one.

Definition at line 3 of file fileXio.h.

Referenced by _start(), list_devices_ioman(), and list_devices_iomanx().

◆ desc

char desc[128]

Definition at line 4 of file fileXio.h.