aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/bcm43xx/bcm43xx_dma.h
diff options
context:
space:
mode:
authorMichael Buesch <mbuesch@freenet.de>2006-02-12 10:47:44 -0500
committerJohn W. Linville <linville@tuxdriver.com>2006-03-27 11:18:32 -0500
commit77db31ea4322f2dd12dc814d6664ae96517604c0 (patch)
tree358519550cf715249ba836d06eb651d1fdf86079 /drivers/net/wireless/bcm43xx/bcm43xx_dma.h
parent5c57807afcc28a6b8fb579ef2c79e49f0b688425 (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.h46
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
97struct sk_buff; 101struct sk_buff;
98struct bcm43xx_private; 102struct bcm43xx_private;
99struct bcm43xx_xmitstatus; 103struct bcm43xx_xmitstatus;
@@ -172,4 +176,46 @@ int bcm43xx_dma_tx(struct bcm43xx_private *bcm,
172 struct ieee80211_txb *txb); 176 struct ieee80211_txb *txb);
173void bcm43xx_dma_rx(struct bcm43xx_dmaring *ring); 177void bcm43xx_dma_rx(struct bcm43xx_dmaring *ring);
174 178
179
180#else /* CONFIG_BCM43XX_DMA */
181
182
183static inline
184int bcm43xx_dma_init(struct bcm43xx_private *bcm)
185{
186 return 0;
187}
188static inline
189void bcm43xx_dma_free(struct bcm43xx_private *bcm)
190{
191}
192static inline
193int bcm43xx_dmacontroller_rx_reset(struct bcm43xx_private *bcm,
194 u16 dmacontroller_mmio_base)
195{
196 return 0;
197}
198static inline
199int bcm43xx_dmacontroller_tx_reset(struct bcm43xx_private *bcm,
200 u16 dmacontroller_mmio_base)
201{
202 return 0;
203}
204static inline
205int bcm43xx_dma_tx(struct bcm43xx_private *bcm,
206 struct ieee80211_txb *txb)
207{
208 return 0;
209}
210static inline
211void bcm43xx_dma_handle_xmitstatus(struct bcm43xx_private *bcm,
212 struct bcm43xx_xmitstatus *status)
213{
214}
215static inline
216void 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_ */