PS2SDK
PS2 Homebrew Libraries
|
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) |
IOMAN definitions and imports.
Definition in file ioman_mod.h.
struct _iop_io_file |
File objects passed to driver operations.
Definition at line 55 of file ioman_mod.h.
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. |
struct _iop_io_device |
Definition at line 66 of file ioman_mod.h.
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 |
#define IOP_DT_CHAR 0x01 |
Definition at line 48 of file ioman_mod.h.
#define IOP_DT_CONS 0x02 |
Definition at line 49 of file ioman_mod.h.
#define IOP_DT_BLOCK 0x04 |
Definition at line 50 of file ioman_mod.h.
#define IOP_DT_RAW 0x08 |
Definition at line 51 of file ioman_mod.h.
#define IOP_DT_FS 0x10 |
Definition at line 52 of file ioman_mod.h.
#define ioman_mod_IMPORTS_start DECLARE_IMPORT_TABLE(ioman, 1, 1) |
Definition at line 98 of file ioman_mod.h.
#define ioman_mod_IMPORTS_end END_IMPORT_TABLE |
Definition at line 99 of file ioman_mod.h.
#define I_io_open DECLARE_IMPORT(4, io_open) |
Definition at line 101 of file ioman_mod.h.
#define I_io_close DECLARE_IMPORT(5, io_close) |
Definition at line 102 of file ioman_mod.h.
#define I_io_read DECLARE_IMPORT(6, io_read) |
Definition at line 103 of file ioman_mod.h.
#define I_io_write DECLARE_IMPORT(7, io_write) |
Definition at line 104 of file ioman_mod.h.
#define I_io_lseek DECLARE_IMPORT(8, io_lseek) |
Definition at line 105 of file ioman_mod.h.
#define I_io_ioctl DECLARE_IMPORT(9, io_ioctl) |
Definition at line 106 of file ioman_mod.h.
#define I_io_remove DECLARE_IMPORT(10, io_remove) |
Definition at line 107 of file ioman_mod.h.
#define I_io_mkdir DECLARE_IMPORT(11, io_mkdir) |
Definition at line 108 of file ioman_mod.h.
#define I_io_rmdir DECLARE_IMPORT(12, io_rmdir) |
Definition at line 109 of file ioman_mod.h.
#define I_io_dopen DECLARE_IMPORT(13, io_dopen) |
Definition at line 110 of file ioman_mod.h.
#define I_io_dclose DECLARE_IMPORT(14, io_dclose) |
Definition at line 111 of file ioman_mod.h.
#define I_io_dread DECLARE_IMPORT(15, io_dread) |
Definition at line 112 of file ioman_mod.h.
#define I_io_getstat DECLARE_IMPORT(16, io_getstat) |
Definition at line 113 of file ioman_mod.h.
#define I_io_chstat DECLARE_IMPORT(17, io_chstat) |
Definition at line 114 of file ioman_mod.h.
#define I_io_format DECLARE_IMPORT(18, io_format) |
Definition at line 115 of file ioman_mod.h.
#define I_io_AddDrv DECLARE_IMPORT(20, io_AddDrv); |
Definition at line 116 of file ioman_mod.h.
#define I_io_DelDrv DECLARE_IMPORT(21, io_DelDrv); |
Definition at line 117 of file ioman_mod.h.
typedef struct _iop_io_file iop_io_file_t |
File objects passed to driver operations.
int io_dread | ( | int | fd, |
io_dirent_t * | buf | ||
) |
int io_chstat | ( | const char * | name, |
io_stat_t * | stat, | ||
unsigned int | statmask | ||
) |
int io_AddDrv | ( | iop_io_device_t * | device | ) |