summaryrefslogtreecommitdiffstats
path: root/drivers/staging/keucr/smcommon.h
diff options
context:
space:
mode:
authorAl Cho <acho@novell.com>2010-09-08 00:42:32 -0700
committerGreg Kroah-Hartman <gregkh@suse.de>2010-09-08 02:49:39 -0700
commit126bb03b461c2f03f2d2a43b9a587941bf146e0e (patch)
tree3ad752751a377039901cf00db8c0e47f26b7b9f5 /drivers/staging/keucr/smcommon.h
parent15b9e32769de7fb563360cb6a3d96e521c3734ac (diff)
downloadop-kernel-dev-126bb03b461c2f03f2d2a43b9a587941bf146e0e.zip
op-kernel-dev-126bb03b461c2f03f2d2a43b9a587941bf146e0e.tar.gz
Staging: add USB ENE card reader driver
This driver is for the ENE card reader that can be found in many different laptops. It was written by ENE, but cleaned up to work properly in the kernel tree by Novell. Signed-off-by: Al Cho <acho@novell.com> Cc: <yiyingc@ene.com.tw> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/keucr/smcommon.h')
-rw-r--r--drivers/staging/keucr/smcommon.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/drivers/staging/keucr/smcommon.h b/drivers/staging/keucr/smcommon.h
new file mode 100644
index 0000000..c20dbcf
--- /dev/null
+++ b/drivers/staging/keucr/smcommon.h
@@ -0,0 +1,40 @@
+//----- < SMCommon.h> --------------------------------------------------
+#ifndef SMCOMMON_INCD
+#define SMCOMMON_INCD
+
+
+/***************************************************************************
+Define Difinetion
+***************************************************************************/
+#define SUCCESS 0x0000 /* SUCCESS */
+#define ERROR 0xFFFF /* ERROR */
+#define CORRECT 0x0001 /* CORRECTABLE */
+
+/***************************************************************************/
+#define NO_ERROR 0x0000 /* NO ERROR */
+#define ERR_WriteFault 0x0003 /* Peripheral Device Write Fault */
+#define ERR_HwError 0x0004 /* Hardware Error */
+#define ERR_DataStatus 0x0010 /* DataStatus Error */
+#define ERR_EccReadErr 0x0011 /* Unrecovered Read Error */
+#define ERR_CorReadErr 0x0018 /* Recovered Read Data with ECC */
+#define ERR_OutOfLBA 0x0021 /* Illegal Logical Block Address */
+#define ERR_WrtProtect 0x0027 /* Write Protected */
+#define ERR_ChangedMedia 0x0028 /* Medium Changed */
+#define ERR_UnknownMedia 0x0030 /* Incompatible Medium Installed */
+#define ERR_IllegalFmt 0x0031 /* Medium Format Corrupted */
+#define ERR_NoSmartMedia 0x003A /* Medium Not Present */
+
+
+
+/***************************************************************************/
+//#define SUCCESS 0 /* SUCCESS */
+//#define ERROR -1 /* ERROR */
+
+/***************************************************************************/
+char Bit_D_Count (BYTE);
+char Bit_D_CountWord (WORD);
+void StringCopy (char *, char *, int);
+int StringCmp (char *, char *, int);
+
+
+#endif // already included
OpenPOWER on IntegriCloud