diff options
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/ath9k.h')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/ath9k.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/ath9k.h b/drivers/net/wireless/ath/ath9k/ath9k.h index 56a0ac4ddc62..964fb971fd6a 100644 --- a/drivers/net/wireless/ath/ath9k/ath9k.h +++ b/drivers/net/wireless/ath/ath9k/ath9k.h | |||
@@ -100,6 +100,11 @@ enum buffer_type { | |||
100 | 100 | ||
101 | #define ATH_TXSTATUS_RING_SIZE 64 | 101 | #define ATH_TXSTATUS_RING_SIZE 64 |
102 | 102 | ||
103 | #define DS2PHYS(_dd, _ds) \ | ||
104 | ((_dd)->dd_desc_paddr + ((caddr_t)(_ds) - (caddr_t)(_dd)->dd_desc)) | ||
105 | #define ATH_DESC_4KB_BOUND_CHECK(_daddr) ((((_daddr) & 0xFFF) > 0xF7F) ? 1 : 0) | ||
106 | #define ATH_DESC_4KB_BOUND_NUM_SKIPPED(_len) ((_len) / 4096) | ||
107 | |||
103 | struct ath_descdma { | 108 | struct ath_descdma { |
104 | void *dd_desc; | 109 | void *dd_desc; |
105 | dma_addr_t dd_desc_paddr; | 110 | dma_addr_t dd_desc_paddr; |