diff options
author | Michael Buesch <mbuesch@freenet.de> | 2006-02-12 10:47:44 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2006-03-27 11:18:32 -0500 |
commit | 77db31ea4322f2dd12dc814d6664ae96517604c0 (patch) | |
tree | 358519550cf715249ba836d06eb651d1fdf86079 /drivers/net/wireless/bcm43xx/bcm43xx_dma.h | |
parent | 5c57807afcc28a6b8fb579ef2c79e49f0b688425 (diff) |
[PATCH] bcm43xx: Partially fix PIO code. Add Kconfig option for PIO or DMA mode (or both).
Signed-off-by: Michael Buesch <mbuesch@freenet.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/bcm43xx/bcm43xx_dma.h')
-rw-r--r-- | drivers/net/wireless/bcm43xx/bcm43xx_dma.h | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/drivers/net/wireless/bcm43xx/bcm43xx_dma.h b/drivers/net/wireless/bcm43xx/bcm43xx_dma.h index 93e99d61f2e1..88ad34dff2f2 100644 --- a/drivers/net/wireless/bcm43xx/bcm43xx_dma.h +++ b/drivers/net/wireless/bcm43xx/bcm43xx_dma.h | |||
@@ -94,6 +94,10 @@ | |||
94 | #define BCM43xx_TXRESUME_PERCENT 50 | 94 | #define BCM43xx_TXRESUME_PERCENT 50 |
95 | 95 | ||
96 | 96 | ||
97 | |||
98 | #ifdef CONFIG_BCM43XX_DMA | ||
99 | |||
100 | |||
97 | struct sk_buff; | 101 | struct sk_buff; |
98 | struct bcm43xx_private; | 102 | struct bcm43xx_private; |
99 | struct bcm43xx_xmitstatus; | 103 | struct bcm43xx_xmitstatus; |
@@ -172,4 +176,46 @@ int bcm43xx_dma_tx(struct bcm43xx_private *bcm, | |||
172 | struct ieee80211_txb *txb); | 176 | struct ieee80211_txb *txb); |
173 | void bcm43xx_dma_rx(struct bcm43xx_dmaring *ring); | 177 | void bcm43xx_dma_rx(struct bcm43xx_dmaring *ring); |
174 | 178 | ||
179 | |||
180 | #else /* CONFIG_BCM43XX_DMA */ | ||
181 | |||
182 | |||
183 | static inline | ||
184 | int bcm43xx_dma_init(struct bcm43xx_private *bcm) | ||
185 | { | ||
186 | return 0; | ||
187 | } | ||
188 | static inline | ||
189 | void bcm43xx_dma_free(struct bcm43xx_private *bcm) | ||
190 | { | ||
191 | } | ||
192 | static inline | ||
193 | int bcm43xx_dmacontroller_rx_reset(struct bcm43xx_private *bcm, | ||
194 | u16 dmacontroller_mmio_base) | ||
195 | { | ||
196 | return 0; | ||
197 | } | ||
198 | static inline | ||
199 | int bcm43xx_dmacontroller_tx_reset(struct bcm43xx_private *bcm, | ||
200 | u16 dmacontroller_mmio_base) | ||
201 | { | ||
202 | return 0; | ||
203 | } | ||
204 | static inline | ||
205 | int bcm43xx_dma_tx(struct bcm43xx_private *bcm, | ||
206 | struct ieee80211_txb *txb) | ||
207 | { | ||
208 | return 0; | ||
209 | } | ||
210 | static inline | ||
211 | void bcm43xx_dma_handle_xmitstatus(struct bcm43xx_private *bcm, | ||
212 | struct bcm43xx_xmitstatus *status) | ||
213 | { | ||
214 | } | ||
215 | static inline | ||
216 | void bcm43xx_dma_rx(struct bcm43xx_dmaring *ring) | ||
217 | { | ||
218 | } | ||
219 | |||
220 | #endif /* CONFIG_BCM43XX_DMA */ | ||
175 | #endif /* BCM43xx_DMA_H_ */ | 221 | #endif /* BCM43xx_DMA_H_ */ |