RetroArch
card_cmn.h
Go to the documentation of this file.
1 #ifndef __CARD_CMN_H__
2 #define __CARD_CMN_H__
3 
4 #include <gctypes.h>
5 
6 #define CARDIO_ERROR_READY 0
7 #define CARDIO_ERROR_BUSY -1
8 #define CARDIO_ERROR_WRONGDEVICE -2
9 #define CARDIO_ERROR_NOCARD -3
10 #define CARDIO_ERROR_IDLE -4
11 #define CARDIO_ERROR_IOERROR -5
12 #define CARDIO_ERROR_IOTIMEOUT -6
13 
14 #define CARDIO_ERROR_NOTPERMITTED -107
15 #define CARDIO_ERROR_ROOTENTRY -108
16 #define CARDIO_ERROR_OUTOFROOTENTRY -109
17 #define CARDIO_ERROR_FILEEXIST -110
18 #define CARDIO_ERROR_NOEMPTYCLUSTER -111
19 #define CARDIO_ERROR_EOF -112
20 #define CARDIO_ERROR_SYSTEMPARAM -113
21 #define CARDIO_ERROR_FILEOPENED -114
22 #define CARDIO_ERROR_FILENOTOPENED -115
23 #define CARDIO_ERROR_FILENAMETOOLONG -116
24 #define CARDIO_ERROR_INVALIDNAME -117
25 #define CARDIO_ERROR_NOLONGNAME -118
26 #define CARDIO_ERROR_INCORRECTFAT -119
27 #define CARDIO_ERROR_NOTFOUND -120
28 #define CARDIO_ERROR_OUTOFMEMORY -121
29 #define CARDIO_ERROR_INVALIDFAT -122
30 #define CARDIO_ERROR_INVALIDMBR -123
31 #define CARDIO_ERROR_INVALIDPBR -124
32 #define CARDIO_ERROR_NOEMPTYBLOCK -125
33 #define CARDIO_ERROR_INTERNAL -126
34 #define CARDIO_ERROR_INVALIDPARAM -127
35 #define CARDIO_ERROR_FATALERROR -128
36 
37 #define MAX_DRIVE 2
38 #define SECTOR_SIZE 512
39 
40 #define NOT_INITIALIZED 0
41 #define INITIALIZING 1
42 #define INITIALIZED 2
43 
44 #ifdef __cplusplus
45  extern "C" {
46 #endif /* __cplusplus */
47 
48 typedef struct _dev_info {
59 } DEV_INFO;
60 
61 #ifdef __cplusplus
62  }
63 #endif /* __cplusplus */
64 
65 #endif
Data type definitions.
u32 SpB
Definition: card_cmn.h:56
u32 PpB
Definition: card_cmn.h:57
struct _dev_info DEV_INFO
u32 allS
Definition: card_cmn.h:52
u32 CpV
Definition: card_cmn.h:49
u32 szP
Definition: card_cmn.h:58
u32 HpC
Definition: card_cmn.h:50
Definition: card_cmn.h:48
u32 PBpV
Definition: card_cmn.h:54
u32 szS
Definition: card_cmn.h:53
uint32_t u32
32bit unsigned integer
Definition: gctypes.h:19
u32 SpH
Definition: card_cmn.h:51
u32 LBpV
Definition: card_cmn.h:55