Greg Kroah-Hartman | 2d2f03b | 2010-09-08 02:47:47 -0700 | [diff] [blame] | 1 | /*----- < SMCommon.h> --------------------------------------------------*/ |
Al Cho | 126bb03 | 2010-09-08 00:42:32 -0700 | [diff] [blame] | 2 | #ifndef SMCOMMON_INCD |
| 3 | #define SMCOMMON_INCD |
| 4 | |
| 5 | |
| 6 | /*************************************************************************** |
| 7 | Define Difinetion |
| 8 | ***************************************************************************/ |
Randy Dunlap | fb03d4f | 2011-05-09 10:47:51 -0700 | [diff] [blame] | 9 | #define SMSUCCESS 0x0000 /* SUCCESS */ |
Al Cho | 126bb03 | 2010-09-08 00:42:32 -0700 | [diff] [blame] | 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 | |
Al Cho | 126bb03 | 2010-09-08 00:42:32 -0700 | [diff] [blame] | 27 | /***************************************************************************/ |
Greg Kroah-Hartman | 2d2f03b | 2010-09-08 02:47:47 -0700 | [diff] [blame] | 28 | void StringCopy(char *, char *, int); |
| 29 | int StringCmp(char *, char *, int); |
Al Cho | 126bb03 | 2010-09-08 00:42:32 -0700 | [diff] [blame] | 30 | |
Greg Kroah-Hartman | 2d2f03b | 2010-09-08 02:47:47 -0700 | [diff] [blame] | 31 | #endif |