blob: 1d2752a1d5c49412d674c050a28f9f3841387949 [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/***************************************************************************
Masanari Iidab1639702013-12-12 22:22:59 +09007Define Definition
Al Cho126bb032010-09-08 00:42:32 -07008***************************************************************************/
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/***************************************************************************/
Al Cho126bb032010-09-08 00:42:32 -070028
Greg Kroah-Hartman2d2f03b2010-09-08 02:47:47 -070029#endif