diff options
author | Alan Cox <alan@linux.intel.com> | 2011-02-01 10:41:45 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-02-04 16:01:00 -0500 |
commit | ae3a08aab5e0700d3f80162bed07a2157bd304f4 (patch) | |
tree | 6fb5f248647a7466020b71f67e0fc1c452ac3bc3 /drivers/staging/et131x/et131x_adapter.h | |
parent | 072e9f609cd6d144b64da50b03b712d87b302e12 (diff) |
staging: et131x: Kill of the eFLOW_CONTROL enum
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/et131x/et131x_adapter.h')
-rw-r--r-- | drivers/staging/et131x/et131x_adapter.h | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/drivers/staging/et131x/et131x_adapter.h b/drivers/staging/et131x/et131x_adapter.h index 2398a6ec8ac..430947b3967 100644 --- a/drivers/staging/et131x/et131x_adapter.h +++ b/drivers/staging/et131x/et131x_adapter.h | |||
@@ -91,13 +91,11 @@ typedef struct _MP_RFD { | |||
91 | u8 ringindex; | 91 | u8 ringindex; |
92 | } MP_RFD, *PMP_RFD; | 92 | } MP_RFD, *PMP_RFD; |
93 | 93 | ||
94 | /* Enum for Flow Control */ | 94 | /* Flow Control */ |
95 | typedef enum _eflow_control_t { | 95 | #define FLOW_BOTH 0 |
96 | Both = 0, | 96 | #define FLOW_TXONLY 1 |
97 | TxOnly = 1, | 97 | #define FLOW_RXONLY 2 |
98 | RxOnly = 2, | 98 | #define FLOW_NONE 3 |
99 | None = 3 | ||
100 | } eFLOW_CONTROL_t, *PeFLOW_CONTROL_t; | ||
101 | 99 | ||
102 | /* Struct to define some device statistics */ | 100 | /* Struct to define some device statistics */ |
103 | typedef struct _ce_stats_t { | 101 | typedef struct _ce_stats_t { |
@@ -185,7 +183,7 @@ struct et131x_adapter { | |||
185 | spinlock_t TCBReadyQLock; | 183 | spinlock_t TCBReadyQLock; |
186 | spinlock_t send_hw_lock; | 184 | spinlock_t send_hw_lock; |
187 | 185 | ||
188 | spinlock_t RcvLock; | 186 | spinlock_t rcv_lock; |
189 | spinlock_t RcvPendLock; | 187 | spinlock_t RcvPendLock; |
190 | spinlock_t FbrLock; | 188 | spinlock_t FbrLock; |
191 | 189 | ||
@@ -205,7 +203,7 @@ struct et131x_adapter { | |||
205 | 203 | ||
206 | /* Registry parameters */ | 204 | /* Registry parameters */ |
207 | u8 SpeedDuplex; /* speed/duplex */ | 205 | u8 SpeedDuplex; /* speed/duplex */ |
208 | eFLOW_CONTROL_t RegistryFlowControl; /* for 802.3x flow control */ | 206 | u8 wanted_flow; /* Flow we want for 802.3x flow control */ |
209 | u8 RegistryPhyComa; /* Phy Coma mode enable/disable */ | 207 | u8 RegistryPhyComa; /* Phy Coma mode enable/disable */ |
210 | 208 | ||
211 | u32 RegistryRxMemEnd; /* Size of internal rx memory */ | 209 | u32 RegistryRxMemEnd; /* Size of internal rx memory */ |
@@ -214,8 +212,8 @@ struct et131x_adapter { | |||
214 | 212 | ||
215 | /* Derived from the registry: */ | 213 | /* Derived from the registry: */ |
216 | u8 AiForceDpx; /* duplex setting */ | 214 | u8 AiForceDpx; /* duplex setting */ |
217 | u16 AiForceSpeed; /* 'Speed', user over-ride of line speed */ | 215 | u16 AiForceSpeed; /* 'Speed', user over-ride of line speed */ |
218 | eFLOW_CONTROL_t FlowControl; /* flow control validated by the far-end */ | 216 | u8 flowcontrol; /* flow control validated by the far-end */ |
219 | enum { | 217 | enum { |
220 | NETIF_STATUS_INVALID = 0, | 218 | NETIF_STATUS_INVALID = 0, |
221 | NETIF_STATUS_MEDIA_CONNECT, | 219 | NETIF_STATUS_MEDIA_CONNECT, |