PS2SDK
PS2 Homebrew Libraries
Loading...
Searching...
No Matches
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.__unnamed11__
 
union  mcEndParam_t.__unnamed13__
 
union  mcEndParam2_t.__unnamed15__
 
union  mcEndParam2_t.__unnamed17__
 
union  mcEndParam2_t.__unnamed19__
 

Macros

#define EFORMAT   47
 
#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.__unnamed11__ __unnamed__
union mcEndParam_t.__unnamed13__ __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.__unnamed15__ __unnamed__
union mcEndParam2_t.__unnamed17__ __unnamed__
void * dest1
void * dest2
u8 src1[64]
u8 src2[64]
union mcEndParam2_t.__unnamed19__ __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.__unnamed11__

union mcEndParam_t.__unnamed11__

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

Data Fields
s32 size1
s32 type

◆ mcEndParam_t.__unnamed13__

union mcEndParam_t.__unnamed13__

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

Data Fields
s32 size2
s32 free

◆ mcEndParam2_t.__unnamed15__

union mcEndParam2_t.__unnamed15__

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

Data Fields
s32 size1
s32 type

◆ mcEndParam2_t.__unnamed17__

union mcEndParam2_t.__unnamed17__

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

Data Fields
s32 size2
s32 free

◆ mcEndParam2_t.__unnamed19__

union mcEndParam2_t.__unnamed19__

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

Data Fields
s32 formatted
u8 unused[48]

Macro Definition Documentation

◆ EFORMAT

#define EFORMAT   47

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

◆ sceMcResSucceed

#define sceMcResSucceed   0

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

◆ sceMcResChangedCard

#define sceMcResChangedCard   -1

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

◆ sceMcResNoFormat

#define sceMcResNoFormat   -2

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

◆ sceMcResFullDevice

#define sceMcResFullDevice   -3

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

◆ sceMcResNoEntry

#define sceMcResNoEntry   -4

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

◆ sceMcResDeniedPermit

#define sceMcResDeniedPermit   -5

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

◆ sceMcResNotEmpty

#define sceMcResNotEmpty   -6

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

◆ sceMcResUpLimitHandle

#define sceMcResUpLimitHandle   -7

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

◆ sceMcResFailReplace

#define sceMcResFailReplace   -8

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

◆ sceMcResFailResetAuth

#define sceMcResFailResetAuth   -11

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

◆ sceMcResFailDetect

#define sceMcResFailDetect   -12

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

◆ sceMcResFailDetect2

#define sceMcResFailDetect2   -13

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

◆ sceMcResDeniedPS1Permit

#define sceMcResDeniedPS1Permit   -51

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

◆ sceMcResFailAuth

#define sceMcResFailAuth   -90

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

◆ sceMcTypeNoCard

#define sceMcTypeNoCard   0

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

◆ sceMcTypePS1

#define sceMcTypePS1   1

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

◆ sceMcTypePS2

#define sceMcTypePS2   2

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

◆ sceMcTypePDA

#define sceMcTypePDA   3

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

◆ SCE_CST_MODE

#define SCE_CST_MODE   0x01

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

◆ SCE_CST_ATTR

#define SCE_CST_ATTR   0x02

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

◆ SCE_CST_SIZE

#define SCE_CST_SIZE   0x04

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

◆ SCE_CST_CT

#define SCE_CST_CT   0x08

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

◆ SCE_CST_AT

#define SCE_CST_AT   0x10

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

◆ SCE_CST_MT

#define SCE_CST_MT   0x20

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

◆ SCE_CST_PRVT

#define SCE_CST_PRVT   0x40

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

◆ SCE_STM_R

#define SCE_STM_R   0x01

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

◆ SCE_STM_W

#define SCE_STM_W   0x02

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

◆ SCE_STM_X

#define SCE_STM_X   0x04

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

◆ SCE_STM_C

#define SCE_STM_C   0x08

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

◆ SCE_STM_F

#define SCE_STM_F   0x10

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

◆ SCE_STM_D

#define SCE_STM_D   0x20

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

◆ sceMcFileAttrReadable

#define sceMcFileAttrReadable   SCE_STM_R

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

◆ sceMcFileAttrWriteable

#define sceMcFileAttrWriteable   SCE_STM_W

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

◆ sceMcFileAttrExecutable

#define sceMcFileAttrExecutable   SCE_STM_X

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

◆ sceMcFileAttrDupProhibit

#define sceMcFileAttrDupProhibit   SCE_STM_C

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

◆ sceMcFileAttrFile

#define sceMcFileAttrFile   SCE_STM_F

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

◆ sceMcFileAttrSubdir

#define sceMcFileAttrSubdir   SCE_STM_D

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

◆ sceMcFileCreateDir

#define sceMcFileCreateDir   0x0040

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

◆ sceMcFileAttrClosed

#define sceMcFileAttrClosed   0x0080

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

◆ sceMcFileCreateFile

#define sceMcFileCreateFile   0x0200

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

◆ sceMcFile0400

#define sceMcFile0400   0x0400

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

◆ sceMcFileAttrPDAExec

#define sceMcFileAttrPDAExec   0x0800

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

◆ sceMcFileAttrPS1

#define sceMcFileAttrPS1   0x1000

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

◆ sceMcFileAttrHidden

#define sceMcFileAttrHidden   0x2000

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

◆ sceMcFileAttrExists

#define sceMcFileAttrExists   0x8000

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

◆ sceMcFileInfoCreate

#define sceMcFileInfoCreate   0x01

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

◆ sceMcFileInfoModify

#define sceMcFileInfoModify   0x02

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

◆ sceMcFileInfoAttr

#define sceMcFileInfoAttr   0x04

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