PS2SDK
PS2 Homebrew Libraries
Loading...
Searching...
No Matches
pfs-opt.h
1#ifndef _PFS_OPT_H
2#define _PFS_OPT_H
3
4#define PFS_PRINTF(format,...) printf(format, ##__VA_ARGS__)
5#define PFS_DRV_NAME "pfs"
6
7// TODO: last sdk 3.1.0 has PFS module with significant changes.
8// Check what was changed, and maybe port changes.
9// Note: PFS version the same: 2.2
10// CRC32: 98E62276
11#define PFS_MAJOR 2
12#define PFS_MINOR 2
13
14#ifdef PFS_POSIX_VER
15#define PFS_IOCTL2_INC_CHECKSUM 1
16#define PFS_STAT_RETURN_INODE_LBA 1
17#else
18#ifdef PFS_XOSD_VER
19#define PFS_OSD_VER 1
20#define PFS_SUPPORT_BHDD 1
21#endif
22
23/* Define PFS_OSD_VER in your Makefile to build an OSD version, which will:
24 1. Enable the PIOCINVINODE IOCTL2 function.
25 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). */
26#ifdef PFS_OSD_VER
27#define PFS_IOCTL2_INC_CHECKSUM 1
28#define PFS_STAT_RETURN_INODE_LBA 1
29#endif
30#endif
31
32#ifdef _IOP
33#define PFS_ENTRYPOINT _start
34#else
35#define PFS_ENTRYPOINT pfs_start
36#endif
37
38#endif