sdk-core v2026.11.05
PS2 SDK - core tier (build-critical EE/IOP modules)
Loading...
Searching...
No Matches
mcman-internal.h File Reference
#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]

Macro Definition Documentation

◆ CF_BAD_BLOCK

#define CF_BAD_BLOCK   0x08

Definition at line 106 of file mcman-internal.h.

◆ CF_ERASE_ZEROES

#define CF_ERASE_ZEROES   0x10

Definition at line 107 of file mcman-internal.h.

◆ CF_USE_ECC

#define CF_USE_ECC   0x01

Definition at line 105 of file mcman-internal.h.

◆ DPRINTF

#define DPRINTF ( format,
args... )

Definition at line 93 of file mcman-internal.h.

◆ HAKAMA_SIGNALSEMA

#define HAKAMA_SIGNALSEMA ( )

Definition at line 378 of file mcman-internal.h.

◆ HAKAMA_WAITSEMA

#define HAKAMA_WAITSEMA ( )

Definition at line 379 of file mcman-internal.h.

◆ MAX_CACHEDIRENTRY

#define MAX_CACHEDIRENTRY   0x3

Definition at line 127 of file mcman-internal.h.

◆ MAX_CACHEENTRY

#define MAX_CACHEENTRY   0x24

Definition at line 121 of file mcman-internal.h.

◆ MAX_FDHANDLES

#define MAX_FDHANDLES   3

Definition at line 150 of file mcman-internal.h.

◆ MC_IO_CST_ATTR

#define MC_IO_CST_ATTR   SCE_CST_ATTR

Definition at line 183 of file mcman-internal.h.

◆ MC_IO_CST_CT

#define MC_IO_CST_CT   SCE_CST_CT

Definition at line 185 of file mcman-internal.h.

◆ MC_IO_CST_MODE

#define MC_IO_CST_MODE   SCE_CST_MODE

Definition at line 184 of file mcman-internal.h.

◆ MC_IO_CST_MT

#define MC_IO_CST_MT   SCE_CST_MT

Definition at line 186 of file mcman-internal.h.

◆ MC_IO_DEV_T

#define MC_IO_DEV_T   iop_device_t

Definition at line 171 of file mcman-internal.h.

◆ MC_IO_DRE_T

#define MC_IO_DRE_T   io_dirent_t

Definition at line 173 of file mcman-internal.h.

◆ MC_IO_FIL_T

#define MC_IO_FIL_T   iop_file_t

Definition at line 172 of file mcman-internal.h.

◆ MC_IO_OPS_T

#define MC_IO_OPS_T   iop_device_ops_t

Definition at line 175 of file mcman-internal.h.

◆ MC_IO_S_DR

#define MC_IO_S_DR   SCE_STM_D

Definition at line 181 of file mcman-internal.h.

◆ MC_IO_S_EX

#define MC_IO_S_EX   SCE_STM_X

Definition at line 179 of file mcman-internal.h.

◆ MC_IO_S_FL

#define MC_IO_S_FL   SCE_STM_F

Definition at line 180 of file mcman-internal.h.

◆ MC_IO_S_RD

#define MC_IO_S_RD   SCE_STM_R

Definition at line 177 of file mcman-internal.h.

◆ MC_IO_S_WR

#define MC_IO_S_WR   SCE_STM_W

Definition at line 178 of file mcman-internal.h.

◆ MC_IO_STA_T

#define MC_IO_STA_T   io_stat_t

Definition at line 174 of file mcman-internal.h.

◆ MCMAN_CLUSTERFATENTRIES

#define MCMAN_CLUSTERFATENTRIES   256

Definition at line 115 of file mcman-internal.h.

◆ MCMAN_CLUSTERSIZE

#define MCMAN_CLUSTERSIZE   1024

Definition at line 114 of file mcman-internal.h.

◆ MCMAN_ENABLE_EXTENDED_DEV_OPS

#define MCMAN_ENABLE_EXTENDED_DEV_OPS   0

Definition at line 22 of file mcman-internal.h.

◆ MCMAN_ENTRYPOINT

#define MCMAN_ENTRYPOINT   mcman_start

Definition at line 79 of file mcman-internal.h.

◆ MCMAN_MAXSLOT

#define MCMAN_MAXSLOT   4

Definition at line 112 of file mcman-internal.h.

◆ MODNAME

#define MODNAME   "mcman_cex"

Definition at line 65 of file mcman-internal.h.

◆ MODVER

#define MODVER   0x20b

Definition at line 73 of file mcman-internal.h.

Function Documentation

◆ long_multiply()

void long_multiply ( u32 v1,
u32 v2,
u32 * HI,
u32 * LO )
extern

Definition at line 111 of file main.c.

◆ McCloseAll()

int McCloseAll ( void )
extern

Definition at line 430 of file main.c.

◆ mcman_addcacheentry()

void mcman_addcacheentry ( McCacheEntry * mce)
extern

Definition at line 3338 of file main.c.

◆ mcman_cachedirentry()

int mcman_cachedirentry ( int port,
int slot,
const char * filename,
McCacheDir * pcacheDir,
McFsEntry ** pfse,
int unknown_flag )
extern

Definition at line 1798 of file main.c.

◆ mcman_cachePS1dirs()

int mcman_cachePS1dirs ( int port,
int slot )
extern

<– Special fix for saves from a real PS1

Definition at line 3030 of file main.c.

◆ mcman_calcEDC()

int mcman_calcEDC ( void * buf,
int size )
extern

Definition at line 321 of file main.c.

◆ mcman_cardchanged()

int mcman_cardchanged ( int port,
int slot )
extern

Definition at line 417 of file mcsio2.c.

◆ mcman_chdir()

int mcman_chdir ( int port,
int slot,
const char * newdir,
char * currentdir )
extern

Definition at line 1026 of file ps2mc_fio.c.

◆ mcman_checkBackupBlocks()

int mcman_checkBackupBlocks ( int port,
int slot )
extern

Definition at line 2265 of file main.c.

◆ mcman_checkdirpath()

int mcman_checkdirpath ( const char * str1,
const char * str2 )
extern

Definition at line 359 of file main.c.

◆ mcman_checkpath()

int mcman_checkpath ( const char * str)
extern

Definition at line 342 of file main.c.

◆ mcman_chrpos()

int mcman_chrpos ( const char * str,
int chr )
extern

Definition at line 132 of file main.c.

◆ mcman_clearcache()

int mcman_clearcache ( int port,
int slot )
extern

Definition at line 3241 of file main.c.

◆ mcman_clearPS1direntry()

int mcman_clearPS1direntry ( int port,
int slot,
int cluster,
int flags )
extern

Definition at line 2609 of file main.c.

◆ mcman_clearsuperblock()

int mcman_clearsuperblock ( int port,
int slot )
extern

Definition at line 4348 of file main.c.

◆ mcman_close1()

int mcman_close1 ( int fd)
extern

Definition at line 678 of file ps1mc_fio.c.

◆ mcman_close2()

int mcman_close2 ( int fd)
extern

Definition at line 606 of file ps2mc_fio.c.

◆ mcman_correctdata()

int mcman_correctdata ( void * buf,
void * ecc )
extern

Definition at line 1266 of file main.c.

◆ mcman_deinitdev()

void mcman_deinitdev ( void )
extern

Definition at line 287 of file mcdev.c.

◆ mcman_deinitPS1PDAcom()

void mcman_deinitPS1PDAcom ( void )
extern

Definition at line 397 of file mcsio2.c.

◆ mcman_deinitPS2com()

void mcman_deinitPS2com ( void )
extern

Definition at line 367 of file mcsio2.c.

◆ mcman_delete1()

int mcman_delete1 ( int port,
int slot,
const char * filename,
int flags )
extern

Definition at line 661 of file ps1mc_fio.c.

◆ mcman_delete2()

int mcman_delete2 ( int port,
int slot,
const char * filename,
int flags )
extern

Definition at line 1257 of file ps2mc_fio.c.

◆ mcman_detectcard()

int mcman_detectcard ( int port,
int slot )
extern

Definition at line 460 of file main.c.

◆ mcman_dread()

int mcman_dread ( int fd,
MC_IO_DRE_T * dirent )
extern

Definition at line 902 of file main.c.

◆ mcman_dread1()

int mcman_dread1 ( int fd,
MC_IO_DRE_T * dirent )
extern

Definition at line 385 of file ps1mc_fio.c.

◆ mcman_dread2()

int mcman_dread2 ( int fd,
MC_IO_DRE_T * dirent )
extern

Definition at line 255 of file ps2mc_fio.c.

◆ mcman_eraseblock()

int mcman_eraseblock ( int port,
int slot,
int block,
void ** pagebuf,
void * eccbuf )
extern

Definition at line 457 of file mcsio2.c.

◆ mcman_fatRseek()

int mcman_fatRseek ( int fd)
extern

Definition at line 1582 of file main.c.

◆ mcman_fatRseekPS1()

int mcman_fatRseekPS1 ( int fd)
extern

Definition at line 2735 of file main.c.

◆ mcman_fatWseek()

int mcman_fatWseek ( int fd)
extern

Definition at line 1631 of file main.c.

◆ mcman_fatWseekPS1()

int mcman_fatWseekPS1 ( int fd)
extern

Definition at line 2773 of file main.c.

◆ mcman_fillbackupblock1()

int mcman_fillbackupblock1 ( int port,
int slot,
int block,
void ** pagedata,
void * eccdata )
extern

Definition at line 3987 of file main.c.

◆ mcman_fillPS1backuparea()

int mcman_fillPS1backuparea ( int port,
int slot,
int block )
extern

Definition at line 3158 of file main.c.

◆ mcman_findfree1()

int mcman_findfree1 ( int port,
int slot,
int reserve )
extern

Definition at line 2701 of file main.c.

◆ mcman_findfree2()

int mcman_findfree2 ( int port,
int slot,
int reserve )
extern

Definition at line 1700 of file main.c.

◆ mcman_flushcacheentry()

int mcman_flushcacheentry ( McCacheEntry * mce)
extern

Definition at line 3399 of file main.c.

◆ mcman_FNC8ca4()

int mcman_FNC8ca4 ( int port,
int slot,
MC_FHANDLE * fh )
extern

Definition at line 2807 of file main.c.

◆ mcman_format1()

int mcman_format1 ( int port,
int slot )
extern

Definition at line 18 of file ps1mc_fio.c.

◆ mcman_format2()

int mcman_format2 ( int port,
int slot )
extern

Definition at line 21 of file ps2mc_fio.c.

◆ mcman_freecluster()

void mcman_freecluster ( int port,
int slot,
int cluster )
extern

Definition at line 3303 of file main.c.

◆ mcman_get1stcacheEntp()

McCacheEntry * mcman_get1stcacheEntp ( void )
extern

Definition at line 3332 of file main.c.

◆ mcman_getcacheentry()

McCacheEntry * mcman_getcacheentry ( int port,
int slot,
int cluster )
extern

Definition at line 3286 of file main.c.

◆ mcman_getcnum()

int mcman_getcnum ( int port,
int slot )
extern

Definition at line 1250 of file main.c.

◆ mcman_getdir1()

int mcman_getdir1 ( int port,
int slot,
const char * dirname,
int flags,
int maxent,
sceMcTblGetDir * info )
extern

Definition at line 584 of file ps1mc_fio.c.

◆ mcman_getdir2()

int mcman_getdir2 ( int port,
int slot,
const char * dirname,
int flags,
int maxent,
sceMcTblGetDir * info )
extern

Definition at line 1118 of file ps2mc_fio.c.

◆ mcman_getdirinfo()

int mcman_getdirinfo ( int port,
int slot,
McFsEntry * pfse,
const char * filename,
McCacheDir * pcd,
int unknown_flag )
extern

Definition at line 1911 of file main.c.

◆ mcman_getentspace()

int mcman_getentspace ( int port,
int slot,
const char * dirname )
extern

Definition at line 1754 of file main.c.

◆ mcman_getFATindex()

int mcman_getFATindex ( int port,
int slot,
int num )
extern

Definition at line 3318 of file main.c.

◆ mcman_getmcrtime()

int mcman_getmcrtime ( sceMcStDateTime * tm)
extern

Definition at line 1090 of file main.c.

◆ mcman_getPS1direntry()

int mcman_getPS1direntry ( int port,
int slot,
const char * filename,
McFsEntryPS1 ** pfse,
int flag )
extern

Definition at line 2573 of file main.c.

◆ mcman_getstat()

int mcman_getstat ( int port,
int slot,
const char * filename,
MC_IO_STA_T * stat )
extern

Definition at line 938 of file main.c.

◆ mcman_getstat1()

int mcman_getstat1 ( int port,
int slot,
const char * filename,
MC_IO_STA_T * stat )
extern

Definition at line 436 of file ps1mc_fio.c.

◆ mcman_getstat2()

int mcman_getstat2 ( int port,
int slot,
const char * filename,
MC_IO_STA_T * stat )
extern

Definition at line 314 of file ps2mc_fio.c.

◆ mcman_initcache()

void mcman_initcache ( void )
extern

Definition at line 3194 of file main.c.

◆ mcman_initdev()

int mcman_initdev ( void )
extern

Definition at line 255 of file mcdev.c.

◆ mcman_initPS1PDAcom()

void mcman_initPS1PDAcom ( void )
extern

Definition at line 376 of file mcsio2.c.

◆ mcman_initPS2com()

void mcman_initPS2com ( void )
extern

Definition at line 328 of file mcsio2.c.

◆ mcman_invhandles()

void mcman_invhandles ( int port,
int slot )
extern

Definition at line 417 of file main.c.

◆ mcman_ioerrcode()

int mcman_ioerrcode ( int errcode)
extern

Definition at line 130 of file mcdev.c.

◆ mcman_modloadcb()

int mcman_modloadcb ( const char * filename,
int * port,
int * slot )
extern

Definition at line 166 of file mcdev.c.

◆ mcman_open1()

int mcman_open1 ( int port,
int slot,
const char * filename,
int flags )
extern

Definition at line 79 of file ps1mc_fio.c.

◆ mcman_open2()

int mcman_open2 ( int port,
int slot,
const char * filename,
int flags )
extern

Definition at line 647 of file ps2mc_fio.c.

◆ mcman_probePDACard()

int mcman_probePDACard ( int port,
int slot )
extern

Definition at line 1152 of file mcsio2.c.

◆ mcman_probePS1Card()

int mcman_probePS1Card ( int port,
int slot )
extern

Definition at line 1077 of file mcsio2.c.

◆ mcman_probePS1Card2()

int mcman_probePS1Card2 ( int port,
int slot )
extern

Definition at line 1018 of file mcsio2.c.

◆ mcman_probePS2Card()

int mcman_probePS2Card ( int port,
int slot )
extern

Definition at line 902 of file mcsio2.c.

◆ mcman_probePS2Card2()

int mcman_probePS2Card2 ( int port,
int slot )
extern

Definition at line 844 of file mcsio2.c.

◆ mcman_PS1pagetest()

int mcman_PS1pagetest ( int port,
int slot,
int page )
extern

Definition at line 2988 of file main.c.

◆ mcman_read1()

int mcman_read1 ( int fd,
void * buffer,
int nbyte )
extern

Definition at line 257 of file ps1mc_fio.c.

◆ mcman_read2()

int mcman_read2 ( int fd,
void * buffer,
int nbyte )
extern

Definition at line 473 of file ps2mc_fio.c.

◆ mcman_readclusterPS1()

int mcman_readclusterPS1 ( int port,
int slot,
int cluster,
McCacheEntry ** pmce )
extern

Definition at line 3920 of file main.c.

◆ mcman_readdirentryPS1()

int mcman_readdirentryPS1 ( int port,
int slot,
int cluster,
McFsEntryPS1 ** pfse )
extern

Definition at line 3826 of file main.c.

◆ mcman_readpage()

int mcman_readpage ( int port,
int slot,
int page,
void * buf,
void * eccbuf )
extern

Definition at line 655 of file mcsio2.c.

◆ mcman_replaceBackupBlock()

int mcman_replaceBackupBlock ( int port,
int slot,
int block )
extern

Definition at line 3957 of file main.c.

◆ mcman_reportBadBlocks()

int mcman_reportBadBlocks ( int port,
int slot )
extern

Definition at line 1439 of file main.c.

◆ mcman_resetauth()

int mcman_resetauth ( int port,
int slot )
extern

Definition at line 807 of file mcsio2.c.

◆ mcman_setdevinfos()

int mcman_setdevinfos ( int port,
int slot )
extern

Definition at line 1344 of file main.c.

◆ mcman_setdevspec()

int mcman_setdevspec ( int port,
int slot )
extern

Definition at line 1319 of file main.c.

◆ mcman_setinfo1()

int mcman_setinfo1 ( int port,
int slot,
const char * filename,
sceMcTblGetDir * info,
int flags )
extern

Definition at line 481 of file ps1mc_fio.c.

◆ mcman_setinfo2()

int mcman_setinfo2 ( int port,
int slot,
const char * filename,
sceMcTblGetDir * info,
int flags )
extern

Definition at line 358 of file ps2mc_fio.c.

◆ mcman_setPS1devinfos()

int mcman_setPS1devinfos ( int port,
int slot )
extern

Definition at line 2514 of file main.c.

◆ mcman_sparesize()

int mcman_sparesize ( int port,
int slot )
extern

Definition at line 1313 of file main.c.

◆ mcman_unformat1()

int mcman_unformat1 ( int port,
int slot )
extern

Definition at line 743 of file ps1mc_fio.c.

◆ mcman_unformat2()

int mcman_unformat2 ( int port,
int slot )
extern

Definition at line 1317 of file ps2mc_fio.c.

◆ mcman_unit2card()

void mcman_unit2card ( u32 unit)
extern

Definition at line 216 of file mcdev.c.

◆ mcman_wmemset()

void mcman_wmemset ( void * buf,
int size,
int value )
extern

Definition at line 308 of file main.c.

◆ mcman_write1()

int mcman_write1 ( int fd,
void * buffer,
int nbyte )
extern

Definition at line 308 of file ps1mc_fio.c.

◆ mcman_write2()

int mcman_write2 ( int fd,
void * buffer,
int nbyte )
extern

Definition at line 526 of file ps2mc_fio.c.

◆ mcman_writecluster()

int mcman_writecluster ( int port,
int slot,
int cluster,
int flag )
extern

Definition at line 2070 of file main.c.

◆ mcsio2_transfer()

int mcsio2_transfer ( int port,
int slot,
sio2_transfer_data_t * sio2data )
extern

Definition at line 276 of file mcsio2.c.

◆ secrman_mc_command()

int secrman_mc_command ( int port,
int slot,
sio2_transfer_data_t * sio2data )
extern

Definition at line 404 of file mcsio2.c.

◆ sio2packet_add()

void sio2packet_add ( int port,
int slot,
int cmd,
u8 * buf )
extern

Definition at line 87 of file mcsio2.c.

Variable Documentation

◆ mcman_curdircluster

int mcman_curdircluster
extern

Definition at line 29 of file main.c.

◆ mcman_devinfos

MCDevInfo mcman_devinfos[4][MCMAN_MAXSLOT]
extern

Definition at line 64 of file main.c.

◆ mcman_dircache

McFsEntry mcman_dircache[MAX_CACHEDIRENTRY]
extern

Definition at line 61 of file main.c.

◆ mcman_eccdata

u8 mcman_eccdata[512]
extern

Definition at line 66 of file main.c.

◆ mcman_fdhandles

MC_FHANDLE mcman_fdhandles[MAX_FDHANDLES]
extern

Definition at line 63 of file main.c.

◆ mcman_pagebuf

union mcman_pagebuf mcman_pagebuf
extern

Definition at line 36 of file main.c.

◆ mcman_PS1PDApagebuf

union mcman_PS1PDApagebuf mcman_PS1PDApagebuf
extern

Definition at line 37 of file main.c.

◆ mcman_sio2outbufs_PS1PDA

u8 mcman_sio2outbufs_PS1PDA[0x90]
extern

Definition at line 25 of file mcsio2.c.

◆ mcman_wr_block

int mcman_wr_block
extern

Definition at line 27 of file main.c.

◆ mcman_wr_flag3

int mcman_wr_flag3
extern

Definition at line 28 of file main.c.

◆ mcman_wr_port

int mcman_wr_port
extern

Definition at line 25 of file main.c.

◆ mcman_wr_slot

int mcman_wr_slot
extern

Definition at line 26 of file main.c.

◆ PS1CardFlag

int PS1CardFlag
extern

Definition at line 34 of file main.c.

◆ SUPERBLOCK_MAGIC

char SUPERBLOCK_MAGIC[]
extern

Definition at line 22 of file main.c.

◆ SUPERBLOCK_VERSION

char SUPERBLOCK_VERSION[]
extern

Definition at line 23 of file main.c.

◆ timer_ID

int timer_ID
extern

Definition at line 32 of file main.c.