summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/platform.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/include/platform.h b/include/platform.h
index 5a3a9c0a36..67ae421a06 100644
--- a/include/platform.h
+++ b/include/platform.h
@@ -47,7 +47,14 @@
/* TOP-LEVEL include to set/change the defines related to memory cunsomption/usage */
-#if defined(CONFIG_VERSION_16M)
+// not really the choice !
+#define PLCP_MAX_HOST_BROADCAST 1
+#define PLCP_MAX_HOST_UNICAST 64
+#define PLCP_MAX_HOST_MULTICAST 4
+
+#define PLCP_MAX_HOST (PLCP_MAX_HOST_UNICAST + PLCP_MAX_HOST_MULTICAST + PLCP_MAX_HOST_BROADCAST)
+
+#ifdef CONFIG_VERSION_16M
#define PB_POOL_RING_SIZE (1024)
@@ -63,11 +70,11 @@
#define PB_POOL_RING_SIZE (2048)
-#define DMA_RX_POOL2_NB_BUFFER 32
+#define DMA_RX_POOL2_NB_BUFFER PLCP_MAX_HOST
#define DMA_RX_POOL1_NB_BUFFER 32
#define DMA_RX_POOL0_NB_BUFFER 128
-#define DMA_TX_POOL2_NB_BUFFER 32
+#define DMA_TX_POOL2_NB_BUFFER PLCP_MAX_HOST
#define DMA_TX_POOL1_NB_BUFFER 32
#define DMA_TX_POOL0_NB_BUFFER 128
#endif