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

Go to the source code of this file.

Data Structures

struct  _iop_file
 
struct  _iop_device
 
struct  _iop_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_IMPORTS_start   DECLARE_IMPORT_TABLE(ioman, 1, 1)
 
#define ioman_IMPORTS_end   END_IMPORT_TABLE
 
#define I_open   DECLARE_IMPORT(4, open)
 
#define I_close   DECLARE_IMPORT(5, close)
 
#define I_read   DECLARE_IMPORT(6, read)
 
#define I_write   DECLARE_IMPORT(7, write)
 
#define I_lseek   DECLARE_IMPORT(8, lseek)
 
#define I_ioctl   DECLARE_IMPORT(9, ioctl)
 
#define I_remove   DECLARE_IMPORT(10, remove)
 
#define I_mkdir   DECLARE_IMPORT(11, mkdir)
 
#define I_rmdir   DECLARE_IMPORT(12, rmdir)
 
#define I_dopen   DECLARE_IMPORT(13, dopen)
 
#define I_dclose   DECLARE_IMPORT(14, dclose)
 
#define I_dread   DECLARE_IMPORT(15, dread)
 
#define I_getstat   DECLARE_IMPORT(16, getstat)
 
#define I_chstat   DECLARE_IMPORT(17, chstat)
 
#define I_format   DECLARE_IMPORT(18, format)
 
#define I_AddDrv   DECLARE_IMPORT(20, AddDrv);
 
#define I_DelDrv   DECLARE_IMPORT(21, DelDrv);
 

Typedefs

typedef struct _iop_file iop_file_t
 
typedef struct _iop_device iop_device_t
 
typedef struct _iop_device_ops iop_device_ops_t
 

Functions

int open (const char *name, int mode)
 
int close (int fd)
 
int read (int fd, void *ptr, size_t size)
 
int write (int fd, void *ptr, size_t size)
 
int lseek (int fd, int pos, int mode)
 
int ioctl (int fd, int command, void *arg)
 
int remove (const char *name)
 
int mkdir (const char *path)
 
int rmdir (const char *path)
 
int dopen (const char *path, int mode)
 
int dclose (int fd)
 
int dread (int fd, io_dirent_t *buf)
 
int getstat (const char *name, io_stat_t *stat)
 
int chstat (const char *name, io_stat_t *stat, unsigned int statmask)
 
int format (const char *dev)
 
int AddDrv (iop_device_t *device)
 
int DelDrv (const char *name)
 

Detailed Description

IOMAN definitions and imports.

Definition in file ioman.h.


Data Structure Documentation

◆ _iop_file

struct _iop_file

File objects passed to driver operations.

Definition at line 53 of file ioman.h.

+ Collaboration diagram for _iop_file:
Data Fields
int mode

File open mode.

int unit

HW device unit number.

struct _iop_device * device

Device driver.

void * privdata

The device driver can use this however it wants.

◆ _iop_device

struct _iop_device

Definition at line 64 of file ioman.h.

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

Not so sure about this one.

const char * desc
struct _iop_device_ops * ops

Macro Definition Documentation

◆ IOP_DT_CHAR

#define IOP_DT_CHAR   0x01

Definition at line 46 of file ioman.h.

◆ IOP_DT_CONS

#define IOP_DT_CONS   0x02

Definition at line 47 of file ioman.h.

◆ IOP_DT_BLOCK

#define IOP_DT_BLOCK   0x04

Definition at line 48 of file ioman.h.

◆ IOP_DT_RAW

#define IOP_DT_RAW   0x08

Definition at line 49 of file ioman.h.

◆ IOP_DT_FS

#define IOP_DT_FS   0x10

Definition at line 50 of file ioman.h.

◆ ioman_IMPORTS_start

#define ioman_IMPORTS_start   DECLARE_IMPORT_TABLE(ioman, 1, 1)

Definition at line 96 of file ioman.h.

◆ ioman_IMPORTS_end

#define ioman_IMPORTS_end   END_IMPORT_TABLE

Definition at line 97 of file ioman.h.

◆ I_open

#define I_open   DECLARE_IMPORT(4, open)

Definition at line 99 of file ioman.h.

◆ I_close

#define I_close   DECLARE_IMPORT(5, close)

Definition at line 100 of file ioman.h.

◆ I_read

#define I_read   DECLARE_IMPORT(6, read)

Definition at line 101 of file ioman.h.

◆ I_write

#define I_write   DECLARE_IMPORT(7, write)

Definition at line 102 of file ioman.h.

◆ I_lseek

#define I_lseek   DECLARE_IMPORT(8, lseek)

Definition at line 103 of file ioman.h.

◆ I_ioctl

#define I_ioctl   DECLARE_IMPORT(9, ioctl)

Definition at line 104 of file ioman.h.

◆ I_remove

#define I_remove   DECLARE_IMPORT(10, remove)

Definition at line 105 of file ioman.h.

◆ I_mkdir

#define I_mkdir   DECLARE_IMPORT(11, mkdir)

Definition at line 106 of file ioman.h.

◆ I_rmdir

#define I_rmdir   DECLARE_IMPORT(12, rmdir)

Definition at line 107 of file ioman.h.

◆ I_dopen

#define I_dopen   DECLARE_IMPORT(13, dopen)

Definition at line 108 of file ioman.h.

◆ I_dclose

#define I_dclose   DECLARE_IMPORT(14, dclose)

Definition at line 109 of file ioman.h.

◆ I_dread

#define I_dread   DECLARE_IMPORT(15, dread)

Definition at line 110 of file ioman.h.

◆ I_getstat

#define I_getstat   DECLARE_IMPORT(16, getstat)

Definition at line 111 of file ioman.h.

◆ I_chstat

#define I_chstat   DECLARE_IMPORT(17, chstat)

Definition at line 112 of file ioman.h.

◆ I_format

#define I_format   DECLARE_IMPORT(18, format)

Definition at line 113 of file ioman.h.

◆ I_AddDrv

#define I_AddDrv   DECLARE_IMPORT(20, AddDrv);

Definition at line 114 of file ioman.h.

◆ I_DelDrv

#define I_DelDrv   DECLARE_IMPORT(21, DelDrv);

Definition at line 115 of file ioman.h.

Typedef Documentation

◆ iop_file_t

typedef struct _iop_file iop_file_t

File objects passed to driver operations.