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

Go to the source code of this file.

Data Structures

struct  _iop_io_file
 
struct  _iop_io_device
 
struct  _iop_io_device_ops
 

Macros

#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 ioman_mod_IMPORTS_start   DECLARE_IMPORT_TABLE(ioman, 1, 1)
 
#define ioman_mod_IMPORTS_end   END_IMPORT_TABLE
 
#define I_io_open   DECLARE_IMPORT(4, io_open)
 
#define I_io_close   DECLARE_IMPORT(5, io_close)
 
#define I_io_read   DECLARE_IMPORT(6, io_read)
 
#define I_io_write   DECLARE_IMPORT(7, io_write)
 
#define I_io_lseek   DECLARE_IMPORT(8, io_lseek)
 
#define I_io_ioctl   DECLARE_IMPORT(9, io_ioctl)
 
#define I_io_remove   DECLARE_IMPORT(10, io_remove)
 
#define I_io_mkdir   DECLARE_IMPORT(11, io_mkdir)
 
#define I_io_rmdir   DECLARE_IMPORT(12, io_rmdir)
 
#define I_io_dopen   DECLARE_IMPORT(13, io_dopen)
 
#define I_io_dclose   DECLARE_IMPORT(14, io_dclose)
 
#define I_io_dread   DECLARE_IMPORT(15, io_dread)
 
#define I_io_getstat   DECLARE_IMPORT(16, io_getstat)
 
#define I_io_chstat   DECLARE_IMPORT(17, io_chstat)
 
#define I_io_format   DECLARE_IMPORT(18, io_format)
 
#define I_io_AddDrv   DECLARE_IMPORT(20, io_AddDrv);
 
#define I_io_DelDrv   DECLARE_IMPORT(21, io_DelDrv);
 

Typedefs

typedef struct _iop_io_file iop_io_file_t
 
typedef struct _iop_io_device iop_io_device_t
 
typedef struct _iop_io_device_ops iop_io_device_ops_t
 

Functions

int io_open (const char *name, int mode)
 
int io_close (int fd)
 
int io_read (int fd, void *ptr, size_t size)
 
int io_write (int fd, void *ptr, size_t size)
 
int io_lseek (int fd, int pos, int mode)
 
int io_ioctl (int fd, unsigned long arg, void *param)
 
int io_remove (const char *name)
 
int io_mkdir (const char *path)
 
int io_rmdir (const char *path)
 
int io_dopen (const char *path, int mode)
 
int io_dclose (int fd)
 
int io_dread (int fd, io_dirent_t *buf)
 
int io_getstat (const char *name, io_stat_t *stat)
 
int io_chstat (const char *name, io_stat_t *stat, unsigned int statmask)
 
int io_format (const char *dev)
 
int io_AddDrv (iop_io_device_t *device)
 
int io_DelDrv (const char *name)
 

Detailed Description

IOMAN definitions and imports.

Definition in file ioman_mod.h.


Data Structure Documentation

◆ _iop_io_file

struct _iop_io_file

File objects passed to driver operations.

Definition at line 55 of file ioman_mod.h.

+ Collaboration diagram for _iop_io_file:
Data Fields
int mode

File open mode.

int unit

HW device unit number.

struct _iop_io_device * device

Device driver.

void * privdata

The device driver can use this however it wants.

◆ _iop_io_device

struct _iop_io_device

Definition at line 66 of file ioman_mod.h.

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

Not so sure about this one.

const char * desc
struct _iop_io_device_ops * ops

Macro Definition Documentation

◆ IOP_DT_CHAR

#define IOP_DT_CHAR   0x01

Definition at line 48 of file ioman_mod.h.

◆ IOP_DT_CONS

#define IOP_DT_CONS   0x02

Definition at line 49 of file ioman_mod.h.

◆ IOP_DT_BLOCK

#define IOP_DT_BLOCK   0x04

Definition at line 50 of file ioman_mod.h.

◆ IOP_DT_RAW

#define IOP_DT_RAW   0x08

Definition at line 51 of file ioman_mod.h.

◆ IOP_DT_FS

#define IOP_DT_FS   0x10

Definition at line 52 of file ioman_mod.h.

◆ ioman_mod_IMPORTS_start

#define ioman_mod_IMPORTS_start   DECLARE_IMPORT_TABLE(ioman, 1, 1)

Definition at line 98 of file ioman_mod.h.

◆ ioman_mod_IMPORTS_end

#define ioman_mod_IMPORTS_end   END_IMPORT_TABLE

Definition at line 99 of file ioman_mod.h.

◆ I_io_open

#define I_io_open   DECLARE_IMPORT(4, io_open)

Definition at line 101 of file ioman_mod.h.

◆ I_io_close

#define I_io_close   DECLARE_IMPORT(5, io_close)

Definition at line 102 of file ioman_mod.h.

◆ I_io_read

#define I_io_read   DECLARE_IMPORT(6, io_read)

Definition at line 103 of file ioman_mod.h.

◆ I_io_write

#define I_io_write   DECLARE_IMPORT(7, io_write)

Definition at line 104 of file ioman_mod.h.

◆ I_io_lseek

#define I_io_lseek   DECLARE_IMPORT(8, io_lseek)

Definition at line 105 of file ioman_mod.h.

◆ I_io_ioctl

#define I_io_ioctl   DECLARE_IMPORT(9, io_ioctl)

Definition at line 106 of file ioman_mod.h.

◆ I_io_remove

#define I_io_remove   DECLARE_IMPORT(10, io_remove)

Definition at line 107 of file ioman_mod.h.

◆ I_io_mkdir

#define I_io_mkdir   DECLARE_IMPORT(11, io_mkdir)

Definition at line 108 of file ioman_mod.h.

◆ I_io_rmdir

#define I_io_rmdir   DECLARE_IMPORT(12, io_rmdir)

Definition at line 109 of file ioman_mod.h.

◆ I_io_dopen

#define I_io_dopen   DECLARE_IMPORT(13, io_dopen)

Definition at line 110 of file ioman_mod.h.

◆ I_io_dclose

#define I_io_dclose   DECLARE_IMPORT(14, io_dclose)

Definition at line 111 of file ioman_mod.h.

◆ I_io_dread

#define I_io_dread   DECLARE_IMPORT(15, io_dread)

Definition at line 112 of file ioman_mod.h.

◆ I_io_getstat

#define I_io_getstat   DECLARE_IMPORT(16, io_getstat)

Definition at line 113 of file ioman_mod.h.

◆ I_io_chstat

#define I_io_chstat   DECLARE_IMPORT(17, io_chstat)

Definition at line 114 of file ioman_mod.h.

◆ I_io_format

#define I_io_format   DECLARE_IMPORT(18, io_format)

Definition at line 115 of file ioman_mod.h.

◆ I_io_AddDrv

#define I_io_AddDrv   DECLARE_IMPORT(20, io_AddDrv);

Definition at line 116 of file ioman_mod.h.

◆ I_io_DelDrv

#define I_io_DelDrv   DECLARE_IMPORT(21, io_DelDrv);

Definition at line 117 of file ioman_mod.h.

Typedef Documentation

◆ iop_io_file_t

typedef struct _iop_io_file iop_io_file_t

File objects passed to driver operations.

Function Documentation

◆ io_open()

int io_open ( const char *  name,
int  mode 
)

Definition at line 313 of file ioman.c.

◆ io_close()

int io_close ( int  fd)

Definition at line 344 of file ioman.c.

◆ io_read()

int io_read ( int  fd,
void *  ptr,
size_t  size 
)

Definition at line 361 of file ioman.c.

◆ io_write()

int io_write ( int  fd,
void *  ptr,
size_t  size 
)

Definition at line 371 of file ioman.c.

◆ io_lseek()

int io_lseek ( int  fd,
int  pos,
int  mode 
)

Definition at line 381 of file ioman.c.

◆ io_ioctl()

int io_ioctl ( int  fd,
unsigned long  arg,
void *  param 
)

Definition at line 400 of file ioman.c.

◆ io_remove()

int io_remove ( const char *  name)

Definition at line 410 of file ioman.c.

◆ io_mkdir()

int io_mkdir ( const char *  path)

Definition at line 474 of file ioman.c.

◆ io_rmdir()

int io_rmdir ( const char *  path)

Definition at line 479 of file ioman.c.

◆ io_dopen()

int io_dopen ( const char *  path,
int  mode 
)

Definition at line 484 of file ioman.c.

◆ io_dclose()

int io_dclose ( int  fd)

Definition at line 513 of file ioman.c.

◆ io_dread()

int io_dread ( int  fd,
io_dirent_t buf 
)

Definition at line 530 of file ioman.c.

◆ io_getstat()

int io_getstat ( const char *  name,
io_stat_t stat 
)

Definition at line 545 of file ioman.c.

◆ io_chstat()

int io_chstat ( const char *  name,
io_stat_t stat,
unsigned int  statmask 
)

Definition at line 570 of file ioman.c.

◆ io_format()

int io_format ( const char *  dev)

Definition at line 595 of file ioman.c.

◆ io_AddDrv()

int io_AddDrv ( iop_io_device_t device)

Definition at line 155 of file ioman.c.

◆ io_DelDrv()

int io_DelDrv ( const char *  name)

Definition at line 187 of file ioman.c.