diff options
Diffstat (limited to 'drivers/net/wireless/b43/dma.h')
| -rw-r--r-- | drivers/net/wireless/b43/dma.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/drivers/net/wireless/b43/dma.h b/drivers/net/wireless/b43/dma.h index f0b0838fb5ba..e607b392314c 100644 --- a/drivers/net/wireless/b43/dma.h +++ b/drivers/net/wireless/b43/dma.h | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | #ifndef B43_DMA_H_ | 1 | #ifndef B43_DMA_H_ |
| 2 | #define B43_DMA_H_ | 2 | #define B43_DMA_H_ |
| 3 | 3 | ||
| 4 | #include <linux/ieee80211.h> | 4 | #include <linux/err.h> |
| 5 | 5 | ||
| 6 | #include "b43.h" | 6 | #include "b43.h" |
| 7 | 7 | ||
| @@ -157,7 +157,6 @@ struct b43_dmadesc_generic { | |||
| 157 | } __attribute__ ((__packed__)); | 157 | } __attribute__ ((__packed__)); |
| 158 | 158 | ||
| 159 | /* Misc DMA constants */ | 159 | /* Misc DMA constants */ |
| 160 | #define B43_DMA_RINGMEMSIZE PAGE_SIZE | ||
| 161 | #define B43_DMA0_RX_FRAMEOFFSET 30 | 160 | #define B43_DMA0_RX_FRAMEOFFSET 30 |
| 162 | 161 | ||
| 163 | /* DMA engine tuning knobs */ | 162 | /* DMA engine tuning knobs */ |
| @@ -165,6 +164,10 @@ struct b43_dmadesc_generic { | |||
| 165 | #define B43_RXRING_SLOTS 64 | 164 | #define B43_RXRING_SLOTS 64 |
| 166 | #define B43_DMA0_RX_BUFFERSIZE IEEE80211_MAX_FRAME_LEN | 165 | #define B43_DMA0_RX_BUFFERSIZE IEEE80211_MAX_FRAME_LEN |
| 167 | 166 | ||
| 167 | /* Pointer poison */ | ||
| 168 | #define B43_DMA_PTR_POISON ((void *)ERR_PTR(-ENOMEM)) | ||
| 169 | #define b43_dma_ptr_is_poisoned(ptr) (unlikely((ptr) == B43_DMA_PTR_POISON)) | ||
| 170 | |||
| 168 | 171 | ||
| 169 | struct sk_buff; | 172 | struct sk_buff; |
| 170 | struct b43_private; | 173 | struct b43_private; |
| @@ -243,6 +246,12 @@ struct b43_dmaring { | |||
| 243 | /* The QOS priority assigned to this ring. Only used for TX rings. | 246 | /* The QOS priority assigned to this ring. Only used for TX rings. |
| 244 | * This is the mac80211 "queue" value. */ | 247 | * This is the mac80211 "queue" value. */ |
| 245 | u8 queue_prio; | 248 | u8 queue_prio; |
| 249 | /* Pointers and size of the originally allocated and mapped memory | ||
| 250 | * region for the descriptor ring. */ | ||
| 251 | void *alloc_descbase; | ||
| 252 | dma_addr_t alloc_dmabase; | ||
| 253 | unsigned int alloc_descsize; | ||
| 254 | /* Pointer to our wireless device. */ | ||
| 246 | struct b43_wldev *dev; | 255 | struct b43_wldev *dev; |
| 247 | #ifdef CONFIG_B43_DEBUG | 256 | #ifdef CONFIG_B43_DEBUG |
| 248 | /* Maximum number of used slots. */ | 257 | /* Maximum number of used slots. */ |
