📄 rvf_pool_size.h
字号:
/****************************************************************************/
/* */
/* Name rvf_pool_size.h */
/* */
/* Function this file contains definitions for buffer pool sizes */
/* */
/* */
/* */
/* */
/* Version 0.3 */
/* */
/* Date Modification */
/* ------------------------------------ */
/* 4/19/1999 Create */
/* 10/27/1999 Remove declaration of ntohs, htons, ntohl, htonl */
/* in order to avoid conflict with winsock.h */
/* 12/23/1999 Add buffer and memory bank related definition */
/* 07/12/2000 Implement dynamic memory allocation. */
/* 01/13/2002 Extracted buffer pool size info from rvf_target.h */
/* to prevent useless full recompilation when those datas */
/* are changed */
/* 10/01/2002 Completely reworked in order to be modular */
/* */
/* Author David Lamy-Charrier (dlamy@tif.ti.com) */
/* */
/* (C) Copyright 1999 by Texas Instruments Incorporated, All Rights Reserved*/
/****************************************************************************/
#ifndef _RVF_POOL_SIZE_H
#define _RVF_POOL_SIZE_H
#ifndef _WINDOWS
#include "r2d.cfg"
#include "rv.cfg"
#include "debug.cfg"
#include "board.cfg"
#include "l1_sw.cfg"
#include "swconfig.cfg"
#endif
#include "rv_defined_swe.h"
#if (defined RVM_MDC_SWE)
#include "mdc.cfg"
#endif
/*
/* Defines the memory pools used by each Riviera SWE
/*
/* In case of new SWE (i.e. called NEW), use the following template:
/*
/* #ifdef RVM_NEW_SWE
/*
/* #define RVF_NEW_STACK_SIZE (Stack_size)
/* #define RVF_NEW_MB1_SIZE (MB1_size)
/* #define RVF_NEW_MB2_SIZE (MB2_size)
/* #define RVF_NEW_MB3_SIZE (MB3_size)
/*
/* #define RVF_NEW_POOL_SIZE (RVF_NEW_STACK_SIZE + \
/* RVF_NEW_MB1_SIZE + RVF_NEW_MB2_SIZE + RVF_NEW_MB3_SIZE)
/* #else
/* #define RVF_NEW_POOL_SIZE (0)
/* #endif
/*
/*
* ATP SWE
*/
#ifdef RVM_ATP_SWE
/*
* Values used in atp_config.h
*/
#define RVF_ATP_MB1_SIZE (5000)
#define RVF_ATP_POOL_SIZE (RVF_ATP_MB1_SIZE)
#else
#define RVF_ATP_POOL_SIZE (0)
#endif
/*
* ATP_UART SWE
*/
#ifdef RVM_ATP_UART_SWE
/*
* Values used in atp_uart_env.h
*/
#define RVF_ATP_UART_STACK_SIZE (1024)
#define RVF_ATP_UART_MB1_SIZE (1024)
#define RVF_ATP_UART_POOL_SIZE (RVF_ATP_UART_STACK_SIZE + RVF_ATP_UART_MB1_SIZE)
#else
#define RVF_ATP_UART_POOL_SIZE (0)
#endif
/*
* AUDIO SWE
*/
#ifdef RVM_AUDIO_SWE
/*
* Values used in audio_env_i.h
*/
#define RVF_AUDIO_STACK_SIZE (1280)
#define RVF_AUDIO_MB1_SIZE (512)
#define RVF_AUDIO_MB2_SIZE (768)
#if (GSMLITE)
#define RVF_AUDIO_MB3_SIZE (0)
#elif (SPEECH_RECO)
#define RVF_AUDIO_MB3_SIZE (7382)
#else
#define RVF_AUDIO_MB3_SIZE (2048)
#endif
#define RVF_AUDIO_POOL_SIZE (RVF_AUDIO_STACK_SIZE + \
RVF_AUDIO_MB1_SIZE + RVF_AUDIO_MB2_SIZE + RVF_AUDIO_MB3_SIZE)
#else
#define RVF_AUDIO_POOL_SIZE (0)
#endif
/*
* BTCTRL SWE
*/
#ifdef RVM_BTCTRL_SWE
/*
* Values used in btctrl_env.h
*/
#define RVF_BTCTRL_STACK_SIZE (2000)
#define RVF_BTCTRL_MB1_SIZE (5000)
#define RVF_BTCTRL_POOL_SIZE (RVF_BTCTRL_STACK_SIZE + RVF_BTCTRL_MB1_SIZE)
#else
#define RVF_BTCTRL_POOL_SIZE (0)
#endif
/*
* DAR SWE
*/
#ifdef RVM_DAR_SWE
/*
* Values used in dar_env.h
*/
#define RVF_DAR_STACK_SIZE (1024)
#define RVF_DAR_MB1_SIZE (512)
#define RVF_DAR_POOL_SIZE (RVF_DAR_STACK_SIZE + RVF_DAR_MB1_SIZE)
#else
#define RVF_DAR_POOL_SIZE (0)
#endif
/*
* DEV1 SWE
*/
#ifdef RVM_DEV1_SWE
/*
* Values used in dev1_env.h
*/
#define RVF_DEV1_STACK_SIZE (2000)
#define RVF_DEV1_MB1_SIZE (5000)
#define RVF_DEV1_POOL_SIZE (RVF_DEV1_STACK_SIZE + RVF_DEV1_MB1_SIZE)
#else
#define RVF_DEV1_POOL_SIZE (0)
#endif
/*
* DEV2 SWE
*/
#ifdef RVM_DEV2_SWE
/*
* Values used in dev2_env.h
*/
#define RVF_DEV2_STACK_SIZE (2000)
#define RVF_DEV2_MB1_SIZE (5000)
#define RVF_DEV2_POOL_SIZE (RVF_DEV2_STACK_SIZE + RVF_DEV2_MB1_SIZE)
#else
#define RVF_DEV2_POOL_SIZE (0)
#endif
/*
* DEV3 SWE
*/
#ifdef RVM_DEV3_SWE
/*
* Values used in dev3_env.h
*/
#define RVF_DEV3_STACK_SIZE (2000)
#define RVF_DEV3_MB1_SIZE (5000)
#define RVF_DEV3_POOL_SIZE (RVF_DEV3_STACK_SIZE + RVF_DEV3_MB1_SIZE)
#else
#define RVF_DEV3_POOL_SIZE (0)
#endif
/*
* DUN_GW SWE
*/
#ifdef RVM_DUN_GW_SWE
/*
* Values used in dun_GW_env.h
*/
#define RVF_DUN_GW_STACK_SIZE (1024)
#define RVF_DUN_GW_MB1_SIZE (1024)
#define RVF_DUN_GW_MB2_SIZE (4096)
#define RVF_DUN_GW_MB3_SIZE (4096)
#define RVF_DUN_GW_POOL_SIZE (RVF_DUN_GW_STACK_SIZE + \
RVF_DUN_GW_MB1_SIZE + RVF_DUN_GW_MB2_SIZE + RVF_DUN_GW_MB3_SIZE)
#else
#define RVF_DUN_GW_POOL_SIZE (0)
#endif
/*
* ETM SWE
*/
#ifdef RVM_ETM_SWE
/*
* Values used in etm_env.h
*/
#define RVF_ETM_STACK_SIZE (1024)
#define RVF_ETM_MB1_SIZE (2048)
#define RVF_ETM_POOL_SIZE (RVF_ETM_STACK_SIZE + RVF_ETM_MB1_SIZE)
#else
#define RVF_ETM_POOL_SIZE (0)
#endif
/*
* EXPL SWE
*/
#ifdef RVM_EXPL_SWE
/*
* Values used in expl_env.h
*/
#define RVF_EXPL_STACK_SIZE (2000)
#define RVF_EXPL_MB1_SIZE (5000)
#define RVF_EXPL_POOL_SIZE (RVF_EXPL_STACK_SIZE + RVF_EXPL_MB1_SIZE)
#else
#define RVF_EXPL_POOL_SIZE (0)
#endif
/*
* FAX_GW SWE
*/
#ifdef RVM_FAX_GW_SWE
/*
* Values used in fax_GW_env.h
*/
#define RVF_FAX_GW_STACK_SIZE (1024)
#define RVF_FAX_GW_MB1_SIZE (1024)
#define RVF_FAX_GW_MB2_SIZE (4096)
#define RVF_FAX_GW_MB3_SIZE (4096)
#define RVF_FAX_GW_POOL_SIZE (RVF_FAX_GW_STACK_SIZE + \
RVF_FAX_GW_MB1_SIZE + RVF_FAX_GW_MB2_SIZE + RVF_FAX_GW_MB3_SIZE)
#else
#define RVF_FAX_GW_POOL_SIZE (0)
#endif
/*
* FFS SWE
*/
#ifdef RVM_FFS_SWE
/*
* Values used in ffs_env.h
*/
#if 0 //TISH040220
#define RVF_FFS_STACK_SIZE (512)
#if (!GSMLITE)
#define RVF_FFS_MB1_SIZE (8192)
#else
#define RVF_FFS_MB1_SIZE (4096)
#endif
#define RVF_FFS_POOL_SIZE (RVF_FFS_STACK_SIZE + RVF_FFS_MB1_SIZE)
#endif
#if 1 //TISH040220
#define FFS_STACK_SIZE (1024)
#define FFS_MAILBUF_SIZE (1024)
//#define RVM_MSFE_SWE //open the define if >1M FFS space
//#if (!GSMLITE)
#ifdef RVM_MSFE_SWE
#define FFS_MB1_SIZE (40960)
#else
#define FFS_MB1_SIZE (8192)
#endif
//#else
// #define FFS_MB1_SIZE (4096)
//#endif
#define RVF_FFS_POOL_SIZE (FFS_STACK_SIZE + FFS_MAILBUF_SIZE + FFS_MB1_SIZE)
#endif
#else
#define RVF_FFS_POOL_SIZE (0)
#endif
/*
* FTP SWE
*/
#ifdef RVM_FTP_SWE
/*
* Values used in ftp_env.h
*/
#define RVF_FTP_STACK_SIZE (4000)
#define RVF_FTP_MB1_SIZE (5000)
#define RVF_FTP_MB2_SIZE (5000)
#define RVF_FTP_MB3_SIZE (5000)
#define RVF_FTP_POOL_SIZE (RVF_FTP_STACK_SIZE + \
RVF_FTP_MB1_SIZE + RVF_FTP_MB2_SIZE + RVF_FTP_MB3_SIZE)
#else
#define RVF_FTP_POOL_SIZE (0)
#endif
/*
* HCI SWE
*/
#ifdef RVM_HCI_SWE
/*
* Values used in hci_env.h
*/
#define RVF_HCI_MB1_SIZE (10000)
#define RVF_HCI_MB2_SIZE (10000)
#define RVF_HCI_POOL_SIZE (RVF_HCI_MB1_SIZE + RVF_HCI_MB2_SIZE)
#else
#define RVF_HCI_POOL_SIZE (0)
#endif
/*
* HS SWE
*/
#ifdef RVM_HS_SWE
/*
* Values used in hs_config.h
*/
#define RVF_HS_STACK_SIZE (1000)
#define RVF_HS_MB1_SIZE (5000)
#define RVF_HS_MB2_SIZE (5000)
#define RVF_HS_MB3_SIZE (5000)
#define RVF_HS_POOL_SIZE (RVF_HS_STACK_SIZE + \
RVF_HS_MB1_SIZE + RVF_HS_MB2_SIZE + RVF_HS_MB3_SIZE)
#else
#define RVF_HS_POOL_SIZE (0)
#endif
/*
* HSG SWE
*/
#ifdef RVM_HSG_SWE
/*
* Values used in hsg_config.h
*/
#define RVF_HSG_STACK_SIZE (1000)
#define RVF_HSG_MB1_SIZE (5000)
#define RVF_HSG_MB2_SIZE (5000)
#define RVF_HSG_MB3_SIZE (5000)
#define RVF_HSG_POOL_SIZE (RVF_HSG_STACK_SIZE + \
RVF_HSG_MB1_SIZE + RVF_HSG_MB2_SIZE + RVF_HSG_MB3_SIZE)
#else
#define RVF_HSG_POOL_SIZE (0)
#endif
/*
* KCL SWE
*/
#ifdef RVM_KCL_SWE
/*
* Values used in kcl_env.h
*/
#define RVF_KCL_MB1_SIZE (500)
#define RVF_KCL_POOL_SIZE (RVF_KCL_MB1_SIZE)
#else
#define RVF_KCL_POOL_SIZE (0)
#endif
/*
* KGC SWE
*/
#ifdef RVM_KGC_SWE
/*
* Values used in kgc_env.h
*/
#define RVF_KGC_MB1_SIZE (500)
#define RVF_KGC_POOL_SIZE (RVF_KGC_MB1_SIZE)
#else
#define RVF_KGC_POOL_SIZE (0)
#endif
/*
* KIL SWE
*/
#ifdef RVM_KIL_SWE
/*
* Values used in kil_env.h
*/
#define RVF_KIL_MB1_SIZE (500)
#define RVF_KIL_POOL_SIZE (RVF_KIL_MB1_SIZE)
#else
#define RVF_KIL_POOL_SIZE (0)
#endif
/*
* KMM SWE
*/
#ifdef RVM_KMM_SWE
/*
* Values used in kmm_env.h
*/
#define RVF_KMM_MB1_SIZE (500)
#define RVF_KMM_POOL_SIZE (RVF_KMM_MB1_SIZE)
#else
#define RVF_KMM_POOL_SIZE (0)
#endif
/*
* KNM SWE
*/
#ifdef RVM_KNM_SWE
/*
* Values used in knm_env.h
*/
#define RVF_KNM_MB1_SIZE (500)
#define RVF_KNM_POOL_SIZE (RVF_KNM_MB1_SIZE)
#else
#define RVF_KNM_POOL_SIZE (0)
#endif
/*
* KPD SWE
*/
#ifdef RVM_KPD_SWE
/*
* Values used in kpd_env.h
*/
#define RVF_KPD_STACK_SIZE (1000)
#if ((BOARD == 7) || (BOARD == 8) || (BOARD == 9))
#define RVF_KPD_MB1_SIZE (716)
#elif ((BOARD == 34) || (BOARD == 40) || (BOARD == 41) || (BOARD == 42) || (BOARD == 43))
#define RVF_KPD_MB1_SIZE (788)
#elif defined _WINDOWS
#define RVF_KPD_MB1_SIZE (788)
#endif /* BOARD */
#define RVF_KPD_POOL_SIZE (RVF_KPD_STACK_SIZE + RVF_KPD_MB1_SIZE)
#else
#define RVF_KPD_POOL_SIZE (0)
#endif
/*
* KPG SWE
*/
#ifdef RVM_KPG_SWE
/*
* Values used in kpg_env.h
*/
#define RVF_KPG_MB1_SIZE (500)
#define RVF_KPG_POOL_SIZE (RVF_KPG_MB1_SIZE)
#else
#define RVF_KPG_POOL_SIZE (0)
#endif
/*
* KZP SWE
*/
#ifdef RVM_KZP_SWE
/*
* Values used in kzp_env.h
*/
#define RVF_KZP_MB1_SIZE (500)
#define RVF_KZP_POOL_SIZE (RVF_KZP_MB1_SIZE)
#else
#define RVF_KZP_POOL_SIZE (0)
#endif
/*
* L2CAP SWE
*/
#ifdef RVM_L2CAP_SWE
/*
* Values used in l2cap_env.h
*/
#define RVF_L2CAP_STACK_SIZE (1024)
#define RVF_L2CAP_MB1_SIZE (3072)
#define RVF_L2CAP_MB2_SIZE (2048)
#define RVF_L2CAP_MB3_SIZE (1024)
#define RVF_L2CAP_POOL_SIZE (RVF_L2CAP_STACK_SIZE + \
RVF_L2CAP_MB1_SIZE + RVF_L2CAP_MB2_SIZE + RVF_L2CAP_MB3_SIZE)
#else
#define RVF_L2CAP_POOL_SIZE (0)
#endif
/*
* LLS SWE
*/
#ifdef RVM_LLS_SWE
/*
* Values used in lls_env.h
*/
#define RVF_LLS_MB1_SIZE (50)
#define RVF_LLS_POOL_SIZE (RVF_LLS_MB1_SIZE)
#else
#define RVF_LLS_POOL_SIZE (0)
#endif
/*
* MKS SWE
*/
#ifdef RVM_MKS_SWE
/*
* Values used in mks_env.h
*/
#define RVF_MKS_STACK_SIZE (500)
#define RVF_MKS_MB1_SIZE (500)
#define RVF_MKS_POOL_SIZE (RVF_MKS_STACK_SIZE + RVF_MKS_MB1_SIZE)
#else
#define RVF_MKS_POOL_SIZE (0)
#endif
/*
* MPM SWE
*/
#ifdef RVM_MPM_SWE
/*
* Values used in mpm_env.h
*/
#define RVF_MPM_STACK_SIZE (2000)
#define RVF_MPM_MB1_SIZE (100000)
#define RVF_MPM_POOL_SIZE (RVF_MPM_STACK_SIZE + RVF_MPM_MB1_SIZE)
#else
#define RVF_MPM_POOL_SIZE (0)
#endif
/*
* OBX SWE
*/
#ifdef RVM_OBX_SWE
/*
* Values used in obx_env.h
*/
#define RVF_OBX_STACK_SIZE (2000)
#define RVF_OBX_MB1_SIZE (3000)
#define RVF_OBX_MB2_SIZE (2000)
#define RVF_OBX_MB3_SIZE (1500)
#define RVF_OBX_POOL_SIZE (RVF_OBX_STACK_SIZE + \
RVF_OBX_MB1_SIZE + RVF_OBX_MB2_SIZE + RVF_OBX_MB3_SIZE)
#else
#define RVF_OBX_POOL_SIZE (0)
#endif
/*
* OPP SWE
*/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -