PS2SDK
PS2 Homebrew Libraries
Loading...
Searching...
No Matches
mcman.h File Reference
#include <types.h>
#include <irx.h>
#include <libmc-common.h>
+ Include dependency graph for mcman.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  _sceMcTblGetDir
 

Macros

#define xfromman_IMPORTS_start   DECLARE_IMPORT_TABLE(xfromman, 2, 3)
 
#define xfromman_IMPORTS_end   END_IMPORT_TABLE
 
#define mcman_IMPORTS_start   DECLARE_IMPORT_TABLE(mcman, 1, 1)
 
#define mcman_IMPORTS_end   END_IMPORT_TABLE
 
#define xmcman_IMPORTS_start   DECLARE_IMPORT_TABLE(mcman, 2, 3)
 
#define xmcman_IMPORTS_end   END_IMPORT_TABLE
 
#define I_McDetectCard   DECLARE_IMPORT(5, McDetectCard)
 
#define I_McOpen   DECLARE_IMPORT(6, McOpen)
 
#define I_McClose   DECLARE_IMPORT(7, McClose)
 
#define I_McRead   DECLARE_IMPORT(8, McRead)
 
#define I_McWrite   DECLARE_IMPORT(9, McWrite)
 
#define I_McSeek   DECLARE_IMPORT(10, McSeek)
 
#define I_McFormat   DECLARE_IMPORT(11, McFormat)
 
#define I_McGetDir   DECLARE_IMPORT(12, McGetDir)
 
#define I_McDelete   DECLARE_IMPORT(13, McDelete)
 
#define I_McFlush   DECLARE_IMPORT(14, McFlush)
 
#define I_McChDir   DECLARE_IMPORT(15, McChDir)
 
#define I_McSetFileInfo   DECLARE_IMPORT(16, McSetFileInfo)
 
#define I_McEraseBlock   DECLARE_IMPORT(17, McEraseBlock)
 
#define I_McReadPage   DECLARE_IMPORT(18, McReadPage)
 
#define I_McWritePage   DECLARE_IMPORT(19, McWritePage)
 
#define I_McDataChecksum   DECLARE_IMPORT(20, McDataChecksum);
 
#define I_McReadPS1PDACard   DECLARE_IMPORT(29, McReadPS1PDACard)
 
#define I_McWritePS1PDACard   DECLARE_IMPORT(30, McWritePS1PDACard)
 
#define I_McUnformat   DECLARE_IMPORT(36, McUnformat)
 
#define I_McRetOnly   DECLARE_IMPORT(37, McRetOnly)
 
#define I_McGetFreeClusters   DECLARE_IMPORT(38, McGetFreeClusters)
 
#define I_McGetMcType   DECLARE_IMPORT(39, McGetMcType)
 
#define I_McSetPS1CardFlag   DECLARE_IMPORT(40, McSetPS1CardFlag)
 
#define I_McEraseBlock2   DECLARE_IMPORT(17, McEraseBlock2)
 
#define I_McDetectCard2   DECLARE_IMPORT(21, McDetectCard2)
 
#define I_McGetFormat   DECLARE_IMPORT(22, McGetFormat)
 
#define I_McGetEntSpace   DECLARE_IMPORT(23, McGetEntSpace)
 
#define I_McReplaceBadBlock   DECLARE_IMPORT(24, McReplaceBadBlock)
 
#define I_McCloseAll   DECLARE_IMPORT(25, McCloseAll)
 
#define I_McGetModuleInfo   DECLARE_IMPORT(42, McGetModuleInfo)
 
#define I_McGetCardSpec   DECLARE_IMPORT(43, McGetCardSpec)
 
#define I_McGetFATentry   DECLARE_IMPORT(44, McGetFATentry)
 
#define I_McCheckBlock   DECLARE_IMPORT(45, McCheckBlock)
 
#define I_McSetFATentry   DECLARE_IMPORT(46, McSetFATentry)
 
#define I_McReadDirEntry   DECLARE_IMPORT(47, McReadDirEntry)
 
#define I_Mc1stCacheEntSetWrFlagOff   DECLARE_IMPORT(48, Mc1stCacheEntSetWrFlagOff)
 
#define I_McCreateDirentry   DECLARE_IMPORT(49, McCreateDirentry)
 
#define I_McReadCluster   DECLARE_IMPORT(50, McReadCluster)
 
#define I_McFlushCache   DECLARE_IMPORT(51, McFlushCache)
 
#define I_McSetDirEntryState   DECLARE_IMPORT(52, McSetDirEntryState)
 

Typedefs

typedef struct _sceMcTblGetDir sceMcTblGetDir
 

Functions

int McDetectCard (int port, int slot)
 
int McOpen (int port, int slot, const char *filename, int flags)
 
int McClose (int fd)
 
int McRead (int fd, void *buf, int length)
 
int McWrite (int fd, void *buf, int length)
 
int McSeek (int fd, int offset, int origin)
 
int McFormat (int port, int slot)
 
int McGetDir (int port, int slot, const char *dirname, int flags, int maxent, sceMcTblGetDir *info)
 
int McDelete (int port, int slot, const char *filename, int flags)
 
int McFlush (int fd)
 
int McChDir (int port, int slot, const char *newdir, char *currentdir)
 
int McSetFileInfo (int port, int slot, const char *filename, sceMcTblGetDir *info, int flags)
 
int McEraseBlock (int port, int block, void **pagebuf, void *eccbuf)
 
int McReadPage (int port, int slot, int page, void *buf)
 
int McWritePage (int port, int slot, int page, void *pagebuf, void *eccbuf)
 
void McDataChecksum (void *buf, void *ecc)
 
int McReadPS1PDACard (int port, int slot, int page, void *buf)
 
int McWritePS1PDACard (int port, int slot, int page, void *buf)
 
int McUnformat (int port, int slot)
 
int McRetOnly (int fd)
 
int McGetFreeClusters (int port, int slot)
 
int McGetMcType (int port, int slot)
 
void McSetPS1CardFlag (int flag)
 
int McEraseBlock2 (int port, int slot, int block, void **pagebuf, void *eccbuf)
 
int McDetectCard2 (int port, int slot)
 
int McGetFormat (int port, int slot)
 
int McGetEntSpace (int port, int slot, const char *dirname)
 
int McReplaceBadBlock (void)
 
int McCloseAll (void)
 
int McGetCardSpec (int port, int slot, s16 *pagesize, u16 *blocksize, int *cardsize, u8 *flags)
 
int McGetFATentry (int port, int slot, int fat_index, int *fat_entry)
 
int McCheckBlock (int port, int slot, int block)
 
int McSetFATentry (int port, int slot, int fat_index, int fat_entry)
 
int McReadDirEntry (int port, int slot, int cluster, int fsindex, McFsEntry **pfse)
 
void Mc1stCacheEntSetWrFlagOff (void)
 
int McCreateDirentry (int port, int slot, int parent_cluster, int num_entries, int cluster, const sceMcStDateTime *ctime)
 
int McReadCluster (int port, int slot, int cluster, McCacheEntry **pmce)
 
int McFlushCache (int port, int slot)
 
int McSetDirEntryState (int port, int slot, int cluster, int fsindex, int flags)
 

Detailed Description

Memory card manager definitions

Definition in file mcman.h.


Data Structure Documentation

◆ _sceMcTblGetDir

struct _sceMcTblGetDir

Definition at line 138 of file libmc.h.

+ Collaboration diagram for _sceMcTblGetDir:
Data Fields
sceMcStDateTime _Create
sceMcStDateTime _Modify
u32 FileSizeByte
u16 AttrFile
u16 Reserve1
u32 Reserve2
u32 PdaAplNo
unsigned char EntryName[32]
char EntryName[32]

Macro Definition Documentation

◆ xfromman_IMPORTS_start

#define xfromman_IMPORTS_start   DECLARE_IMPORT_TABLE(xfromman, 2, 3)

Definition at line 80 of file mcman.h.

◆ xfromman_IMPORTS_end

#define xfromman_IMPORTS_end   END_IMPORT_TABLE

Definition at line 81 of file mcman.h.

◆ mcman_IMPORTS_start

#define mcman_IMPORTS_start   DECLARE_IMPORT_TABLE(mcman, 1, 1)

Definition at line 83 of file mcman.h.

◆ mcman_IMPORTS_end

#define mcman_IMPORTS_end   END_IMPORT_TABLE

Definition at line 84 of file mcman.h.

◆ xmcman_IMPORTS_start

#define xmcman_IMPORTS_start   DECLARE_IMPORT_TABLE(mcman, 2, 3)

Definition at line 86 of file mcman.h.

◆ xmcman_IMPORTS_end

#define xmcman_IMPORTS_end   END_IMPORT_TABLE

Definition at line 87 of file mcman.h.

◆ I_McDetectCard

#define I_McDetectCard   DECLARE_IMPORT(5, McDetectCard)

Definition at line 89 of file mcman.h.

◆ I_McOpen

#define I_McOpen   DECLARE_IMPORT(6, McOpen)

Definition at line 90 of file mcman.h.

◆ I_McClose

#define I_McClose   DECLARE_IMPORT(7, McClose)

Definition at line 91 of file mcman.h.

◆ I_McRead

#define I_McRead   DECLARE_IMPORT(8, McRead)

Definition at line 92 of file mcman.h.

◆ I_McWrite

#define I_McWrite   DECLARE_IMPORT(9, McWrite)

Definition at line 93 of file mcman.h.

◆ I_McSeek

#define I_McSeek   DECLARE_IMPORT(10, McSeek)

Definition at line 94 of file mcman.h.

◆ I_McFormat

#define I_McFormat   DECLARE_IMPORT(11, McFormat)

Definition at line 95 of file mcman.h.

◆ I_McGetDir

#define I_McGetDir   DECLARE_IMPORT(12, McGetDir)

Definition at line 96 of file mcman.h.

◆ I_McDelete

#define I_McDelete   DECLARE_IMPORT(13, McDelete)

Definition at line 97 of file mcman.h.

◆ I_McFlush

#define I_McFlush   DECLARE_IMPORT(14, McFlush)

Definition at line 98 of file mcman.h.

◆ I_McChDir

#define I_McChDir   DECLARE_IMPORT(15, McChDir)

Definition at line 99 of file mcman.h.

◆ I_McSetFileInfo

#define I_McSetFileInfo   DECLARE_IMPORT(16, McSetFileInfo)

Definition at line 100 of file mcman.h.

◆ I_McEraseBlock

#define I_McEraseBlock   DECLARE_IMPORT(17, McEraseBlock)

Definition at line 101 of file mcman.h.

◆ I_McReadPage

#define I_McReadPage   DECLARE_IMPORT(18, McReadPage)

Definition at line 102 of file mcman.h.

◆ I_McWritePage

#define I_McWritePage   DECLARE_IMPORT(19, McWritePage)

Definition at line 103 of file mcman.h.

◆ I_McDataChecksum

#define I_McDataChecksum   DECLARE_IMPORT(20, McDataChecksum);

Definition at line 104 of file mcman.h.

◆ I_McReadPS1PDACard

#define I_McReadPS1PDACard   DECLARE_IMPORT(29, McReadPS1PDACard)

Definition at line 105 of file mcman.h.

◆ I_McWritePS1PDACard

#define I_McWritePS1PDACard   DECLARE_IMPORT(30, McWritePS1PDACard)

Definition at line 106 of file mcman.h.

◆ I_McUnformat

#define I_McUnformat   DECLARE_IMPORT(36, McUnformat)

Definition at line 107 of file mcman.h.

◆ I_McRetOnly

#define I_McRetOnly   DECLARE_IMPORT(37, McRetOnly)

Definition at line 108 of file mcman.h.

◆ I_McGetFreeClusters

#define I_McGetFreeClusters   DECLARE_IMPORT(38, McGetFreeClusters)

Definition at line 109 of file mcman.h.

◆ I_McGetMcType

#define I_McGetMcType   DECLARE_IMPORT(39, McGetMcType)

Definition at line 110 of file mcman.h.

◆ I_McSetPS1CardFlag

#define I_McSetPS1CardFlag   DECLARE_IMPORT(40, McSetPS1CardFlag)

Definition at line 111 of file mcman.h.

◆ I_McEraseBlock2

#define I_McEraseBlock2   DECLARE_IMPORT(17, McEraseBlock2)

Definition at line 112 of file mcman.h.

◆ I_McDetectCard2

#define I_McDetectCard2   DECLARE_IMPORT(21, McDetectCard2)

Definition at line 113 of file mcman.h.

◆ I_McGetFormat

#define I_McGetFormat   DECLARE_IMPORT(22, McGetFormat)

Definition at line 114 of file mcman.h.

◆ I_McGetEntSpace

#define I_McGetEntSpace   DECLARE_IMPORT(23, McGetEntSpace)

Definition at line 115 of file mcman.h.

◆ I_McReplaceBadBlock

#define I_McReplaceBadBlock   DECLARE_IMPORT(24, McReplaceBadBlock)

Definition at line 116 of file mcman.h.

◆ I_McCloseAll

#define I_McCloseAll   DECLARE_IMPORT(25, McCloseAll)

Definition at line 117 of file mcman.h.

◆ I_McGetModuleInfo

#define I_McGetModuleInfo   DECLARE_IMPORT(42, McGetModuleInfo)

Definition at line 118 of file mcman.h.

◆ I_McGetCardSpec

#define I_McGetCardSpec   DECLARE_IMPORT(43, McGetCardSpec)

Definition at line 119 of file mcman.h.

◆ I_McGetFATentry

#define I_McGetFATentry   DECLARE_IMPORT(44, McGetFATentry)

Definition at line 120 of file mcman.h.

◆ I_McCheckBlock

#define I_McCheckBlock   DECLARE_IMPORT(45, McCheckBlock)

Definition at line 121 of file mcman.h.

◆ I_McSetFATentry

#define I_McSetFATentry   DECLARE_IMPORT(46, McSetFATentry)

Definition at line 122 of file mcman.h.

◆ I_McReadDirEntry

#define I_McReadDirEntry   DECLARE_IMPORT(47, McReadDirEntry)

Definition at line 123 of file mcman.h.

◆ I_Mc1stCacheEntSetWrFlagOff

#define I_Mc1stCacheEntSetWrFlagOff   DECLARE_IMPORT(48, Mc1stCacheEntSetWrFlagOff)

Definition at line 124 of file mcman.h.

◆ I_McCreateDirentry

#define I_McCreateDirentry   DECLARE_IMPORT(49, McCreateDirentry)

Definition at line 125 of file mcman.h.

◆ I_McReadCluster

#define I_McReadCluster   DECLARE_IMPORT(50, McReadCluster)

Definition at line 126 of file mcman.h.

◆ I_McFlushCache

#define I_McFlushCache   DECLARE_IMPORT(51, McFlushCache)

Definition at line 127 of file mcman.h.

◆ I_McSetDirEntryState

#define I_McSetDirEntryState   DECLARE_IMPORT(52, McSetDirEntryState)

Definition at line 128 of file mcman.h.

Function Documentation

◆ McDetectCard()

int McDetectCard ( int  port,
int  slot 
)

Definition at line 446 of file main.c.

◆ McOpen()

int McOpen ( int  port,
int  slot,
const char *  filename,
int  flags 
)

Definition at line 607 of file main.c.

◆ McClose()

int McClose ( int  fd)

Definition at line 632 of file main.c.

◆ McRead()

int McRead ( int  fd,
void *  buf,
int  length 
)

Definition at line 783 of file main.c.

◆ McWrite()

int McWrite ( int  fd,
void *  buf,
int  length 
)

Definition at line 819 of file main.c.

◆ McSeek()

int McSeek ( int  fd,
int  offset,
int  origin 
)

Definition at line 748 of file main.c.

◆ McFormat()

int McFormat ( int  port,
int  slot 
)

Definition at line 1032 of file main.c.

◆ McGetDir()

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

Definition at line 876 of file main.c.

◆ McDelete()

int McDelete ( int  port,
int  slot,
const char *  filename,
int  flags 
)

Definition at line 1010 of file main.c.

◆ McFlush()

int McFlush ( int  fd)

Definition at line 687 of file main.c.

◆ McChDir()

int McChDir ( int  port,
int  slot,
const char *  newdir,
char *  currentdir 
)

Definition at line 986 of file main.c.

◆ McSetFileInfo()

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

Definition at line 956 of file main.c.

◆ McEraseBlock()

int McEraseBlock ( int  port,
int  block,
void **  pagebuf,
void *  eccbuf 
)

Definition at line 1146 of file main.c.

◆ McReadPage()

int McReadPage ( int  port,
int  slot,
int  page,
void *  buf 
)

Definition at line 1158 of file main.c.

◆ McWritePage()

int McWritePage ( int  port,
int  slot,
int  page,
void *  pagebuf,
void *  eccbuf 
)

Definition at line 534 of file mcsio2.c.

◆ McDataChecksum()

void McDataChecksum ( void *  buf,
void *  ecc 
)

Definition at line 1213 of file main.c.

◆ McReadPS1PDACard()

int McReadPS1PDACard ( int  port,
int  slot,
int  page,
void *  buf 
)

Definition at line 1208 of file mcsio2.c.

◆ McWritePS1PDACard()

int McWritePS1PDACard ( int  port,
int  slot,
int  page,
void *  buf 
)

Definition at line 1138 of file mcsio2.c.

◆ McUnformat()

int McUnformat ( int  port,
int  slot 
)

Definition at line 1058 of file main.c.

◆ McRetOnly()

int McRetOnly ( int  fd)

Definition at line 3214 of file main.c.

◆ McGetFreeClusters()

int McGetFreeClusters ( int  port,
int  slot 
)

Definition at line 271 of file main.c.

◆ McGetMcType()

int McGetMcType ( int  port,
int  slot 
)

Definition at line 248 of file main.c.

◆ McSetPS1CardFlag()

void McSetPS1CardFlag ( int  flag)

Definition at line 264 of file main.c.

◆ McEraseBlock2()

int McEraseBlock2 ( int  port,
int  slot,
int  block,
void **  pagebuf,
void *  eccbuf 
)

Definition at line 1152 of file main.c.

◆ McDetectCard2()

int McDetectCard2 ( int  port,
int  slot 
)

Definition at line 531 of file main.c.

◆ McGetFormat()

int McGetFormat ( int  port,
int  slot 
)

Definition at line 241 of file main.c.

◆ McGetEntSpace()

int McGetEntSpace ( int  port,
int  slot,
const char *  dirname 
)

Definition at line 855 of file main.c.

◆ McReplaceBadBlock()

int McReplaceBadBlock ( void  )

Definition at line 4026 of file main.c.

◆ McCloseAll()

int McCloseAll ( void  )

Definition at line 426 of file main.c.

◆ McGetCardSpec()

int McGetCardSpec ( int  port,
int  slot,
s16 *  pagesize,
u16 *  blocksize,
int *  cardsize,
u8 *  flags 
)

Definition at line 724 of file mcsio2.c.

◆ McGetFATentry()

int McGetFATentry ( int  port,
int  slot,
int  fat_index,
int *  fat_entry 
)

Definition at line 3872 of file main.c.

◆ McCheckBlock()

int McCheckBlock ( int  port,
int  slot,
int  block 
)

Definition at line 2322 of file main.c.

◆ McSetFATentry()

int McSetFATentry ( int  port,
int  slot,
int  fat_index,
int  fat_entry 
)

Definition at line 3839 of file main.c.

◆ McReadDirEntry()

int McReadDirEntry ( int  port,
int  slot,
int  cluster,
int  fsindex,
McFsEntry **  pfse 
)

Definition at line 3748 of file main.c.

◆ Mc1stCacheEntSetWrFlagOff()

void Mc1stCacheEntSetWrFlagOff ( void  )

Definition at line 3306 of file main.c.

◆ McCreateDirentry()

int McCreateDirentry ( int  port,
int  slot,
int  parent_cluster,
int  num_entries,
int  cluster,
const sceMcStDateTime ctime 
)

Definition at line 1492 of file main.c.

◆ McReadCluster()

int McReadCluster ( int  port,
int  slot,
int  cluster,
McCacheEntry **  pmce 
)

Definition at line 3688 of file main.c.

◆ McFlushCache()

int McFlushCache ( int  port,
int  slot 
)

Definition at line 3352 of file main.c.

◆ McSetDirEntryState()

int McSetDirEntryState ( int  port,
int  slot,
int  cluster,
int  fsindex,
int  flags 
)

Definition at line 2175 of file main.c.