PS2SDK
PS2 Homebrew Libraries
Loading...
Searching...
No Matches
fssk-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_FSSK_IOCTL_H__
12#define __PS2SDK_FSSK_IOCTL_H__
13
15{
16 u32 zoneUsed; // 0x00
17 u32 inodeBlockCount; // 0x04
18 u32 files; // 0x08
19 u32 directories; // 0x0C
20 u32 PWDLevel; // 0x10
21 u32 hasError; // 0x14
22 u32 partsDeleted; // 0x18
23};
24
25// IOCTL2 codes - none of these commands have any inputs or outputs, unless otherwise specified.
26enum FSSK_IOCTL2_CMD {
27 FSSK_IOCTL2_CMD_GET_ESTIMATE = 0, // Output = u32 time
28 FSSK_IOCTL2_CMD_START,
29 FSSK_IOCTL2_CMD_WAIT,
30 FSSK_IOCTL2_CMD_POLL,
31 FSSK_IOCTL2_CMD_GET_STATUS, // Output = struct fsskStatus
32 FSSK_IOCTL2_CMD_STOP,
33 FSSK_IOCTL2_CMD_SET_MINFREE,
34 FSSK_IOCTL2_CMD_SIM
35};
36
37#define FSSK_MODE_VERBOSITY(x) (((x)&0xF) << 4)
38
39#endif