blob: 278bdb8711294ecde52faf55efd2a330025781ec [file] [log] [blame]
Greg Kroah-Hartman2d2f03b2010-09-08 02:47:47 -07001/*----- < SMCommon.h> --------------------------------------------------*/
Al Cho126bb032010-09-08 00:42:32 -07002#ifndef SMCOMMON_INCD
3#define SMCOMMON_INCD
4
5
6/***************************************************************************
7Define Difinetion
8***************************************************************************/
Randy Dunlapfb03d4f2011-05-09 10:47:51 -07009#define SMSUCCESS 0x0000 /* SUCCESS */
Al Cho126bb032010-09-08 00:42:32 -070010#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 Cho126bb032010-09-08 00:42:32 -070027/***************************************************************************/
Greg Kroah-Hartman2d2f03b2010-09-08 02:47:47 -070028void StringCopy(char *, char *, int);
29int StringCmp(char *, char *, int);
Al Cho126bb032010-09-08 00:42:32 -070030
Greg Kroah-Hartman2d2f03b2010-09-08 02:47:47 -070031#endif