Przeglądaj źródła

qcacmn: Refactor lithium datapath configuration items

Refactor lithium datapath configuration items. This is a placeholder
for now. The actual configuration should come from target or the
platform configuration.

Change-Id: I3a53110cf3d89efcb92da66b94b412af9f46cd62
CRs-Fixed: 2005582
Ravi Joshi 8 lat temu
rodzic
commit
891d520f96
2 zmienionych plików z 34 dodań i 27 usunięć
  1. 1 27
      dp/wifi3.0/dp_types.h
  2. 33 0
      wlan_cfg/wlan_cfg.h

+ 1 - 27
dp/wifi3.0/dp_types.h

@@ -35,26 +35,7 @@
 
 #include <hal_tx.h>
 #include <hal_reo.h>
-
-#if defined(CONFIG_MCL)
-#define MAX_PDEV_CNT 1
-#else
-#define MAX_PDEV_CNT 3
-#endif
-#define MAX_LINK_DESC_BANKS 8
-#define MAX_TXDESC_POOLS 4
-#define MAX_RXDESC_POOLS 4
-#define MAX_REO_DEST_RINGS 4
-#define MAX_TCL_DATA_RINGS 4
-#define DP_MAX_TX_RINGS 8
-#define DP_MAX_RX_RINGS 8
-#define MAX_IDLE_SCATTER_BUFS 16
-#define DP_MAX_IRQ_PER_CONTEXT 12
-#define DP_MAX_INTERRUPT_CONTEXTS 8
-
-#define MAX_TX_HW_QUEUES 3
-
-#define DP_MAX_INTERRUPT_CONTEXTS 8
+#include "wlan_cfg.h"
 
 struct dp_soc_cmn;
 struct dp_pdev;
@@ -475,8 +456,6 @@ struct dp_soc {
 	qdf_spinlock_t reo_desc_freelist_lock;
 };
 
-#define MAX_RX_MAC_RINGS 2
-
 /* PDEV level structure for data path */
 struct dp_pdev {
 	/* PDEV handle from OSIF layer TBD: see if we really need osif_pdev */
@@ -584,8 +563,6 @@ union dp_align_mac_addr {
 	} align4_2;
 };
 
-#define MAX_HTT_METADATA_LEN 32
-
 /* VDEV structure for data path state */
 struct dp_vdev {
 	/* OS device abstraction */
@@ -692,9 +669,6 @@ enum {
 	dp_sec_ucast
 };
 
-#define MAX_NUM_PEER_ID_PER_PEER 8
-#define DP_MAX_TIDS 17
-#define DP_NON_QOS_TID 16
 /* Peer structure for data path state */
 struct dp_peer {
 	/* VDEV to which this peer is associated */

+ 33 - 0
wlan_cfg/wlan_cfg.h

@@ -19,6 +19,39 @@
 #ifndef __WLAN_CFG_H
 #define __WLAN_CFG_H
 
+/*
+ * Temporary place holders. These should come either from target config
+ * or platform configuration
+ */
+#if defined(CONFIG_MCL)
+#define MAX_PDEV_CNT 1
+#else
+#define MAX_PDEV_CNT 3
+#endif
+
+/* Tx configuration */
+#define MAX_LINK_DESC_BANKS 8
+#define MAX_TXDESC_POOLS 4
+#define MAX_TCL_DATA_RINGS 4
+#define DP_MAX_TX_RINGS 8
+#define MAX_TX_HW_QUEUES 3
+
+/* Rx configuration */
+#define MAX_RXDESC_POOLS 4
+#define MAX_REO_DEST_RINGS 4
+#define DP_MAX_RX_RINGS 8
+#define MAX_RX_MAC_RINGS 2
+
+/* Miscellaneous configuration */
+#define MAX_IDLE_SCATTER_BUFS 16
+#define DP_MAX_IRQ_PER_CONTEXT 12
+#define DP_MAX_INTERRUPT_CONTEXTS 8
+#define DP_MAX_INTERRUPT_CONTEXTS 8
+#define MAX_HTT_METADATA_LEN 32
+#define MAX_NUM_PEER_ID_PER_PEER 8
+#define DP_MAX_TIDS 17
+#define DP_NON_QOS_TID 16
+
 struct wlan_cfg_dp_pdev_ctxt;
 struct wlan_cfg_dp_soc_ctxt;