summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorThierry Carre2008-03-27 13:48:29 +0100
committerThierry Carre2008-03-27 13:48:29 +0100
commit4e62b4ce9763f34b476cca6addc4fc25cabe8f8c (patch)
tree6ccb853945ba384800c961dbcb434fb86397ba5c /include
parent6c3b0fe9c4cf268c748f71b1721875162ed0c196 (diff)
Increase only data buffer
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