diff options
author | Herton Ronaldo Krzesinski <herton@mandriva.com.br> | 2008-07-16 10:44:18 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-08-22 16:29:48 -0400 |
commit | 38e3b0d86eaa0bf90a74677b6d6c442ec66daa0c (patch) | |
tree | 18a2f650588fd5e58633d7c19ed288d9167425aa /drivers/net/wireless/rtl818x.h | |
parent | 2540e0511ea17e25831be543cdf9381e6209950d (diff) |
rtl818x: merge tx/rx descriptor flags
Tx/Rx descriptor flags are common between rtl818x devices, only with
additions for newer chips, thus use same flags in the code.
Signed-off-by: Herton Ronaldo Krzesinski <herton@mandriva.com.br>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/rtl818x.h')
-rw-r--r-- | drivers/net/wireless/rtl818x.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/drivers/net/wireless/rtl818x.h b/drivers/net/wireless/rtl818x.h index 00900fe16fce..3538b15211b1 100644 --- a/drivers/net/wireless/rtl818x.h +++ b/drivers/net/wireless/rtl818x.h | |||
@@ -193,4 +193,39 @@ struct rtl818x_rf_ops { | |||
193 | void (*set_chan)(struct ieee80211_hw *, struct ieee80211_conf *); | 193 | void (*set_chan)(struct ieee80211_hw *, struct ieee80211_conf *); |
194 | }; | 194 | }; |
195 | 195 | ||
196 | /* Tx/Rx flags are common between RTL818X chips */ | ||
197 | |||
198 | enum rtl818x_tx_desc_flags { | ||
199 | RTL818X_TX_DESC_FLAG_NO_ENC = (1 << 15), | ||
200 | RTL818X_TX_DESC_FLAG_TX_OK = (1 << 15), | ||
201 | RTL818X_TX_DESC_FLAG_SPLCP = (1 << 16), | ||
202 | RTL818X_TX_DESC_FLAG_RX_UNDER = (1 << 16), | ||
203 | RTL818X_TX_DESC_FLAG_MOREFRAG = (1 << 17), | ||
204 | RTL818X_TX_DESC_FLAG_CTS = (1 << 18), | ||
205 | RTL818X_TX_DESC_FLAG_RTS = (1 << 23), | ||
206 | RTL818X_TX_DESC_FLAG_LS = (1 << 28), | ||
207 | RTL818X_TX_DESC_FLAG_FS = (1 << 29), | ||
208 | RTL818X_TX_DESC_FLAG_DMA = (1 << 30), | ||
209 | RTL818X_TX_DESC_FLAG_OWN = (1 << 31) | ||
210 | }; | ||
211 | |||
212 | enum rtl818x_rx_desc_flags { | ||
213 | RTL818X_RX_DESC_FLAG_ICV_ERR = (1 << 12), | ||
214 | RTL818X_RX_DESC_FLAG_CRC32_ERR = (1 << 13), | ||
215 | RTL818X_RX_DESC_FLAG_PM = (1 << 14), | ||
216 | RTL818X_RX_DESC_FLAG_RX_ERR = (1 << 15), | ||
217 | RTL818X_RX_DESC_FLAG_BCAST = (1 << 16), | ||
218 | RTL818X_RX_DESC_FLAG_PAM = (1 << 17), | ||
219 | RTL818X_RX_DESC_FLAG_MCAST = (1 << 18), | ||
220 | RTL818X_RX_DESC_FLAG_QOS = (1 << 19), /* RTL8187(B) only */ | ||
221 | RTL818X_RX_DESC_FLAG_TRSW = (1 << 24), /* RTL8187(B) only */ | ||
222 | RTL818X_RX_DESC_FLAG_SPLCP = (1 << 25), | ||
223 | RTL818X_RX_DESC_FLAG_FOF = (1 << 26), | ||
224 | RTL818X_RX_DESC_FLAG_DMA_FAIL = (1 << 27), | ||
225 | RTL818X_RX_DESC_FLAG_LS = (1 << 28), | ||
226 | RTL818X_RX_DESC_FLAG_FS = (1 << 29), | ||
227 | RTL818X_RX_DESC_FLAG_EOR = (1 << 30), | ||
228 | RTL818X_RX_DESC_FLAG_OWN = (1 << 31) | ||
229 | }; | ||
230 | |||
196 | #endif /* RTL818X_H */ | 231 | #endif /* RTL818X_H */ |