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
15
extern
int
hddInit(
iomanX_iop_device_t
*f);
16
extern
int
hddDeinit(
iomanX_iop_device_t
*f);
17
extern
int
hddFormat(
iomanX_iop_file_t
*f,
const
char
*dev,
const
char
*blockdev,
void
*arg,
int
arglen);
18
extern
int
hddOpen(
iomanX_iop_file_t
*f,
const
char
*name,
int
flags,
int
mode);
19
extern
int
hddClose(
iomanX_iop_file_t
*f);
20
extern
int
hddRead(
iomanX_iop_file_t
*f,
void
*buf,
int
size);
21
extern
int
hddWrite(
iomanX_iop_file_t
*f,
void
*buf,
int
size);
22
extern
int
hddLseek(
iomanX_iop_file_t
*f,
int
post,
int
whence);
23
extern
int
hddIoctl2(
iomanX_iop_file_t
*f,
int
request
,
void
*argp,
unsigned
int
arglen,
void
*bufp,
unsigned
int
buflen);
24
extern
int
hddRemove(
iomanX_iop_file_t
*f,
const
char
*name);
25
extern
int
hddDopen(
iomanX_iop_file_t
*f,
const
char
*name);
26
extern
int
hddDread(
iomanX_iop_file_t
*f,
iox_dirent_t
*dirent);
27
extern
int
hddGetStat(
iomanX_iop_file_t
*f,
const
char
*name,
iox_stat_t
*stat);
28
extern
int
hddReName(
iomanX_iop_file_t
*f,
const
char
*oldname,
const
char
*newname);
29
extern
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
31
extern
int
hddMount(
iomanX_iop_file_t
*f,
const
char
*fsname,
const
char
*devname,
int
flag,
void
*arg,
int
arglen);
32
extern
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 */
_iomanX_iop_device
Definition
iomanX.h:81
_iomanX_iop_file
Definition
iomanX.h:70
iox_dirent_t
Definition
iox_stat.h:112
iox_stat_t
Definition
iox_stat.h:93
request
Definition
thread.c:18
iop
hdd
apa
src
hdd_fio.h
Generated on Tue Feb 11 2025 21:35:58 for PS2SDK by
1.12.0