sdk-core
v2026.11.05
PS2 SDK - core tier (build-critical EE/IOP modules)
Toggle main menu visibility
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
19
extern
int
hddInit(iomanX_iop_device_t *f);
20
extern
int
hddDeinit(iomanX_iop_device_t *f);
21
extern
int
hddFormat(
iomanX_iop_file_t
*f,
const
char
*dev,
const
char
*blockdev,
void
*arg,
int
arglen);
22
extern
int
hddOpen(
iomanX_iop_file_t
*f,
const
char
*name,
int
flags,
int
mode);
23
extern
int
hddClose(
iomanX_iop_file_t
*f);
24
extern
int
hddRead(
iomanX_iop_file_t
*f,
void
*buf,
int
size);
25
extern
int
hddWrite(
iomanX_iop_file_t
*f,
void
*buf,
int
size);
26
extern
int
hddLseek(
iomanX_iop_file_t
*f,
int
post,
int
whence);
27
extern
int
hddIoctl2(
iomanX_iop_file_t
*f,
int
request
,
void
*argp,
unsigned
int
arglen,
void
*bufp,
unsigned
int
buflen);
28
extern
int
hddRemove(
iomanX_iop_file_t
*f,
const
char
*name);
29
extern
int
hddDopen(
iomanX_iop_file_t
*f,
const
char
*name);
30
extern
int
hddDread(
iomanX_iop_file_t
*f,
iox_dirent_t
*dirent);
31
extern
int
hddGetStat(
iomanX_iop_file_t
*f,
const
char
*name,
iox_stat_t
*stat);
32
extern
int
hddReName(
iomanX_iop_file_t
*f,
const
char
*oldname,
const
char
*newname);
33
extern
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
35
extern
int
hddMount(
iomanX_iop_file_t
*f,
const
char
*fsname,
const
char
*devname,
int
flag,
void
*arg,
int
arglen);
36
extern
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 */
iomanX_iop_file_t
struct _iomanX_iop_file iomanX_iop_file_t
iox_dirent_t
Definition
iox_stat.h:113
iox_stat_t
Definition
iox_stat.h:94
request
Definition
thread.c:18
core
apa
src
hdd_fio.h
Generated by
1.18.0