PS2SDK
PS2 Homebrew Libraries
|
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) |
IOMAN definitions and imports.
Definition in file ioman.h.
struct _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. |
struct _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 |
#define ioman_IMPORTS_start DECLARE_IMPORT_TABLE(ioman, 1, 1) |
typedef struct _iop_file iop_file_t |
File objects passed to driver operations.