sdk-core v2026.11.05
PS2 SDK - core tier (build-critical EE/IOP modules)
Loading...
Searching...
No Matches
pfs-opt.h
Go to the documentation of this file.
1
5#ifndef _PFS_OPT_H
6#define _PFS_OPT_H
7
8#define PFS_PRINTF(format,...) printf(format, ##__VA_ARGS__)
9#define PFS_DRV_NAME "pfs"
10
11// TODO: last sdk 3.1.0 has PFS module with significant changes.
12// Check what was changed, and maybe port changes.
13// Note: PFS version the same: 2.2
14// CRC32: 98E62276
15#define PFS_MAJOR 2
16#define PFS_MINOR 2
17
18#ifdef PFS_POSIX_VER
19#define PFS_IOCTL2_INC_CHECKSUM 1
20#define PFS_STAT_RETURN_INODE_LBA 1
21#else
22#ifdef PFS_XOSD_VER
23#define PFS_OSD_VER 1
24#define PFS_SUPPORT_BHDD 1
25#endif
26
27/* Define PFS_OSD_VER in your Makefile to build an OSD version, which will:
28 1. Enable the PIOCINVINODE IOCTL2 function.
29 2. (Unofficial) Return the LBA of the inode in private_5 and sub number in private_4 fields of the stat structure (returned by getstat and dread). */
30#ifdef PFS_OSD_VER
31#define PFS_IOCTL2_INC_CHECKSUM 1
32#define PFS_STAT_RETURN_INODE_LBA 1
33#endif
34#endif
35
36#ifdef _IOP
37#define PFS_ENTRYPOINT _start
38#else
39#define PFS_ENTRYPOINT pfs_start
40#endif
41
42#endif