1 /*----- < SMCommon.h> --------------------------------------------------*/
2 #ifndef SMCOMMON_INCD
3 #define SMCOMMON_INCD
4 
5 
6 /***************************************************************************
7 Define Difinetion
8 ***************************************************************************/
9 #define SMSUCCESS           0x0000 /* SUCCESS */
10 #define ERROR               0xFFFF /* ERROR */
11 #define CORRECT             0x0001 /* CORRECTABLE */
12 
13 /***************************************************************************/
14 #define NO_ERROR            0x0000 /* NO ERROR */
15 #define ERR_WriteFault      0x0003 /* Peripheral Device Write Fault */
16 #define ERR_HwError         0x0004 /* Hardware Error */
17 #define ERR_DataStatus      0x0010 /* DataStatus Error */
18 #define ERR_EccReadErr      0x0011 /* Unrecovered Read Error */
19 #define ERR_CorReadErr      0x0018 /* Recovered Read Data with ECC */
20 #define ERR_OutOfLBA        0x0021 /* Illegal Logical Block Address */
21 #define ERR_WrtProtect      0x0027 /* Write Protected */
22 #define ERR_ChangedMedia    0x0028 /* Medium Changed */
23 #define ERR_UnknownMedia    0x0030 /* Incompatible Medium Installed */
24 #define ERR_IllegalFmt      0x0031 /* Medium Format Corrupted */
25 #define ERR_NoSmartMedia    0x003A /* Medium Not Present */
26 
27 /***************************************************************************/
28 void StringCopy(char *, char *, int);
29 int  StringCmp(char *, char *, int);
30 
31 #endif
32