Staging: wavelan: fix spaces and TAB coding style issue in i82586.h

This is a patch  to the i82586.h file that fixed up a TAB and
spaces Errors found by the checkpatch.pl tools, like
	ERROR: spaces required around that '=' (ctx:VxV)
and
	ERROR: space required before the open brace '{'

Signed-off-by: Ruslan Pisarev <ruslan@rpisarev.org.ua>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
Ruslan Pisarev 2010-03-15 14:24:21 +02:00 committed by Greg Kroah-Hartman
parent 7c32785701
commit cebb7e8336
1 changed files with 21 additions and 37 deletions

View File

@ -36,8 +36,7 @@
* System Configuration Pointer (SCP). * System Configuration Pointer (SCP).
*/ */
typedef struct scp_t scp_t; typedef struct scp_t scp_t;
struct scp_t struct scp_t {
{
unsigned short scp_sysbus; /* 82586 bus width: */ unsigned short scp_sysbus; /* 82586 bus width: */
#define SCP_SY_16BBUS (0x0 << 0) /* 16 bits */ #define SCP_SY_16BBUS (0x0 << 0) /* 16 bits */
#define SCP_SY_8BBUS (0x1 << 0) /* 8 bits. */ #define SCP_SY_8BBUS (0x1 << 0) /* 8 bits. */
@ -50,8 +49,7 @@ struct scp_t
* Intermediate System Configuration Pointer (ISCP). * Intermediate System Configuration Pointer (ISCP).
*/ */
typedef struct iscp_t iscp_t; typedef struct iscp_t iscp_t;
struct iscp_t struct iscp_t {
{
unsigned short iscp_busy; /* set by CPU before first CA, */ unsigned short iscp_busy; /* set by CPU before first CA, */
/* cleared by 82586 after read. */ /* cleared by 82586 after read. */
unsigned short iscp_offset; /* offset of SCB */ unsigned short iscp_offset; /* offset of SCB */
@ -67,8 +65,7 @@ struct iscp_t
* then issues a Channel Attention (CA) to alert the 82586. * then issues a Channel Attention (CA) to alert the 82586.
*/ */
typedef struct scb_t scb_t; typedef struct scb_t scb_t;
struct scb_t struct scb_t {
{
unsigned short scb_status; /* Status of 82586 */ unsigned short scb_status; /* Status of 82586 */
#define SCB_ST_INT (0xF << 12) /* Some of: */ #define SCB_ST_INT (0xF << 12) /* Some of: */
#define SCB_ST_CX (0x1 << 15) /* Cmd completed */ #define SCB_ST_CX (0x1 << 15) /* Cmd completed */
@ -124,8 +121,7 @@ struct scb_t
* The eight Action Commands. * The eight Action Commands.
*/ */
typedef enum acmd_e acmd_e; typedef enum acmd_e acmd_e;
enum acmd_e enum acmd_e {
{
acmd_nop = 0, /* Do nothing */ acmd_nop = 0, /* Do nothing */
acmd_ia_setup = 1, /* Load an (ethernet) address into the */ acmd_ia_setup = 1, /* Load an (ethernet) address into the */
/* 82586 */ /* 82586 */
@ -143,8 +139,7 @@ enum acmd_e
* Generic Action Command header. * Generic Action Command header.
*/ */
typedef struct ach_t ach_t; typedef struct ach_t ach_t;
struct ach_t struct ach_t {
{
unsigned short ac_status; /* Command status: */ unsigned short ac_status; /* Command status: */
#define AC_SFLD_C (0x1 << 15) /* Command completed */ #define AC_SFLD_C (0x1 << 15) /* Command completed */
#define AC_SFLD_B (0x1 << 14) /* Busy executing */ #define AC_SFLD_B (0x1 << 14) /* Busy executing */
@ -178,8 +173,7 @@ struct ach_t
* The Nop Action Command. * The Nop Action Command.
*/ */
typedef struct ac_nop_t ac_nop_t; typedef struct ac_nop_t ac_nop_t;
struct ac_nop_t struct ac_nop_t {
{
ach_t nop_h; ach_t nop_h;
}; };
@ -187,8 +181,7 @@ struct ac_nop_t
* The IA-Setup Action Command. * The IA-Setup Action Command.
*/ */
typedef struct ac_ias_t ac_ias_t; typedef struct ac_ias_t ac_ias_t;
struct ac_ias_t struct ac_ias_t {
{
ach_t ias_h; ach_t ias_h;
unsigned char ias_addr[ADDR_LEN]; /* The (ethernet) address */ unsigned char ias_addr[ADDR_LEN]; /* The (ethernet) address */
}; };
@ -197,8 +190,7 @@ struct ac_ias_t
* The Configure Action Command. * The Configure Action Command.
*/ */
typedef struct ac_cfg_t ac_cfg_t; typedef struct ac_cfg_t ac_cfg_t;
struct ac_cfg_t struct ac_cfg_t {
{
ach_t cfg_h; ach_t cfg_h;
unsigned char cfg_byte_cnt; /* Size foll data: 4-12 */ unsigned char cfg_byte_cnt; /* Size foll data: 4-12 */
#define AC_CFG_BYTE_CNT(v) (((v) & 0xF) << 0) #define AC_CFG_BYTE_CNT(v) (((v) & 0xF) << 0)
@ -255,8 +247,7 @@ struct ac_cfg_t
* The MC-Setup Action Command. * The MC-Setup Action Command.
*/ */
typedef struct ac_mcs_t ac_mcs_t; typedef struct ac_mcs_t ac_mcs_t;
struct ac_mcs_t struct ac_mcs_t {
{
ach_t mcs_h; ach_t mcs_h;
unsigned short mcs_cnt; /* No. of bytes of MC addresses */ unsigned short mcs_cnt; /* No. of bytes of MC addresses */
#if 0 #if 0
@ -271,8 +262,7 @@ struct ac_mcs_t
* The Transmit Action Command. * The Transmit Action Command.
*/ */
typedef struct ac_tx_t ac_tx_t; typedef struct ac_tx_t ac_tx_t;
struct ac_tx_t struct ac_tx_t {
{
ach_t tx_h; ach_t tx_h;
unsigned short tx_tbd_offset; /* Address of list of buffers. */ unsigned short tx_tbd_offset; /* Address of list of buffers. */
#if 0 #if 0
@ -290,8 +280,7 @@ ac_cfg_t action command.
* The Time Domain Reflectometer Action Command. * The Time Domain Reflectometer Action Command.
*/ */
typedef struct ac_tdr_t ac_tdr_t; typedef struct ac_tdr_t ac_tdr_t;
struct ac_tdr_t struct ac_tdr_t {
{
ach_t tdr_h; ach_t tdr_h;
unsigned short tdr_result; /* Result. */ unsigned short tdr_result; /* Result. */
#define AC_TDR_LNK_OK (0x1 << 15) /* No link problem */ #define AC_TDR_LNK_OK (0x1 << 15) /* No link problem */
@ -307,8 +296,7 @@ struct ac_tdr_t
* The Dump Action Command. * The Dump Action Command.
*/ */
typedef struct ac_dmp_t ac_dmp_t; typedef struct ac_dmp_t ac_dmp_t;
struct ac_dmp_t struct ac_dmp_t {
{
ach_t dmp_h; ach_t dmp_h;
unsigned short dmp_offset; /* Result. */ unsigned short dmp_offset; /* Result. */
}; };
@ -322,8 +310,7 @@ struct ac_dmp_t
* The Diagnose Action Command. * The Diagnose Action Command.
*/ */
typedef struct ac_dgn_t ac_dgn_t; typedef struct ac_dgn_t ac_dgn_t;
struct ac_dgn_t struct ac_dgn_t {
{
ach_t dgn_h; ach_t dgn_h;
}; };
@ -331,8 +318,7 @@ struct ac_dgn_t
* Transmit Buffer Descriptor (TBD). * Transmit Buffer Descriptor (TBD).
*/ */
typedef struct tbd_t tbd_t; typedef struct tbd_t tbd_t;
struct tbd_t struct tbd_t {
{
unsigned short tbd_status; /* Written by the CPU */ unsigned short tbd_status; /* Written by the CPU */
#define TBD_STATUS_EOF (0x1 << 15) /* This TBD is the */ #define TBD_STATUS_EOF (0x1 << 15) /* This TBD is the */
/* last for this frame */ /* last for this frame */
@ -347,8 +333,7 @@ struct tbd_t
* Receive Buffer Descriptor (RBD). * Receive Buffer Descriptor (RBD).
*/ */
typedef struct rbd_t rbd_t; typedef struct rbd_t rbd_t;
struct rbd_t struct rbd_t {
{
unsigned short rbd_status; /* Written by the 82586 */ unsigned short rbd_status; /* Written by the 82586 */
#define RBD_STATUS_EOF (0x1 << 15) /* This RBD is the */ #define RBD_STATUS_EOF (0x1 << 15) /* This RBD is the */
/* last for this frame */ /* last for this frame */
@ -371,8 +356,7 @@ struct rbd_t
* Frame Descriptor (FD). * Frame Descriptor (FD).
*/ */
typedef struct fd_t fd_t; typedef struct fd_t fd_t;
struct fd_t struct fd_t {
{
unsigned short fd_status; /* Written by the 82586 */ unsigned short fd_status; /* Written by the 82586 */
#define FD_STATUS_C (0x1 << 15) /* Completed storing frame */ #define FD_STATUS_C (0x1 << 15) /* Completed storing frame */
#define FD_STATUS_B (0x1 << 14) /* FD was consumed by RU */ #define FD_STATUS_B (0x1 << 14) /* FD was consumed by RU */