Warning, cross-references for /kernel/include/lwip/memp_std.h need to be fixed.
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012 #ifndef LWIP_MALLOC_MEMPOOL
0013
0014
0015 #define LWIP_MALLOC_MEMPOOL(num, size) LWIP_MEMPOOL(POOL_##size, num, (size + sizeof(struct memp_malloc_helper)), "MALLOC_"#size)
0016 #define LWIP_MALLOC_MEMPOOL_START
0017 #define LWIP_MALLOC_MEMPOOL_END
0018 #endif
0019
0020 #ifndef LWIP_PBUF_MEMPOOL
0021
0022
0023 #define LWIP_PBUF_MEMPOOL(name, num, payload, desc) LWIP_MEMPOOL(name, num, (MEMP_ALIGN_SIZE(sizeof(struct pbuf)) + MEMP_ALIGN_SIZE(payload)), desc)
0024 #endif
0025
0026
0027
0028
0029
0030
0031
0032
0033 #if LWIP_RAW
0034 LWIP_MEMPOOL(RAW_PCB, MEMP_NUM_RAW_PCB, sizeof(struct raw_pcb), "RAW_PCB")
0035 #endif
0036
0037 #if LWIP_UDP
0038 LWIP_MEMPOOL(UDP_PCB, MEMP_NUM_UDP_PCB, sizeof(struct udp_pcb), "UDP_PCB")
0039 #endif
0040
0041 #if LWIP_TCP
0042 LWIP_MEMPOOL(TCP_PCB, MEMP_NUM_TCP_PCB, sizeof(struct tcp_pcb), "TCP_PCB")
0043 LWIP_MEMPOOL(TCP_PCB_LISTEN, MEMP_NUM_TCP_PCB_LISTEN, sizeof(struct tcp_pcb_listen), "TCP_PCB_LISTEN")
0044 LWIP_MEMPOOL(TCP_SEG, MEMP_NUM_TCP_SEG, sizeof(struct tcp_seg), "TCP_SEG")
0045 #endif
0046
0047 #if IP_REASSEMBLY
0048 LWIP_MEMPOOL(REASSDATA, MEMP_NUM_REASSDATA, sizeof(struct ip_reassdata), "REASSDATA")
0049 #endif
0050
0051 #if LWIP_NETCONN
0052 LWIP_MEMPOOL(NETBUF, MEMP_NUM_NETBUF, sizeof(struct netbuf), "NETBUF")
0053 LWIP_MEMPOOL(NETCONN, MEMP_NUM_NETCONN, sizeof(struct netconn), "NETCONN")
0054 #endif
0055
0056 #if NO_SYS==0
0057 LWIP_MEMPOOL(TCPIP_MSG_API, MEMP_NUM_TCPIP_MSG_API, sizeof(struct tcpip_msg), "TCPIP_MSG_API")
0058 LWIP_MEMPOOL(TCPIP_MSG_INPKT,MEMP_NUM_TCPIP_MSG_INPKT, sizeof(struct tcpip_msg), "TCPIP_MSG_INPKT")
0059 #endif
0060
0061 #if ARP_QUEUEING
0062 LWIP_MEMPOOL(ARP_QUEUE, MEMP_NUM_ARP_QUEUE, sizeof(struct etharp_q_entry), "ARP_QUEUE")
0063 #endif
0064
0065 #if LWIP_IGMP
0066 LWIP_MEMPOOL(IGMP_GROUP, MEMP_NUM_IGMP_GROUP, sizeof(struct igmp_group), "IGMP_GROUP")
0067 #endif
0068
0069 #if NO_SYS==0
0070 LWIP_MEMPOOL(SYS_TIMEOUT, MEMP_NUM_SYS_TIMEOUT, sizeof(struct sys_timeo), "SYS_TIMEOUT")
0071 #endif
0072
0073
0074
0075
0076
0077
0078
0079
0080
0081
0082 LWIP_PBUF_MEMPOOL(PBUF, MEMP_NUM_PBUF, 0, "PBUF_REF/ROM")
0083 LWIP_PBUF_MEMPOOL(PBUF_POOL, PBUF_POOL_SIZE, PBUF_POOL_BUFSIZE, "PBUF_POOL")
0084
0085
0086
0087
0088
0089
0090 #if MEMP_USE_CUSTOM_POOLS
0091 #include "lwippools.h"
0092 #endif
0093
0094
0095
0096
0097
0098 #undef LWIP_MEMPOOL
0099 #undef LWIP_MALLOC_MEMPOOL
0100 #undef LWIP_MALLOC_MEMPOOL_START
0101 #undef LWIP_MALLOC_MEMPOOL_END
0102 #undef LWIP_PBUF_MEMPOOL