FreeCalypso > hg > leo2moko-debug
comparison chipsetsw/services/mks/mks_env.h @ 0:509db1a7b7b8
initial import: leo2moko-r1
author | Space Falcon <falcon@ivan.Harhan.ORG> |
---|---|
date | Mon, 01 Jun 2015 03:24:05 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:509db1a7b7b8 |
---|---|
1 /** | |
2 * @file mks_env.h | |
3 * | |
4 * Declarations of the Riviera Generic Functions | |
5 * | |
6 * @author Laurent Sollier (l-sollier@ti.com) | |
7 * @version 0.1 | |
8 */ | |
9 | |
10 /* | |
11 * History: | |
12 * | |
13 * Date Author Modification | |
14 * ---------------------------------------- | |
15 * 11/16/2001 L Sollier Create | |
16 * | |
17 * | |
18 * (C) Copyright 2001 by Texas Instruments Incorporated, All Rights Reserved | |
19 */ | |
20 | |
21 #ifndef _MKS_ENV_H_ | |
22 #define _MKS_ENV_H_ | |
23 | |
24 #include "rvm/rvm_gen.h" | |
25 #include "mks/mks_cfg.h" | |
26 | |
27 #include "mks/mks_pool_size.h" /* Stack & Memory Bank sizes definitions */ | |
28 | |
29 /** | |
30 * Mailbox ID used by the SWE. | |
31 */ | |
32 #define MKS_MAILBOX_USED RVF_TASK_MBOX_0 | |
33 | |
34 | |
35 /** | |
36 * @name Mem bank | |
37 * | |
38 * Memory bank size and watermark. | |
39 */ | |
40 /*@{*/ | |
41 #define MKS_MB_PRIM_SIZE (MKS_NB_MAX_OF_KEY_SEQUENCE*(2*KPD_MAX_CHAR_NAME + MKS_NB_MAX_OF_KEY_IN_KEY_SEQUENCE + 50)) | |
42 #define MKS_MB_PRIM_WATERMARK (MKS_MB_PRIM_SIZE) | |
43 /*@}*/ | |
44 | |
45 #if ((!defined DEPENDENCY) && (MKS_MB_PRIM_SIZE != MKS_MB1_SIZE)) | |
46 /* If the MKS Memory Bank sizes defined in rvf_pool_size.h differs from */ | |
47 /* this computed one, compilation is STOPPED. */ | |
48 #error MKS Memory Bank size mismatch! | |
49 #endif | |
50 | |
51 | |
52 /** Define a structure used to store all the informations related to MKS's task | |
53 * & MBs identifiers. | |
54 */ | |
55 typedef struct | |
56 { | |
57 T_RVF_MB_ID prim_id; | |
58 T_RVF_ADDR_ID addr_id; | |
59 T_RVM_RETURN (*error_ft)(T_RVM_NAME swe_name, | |
60 T_RVM_RETURN error_cause, | |
61 T_RVM_ERROR_TYPE error_type, | |
62 T_RVM_STRING error_msg); | |
63 } T_MKS_ENV_CTRL_BLK; | |
64 | |
65 | |
66 | |
67 | |
68 /** | |
69 * @name Generic functions | |
70 * | |
71 * Generic functions declarations. | |
72 */ | |
73 /*@{*/ | |
74 | |
75 | |
76 T_RVM_RETURN mks_get_info(T_RVM_INFO_SWE *infoSWE); | |
77 | |
78 T_RVM_RETURN mks_set_info( T_RVF_ADDR_ID addr_id, | |
79 T_RV_RETURN return_path[], | |
80 T_RVF_MB_ID bk_id[], | |
81 T_RVM_RETURN (*rvm_error_ft)(T_RVM_NAME swe_name, | |
82 T_RVM_RETURN error_cause, | |
83 T_RVM_ERROR_TYPE error_type, | |
84 T_RVM_STRING error_msg)); | |
85 | |
86 T_RVM_RETURN mks_init(void); | |
87 | |
88 T_RVM_RETURN mks_stop(void); | |
89 | |
90 T_RVM_RETURN mks_kill(void); | |
91 | |
92 /*@}*/ | |
93 | |
94 | |
95 #endif /* #ifndef _MKS_ENV_H_ */ |