PS2SDK
PS2 Homebrew Libraries
Loading...
Searching...
No Matches
fsck-ioctl.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 __PS2SDK_FSCK_IOCTL_H__
12
#define __PS2SDK_FSCK_IOCTL_H__
13
14
struct
fsckStatus
15
{
16
u32 zoneUsed;
// 0x00
17
u32 inodeBlockCount;
// 0x04
18
u32 files;
// 0x08
19
u32 directories;
// 0x0C
20
u32 PWDLevel;
// 0x10
21
u32 errorCount;
// 0x14
22
u32 fixedErrorCount;
// 0x18
23
};
24
25
// IOCTL2 codes - none of these commands have any inputs or outputs, unless otherwise specified.
26
enum
FSCK_IOCTL2_CMD {
27
FSCK_IOCTL2_CMD_GET_ESTIMATE = 0,
// Output = u32 time
28
FSCK_IOCTL2_CMD_START,
29
FSCK_IOCTL2_CMD_WAIT,
30
FSCK_IOCTL2_CMD_POLL,
31
FSCK_IOCTL2_CMD_GET_STATUS,
// Output = struct fsckStatus
32
FSCK_IOCTL2_CMD_STOP
33
};
34
35
#define FSCK_MODE_WRITE 1
36
#define FSCK_MODE_AUTO 2
37
#define FSCK_MODE_VERBOSITY(x) (((x)&0xF) << 4)
38
39
#endif
fsckStatus
Definition
fsck-ioctl.h:15
iop
hdd
fsck
src
fsck-ioctl.h
Generated on Tue Feb 11 2025 21:35:58 for PS2SDK by
1.12.0