|
sdk-core v2026.11.05
PS2 SDK - core tier (build-critical EE/IOP modules)
|
#include <loadcore.h>#include <intrman.h>#include <sysclib.h>#include <thbase.h>#include <thsemap.h>#include <timrman.h>#include <modload.h>#include <secrman.h>#include <ioman.h>#include <time.h>#include <stdio.h>#include <errno.h>#include <sio2man.h>Go to the source code of this file.
Classes | |
| struct | _MCCacheDir |
| struct | _McFatCluster |
| struct | McFatCache |
| struct | MC_FHANDLE |
| struct | MCDevInfo |
| union | mcman_pagebuf |
| union | mcman_PS1PDApagebuf |
Macros | |
| #define | MCMAN_ENABLE_EXTENDED_DEV_OPS 0 |
| #define | MODNAME "mcman_cex" |
| #define | MODVER 0x20b |
| #define | MCMAN_ENTRYPOINT mcman_start |
| #define | DPRINTF(format, args...) |
| #define | CF_USE_ECC 0x01 |
| #define | CF_BAD_BLOCK 0x08 |
| #define | CF_ERASE_ZEROES 0x10 |
| #define | MCMAN_MAXSLOT 4 |
| #define | MCMAN_CLUSTERSIZE 1024 |
| #define | MCMAN_CLUSTERFATENTRIES 256 |
| #define | MAX_CACHEENTRY 0x24 |
| #define | MAX_CACHEDIRENTRY 0x3 |
| #define | MAX_FDHANDLES 3 |
| #define | MC_IO_DEV_T iop_device_t |
| #define | MC_IO_FIL_T iop_file_t |
| #define | MC_IO_DRE_T io_dirent_t |
| #define | MC_IO_STA_T io_stat_t |
| #define | MC_IO_OPS_T iop_device_ops_t |
| #define | MC_IO_S_RD SCE_STM_R |
| #define | MC_IO_S_WR SCE_STM_W |
| #define | MC_IO_S_EX SCE_STM_X |
| #define | MC_IO_S_FL SCE_STM_F |
| #define | MC_IO_S_DR SCE_STM_D |
| #define | MC_IO_CST_ATTR SCE_CST_ATTR |
| #define | MC_IO_CST_MODE SCE_CST_MODE |
| #define | MC_IO_CST_CT SCE_CST_CT |
| #define | MC_IO_CST_MT SCE_CST_MT |
| #define | HAKAMA_SIGNALSEMA() |
| #define | HAKAMA_WAITSEMA() |
Typedefs | |
| typedef struct _MCCacheDir | McCacheDir |
| typedef struct _McFatCluster | McFatCluster |
Functions | |
| int | mcsio2_transfer (int port, int slot, sio2_transfer_data_t *sio2data) |
| void | long_multiply (u32 v1, u32 v2, u32 *HI, u32 *LO) |
| int | mcman_chrpos (const char *str, int chr) |
| void | mcman_wmemset (void *buf, int size, int value) |
| int | mcman_calcEDC (void *buf, int size) |
| int | mcman_checkpath (const char *str) |
| int | mcman_checkdirpath (const char *str1, const char *str2) |
| void | mcman_invhandles (int port, int slot) |
| int | McCloseAll (void) |
| int | mcman_detectcard (int port, int slot) |
| int | mcman_dread (int fd, MC_IO_DRE_T *dirent) |
| int | mcman_getstat (int port, int slot, const char *filename, MC_IO_STA_T *stat) |
| int | mcman_getmcrtime (sceMcStDateTime *tm) |
| void | mcman_initPS2com (void) |
| void | mcman_deinitPS2com (void) |
| void | sio2packet_add (int port, int slot, int cmd, u8 *buf) |
| int | mcman_eraseblock (int port, int slot, int block, void **pagebuf, void *eccbuf) |
| int | mcman_readpage (int port, int slot, int page, void *buf, void *eccbuf) |
| int | mcman_cardchanged (int port, int slot) |
| int | mcman_resetauth (int port, int slot) |
| int | mcman_probePS2Card2 (int port, int slot) |
| int | mcman_probePS2Card (int port, int slot) |
| int | secrman_mc_command (int port, int slot, sio2_transfer_data_t *sio2data) |
| int | mcman_getcnum (int port, int slot) |
| int | mcman_correctdata (void *buf, void *ecc) |
| int | mcman_sparesize (int port, int slot) |
| int | mcman_setdevspec (int port, int slot) |
| int | mcman_reportBadBlocks (int port, int slot) |
| int | mcman_setdevinfos (int port, int slot) |
| int | mcman_format2 (int port, int slot) |
| int | mcman_fatRseek (int fd) |
| int | mcman_fatWseek (int fd) |
| int | mcman_findfree2 (int port, int slot, int reserve) |
| int | mcman_dread2 (int fd, MC_IO_DRE_T *dirent) |
| int | mcman_getstat2 (int port, int slot, const char *filename, MC_IO_STA_T *stat) |
| int | mcman_setinfo2 (int port, int slot, const char *filename, sceMcTblGetDir *info, int flags) |
| int | mcman_read2 (int fd, void *buffer, int nbyte) |
| int | mcman_write2 (int fd, void *buffer, int nbyte) |
| int | mcman_close2 (int fd) |
| int | mcman_getentspace (int port, int slot, const char *dirname) |
| int | mcman_cachedirentry (int port, int slot, const char *filename, McCacheDir *pcacheDir, McFsEntry **pfse, int unknown_flag) |
| int | mcman_getdirinfo (int port, int slot, McFsEntry *pfse, const char *filename, McCacheDir *pcd, int unknown_flag) |
| int | mcman_open2 (int port, int slot, const char *filename, int flags) |
| int | mcman_chdir (int port, int slot, const char *newdir, char *currentdir) |
| int | mcman_writecluster (int port, int slot, int cluster, int flag) |
| int | mcman_getdir2 (int port, int slot, const char *dirname, int flags, int maxent, sceMcTblGetDir *info) |
| int | mcman_delete2 (int port, int slot, const char *filename, int flags) |
| int | mcman_checkBackupBlocks (int port, int slot) |
| int | mcman_unformat2 (int port, int slot) |
| void | mcman_initPS1PDAcom (void) |
| void | mcman_deinitPS1PDAcom (void) |
| int | mcman_probePS1Card2 (int port, int slot) |
| int | mcman_probePS1Card (int port, int slot) |
| int | mcman_probePDACard (int port, int slot) |
| int | mcman_setPS1devinfos (int port, int slot) |
| int | mcman_format1 (int port, int slot) |
| int | mcman_open1 (int port, int slot, const char *filename, int flags) |
| int | mcman_read1 (int fd, void *buffer, int nbyte) |
| int | mcman_write1 (int fd, void *buffer, int nbyte) |
| int | mcman_getPS1direntry (int port, int slot, const char *filename, McFsEntryPS1 **pfse, int flag) |
| int | mcman_dread1 (int fd, MC_IO_DRE_T *dirent) |
| int | mcman_getstat1 (int port, int slot, const char *filename, MC_IO_STA_T *stat) |
| int | mcman_setinfo1 (int port, int slot, const char *filename, sceMcTblGetDir *info, int flags) |
| int | mcman_getdir1 (int port, int slot, const char *dirname, int flags, int maxent, sceMcTblGetDir *info) |
| int | mcman_clearPS1direntry (int port, int slot, int cluster, int flags) |
| int | mcman_delete1 (int port, int slot, const char *filename, int flags) |
| int | mcman_close1 (int fd) |
| int | mcman_findfree1 (int port, int slot, int reserve) |
| int | mcman_fatRseekPS1 (int fd) |
| int | mcman_fatWseekPS1 (int fd) |
| int | mcman_FNC8ca4 (int port, int slot, MC_FHANDLE *fh) |
| int | mcman_PS1pagetest (int port, int slot, int page) |
| int | mcman_unformat1 (int port, int slot) |
| int | mcman_cachePS1dirs (int port, int slot) |
| int | mcman_fillPS1backuparea (int port, int slot, int block) |
| void | mcman_initcache (void) |
| int | mcman_clearcache (int port, int slot) |
| McCacheEntry * | mcman_getcacheentry (int port, int slot, int cluster) |
| void | mcman_freecluster (int port, int slot, int cluster) |
| int | mcman_getFATindex (int port, int slot, int num) |
| McCacheEntry * | mcman_get1stcacheEntp (void) |
| void | mcman_addcacheentry (McCacheEntry *mce) |
| int | mcman_flushcacheentry (McCacheEntry *mce) |
| int | mcman_readdirentryPS1 (int port, int slot, int cluster, McFsEntryPS1 **pfse) |
| int | mcman_readclusterPS1 (int port, int slot, int cluster, McCacheEntry **pmce) |
| int | mcman_replaceBackupBlock (int port, int slot, int block) |
| int | mcman_fillbackupblock1 (int port, int slot, int block, void **pagedata, void *eccdata) |
| int | mcman_clearsuperblock (int port, int slot) |
| int | mcman_ioerrcode (int errcode) |
| int | mcman_modloadcb (const char *filename, int *port, int *slot) |
| void | mcman_unit2card (u32 unit) |
| int | mcman_initdev (void) |
| void | mcman_deinitdev (void) |
Variables | |
| char | SUPERBLOCK_MAGIC [] |
| char | SUPERBLOCK_VERSION [] |
| int | mcman_wr_port |
| int | mcman_wr_slot |
| int | mcman_wr_block |
| int | mcman_wr_flag3 |
| int | mcman_curdircluster |
| union mcman_pagebuf | mcman_pagebuf |
| union mcman_PS1PDApagebuf | mcman_PS1PDApagebuf |
| int | timer_ID |
| int | PS1CardFlag |
| McFsEntry | mcman_dircache [MAX_CACHEDIRENTRY] |
| MC_FHANDLE | mcman_fdhandles [MAX_FDHANDLES] |
| MCDevInfo | mcman_devinfos [4][MCMAN_MAXSLOT] |
| u8 | mcman_eccdata [512] |
| u8 | mcman_sio2outbufs_PS1PDA [0x90] |
| #define CF_BAD_BLOCK 0x08 |
Definition at line 106 of file mcman-internal.h.
| #define CF_ERASE_ZEROES 0x10 |
Definition at line 107 of file mcman-internal.h.
| #define CF_USE_ECC 0x01 |
Definition at line 105 of file mcman-internal.h.
| #define DPRINTF | ( | format, | |
| args... ) |
Definition at line 93 of file mcman-internal.h.
| #define HAKAMA_SIGNALSEMA | ( | ) |
Definition at line 378 of file mcman-internal.h.
| #define HAKAMA_WAITSEMA | ( | ) |
Definition at line 379 of file mcman-internal.h.
| #define MAX_CACHEDIRENTRY 0x3 |
Definition at line 127 of file mcman-internal.h.
| #define MAX_CACHEENTRY 0x24 |
Definition at line 121 of file mcman-internal.h.
| #define MAX_FDHANDLES 3 |
Definition at line 150 of file mcman-internal.h.
| #define MC_IO_CST_ATTR SCE_CST_ATTR |
Definition at line 183 of file mcman-internal.h.
| #define MC_IO_CST_CT SCE_CST_CT |
Definition at line 185 of file mcman-internal.h.
| #define MC_IO_CST_MODE SCE_CST_MODE |
Definition at line 184 of file mcman-internal.h.
| #define MC_IO_CST_MT SCE_CST_MT |
Definition at line 186 of file mcman-internal.h.
| #define MC_IO_DEV_T iop_device_t |
Definition at line 171 of file mcman-internal.h.
| #define MC_IO_DRE_T io_dirent_t |
Definition at line 173 of file mcman-internal.h.
| #define MC_IO_FIL_T iop_file_t |
Definition at line 172 of file mcman-internal.h.
| #define MC_IO_OPS_T iop_device_ops_t |
Definition at line 175 of file mcman-internal.h.
| #define MC_IO_S_DR SCE_STM_D |
Definition at line 181 of file mcman-internal.h.
| #define MC_IO_S_EX SCE_STM_X |
Definition at line 179 of file mcman-internal.h.
| #define MC_IO_S_FL SCE_STM_F |
Definition at line 180 of file mcman-internal.h.
| #define MC_IO_S_RD SCE_STM_R |
Definition at line 177 of file mcman-internal.h.
| #define MC_IO_S_WR SCE_STM_W |
Definition at line 178 of file mcman-internal.h.
| #define MC_IO_STA_T io_stat_t |
Definition at line 174 of file mcman-internal.h.
| #define MCMAN_CLUSTERFATENTRIES 256 |
Definition at line 115 of file mcman-internal.h.
| #define MCMAN_CLUSTERSIZE 1024 |
Definition at line 114 of file mcman-internal.h.
| #define MCMAN_ENABLE_EXTENDED_DEV_OPS 0 |
Definition at line 22 of file mcman-internal.h.
| #define MCMAN_ENTRYPOINT mcman_start |
Definition at line 79 of file mcman-internal.h.
| #define MCMAN_MAXSLOT 4 |
Definition at line 112 of file mcman-internal.h.
| #define MODNAME "mcman_cex" |
Definition at line 65 of file mcman-internal.h.
| #define MODVER 0x20b |
Definition at line 73 of file mcman-internal.h.
|
extern |
|
extern |
|
extern |
|
extern |
Definition at line 1026 of file ps2mc_fio.c.
|
extern |
|
extern |
|
extern |
Definition at line 678 of file ps1mc_fio.c.
|
extern |
Definition at line 606 of file ps2mc_fio.c.
|
extern |
Definition at line 661 of file ps1mc_fio.c.
|
extern |
Definition at line 1257 of file ps2mc_fio.c.
|
extern |
Definition at line 385 of file ps1mc_fio.c.
|
extern |
Definition at line 255 of file ps2mc_fio.c.
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
Definition at line 18 of file ps1mc_fio.c.
|
extern |
Definition at line 21 of file ps2mc_fio.c.
|
extern |
|
extern |
|
extern |
Definition at line 584 of file ps1mc_fio.c.
|
extern |
Definition at line 1118 of file ps2mc_fio.c.
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
Definition at line 436 of file ps1mc_fio.c.
|
extern |
Definition at line 314 of file ps2mc_fio.c.
|
extern |
|
extern |
Definition at line 79 of file ps1mc_fio.c.
|
extern |
Definition at line 647 of file ps2mc_fio.c.
|
extern |
|
extern |
Definition at line 257 of file ps1mc_fio.c.
|
extern |
Definition at line 473 of file ps2mc_fio.c.
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
Definition at line 481 of file ps1mc_fio.c.
|
extern |
Definition at line 358 of file ps2mc_fio.c.
|
extern |
Definition at line 743 of file ps1mc_fio.c.
|
extern |
Definition at line 1317 of file ps2mc_fio.c.
|
extern |
|
extern |
Definition at line 308 of file ps1mc_fio.c.
|
extern |
Definition at line 526 of file ps2mc_fio.c.
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |