sdk-core v2026.11.05
PS2 SDK - core tier (build-critical EE/IOP modules)
Loading...
Searching...
No Matches
hdd_fio.h
Go to the documentation of this file.
1/*
2# _____ ___ ____ ___ ____
3# ____| | ____| | | |____|
4# | ___| |____ ___| ____| | \ PS2DEV Open Source Project.
5#-----------------------------------------------------------------------
6# Copyright 2001-2004, ps2dev - http://www.ps2dev.org
7# Licenced under Academic Free License version 2.0
8# Review ps2sdk README & LICENSE files for further details.
9*/
10
15#ifndef _HDD_FIO_H
16#define _HDD_FIO_H
17
18// I/O functions
19extern int hddInit(iomanX_iop_device_t *f);
20extern int hddDeinit(iomanX_iop_device_t *f);
21extern int hddFormat(iomanX_iop_file_t *f, const char *dev, const char *blockdev, void *arg, int arglen);
22extern int hddOpen(iomanX_iop_file_t *f, const char *name, int flags, int mode);
23extern int hddClose(iomanX_iop_file_t *f);
24extern int hddRead(iomanX_iop_file_t *f, void *buf, int size);
25extern int hddWrite(iomanX_iop_file_t *f, void *buf, int size);
26extern int hddLseek(iomanX_iop_file_t *f, int post, int whence);
27extern int hddIoctl2(iomanX_iop_file_t *f, int request, void *argp, unsigned int arglen, void *bufp, unsigned int buflen);
28extern int hddRemove(iomanX_iop_file_t *f, const char *name);
29extern int hddDopen(iomanX_iop_file_t *f, const char *name);
30extern int hddDread(iomanX_iop_file_t *f, iox_dirent_t *dirent);
31extern int hddGetStat(iomanX_iop_file_t *f, const char *name, iox_stat_t *stat);
32extern int hddReName(iomanX_iop_file_t *f, const char *oldname, const char *newname);
33extern int hddDevctl(iomanX_iop_file_t *f, const char *devname, int cmd, void *arg, unsigned int arglen, void *bufp, unsigned int buflen);
34#ifdef APA_USE_IOMANX
35extern int hddMount(iomanX_iop_file_t *f, const char *fsname, const char *devname, int flag, void *arg, int arglen);
36extern int hddUmount(iomanX_iop_file_t *f, const char *fsname);
37#else
38#define hddMount IOMANX_RETURN_VALUE(EPERM)
39#define hddUmount IOMANX_RETURN_VALUE(EPERM)
40#endif
41
42#endif /* _HDD_FIO_H */
struct _iomanX_iop_file iomanX_iop_file_t