PS2SDK
PS2 Homebrew Libraries
libmc-common.h File Reference
#include <tamtypes.h>
#include <errno.h>
+ Include dependency graph for libmc-common.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  _sceMcStDateTime
 
struct  McFsEntryPS1
 
struct  McFsEntry
 
struct  _MCCacheEntry
 
struct  mcDescParam_t
 
struct  mcEndParam_t
 
struct  mcEndParam2_t
 
struct  mcRpcStat_t
 
union  mcEndParam_t.__unnamed__
 
union  mcEndParam_t.__unnamed__
 
union  mcEndParam2_t.__unnamed__
 
union  mcEndParam2_t.__unnamed__
 
union  mcEndParam2_t.__unnamed__
 

Macros

#define sceMcResSucceed   0
 
#define sceMcResChangedCard   -1
 
#define sceMcResNoFormat   -2
 
#define sceMcResFullDevice   -3
 
#define sceMcResNoEntry   -4
 
#define sceMcResDeniedPermit   -5
 
#define sceMcResNotEmpty   -6
 
#define sceMcResUpLimitHandle   -7
 
#define sceMcResFailReplace   -8
 
#define sceMcResFailResetAuth   -11
 
#define sceMcResFailDetect   -12
 
#define sceMcResFailDetect2   -13
 
#define sceMcResDeniedPS1Permit   -51
 
#define sceMcResFailAuth   -90
 
#define sceMcTypeNoCard   0
 
#define sceMcTypePS1   1
 
#define sceMcTypePS2   2
 
#define sceMcTypePDA   3
 
#define SCE_CST_MODE   0x01
 
#define SCE_CST_ATTR   0x02
 
#define SCE_CST_SIZE   0x04
 
#define SCE_CST_CT   0x08
 
#define SCE_CST_AT   0x10
 
#define SCE_CST_MT   0x20
 
#define SCE_CST_PRVT   0x40
 
#define SCE_STM_R   0x01
 
#define SCE_STM_W   0x02
 
#define SCE_STM_X   0x04
 
#define SCE_STM_C   0x08
 
#define SCE_STM_F   0x10
 
#define SCE_STM_D   0x20
 
#define sceMcFileAttrReadable   SCE_STM_R
 
#define sceMcFileAttrWriteable   SCE_STM_W
 
#define sceMcFileAttrExecutable   SCE_STM_X
 
#define sceMcFileAttrDupProhibit   SCE_STM_C
 
#define sceMcFileAttrFile   SCE_STM_F
 
#define sceMcFileAttrSubdir   SCE_STM_D
 
#define sceMcFileCreateDir   0x0040
 
#define sceMcFileAttrClosed   0x0080
 
#define sceMcFileCreateFile   0x0200
 
#define sceMcFile0400   0x0400
 
#define sceMcFileAttrPDAExec   0x0800
 
#define sceMcFileAttrPS1   0x1000
 
#define sceMcFileAttrHidden   0x2000
 
#define sceMcFileAttrExists   0x8000
 
#define sceMcFileInfoCreate   0x01
 
#define sceMcFileInfoModify   0x02
 
#define sceMcFileInfoAttr   0x04
 

Typedefs

typedef struct _sceMcStDateTime sceMcStDateTime
 
typedef struct _MCCacheEntry McCacheEntry
 

Detailed Description

Common definitions for libmc on the EE and IOP

Definition in file libmc-common.h.


Data Structure Documentation

◆ _sceMcStDateTime

struct _sceMcStDateTime

Definition at line 22 of file libmc-common.h.

Data Fields
u8 Resv2
u8 Sec
u8 Min
u8 Hour
u8 Day
u8 Month
u16 Year

◆ McFsEntryPS1

struct McFsEntryPS1

Definition at line 34 of file libmc-common.h.

+ Collaboration diagram for McFsEntryPS1:
Data Fields
int mode
int length
s16 linked_block
char name[20]
u8 field_1e
u8 field_1f
sceMcStDateTime created
int field_28
u16 field_2c
u16 field_2e
sceMcStDateTime modified
int field_38
u8 unused2[65]
u8 field_7d
u8 field_7e
u8 edc

◆ McFsEntry

struct McFsEntry

Definition at line 54 of file libmc-common.h.

+ Collaboration diagram for McFsEntry:
Data Fields
u16 mode
u16 unused
u32 length
sceMcStDateTime created
u32 cluster
u32 dir_entry
sceMcStDateTime modified
u32 attr
u32 unused2[7]
char name[32]
u8 unused3[416]

◆ _MCCacheEntry

struct _MCCacheEntry

Definition at line 69 of file libmc-common.h.

Data Fields
int cluster
u8 * cl_data
u16 mc_slot
u8 wr_flag
u8 mc_port
u8 rd_flag
u8 unused[3]

◆ mcDescParam_t

struct mcDescParam_t

file descriptor related mc command used by: McInit, McClose, McSeek, McRead, McWrite, McGetinfo, McFormat, McFlush, McUnformat

Definition at line 83 of file libmc-common.h.

Data Fields
int fd
int port
int slot
int size
int offset
int origin
void * buffer
void * param
u8 data[16]

◆ mcEndParam_t

struct mcEndParam_t

endParamenter struct used by: McRead, McGetInfo, McReadPage

Definition at line 99 of file libmc-common.h.

Data Fields
union mcEndParam_t __unnamed__
union mcEndParam_t __unnamed__
void * dest1
void * dest2
u8 src1[16]
u8 src2[16]
u8 unused[16]

◆ mcEndParam2_t

struct mcEndParam2_t

endParamenter2 struct used by: McRead2, McGetInfo2

Definition at line 121 of file libmc-common.h.

Data Fields
union mcEndParam2_t __unnamed__
union mcEndParam2_t __unnamed__
void * dest1
void * dest2
u8 src1[64]
u8 src2[64]
union mcEndParam2_t __unnamed__

◆ mcRpcStat_t

struct mcRpcStat_t

Definition at line 144 of file libmc-common.h.

Data Fields
s32 result
u32 mcserv_version
u32 mcman_version

◆ mcEndParam_t.__unnamed__

union mcEndParam_t.__unnamed__

Definition at line 101 of file libmc-common.h.

Data Fields
s32 size1
s32 type

◆ mcEndParam_t.__unnamed__

union mcEndParam_t.__unnamed__

Definition at line 106 of file libmc-common.h.

Data Fields
s32 size2
s32 free

◆ mcEndParam2_t.__unnamed__

union mcEndParam2_t.__unnamed__

Definition at line 123 of file libmc-common.h.

Data Fields
s32 size1
s32 type

◆ mcEndParam2_t.__unnamed__

union mcEndParam2_t.__unnamed__

Definition at line 128 of file libmc-common.h.

Data Fields
s32 size2
s32 free

◆ mcEndParam2_t.__unnamed__

union mcEndParam2_t.__unnamed__

Definition at line 137 of file libmc-common.h.

Data Fields
s32 formatted
u8 unused[48]