1 | /* |
---|
2 | * COPYRIGHT (c) 1989-1999. |
---|
3 | * On-Line Applications Research Corporation (OAR). |
---|
4 | * |
---|
5 | * The license and distribution terms for this file may be |
---|
6 | * found in the file LICENSE in this distribution or at |
---|
7 | * http://www.OARcorp.com/rtems/license.html. |
---|
8 | * |
---|
9 | * $Id$ |
---|
10 | */ |
---|
11 | |
---|
12 | #if HAVE_CONFIG_H |
---|
13 | #include "config.h" |
---|
14 | #endif |
---|
15 | |
---|
16 | #include <itron.h> |
---|
17 | |
---|
18 | #include <rtems/itron/fmempool.h> |
---|
19 | |
---|
20 | /* |
---|
21 | * _ITRON_Fixed_memory_pool_Manager_initialization |
---|
22 | * |
---|
23 | * This routine initializes all fixed memory pool manager related |
---|
24 | * data structures. |
---|
25 | * |
---|
26 | * Input parameters: |
---|
27 | * maximum_fixed_memory_pools - maximum configured fixed memory pools |
---|
28 | * |
---|
29 | * Output parameters: NONE |
---|
30 | */ |
---|
31 | |
---|
32 | void _ITRON_Fixed_memory_pool_Manager_initialization( |
---|
33 | unsigned32 maximum_fixed_memory_pools |
---|
34 | ) |
---|
35 | { |
---|
36 | _Objects_Initialize_information( |
---|
37 | &_ITRON_Fixed_memory_pool_Information, /* object information table */ |
---|
38 | OBJECTS_ITRON_FIXED_MEMORY_POOLS, /* object class */ |
---|
39 | FALSE, /* TRUE if this is a global */ |
---|
40 | /* object class */ |
---|
41 | maximum_fixed_memory_pools, /* maximum objects of this class */ |
---|
42 | sizeof( ITRON_Fixed_memory_pool_Control ), |
---|
43 | /* size of this object's control block */ |
---|
44 | FALSE, /* TRUE if names for this object */ |
---|
45 | /* are strings */ |
---|
46 | ITRON_MAXIMUM_NAME_LENGTH, /* maximum length of each object's */ |
---|
47 | /* name */ |
---|
48 | FALSE /* TRUE if this class is threads */ |
---|
49 | ); |
---|
50 | |
---|
51 | /* |
---|
52 | * Register the MP Process Packet routine. |
---|
53 | * |
---|
54 | * NOTE: No MP Support YET in RTEMS ITRON implementation. |
---|
55 | */ |
---|
56 | |
---|
57 | } |
---|
58 | |
---|
59 | /* |
---|
60 | * cre_mpf - Create Fixed-Size Memorypool |
---|
61 | */ |
---|
62 | |
---|
63 | ER cre_mpf( |
---|
64 | ID mpfid, |
---|
65 | T_CMPF *pk_cmpf |
---|
66 | ) |
---|
67 | { |
---|
68 | return E_OK; |
---|
69 | } |
---|
70 | |
---|
71 | /* |
---|
72 | * del_mpf - Delete Fixed-Size Memorypool |
---|
73 | */ |
---|
74 | |
---|
75 | ER del_mpf( |
---|
76 | ID mpfid |
---|
77 | ) |
---|
78 | { |
---|
79 | return E_OK; |
---|
80 | } |
---|
81 | |
---|
82 | /* |
---|
83 | * get_blf - Get Fixed-Size Memory Block |
---|
84 | */ |
---|
85 | |
---|
86 | ER get_blf( |
---|
87 | VP *p_blf, |
---|
88 | ID mpfid |
---|
89 | ) |
---|
90 | { |
---|
91 | return E_OK; |
---|
92 | } |
---|
93 | |
---|
94 | /* |
---|
95 | * pget_blf - Poll and Get Fixed-Size Memory Block |
---|
96 | */ |
---|
97 | |
---|
98 | ER pget_blf( |
---|
99 | VP *p_blf, |
---|
100 | ID mpfid |
---|
101 | ) |
---|
102 | { |
---|
103 | return E_OK; |
---|
104 | } |
---|
105 | |
---|
106 | /* |
---|
107 | * tget_blf - Get Fixed-Size Memory Block with Timeout |
---|
108 | */ |
---|
109 | |
---|
110 | ER tget_blf( |
---|
111 | VP *p_blf, |
---|
112 | ID mpfid, |
---|
113 | TMO tmout |
---|
114 | ) |
---|
115 | { |
---|
116 | return E_OK; |
---|
117 | } |
---|
118 | |
---|
119 | /* |
---|
120 | * rel_blf - Release Fixed-Size Memory Block |
---|
121 | */ |
---|
122 | |
---|
123 | ER rel_blf( |
---|
124 | ID mpfid, |
---|
125 | VP blf |
---|
126 | ) |
---|
127 | { |
---|
128 | return E_OK; |
---|
129 | } |
---|
130 | |
---|
131 | /* |
---|
132 | * ref_mpf - Reference Fixed-Size Memorypool Status |
---|
133 | */ |
---|
134 | |
---|
135 | ER ref_mpf( |
---|
136 | T_RMPF *pk_rmpf, |
---|
137 | ID mpfid |
---|
138 | ) |
---|
139 | { |
---|
140 | return E_OK; |
---|
141 | } |
---|
142 | |
---|