aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/qed
diff options
context:
space:
mode:
authorMichal Kalderon <michal.kalderon@marvell.com>2020-01-27 15:26:13 +0200
committerDavid S. Miller <davem@davemloft.net>2020-01-27 14:35:32 +0100
commit1392d19ff1d6ddd370cefa73b552a0262f9c35ea (patch)
tree039e6825cbeee7f84818068cc390c4255484c7d0 /include/linux/qed
parentqed: FW 8.42.2.0 Additional ll2 type (diff)
downloadwireguard-linux-1392d19ff1d6ddd370cefa73b552a0262f9c35ea.tar.xz
wireguard-linux-1392d19ff1d6ddd370cefa73b552a0262f9c35ea.zip
qed: Add abstraction for different hsi values per chip
The number of BTB blocks was modified to be different between the two chip flavors supported (BB/K2) as a result, this lead to a re-write of selecting the default hsi value based on the chip. This patch creates a lookup table for hsi values per chip rather than ask again and again for every value. Signed-off-by: Ariel Elior <ariel.elior@marvell.com> Signed-off-by: Michal Kalderon <michal.kalderon@marvell.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/qed')
-rw-r--r--include/linux/qed/common_hsi.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/qed/common_hsi.h b/include/linux/qed/common_hsi.h
index a2b7826b36f0..718ce72e5965 100644
--- a/include/linux/qed/common_hsi.h
+++ b/include/linux/qed/common_hsi.h
@@ -663,8 +663,8 @@
#define PBF_MAX_CMD_LINES 3328
/* Number of BTB blocks. Each block is 256B. */
-#define BTB_MAX_BLOCKS 1440
-
+#define BTB_MAX_BLOCKS_BB 1440
+#define BTB_MAX_BLOCKS_K2 1840
/*****************/
/* PRS CONSTANTS */
/*****************/