sdk-core v2026.11.05
PS2 SDK - core tier (build-critical EE/IOP modules)
Loading...
Searching...
No Matches
apa-opt.h
Go to the documentation of this file.
1
5#ifndef _APA_OPT_H
6#define _APA_OPT_H
7
8#define APA_PRINTF(format, ...) printf(format, ##__VA_ARGS__)
9#define APA_DRV_NAME "hdd"
10
11#ifdef APA_POSIX_VER
12#define APA_ALLOW_REMOVE_PARTITION_WITH_LEADING_UNDERSCORE 1
13#define APA_FORMAT_LOCK_MBR 1
14#define APA_FORMAT_MAKE_PARTITIONS 1
15#define APA_STAT_RETURN_PART_LBA 1
16#define APA_SUPPORT_HDL 1
17#define APA_SUPPORT_IOCTL_GETPARTSTART 1
18#define APA_SUPPORT_MBR 1
19#define APA_WORKAROUND_LESS_THAN_40GB_CAPACITY 1
20#define APA_8MB_PARTITION_SIZE 1
21#else
22/* Define APA_OSD_VER in your Makefile to build an OSD version, which will:
23 1. (currently disabled) When formatting, do not create any partitions other than __mbr.
24 2. __mbr will be formatted with its password.
25 3. All partitions can be accessed, even without the right password.
26 4. The starting LBA of the partition will be returned in
27 the private_5 field of the stat structure (returned by getstat and dread). */
28
29#ifdef APA_XOSD_VER
30#define APA_OSD_VER
31#define APA_SUPPORT_BHDD
32#define APA_FORMAT_WIPE_COMMON_ONLY
33#endif
34
35#ifdef APA_OSD_VER
36#define APA_STAT_RETURN_PART_LBA 1
37#define APA_FORMAT_LOCK_MBR 1
38#define APA_FORMAT_MAKE_PARTITIONS 1 // For now, define this because I don't think we're ready (and want to) deal with the official passwords.
39#else
40#define APA_ENABLE_PASSWORDS 1
41#define APA_FORMAT_MAKE_PARTITIONS 1
42#endif
43#endif
44
45// Module version
46#define APA_MODVER_MAJOR 2
47#define APA_MODVER_MINOR 5
48
49#ifdef _IOP
50#define APA_ENTRYPOINT _start
51#else
52#define APA_ENTRYPOINT apa_start
53#endif
54
55#endif