Skip to content

Commit

Permalink
Merge pull request #690 from uyjulian/apa_pfs_opt_custom
Browse files Browse the repository at this point in the history
Allow apa-opt.h and pfs-opt.h filename to be configurable
  • Loading branch information
fjtrujy authored Dec 4, 2024
2 parents 634fc77 + 110f505 commit a9097f6
Show file tree
Hide file tree
Showing 34 changed files with 12 additions and 32 deletions.
1 change: 0 additions & 1 deletion iop/hdd/apa/src/hdd.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
#include <iomanX.h>
#include <hdd-ioctl.h>

#include "apa-opt.h"
#include <libapa.h>
#include "hdd.h"
#include "hdd_fio.h"
Expand Down
1 change: 0 additions & 1 deletion iop/hdd/apa/src/hdd_fio.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
#include <thsemap.h>
#include <hdd-ioctl.h>

#include "apa-opt.h"
#include <libapa.h>
#include "hdd.h"
#include "hdd_fio.h"
Expand Down
1 change: 0 additions & 1 deletion iop/hdd/fsck/src/bitmap_fsck.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
#include <iomanX.h>
#include <hdd-ioctl.h>

#include "pfs-opt.h"
#include "libpfs.h"
#include "bitmap_fsck.h"

Expand Down
1 change: 0 additions & 1 deletion iop/hdd/fsck/src/fsck.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
#include <stdio.h>
#include <sysclib.h>

#include "pfs-opt.h"
#include "libpfs.h"
#include "bitmap_fsck.h"
#include "misc_fsck.h"
Expand Down
1 change: 0 additions & 1 deletion iop/hdd/fsck/src/misc_fsck.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
#include <thbase.h>
#include <thevent.h>

#include "pfs-opt.h"
#include "libpfs.h"
#include "misc_fsck.h"

Expand Down
1 change: 0 additions & 1 deletion iop/hdd/fssk/src/fssk.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
#include <irx.h>
#include <hdd-ioctl.h>

#include "pfs-opt.h"
#include "libpfs.h"
#include "fssk-ioctl.h"
#include "fssk.h"
Expand Down
1 change: 0 additions & 1 deletion iop/hdd/fssk/src/misc_fssk.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
#include <thbase.h>
#include <thevent.h>

#include "pfs-opt.h"
#include "libpfs.h"
#include "misc_fssk.h"

Expand Down
1 change: 0 additions & 1 deletion iop/hdd/hdck/src/hdck.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
#include <irx.h>
#include <hdd-ioctl.h>

#include "apa-opt.h"
#include "libapa.h"

#include "misc_hdck.h"
Expand Down
1 change: 0 additions & 1 deletion iop/hdd/hdck/src/misc_hdck.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

#include <atad.h>

#include "apa-opt.h"
#include "libapa.h"
#include "misc_hdck.h"

Expand Down
1 change: 0 additions & 1 deletion iop/hdd/hdsk/src/hdl.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
#include <irx.h>
#include <hdd-ioctl.h>

#include "apa-opt.h"
#include "libapa.h"
#include "hdsk.h"

Expand Down
1 change: 0 additions & 1 deletion iop/hdd/hdsk/src/hdsk.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
#include <irx.h>
#include <hdd-ioctl.h>

#include "apa-opt.h"
#include "libapa.h"
#include "hdsk-devctl.h"
#include "hdsk.h"
Expand Down
1 change: 0 additions & 1 deletion iop/hdd/hdsk/src/misc_hdsk.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
#include <thbase.h>
#include <thevent.h>

#include "apa-opt.h"
#include "libapa.h"
#include "misc_hdsk.h"

Expand Down
1 change: 0 additions & 1 deletion iop/hdd/hdsk/src/sim.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
#include <sysclib.h>
#include <hdd-ioctl.h>

#include "apa-opt.h"
#include "libapa.h"
#include "hdsk-devctl.h"
#include "hdsk.h"
Expand Down
6 changes: 6 additions & 0 deletions iop/hdd/libapa/include/libapa.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@
#include <types.h>
#include <hdd-ioctl.h>

#ifndef APA_OPT_H
#define APA_OPT_H "apa-opt.h"
#endif

#include APA_OPT_H

// Sectors for this and that ;)
#define APA_SECTOR_MBR 0
#ifdef APA_SUPPORT_GPT
Expand Down
1 change: 0 additions & 1 deletion iop/hdd/libapa/src/apa.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
#endif
#include <hdd-ioctl.h>

#include "apa-opt.h"
#include "libapa.h"
#include "hdd_blkio.h"

Expand Down
1 change: 0 additions & 1 deletion iop/hdd/libapa/src/cache.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
#include <stdio.h>
#include <hdd-ioctl.h>

#include "apa-opt.h"
#include "libapa.h"

// Globals
Expand Down
1 change: 0 additions & 1 deletion iop/hdd/libapa/src/free.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
#include <stdio.h>
#include <hdd-ioctl.h>

#include "apa-opt.h"
#include "libapa.h"

static void apaCalculateFreeSpace(u32 *free, u32 sectors)
Expand Down
1 change: 0 additions & 1 deletion iop/hdd/libapa/src/journal.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
#include <stdio.h>
#include <hdd-ioctl.h>

#include "apa-opt.h"
#include "libapa.h"
#include "hdd_blkio.h"

Expand Down
1 change: 0 additions & 1 deletion iop/hdd/libapa/src/misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
#include <stdio.h>
#include <hdd-ioctl.h>

#include "apa-opt.h"
#include "libapa.h"

void *apaAllocMem(int size)
Expand Down
1 change: 0 additions & 1 deletion iop/hdd/libapa/src/password.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
#include <stdio.h>
#include <hdd-ioctl.h>

#include "apa-opt.h"
#include "libapa.h"

int apaPassCmp(const char *pw1, const char *pw2)
Expand Down
6 changes: 6 additions & 0 deletions iop/hdd/libpfs/include/libpfs.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@

#include <types.h>

#ifndef PFS_OPT_H
#define PFS_OPT_H "pfs-opt.h"
#endif

#include PFS_OPT_H

// General constants
#define PFS_BLOCKSIZE 0x2000
#define PFS_SUPER_MAGIC 0x50465300 // "PFS\0" aka Playstation Filesystem
Expand Down
1 change: 0 additions & 1 deletion iop/hdd/libpfs/src/bitmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
#include <stdio.h>
#include <limits.h>

#include "pfs-opt.h"
#include "libpfs.h"

extern u32 pfsMetaSize;
Expand Down
1 change: 0 additions & 1 deletion iop/hdd/libpfs/src/block.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
#include <string.h>
#endif

#include "pfs-opt.h"
#include "libpfs.h"

// Returns the next block descriptor inode
Expand Down
1 change: 0 additions & 1 deletion iop/hdd/libpfs/src/blockWrite.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
#include <string.h>
#endif

#include "pfs-opt.h"
#include "libpfs.h"

// Attempt to expand the block segment 'blockpos' by 'count' blocks
Expand Down
1 change: 0 additions & 1 deletion iop/hdd/libpfs/src/cache.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
#endif
#include <hdd-ioctl.h>

#include "pfs-opt.h"
#include "libpfs.h"

extern u32 pfsBlockSize;
Expand Down
1 change: 0 additions & 1 deletion iop/hdd/libpfs/src/dir.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
#endif
#include <iomanX.h>

#include "pfs-opt.h"
#include "libpfs.h"

extern u32 pfsMetaSize;
Expand Down
1 change: 0 additions & 1 deletion iop/hdd/libpfs/src/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
#include <string.h>
#endif

#include "pfs-opt.h"
#include "libpfs.h"

extern u32 pfsMetaSize;
Expand Down
1 change: 0 additions & 1 deletion iop/hdd/libpfs/src/journal.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
#endif
#include <hdd-ioctl.h>

#include "pfs-opt.h"
#include "libpfs.h"

extern u32 pfsBlockSize;
Expand Down
1 change: 0 additions & 1 deletion iop/hdd/libpfs/src/misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
#include <ctype.h>
#include <hdd-ioctl.h>

#include "pfs-opt.h"
#include "libpfs.h"

///////////////////////////////////////////////////////////////////////////////
Expand Down
1 change: 0 additions & 1 deletion iop/hdd/libpfs/src/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
#endif
#include <hdd-ioctl.h>

#include "pfs-opt.h"
#include "libpfs.h"

u32 pfsBlockSize = 1;// block size scale in sectors (512). Note that 0 = 1x
Expand Down
1 change: 0 additions & 1 deletion iop/hdd/libpfs/src/superWrite.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
#endif
#include <hdd-ioctl.h>

#include "pfs-opt.h"
#include "libpfs.h"

extern u32 pfsBlockSize;
Expand Down
1 change: 0 additions & 1 deletion iop/hdd/pfs/src/pfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
#include <errno.h>
#include <thsemap.h>

#include "pfs-opt.h"
#include "libpfs.h"
#include "pfs.h"
#include "pfs_fio.h"
Expand Down
1 change: 0 additions & 1 deletion iop/hdd/pfs/src/pfs_fio.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
#include <thsemap.h>
#include <hdd-ioctl.h>

#include "pfs-opt.h"
#include "libpfs.h"
#include "pfs.h"
#include "pfs_fio.h"
Expand Down
1 change: 0 additions & 1 deletion iop/hdd/pfs/src/pfs_fioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
#include <thsemap.h>
#include <hdd-ioctl.h>

#include "pfs-opt.h"
#include "libpfs.h"
#include "pfs.h"
#include "pfs_fio.h"
Expand Down

0 comments on commit a9097f6

Please sign in to comment.