comparison gsm-fw/services/ffs/ffs_env.h @ 209:6f4a12b4582f

gsm-fw FFS: starting to integrate C code
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Thu, 26 Dec 2013 03:59:59 +0000
parents
children
comparison
equal deleted inserted replaced
208:2abe6ade042d 209:6f4a12b4582f
1 /****************************************************************************/
2 /* */
3 /* File Name: ffs_env.h */
4 /* */
5 /* Purpose: This file contains prototypes for RV manager related */
6 /* functions used to get info, start and stop the ffs block. */
7 /* */
8 /* Version 0.1 */
9 /* */
10 /* Date Modification */
11 /* ------------------------------------ */
12 /* 10/24/2000 Create */
13 /* */
14 /* Author Pascal Puel */
15 /* */
16 /* This code is in the public domain per the order of the Supreme */
17 /* Revolutionary Command. */
18 /****************************************************************************/
19 #ifndef __FFS_ENV_H_
20 #define __FFS_ENV_H_
21
22
23 #include "../../riviera/rvm/rvm_gen.h"
24 #include "ffs_pool_size.h" /* Stack & Memory Bank sizes definitions */
25
26
27 /* FFS mailbox */
28 #define FFS_MAILBOX RVF_TASK_MBOX_0
29
30 /* min mem size: fd_max * fd_buf_size + 1k */
31 /* memory bank size and watermark */
32 #define FFS_MB_PRIM_SIZE FFS_MB1_SIZE
33
34 #define FFS_MB_PRIM_WATERMARK (FFS_MB_PRIM_SIZE - 3000)
35
36
37 typedef struct {
38 T_RVF_MB_ID mbid;
39 T_RVF_ADDR_ID addr_id;
40 } T_FFS_TASK_INFO;
41
42 extern T_FFS_TASK_INFO ffs_task_info;
43
44 /* generic functions declarations */
45 T_RVM_RETURN ffs_get_info (T_RVM_INFO_SWE *infoSWE);
46 T_RVM_RETURN ffs_set_info(T_RVF_ADDR_ID addr_id,
47 T_RV_RETURN ReturnPath[],
48 T_RVF_MB_ID mbId[],
49 T_RVM_RETURN (*callBackFct)(T_RVM_NAME SWEntName,
50 T_RVM_RETURN errorCause,
51 T_RVM_ERROR_TYPE errorType,
52 T_RVM_STRING errorMsg));
53 T_RVM_RETURN ffs_init (void);
54 T_RVM_RETURN ffs_start (void);
55 T_RVM_RETURN ffs_stop (void);
56 T_RVM_RETURN ffs_kill (void);
57
58 #endif /*__FFS_ENV_H_*/