FreeCalypso > hg > fc-magnetite
comparison src/g23m-fad/tcpip/rnet/rnet_rt/rnet_rt_env.h @ 174:90eb61ecd093
src/g23m-fad: initial import from TCS3.2/LoCosto
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Wed, 12 Oct 2016 05:40:46 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
173:bf64d785238a | 174:90eb61ecd093 |
---|---|
1 /** | |
2 * @file rnet_rt_env.h | |
3 * | |
4 * Declarations of the Riviera Generic Functions | |
5 * | |
6 * @author Jose Yp-Tcha (j-yp-tcha@ti.com) | |
7 * @version 0.1 | |
8 */ | |
9 | |
10 /* | |
11 * History: | |
12 * | |
13 * Date Author Modification | |
14 * ------------------------------------------------------------------- | |
15 * 3/19/2002 Jose Yp-Tcha (j-yp-tcha@ti.com) Create. | |
16 * | |
17 * (C) Copyright 2002 by TI, All Rights Reserved | |
18 */ | |
19 | |
20 #include "rnet_cfg.h" | |
21 #ifdef RNET_CFG_REAL_TRANSPORT | |
22 | |
23 #ifndef __RNET_RT_ENV_H_ | |
24 #define __RNET_RT_ENV_H_ | |
25 | |
26 #include "rvm_gen.h" /* Generic RVM types and functions. */ | |
27 #include "rvf_pool_size.h" | |
28 | |
29 /** | |
30 * @name Mem bank | |
31 * | |
32 * Memory bank size and watermark. | |
33 * Size and watermark are not defined statically,but dynamically | |
34 */ | |
35 | |
36 /** length of pool of network buffers */ | |
37 #define RNET_RT_BUFPOOL_SIZE RVF_RNET_RT_MB1_BUFPOOL_SIZE | |
38 | |
39 /** part of memory pool reserved for messages */ | |
40 #define RNET_RT_MSGPOOL_SIZE RVF_RNET_RT_MB1_MSGPOOL_SIZE | |
41 | |
42 /** stack size of RNET task */ | |
43 #define RNET_RT_STACK_SIZE RVF_RNET_RT_STACK_SIZE | |
44 | |
45 #define RNET_RT_MB_PRIM_SIZE RVF_RNET_RT_POOL_SIZE | |
46 #define RNET_RT_MB_PRIM_WATERMARK ( RVF_RNET_RT_POOL_SIZE - 128 ) | |
47 | |
48 /* Timer index for TCPIP Entity */ | |
49 #define RNET_RT_NGIP_TIMER 0 | |
50 | |
51 /** | |
52 * @name Generic functions | |
53 * | |
54 * Generic functions declarations needed for a Type 4 SWE | |
55 * (Group Member SWE). | |
56 */ | |
57 /*@{*/ | |
58 T_RVM_RETURN rnet_rt_get_info (T_RVM_INFO_SWE *info_swe); | |
59 | |
60 T_RVM_RETURN rnet_rt_set_info ( T_RVF_ADDR_ID addr_id, | |
61 T_RV_RETURN_PATH return_path[], | |
62 T_RVF_MB_ID bk_id_table[], | |
63 T_RVM_CB_FUNC call_back_error_ft); | |
64 | |
65 T_RVM_RETURN rnet_rt_init (void); | |
66 T_RVM_RETURN rnet_rt_start (void); | |
67 | |
68 T_RVM_RETURN rnet_rt_handle_message (T_RV_HDR * msg); | |
69 T_RVM_RETURN rnet_rt_handle_timer (T_RV_HDR * msg); | |
70 | |
71 T_RVM_RETURN rnet_rt_stop (void); | |
72 T_RVM_RETURN rnet_rt_kill (void); | |
73 /*@}*/ | |
74 | |
75 #endif /*__RNET_RT_ENV_H_*/ | |
76 | |
77 #endif /* ifdef RNET_CFG_REAL_TRANSPORT */ | |
78 |