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

Go to the source code of this file.

Data Structures

struct  _fio_read_data
 
struct  _fio_open_arg
 
struct  _fio_read_arg
 
struct  _fio_write_arg
 
struct  _fio_lseek_arg
 
struct  _fio_ioctl_arg
 
struct  _fio_dread_arg
 
struct  _fio_getstat_arg
 
struct  _fio_chstat_arg
 
union  _fio_lseek_arg.p
 
union  _fio_ioctl_arg.p
 
union  _fio_dread_arg.p
 
union  _fio_getstat_arg.p
 
union  _fio_chstat_arg.p
 

Macros

#define FIO_PATH_MAX   256
 

Enumerations

enum  _fio_functions {
  FIO_F_OPEN = 0 , FIO_F_CLOSE , FIO_F_READ , FIO_F_WRITE ,
  FIO_F_LSEEK , FIO_F_IOCTL , FIO_F_REMOVE , FIO_F_MKDIR ,
  FIO_F_RMDIR , FIO_F_DOPEN , FIO_F_DCLOSE , FIO_F_DREAD ,
  FIO_F_GETSTAT , FIO_F_CHSTAT , FIO_F_FORMAT , FIO_F_ADDDRV ,
  FIO_F_DELDRV
}
 

Functions

struct _fio_open_arg __attribute__ ((aligned(16)))
 

Variables

int mode
 
char name [FIO_PATH_MAX]
 
int fd
 
void * ptr
 
int size
 
struct _fio_read_dataread_data
 
u32 mis
 
u8 aligned [16]
 
union { 
 
int fd
 
int result
 
p 
 
int offset
 
int whence
 
int request
 
u8 data [1024]
 
io_dirent_tbuf
 
struct _fio_chstat_arg __attribute__
 

Detailed Description

Common definitions for fileio between the client and server sides of the FILEIO protocol.

Definition in file fileio-common.h.


Data Structure Documentation

◆ _fio_read_data

struct _fio_read_data

Shared between _fio_read_intr and fio_read. The updated modules shipped with licensed games changed the size of the buffers from 16 to 64.

Definition at line 46 of file fileio-common.h.

Data Fields
u32 size1
u32 size2
void * dest1
void * dest2
u8 buf1[16]
u8 buf2[16]

◆ _fio_open_arg

struct _fio_open_arg

Definition at line 58 of file fileio-common.h.

Data Fields
int mode
char name[FIO_PATH_MAX]

◆ _fio_read_arg

struct _fio_read_arg

Definition at line 64 of file fileio-common.h.

+ Collaboration diagram for _fio_read_arg:
Data Fields
int fd
void * ptr
int size
struct _fio_read_data * read_data

◆ _fio_write_arg

struct _fio_write_arg

Definition at line 72 of file fileio-common.h.

Data Fields
int fd
const void * ptr
u32 size
u32 mis
u8 aligned[16]

◆ _fio_lseek_arg

struct _fio_lseek_arg

Definition at line 81 of file fileio-common.h.

Data Fields
union _fio_lseek_arg.p p
int offset
int whence

◆ _fio_ioctl_arg

struct _fio_ioctl_arg

Definition at line 92 of file fileio-common.h.

Data Fields
union _fio_ioctl_arg.p p
int request
u8 data[1024]

◆ _fio_dread_arg

struct _fio_dread_arg

Definition at line 103 of file fileio-common.h.

+ Collaboration diagram for _fio_dread_arg:
Data Fields
union _fio_dread_arg.p p
io_dirent_t * buf

◆ _fio_getstat_arg

struct _fio_getstat_arg

Definition at line 113 of file fileio-common.h.

Data Fields
union _fio_getstat_arg.p p
char name[FIO_PATH_MAX]

◆ _fio_chstat_arg

struct _fio_chstat_arg

Definition at line 123 of file fileio-common.h.

+ Collaboration diagram for _fio_chstat_arg:
Data Fields
union _fio_chstat_arg.p p
io_stat_t stat
char name[FIO_PATH_MAX]

◆ _fio_lseek_arg.p

union _fio_lseek_arg.p

Definition at line 83 of file fileio-common.h.

Data Fields
int fd
int result

◆ _fio_ioctl_arg.p

union _fio_ioctl_arg.p

Definition at line 94 of file fileio-common.h.

Data Fields
int fd
int result

◆ _fio_dread_arg.p

union _fio_dread_arg.p

Definition at line 105 of file fileio-common.h.

Data Fields
int fd
int result

◆ _fio_getstat_arg.p

union _fio_getstat_arg.p

Definition at line 115 of file fileio-common.h.

Data Fields
io_stat_t * buf
int result

◆ _fio_chstat_arg.p

union _fio_chstat_arg.p

Definition at line 125 of file fileio-common.h.

Data Fields
int cbit
int result

Macro Definition Documentation

◆ FIO_PATH_MAX

#define FIO_PATH_MAX   256

Definition at line 56 of file fileio-common.h.

Enumeration Type Documentation

◆ _fio_functions

enum _fio_functions

Definition at line 24 of file fileio-common.h.

Variable Documentation

◆ mode

int mode

Definition at line 0 of file fileio-common.h.

◆ name

char name

Definition at line 1 of file fileio-common.h.

◆ fd

int fd

Definition at line 0 of file fileio-common.h.

◆ ptr

const void * ptr

Definition at line 1 of file fileio-common.h.

◆ size

u32 size

Definition at line 2 of file fileio-common.h.

◆ read_data

struct _fio_read_data* read_data

Definition at line 3 of file fileio-common.h.

◆ mis

u32 mis

Definition at line 3 of file fileio-common.h.

◆ aligned

u8 aligned[16]

Definition at line 4 of file fileio-common.h.

◆ offset

int offset

Definition at line 5 of file fileio-common.h.

◆ whence

int whence

Definition at line 6 of file fileio-common.h.

◆ request

int request

Definition at line 5 of file fileio-common.h.

◆ data

static char data ( )

Definition at line 6 of file fileio-common.h.

◆ buf

Definition at line 5 of file fileio-common.h.