PS2SDK
PS2 Homebrew Libraries
iomanX.h File Reference
#include <types.h>
#include <stdarg.h>
#include <io_common.h>
#include <iox_stat.h>
+ Include dependency graph for iomanX.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  _iomanX_iop_file
 
struct  _iomanX_iop_device
 
struct  _iomanX_iop_device_ops
 

Macros

#define IOMANX_OLD_NAME_COMPATIBILITY   0
 
#define IOMANX_OLD_NAME_ADDDELDRV   0
 
#define IOP_DT_CHAR   0x01
 
#define IOP_DT_CONS   0x02
 
#define IOP_DT_BLOCK   0x04
 
#define IOP_DT_RAW   0x08
 
#define IOP_DT_FS   0x10
 
#define IOP_DT_FSEXT   0x10000000
 
#define IOMANX_RETURN_VALUE_IMPL(val)
 
#define IOMANX_RETURN_VALUE(val)   ((void*)&my_iomanx_retval_##val##_int)
 
#define IOMANX_RETURN_VALUE_S64(val)   ((void*)&my_iomanx_retval_##val##_s64)
 

Typedefs

typedef struct _iomanX_iop_file iomanX_iop_file_t
 
typedef struct _iomanX_iop_device iomanX_iop_device_t
 
typedef struct _iomanX_iop_device_ops iomanX_iop_device_ops_t
 

Functions

iomanX_iop_device_t ** iomanX_GetDeviceList (void)
 
int iomanX_open (const char *name, int flags,...)
 
int iomanX_close (int fd)
 
int iomanX_read (int fd, void *ptr, int size)
 
int iomanX_write (int fd, void *ptr, int size)
 
int iomanX_lseek (int fd, int offset, int mode)
 
int iomanX_ioctl (int fd, int cmd, void *param)
 
int iomanX_remove (const char *name)
 
int iomanX_mkdir (const char *path, int mode)
 
int iomanX_rmdir (const char *path)
 
int iomanX_dopen (const char *path)
 
int iomanX_dclose (int fd)
 
int iomanX_dread (int fd, iox_dirent_t *buf)
 
int iomanX_getstat (const char *name, iox_stat_t *stat)
 
int iomanX_chstat (const char *name, iox_stat_t *stat, unsigned int statmask)
 
int iomanX_format (const char *dev, const char *blockdev, void *arg, int arglen)
 
int iomanX_rename (const char *old, const char *new_)
 
int iomanX_chdir (const char *name)
 
int iomanX_sync (const char *dev, int flag)
 
int iomanX_mount (const char *fsname, const char *devname, int flag, void *arg, int arglen)
 
int iomanX_umount (const char *fsname)
 
s64 iomanX_lseek64 (int fd, s64 offset, int whence)
 
int iomanX_devctl (const char *name, int cmd, void *arg, unsigned int arglen, void *buf, unsigned int buflen)
 
int iomanX_symlink (const char *old, const char *new_)
 
int iomanX_readlink (const char *path, char *buf, unsigned int buflen)
 
int iomanX_ioctl2 (int fd, int cmd, void *arg, unsigned int arglen, void *buf, unsigned int buflen)
 
int iomanX_AddDrv (iomanX_iop_device_t *device)
 
int iomanX_DelDrv (const char *name)
 
unsigned int iomanX_GetDevType (int fd)
 
void iomanX_StdioInit (int mode)
 

Detailed Description

Definitions and imports for iomanX.

Definition in file iomanX.h.


Data Structure Documentation

◆ _iomanX_iop_file

struct _iomanX_iop_file

File objects passed to driver operations.

Definition at line 70 of file iomanX.h.

+ Collaboration diagram for _iomanX_iop_file:
Data Fields
int mode

File open mode.

int unit

HW device unit number.

struct _iomanX_iop_device * device

Device driver.

void * privdata

The device driver can use this however it wants.

◆ _iomanX_iop_device

struct _iomanX_iop_device

Definition at line 81 of file iomanX.h.

+ Collaboration diagram for _iomanX_iop_device:
Data Fields
const char * name
unsigned int type
unsigned int version

Not so sure about this one.

const char * desc
struct _iomanX_iop_device_ops * ops

Macro Definition Documentation

◆ IOP_DT_FSEXT

#define IOP_DT_FSEXT   0x10000000

Supports calls after chstat().

Definition at line 66 of file iomanX.h.

◆ IOMANX_RETURN_VALUE_IMPL

#define IOMANX_RETURN_VALUE_IMPL (   val)
Value:
static inline int my_iomanx_retval_##val##_int(void) {return -val;} \
static inline signed long long my_iomanx_retval_##val##_s64(void) {return -val;}

Definition at line 89 of file iomanX.h.

Typedef Documentation

◆ iomanX_iop_file_t

File objects passed to driver operations.

Function Documentation

◆ iomanX_format()

int iomanX_format ( const char *  dev,
const char *  blockdev,
void *  arg,
int  arglen 
)

This can take take more than one form.

Definition at line 708 of file iomanX.c.