Commit 2d2f03b0 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

Staging: keucr: fix up some coding style issues in the .h files

This resolves a few of the coding style issues in the .h files
for this driver.  It doesn't get all of them by far, but it's a
good start.

Cc: Al Cho <acho@novell.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 126bb03b
#ifndef COMMON_INCD #ifndef COMMON_INCD
#define COMMON_INCD #define COMMON_INCD
typedef void VOID; typedef void VOID;
typedef u8 BOOLEAN; typedef u8 BOOLEAN;
typedef u8 BYTE; typedef u8 BYTE;
typedef u8 *PBYTE; typedef u8 *PBYTE;
typedef u16 WORD; typedef u16 WORD;
typedef u16 *PWORD; typedef u16 *PWORD;
typedef u32 DWORD; typedef u32 DWORD;
typedef u32 *PDWORD; typedef u32 *PDWORD;
#define swapWORD(w) ((((unsigned short)(w) << 8) & 0xff00) | (((unsigned short)(w) >> 8) & 0x00ff)) #define swapWORD(w) ((((unsigned short)(w) << 8) & 0xff00) | \
#define swapDWORD(dw) ((((unsigned long)(dw) << 24) & 0xff000000) | \ (((unsigned short)(w) >> 8) & 0x00ff))
(((unsigned long)(dw) << 8) & 0x00ff0000) | \ #define swapDWORD(dw) ((((unsigned long)(dw) << 24) & 0xff000000) | \
(((unsigned long)(dw) >> 8) & 0x0000ff00) | \ (((unsigned long)(dw) << 8) & 0x00ff0000) | \
(((unsigned long)(dw) >> 24) & 0x000000ff)) (((unsigned long)(dw) >> 8) & 0x0000ff00) | \
(((unsigned long)(dw) >> 24) & 0x000000ff))
#define LittleEndianWORD(w) (w) #define LittleEndianWORD(w) (w)
#define LittleEndianDWORD(dw) (dw) #define LittleEndianDWORD(dw) (dw)
#define BigEndianWORD(w) swapWORD(w) #define BigEndianWORD(w) swapWORD(w)
#define BigEndianDWORD(dw) swapDWORD(dw) #define BigEndianDWORD(dw) swapDWORD(dw)
......
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
//----- < SMCommon.h> -------------------------------------------------- /*----- < SMCommon.h> --------------------------------------------------*/
#ifndef SMCOMMON_INCD #ifndef SMCOMMON_INCD
#define SMCOMMON_INCD #define SMCOMMON_INCD
...@@ -24,17 +24,10 @@ Define Difinetion ...@@ -24,17 +24,10 @@ Define Difinetion
#define ERR_IllegalFmt 0x0031 /* Medium Format Corrupted */ #define ERR_IllegalFmt 0x0031 /* Medium Format Corrupted */
#define ERR_NoSmartMedia 0x003A /* Medium Not Present */ #define ERR_NoSmartMedia 0x003A /* Medium Not Present */
/***************************************************************************/ /***************************************************************************/
//#define SUCCESS 0 /* SUCCESS */ char Bit_D_Count(BYTE);
//#define ERROR -1 /* ERROR */ char Bit_D_CountWord(WORD);
void StringCopy(char *, char *, int);
/***************************************************************************/ int StringCmp(char *, char *, int);
char Bit_D_Count (BYTE);
char Bit_D_CountWord (WORD);
void StringCopy (char *, char *, int);
int StringCmp (char *, char *, int);
#endif // already included #endif
//----- < smil.h> ---------------------------------------------------- /*----- < smil.h> ----------------------------------------------------*/
#ifndef SMIL_INCD #ifndef SMIL_INCD
#define SMIL_INCD #define SMIL_INCD
...@@ -165,43 +165,44 @@ Struct Definition ...@@ -165,43 +165,44 @@ Struct Definition
***************************************************************************/ ***************************************************************************/
struct SSFDCTYPE struct SSFDCTYPE
{ {
BYTE Model; BYTE Model;
BYTE Attribute; BYTE Attribute;
BYTE MaxZones; BYTE MaxZones;
BYTE MaxSectors; BYTE MaxSectors;
WORD MaxBlocks; WORD MaxBlocks;
WORD MaxLogBlocks; WORD MaxLogBlocks;
}; };
typedef struct SSFDCTYPE_T typedef struct SSFDCTYPE_T
{ {
BYTE Model; BYTE Model;
BYTE Attribute; BYTE Attribute;
BYTE MaxZones; BYTE MaxZones;
BYTE MaxSectors; BYTE MaxSectors;
WORD MaxBlocks; WORD MaxBlocks;
WORD MaxLogBlocks; WORD MaxLogBlocks;
} *SSFDCTYPE_T; } *SSFDCTYPE_T;
struct ADDRESS struct ADDRESS
{ {
BYTE Zone; /* Zone Number */ BYTE Zone; /* Zone Number */
BYTE Sector; /* Sector(512byte) Number on Block */ BYTE Sector; /* Sector(512byte) Number on Block */
WORD PhyBlock; /* Physical Block Number on Zone */ WORD PhyBlock; /* Physical Block Number on Zone */
WORD LogBlock; /* Logical Block Number of Zone */ WORD LogBlock; /* Logical Block Number of Zone */
}; };
typedef struct ADDRESS_T typedef struct ADDRESS_T
{ {
BYTE Zone; /* Zone Number */ BYTE Zone; /* Zone Number */
BYTE Sector; /* Sector(512byte) Number on Block */ BYTE Sector; /* Sector(512byte) Number on Block */
WORD PhyBlock; /* Physical Block Number on Zone */ WORD PhyBlock; /* Physical Block Number on Zone */
WORD LogBlock; /* Logical Block Number of Zone */ WORD LogBlock; /* Logical Block Number of Zone */
}*ADDRESS_T; } *ADDRESS_T;
struct CIS_AREA struct CIS_AREA
{ {
BYTE Sector; /* Sector(512byte) Number on Block */ BYTE Sector; /* Sector(512byte) Number on Block */
WORD PhyBlock; /* Physical Block Number on Zone 0 */ WORD PhyBlock; /* Physical Block Number on Zone 0 */
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment