diff options
author | Al Cho <acho@novell.com> | 2010-09-08 07:42:32 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-09-08 09:49:39 (GMT) |
commit | 126bb03b461c2f03f2d2a43b9a587941bf146e0e (patch) | |
tree | 3ad752751a377039901cf00db8c0e47f26b7b9f5 /drivers/staging/keucr/common.h | |
parent | 15b9e32769de7fb563360cb6a3d96e521c3734ac (diff) | |
download | linux-fsl-qoriq-126bb03b461c2f03f2d2a43b9a587941bf146e0e.tar.xz |
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/common.h')
-rw-r--r-- | drivers/staging/keucr/common.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/drivers/staging/keucr/common.h b/drivers/staging/keucr/common.h new file mode 100644 index 0000000..f40c64f --- /dev/null +++ b/drivers/staging/keucr/common.h @@ -0,0 +1,25 @@ +#ifndef COMMON_INCD +#define COMMON_INCD + +typedef void VOID; +typedef u8 BOOLEAN; +typedef u8 BYTE; +typedef u8 *PBYTE; +typedef u16 WORD; +typedef u16 *PWORD; +typedef u32 DWORD; +typedef u32 *PDWORD; + +#define swapWORD(w) ((((unsigned short)(w) << 8) & 0xff00) | (((unsigned short)(w) >> 8) & 0x00ff)) +#define swapDWORD(dw) ((((unsigned long)(dw) << 24) & 0xff000000) | \ + (((unsigned long)(dw) << 8) & 0x00ff0000) | \ + (((unsigned long)(dw) >> 8) & 0x0000ff00) | \ + (((unsigned long)(dw) >> 24) & 0x000000ff)) + +#define LittleEndianWORD(w) (w) +#define LittleEndianDWORD(dw) (dw) +#define BigEndianWORD(w) swapWORD(w) +#define BigEndianDWORD(dw) swapDWORD(dw) + +#endif + |