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.rtems.com/license/LICENSE. |
---|
8 | * |
---|
9 | * $Id$ |
---|
10 | */ |
---|
11 | |
---|
12 | #if HAVE_CONFIG_H |
---|
13 | #include "config.h" |
---|
14 | #endif |
---|
15 | |
---|
16 | #include <rtems/itron.h> |
---|
17 | |
---|
18 | #include <rtems/itron/vmempool.h> |
---|
19 | |
---|
20 | /* |
---|
21 | * _ITRON_Variable_memory_pool_Manager_initialization |
---|
22 | * |
---|
23 | * This routine initializes all variable memory pool manager related |
---|
24 | * data structures. |
---|
25 | * |
---|
26 | * Input parameters: |
---|
27 | * maximum_variable_memory_pools - maximum configured variable memory pools |
---|
28 | * |
---|
29 | * Output parameters: NONE |
---|
30 | */ |
---|
31 | |
---|
32 | void _ITRON_Variable_memory_pool_Manager_initialization( |
---|
33 | uint32_t maximum_variable_memory_pools |
---|
34 | ) |
---|
35 | { |
---|
36 | _Objects_Initialize_information( |
---|
37 | &_ITRON_Variable_memory_pool_Information, /* object information table */ |
---|
38 | OBJECTS_ITRON_API, /* object API */ |
---|
39 | OBJECTS_ITRON_VARIABLE_MEMORY_POOLS, /* object class */ |
---|
40 | maximum_variable_memory_pools, /* maximum objects of this class */ |
---|
41 | sizeof( ITRON_Variable_memory_pool_Control ), |
---|
42 | /* size of this object's control block */ |
---|
43 | FALSE, /* TRUE if names for this object are strings */ |
---|
44 | ITRON_MAXIMUM_NAME_LENGTH /* maximum length of each object's name */ |
---|
45 | #if defined(RTEMS_MULTIPROCESSING) |
---|
46 | , |
---|
47 | FALSE, /* TRUE if this is a global object class */ |
---|
48 | NULL /* Proxy extraction support callout */ |
---|
49 | #endif |
---|
50 | ); |
---|
51 | |
---|
52 | /* |
---|
53 | * Register the MP Process Packet routine. |
---|
54 | * |
---|
55 | * NOTE: No MP Support YET in RTEMS ITRON implementation. |
---|
56 | */ |
---|
57 | |
---|
58 | } |
---|
59 | |
---|
60 | /* |
---|
61 | * cre_mpl - Create Variable-Size Memorypool |
---|
62 | */ |
---|
63 | |
---|
64 | ER cre_mpl( |
---|
65 | ID mplid, |
---|
66 | T_CMPL *pk_cmpl |
---|
67 | ) |
---|
68 | { |
---|
69 | return E_OK; |
---|
70 | } |
---|
71 | |
---|
72 | /* |
---|
73 | * del_mpl - Delete Variable-Size Memorypool |
---|
74 | */ |
---|
75 | |
---|
76 | ER del_mpl( |
---|
77 | ID mplid |
---|
78 | ) |
---|
79 | { |
---|
80 | return E_OK; |
---|
81 | } |
---|
82 | |
---|
83 | /* |
---|
84 | * get_blk - Get Variable-Size Memory Block |
---|
85 | */ |
---|
86 | |
---|
87 | ER get_blk( |
---|
88 | VP *p_blk, |
---|
89 | ID mplid, |
---|
90 | INT blksz |
---|
91 | ) |
---|
92 | { |
---|
93 | return E_OK; |
---|
94 | } |
---|
95 | |
---|
96 | /* |
---|
97 | * pget_blk - Poll and Get Variable-Size Memory Block |
---|
98 | */ |
---|
99 | |
---|
100 | ER pget_blk( |
---|
101 | VP *p_blk, |
---|
102 | ID mplid, |
---|
103 | INT blksz |
---|
104 | ) |
---|
105 | { |
---|
106 | return E_OK; |
---|
107 | } |
---|
108 | |
---|
109 | /* |
---|
110 | * tget_blk - Get Variable-Size Memory Block with Timeout |
---|
111 | */ |
---|
112 | |
---|
113 | ER tget_blk( |
---|
114 | VP *p_blk, |
---|
115 | ID mplid, |
---|
116 | INT blksz, |
---|
117 | TMO tmout |
---|
118 | ) |
---|
119 | { |
---|
120 | return E_OK; |
---|
121 | } |
---|
122 | |
---|
123 | /* |
---|
124 | * rel_blk - Release Variable-Size Memory Block |
---|
125 | */ |
---|
126 | |
---|
127 | ER rel_blk( |
---|
128 | ID mplid, |
---|
129 | VP blk |
---|
130 | ) |
---|
131 | { |
---|
132 | return E_OK; |
---|
133 | } |
---|
134 | |
---|
135 | /* |
---|
136 | * ref_mpl - Reference Variable-Size Memorypool Status |
---|
137 | */ |
---|
138 | |
---|
139 | ER ref_mpl( |
---|
140 | T_RMPL *pk_rmpl, |
---|
141 | ID mplid |
---|
142 | ) |
---|
143 | { |
---|
144 | return E_OK; |
---|
145 | } |
---|