PS2SDK
PS2 Homebrew Libraries
Loading...
Searching...
No Matches
hdd_fio.h
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
11#ifndef _HDD_FIO_H
12#define _HDD_FIO_H
13
14// I/O functions
15extern int hddInit(iomanX_iop_device_t *f);
16extern int hddDeinit(iomanX_iop_device_t *f);
17extern int hddFormat(iomanX_iop_file_t *f, const char *dev, const char *blockdev, void *arg, int arglen);
18extern int hddOpen(iomanX_iop_file_t *f, const char *name, int flags, int mode);
19extern int hddClose(iomanX_iop_file_t *f);
20extern int hddRead(iomanX_iop_file_t *f, void *buf, int size);
21extern int hddWrite(iomanX_iop_file_t *f, void *buf, int size);
22extern int hddLseek(iomanX_iop_file_t *f, int post, int whence);
23extern int hddIoctl2(iomanX_iop_file_t *f, int request, void *argp, unsigned int arglen, void *bufp, unsigned int buflen);
24extern int hddRemove(iomanX_iop_file_t *f, const char *name);
25extern int hddDopen(iomanX_iop_file_t *f, const char *name);
26extern int hddDread(iomanX_iop_file_t *f, iox_dirent_t *dirent);
27extern int hddGetStat(iomanX_iop_file_t *f, const char *name, iox_stat_t *stat);
28extern int hddReName(iomanX_iop_file_t *f, const char *oldname, const char *newname);
29extern int hddDevctl(iomanX_iop_file_t *f, const char *devname, int cmd, void *arg, unsigned int arglen, void *bufp, unsigned int buflen);
30#ifdef APA_USE_IOMANX
31extern int hddMount(iomanX_iop_file_t *f, const char *fsname, const char *devname, int flag, void *arg, int arglen);
32extern int hddUmount(iomanX_iop_file_t *f, const char *fsname);
33#else
34#define hddMount IOMANX_RETURN_VALUE(EPERM)
35#define hddUmount IOMANX_RETURN_VALUE(EPERM)
36#endif
37
38#endif /* _HDD_FIO_H */