summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath10k/htt.h
diff options
context:
space:
mode:
authorMichal Kazior <michal.kazior@tieto.com>2014-11-27 11:12:43 +0100
committerKalle Valo <kvalo@qca.qualcomm.com>2014-12-01 09:29:27 +0200
commitfe2407a889f7b6530b7e231e7c866f5c5d223657 (patch)
treebc9c572835779b03d74032cd23ed977b84dd3a6b /drivers/net/wireless/ath/ath10k/htt.h
parent1cb86d47d43fee49e9d5b13e742bce811bb59512 (diff)
downloadblackbird-op-linux-fe2407a889f7b6530b7e231e7c866f5c5d223657.tar.gz
blackbird-op-linux-fe2407a889f7b6530b7e231e7c866f5c5d223657.zip
ath10k: simplify rx ring size/fill calculation
Don't bother with fancy arithmetic and just hardcode the final values. Signed-off-by: Michal Kazior <michal.kazior@tieto.com> Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath10k/htt.h')
-rw-r--r--drivers/net/wireless/ath/ath10k/htt.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath10k/htt.h b/drivers/net/wireless/ath/ath10k/htt.h
index 17ca6acbe1c1..1bd5545af903 100644
--- a/drivers/net/wireless/ath/ath10k/htt.h
+++ b/drivers/net/wireless/ath/ath10k/htt.h
@@ -158,6 +158,9 @@ enum htt_rx_ring_flags {
HTT_RX_RING_FLAGS_PHY_DATA_RX = 1 << 15
};
+#define HTT_RX_RING_SIZE_MIN 128
+#define HTT_RX_RING_SIZE_MAX 2048
+
struct htt_rx_ring_setup_ring {
__le32 fw_idx_shadow_reg_paddr;
__le32 rx_ring_base_paddr;
OpenPOWER on IntegriCloud