nsload.c revision 1.1.1.2.4.2 1 1.1.1.2.4.2 rmind /******************************************************************************
2 1.1.1.2.4.2 rmind *
3 1.1.1.2.4.2 rmind * Module Name: nsload - namespace loading/expanding/contracting procedures
4 1.1.1.2.4.2 rmind *
5 1.1.1.2.4.2 rmind *****************************************************************************/
6 1.1.1.2.4.2 rmind
7 1.1.1.2.4.2 rmind /*
8 1.1.1.2.4.2 rmind * Copyright (C) 2000 - 2011, Intel Corp.
9 1.1.1.2.4.2 rmind * All rights reserved.
10 1.1.1.2.4.2 rmind *
11 1.1.1.2.4.2 rmind * Redistribution and use in source and binary forms, with or without
12 1.1.1.2.4.2 rmind * modification, are permitted provided that the following conditions
13 1.1.1.2.4.2 rmind * are met:
14 1.1.1.2.4.2 rmind * 1. Redistributions of source code must retain the above copyright
15 1.1.1.2.4.2 rmind * notice, this list of conditions, and the following disclaimer,
16 1.1.1.2.4.2 rmind * without modification.
17 1.1.1.2.4.2 rmind * 2. Redistributions in binary form must reproduce at minimum a disclaimer
18 1.1.1.2.4.2 rmind * substantially similar to the "NO WARRANTY" disclaimer below
19 1.1.1.2.4.2 rmind * ("Disclaimer") and any redistribution must be conditioned upon
20 1.1.1.2.4.2 rmind * including a substantially similar Disclaimer requirement for further
21 1.1.1.2.4.2 rmind * binary redistribution.
22 1.1.1.2.4.2 rmind * 3. Neither the names of the above-listed copyright holders nor the names
23 1.1.1.2.4.2 rmind * of any contributors may be used to endorse or promote products derived
24 1.1.1.2.4.2 rmind * from this software without specific prior written permission.
25 1.1.1.2.4.2 rmind *
26 1.1.1.2.4.2 rmind * Alternatively, this software may be distributed under the terms of the
27 1.1.1.2.4.2 rmind * GNU General Public License ("GPL") version 2 as published by the Free
28 1.1.1.2.4.2 rmind * Software Foundation.
29 1.1.1.2.4.2 rmind *
30 1.1.1.2.4.2 rmind * NO WARRANTY
31 1.1.1.2.4.2 rmind * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
32 1.1.1.2.4.2 rmind * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
33 1.1.1.2.4.2 rmind * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR
34 1.1.1.2.4.2 rmind * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
35 1.1.1.2.4.2 rmind * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
36 1.1.1.2.4.2 rmind * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
37 1.1.1.2.4.2 rmind * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
38 1.1.1.2.4.2 rmind * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
39 1.1.1.2.4.2 rmind * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
40 1.1.1.2.4.2 rmind * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
41 1.1.1.2.4.2 rmind * POSSIBILITY OF SUCH DAMAGES.
42 1.1.1.2.4.2 rmind */
43 1.1.1.2.4.2 rmind
44 1.1.1.2.4.2 rmind #define __NSLOAD_C__
45 1.1.1.2.4.2 rmind
46 1.1.1.2.4.2 rmind #include "acpi.h"
47 1.1.1.2.4.2 rmind #include "accommon.h"
48 1.1.1.2.4.2 rmind #include "acnamesp.h"
49 1.1.1.2.4.2 rmind #include "acdispat.h"
50 1.1.1.2.4.2 rmind #include "actables.h"
51 1.1.1.2.4.2 rmind
52 1.1.1.2.4.2 rmind
53 1.1.1.2.4.2 rmind #define _COMPONENT ACPI_NAMESPACE
54 1.1.1.2.4.2 rmind ACPI_MODULE_NAME ("nsload")
55 1.1.1.2.4.2 rmind
56 1.1.1.2.4.2 rmind /* Local prototypes */
57 1.1.1.2.4.2 rmind
58 1.1.1.2.4.2 rmind #ifdef ACPI_FUTURE_IMPLEMENTATION
59 1.1.1.2.4.2 rmind ACPI_STATUS
60 1.1.1.2.4.2 rmind AcpiNsUnloadNamespace (
61 1.1.1.2.4.2 rmind ACPI_HANDLE Handle);
62 1.1.1.2.4.2 rmind
63 1.1.1.2.4.2 rmind static ACPI_STATUS
64 1.1.1.2.4.2 rmind AcpiNsDeleteSubtree (
65 1.1.1.2.4.2 rmind ACPI_HANDLE StartHandle);
66 1.1.1.2.4.2 rmind #endif
67 1.1.1.2.4.2 rmind
68 1.1.1.2.4.2 rmind
69 1.1.1.2.4.2 rmind #ifndef ACPI_NO_METHOD_EXECUTION
70 1.1.1.2.4.2 rmind /*******************************************************************************
71 1.1.1.2.4.2 rmind *
72 1.1.1.2.4.2 rmind * FUNCTION: AcpiNsLoadTable
73 1.1.1.2.4.2 rmind *
74 1.1.1.2.4.2 rmind * PARAMETERS: TableIndex - Index for table to be loaded
75 1.1.1.2.4.2 rmind * Node - Owning NS node
76 1.1.1.2.4.2 rmind *
77 1.1.1.2.4.2 rmind * RETURN: Status
78 1.1.1.2.4.2 rmind *
79 1.1.1.2.4.2 rmind * DESCRIPTION: Load one ACPI table into the namespace
80 1.1.1.2.4.2 rmind *
81 1.1.1.2.4.2 rmind ******************************************************************************/
82 1.1.1.2.4.2 rmind
83 1.1.1.2.4.2 rmind ACPI_STATUS
84 1.1.1.2.4.2 rmind AcpiNsLoadTable (
85 1.1.1.2.4.2 rmind UINT32 TableIndex,
86 1.1.1.2.4.2 rmind ACPI_NAMESPACE_NODE *Node)
87 1.1.1.2.4.2 rmind {
88 1.1.1.2.4.2 rmind ACPI_STATUS Status;
89 1.1.1.2.4.2 rmind
90 1.1.1.2.4.2 rmind
91 1.1.1.2.4.2 rmind ACPI_FUNCTION_TRACE (NsLoadTable);
92 1.1.1.2.4.2 rmind
93 1.1.1.2.4.2 rmind
94 1.1.1.2.4.2 rmind /*
95 1.1.1.2.4.2 rmind * Parse the table and load the namespace with all named
96 1.1.1.2.4.2 rmind * objects found within. Control methods are NOT parsed
97 1.1.1.2.4.2 rmind * at this time. In fact, the control methods cannot be
98 1.1.1.2.4.2 rmind * parsed until the entire namespace is loaded, because
99 1.1.1.2.4.2 rmind * if a control method makes a forward reference (call)
100 1.1.1.2.4.2 rmind * to another control method, we can't continue parsing
101 1.1.1.2.4.2 rmind * because we don't know how many arguments to parse next!
102 1.1.1.2.4.2 rmind */
103 1.1.1.2.4.2 rmind Status = AcpiUtAcquireMutex (ACPI_MTX_NAMESPACE);
104 1.1.1.2.4.2 rmind if (ACPI_FAILURE (Status))
105 1.1.1.2.4.2 rmind {
106 1.1.1.2.4.2 rmind return_ACPI_STATUS (Status);
107 1.1.1.2.4.2 rmind }
108 1.1.1.2.4.2 rmind
109 1.1.1.2.4.2 rmind /* If table already loaded into namespace, just return */
110 1.1.1.2.4.2 rmind
111 1.1.1.2.4.2 rmind if (AcpiTbIsTableLoaded (TableIndex))
112 1.1.1.2.4.2 rmind {
113 1.1.1.2.4.2 rmind Status = AE_ALREADY_EXISTS;
114 1.1.1.2.4.2 rmind goto Unlock;
115 1.1.1.2.4.2 rmind }
116 1.1.1.2.4.2 rmind
117 1.1.1.2.4.2 rmind ACPI_DEBUG_PRINT ((ACPI_DB_INFO,
118 1.1.1.2.4.2 rmind "**** Loading table into namespace ****\n"));
119 1.1.1.2.4.2 rmind
120 1.1.1.2.4.2 rmind Status = AcpiTbAllocateOwnerId (TableIndex);
121 1.1.1.2.4.2 rmind if (ACPI_FAILURE (Status))
122 1.1.1.2.4.2 rmind {
123 1.1.1.2.4.2 rmind goto Unlock;
124 1.1.1.2.4.2 rmind }
125 1.1.1.2.4.2 rmind
126 1.1.1.2.4.2 rmind Status = AcpiNsParseTable (TableIndex, Node);
127 1.1.1.2.4.2 rmind if (ACPI_SUCCESS (Status))
128 1.1.1.2.4.2 rmind {
129 1.1.1.2.4.2 rmind AcpiTbSetTableLoadedFlag (TableIndex, TRUE);
130 1.1.1.2.4.2 rmind }
131 1.1.1.2.4.2 rmind else
132 1.1.1.2.4.2 rmind {
133 1.1.1.2.4.2 rmind (void) AcpiTbReleaseOwnerId (TableIndex);
134 1.1.1.2.4.2 rmind }
135 1.1.1.2.4.2 rmind
136 1.1.1.2.4.2 rmind Unlock:
137 1.1.1.2.4.2 rmind (void) AcpiUtReleaseMutex (ACPI_MTX_NAMESPACE);
138 1.1.1.2.4.2 rmind
139 1.1.1.2.4.2 rmind if (ACPI_FAILURE (Status))
140 1.1.1.2.4.2 rmind {
141 1.1.1.2.4.2 rmind return_ACPI_STATUS (Status);
142 1.1.1.2.4.2 rmind }
143 1.1.1.2.4.2 rmind
144 1.1.1.2.4.2 rmind /*
145 1.1.1.2.4.2 rmind * Now we can parse the control methods. We always parse
146 1.1.1.2.4.2 rmind * them here for a sanity check, and if configured for
147 1.1.1.2.4.2 rmind * just-in-time parsing, we delete the control method
148 1.1.1.2.4.2 rmind * parse trees.
149 1.1.1.2.4.2 rmind */
150 1.1.1.2.4.2 rmind ACPI_DEBUG_PRINT ((ACPI_DB_INFO,
151 1.1.1.2.4.2 rmind "**** Begin Table Method Parsing and Object Initialization\n"));
152 1.1.1.2.4.2 rmind
153 1.1.1.2.4.2 rmind Status = AcpiDsInitializeObjects (TableIndex, Node);
154 1.1.1.2.4.2 rmind
155 1.1.1.2.4.2 rmind ACPI_DEBUG_PRINT ((ACPI_DB_INFO,
156 1.1.1.2.4.2 rmind "**** Completed Table Method Parsing and Object Initialization\n"));
157 1.1.1.2.4.2 rmind
158 1.1.1.2.4.2 rmind return_ACPI_STATUS (Status);
159 1.1.1.2.4.2 rmind }
160 1.1.1.2.4.2 rmind
161 1.1.1.2.4.2 rmind
162 1.1.1.2.4.2 rmind #ifdef ACPI_OBSOLETE_FUNCTIONS
163 1.1.1.2.4.2 rmind /*******************************************************************************
164 1.1.1.2.4.2 rmind *
165 1.1.1.2.4.2 rmind * FUNCTION: AcpiLoadNamespace
166 1.1.1.2.4.2 rmind *
167 1.1.1.2.4.2 rmind * PARAMETERS: None
168 1.1.1.2.4.2 rmind *
169 1.1.1.2.4.2 rmind * RETURN: Status
170 1.1.1.2.4.2 rmind *
171 1.1.1.2.4.2 rmind * DESCRIPTION: Load the name space from what ever is pointed to by DSDT.
172 1.1.1.2.4.2 rmind * (DSDT points to either the BIOS or a buffer.)
173 1.1.1.2.4.2 rmind *
174 1.1.1.2.4.2 rmind ******************************************************************************/
175 1.1.1.2.4.2 rmind
176 1.1.1.2.4.2 rmind ACPI_STATUS
177 1.1.1.2.4.2 rmind AcpiNsLoadNamespace (
178 1.1.1.2.4.2 rmind void)
179 1.1.1.2.4.2 rmind {
180 1.1.1.2.4.2 rmind ACPI_STATUS Status;
181 1.1.1.2.4.2 rmind
182 1.1.1.2.4.2 rmind
183 1.1.1.2.4.2 rmind ACPI_FUNCTION_TRACE (AcpiLoadNameSpace);
184 1.1.1.2.4.2 rmind
185 1.1.1.2.4.2 rmind
186 1.1.1.2.4.2 rmind /* There must be at least a DSDT installed */
187 1.1.1.2.4.2 rmind
188 1.1.1.2.4.2 rmind if (AcpiGbl_DSDT == NULL)
189 1.1.1.2.4.2 rmind {
190 1.1.1.2.4.2 rmind ACPI_ERROR ((AE_INFO, "DSDT is not in memory"));
191 1.1.1.2.4.2 rmind return_ACPI_STATUS (AE_NO_ACPI_TABLES);
192 1.1.1.2.4.2 rmind }
193 1.1.1.2.4.2 rmind
194 1.1.1.2.4.2 rmind /*
195 1.1.1.2.4.2 rmind * Load the namespace. The DSDT is required,
196 1.1.1.2.4.2 rmind * but the SSDT and PSDT tables are optional.
197 1.1.1.2.4.2 rmind */
198 1.1.1.2.4.2 rmind Status = AcpiNsLoadTableByType (ACPI_TABLE_ID_DSDT);
199 1.1.1.2.4.2 rmind if (ACPI_FAILURE (Status))
200 1.1.1.2.4.2 rmind {
201 1.1.1.2.4.2 rmind return_ACPI_STATUS (Status);
202 1.1.1.2.4.2 rmind }
203 1.1.1.2.4.2 rmind
204 1.1.1.2.4.2 rmind /* Ignore exceptions from these */
205 1.1.1.2.4.2 rmind
206 1.1.1.2.4.2 rmind (void) AcpiNsLoadTableByType (ACPI_TABLE_ID_SSDT);
207 1.1.1.2.4.2 rmind (void) AcpiNsLoadTableByType (ACPI_TABLE_ID_PSDT);
208 1.1.1.2.4.2 rmind
209 1.1.1.2.4.2 rmind ACPI_DEBUG_PRINT_RAW ((ACPI_DB_INIT,
210 1.1.1.2.4.2 rmind "ACPI Namespace successfully loaded at root %p\n",
211 1.1.1.2.4.2 rmind AcpiGbl_RootNode));
212 1.1.1.2.4.2 rmind
213 1.1.1.2.4.2 rmind return_ACPI_STATUS (Status);
214 1.1.1.2.4.2 rmind }
215 1.1.1.2.4.2 rmind #endif
216 1.1.1.2.4.2 rmind
217 1.1.1.2.4.2 rmind #ifdef ACPI_FUTURE_IMPLEMENTATION
218 1.1.1.2.4.2 rmind /*******************************************************************************
219 1.1.1.2.4.2 rmind *
220 1.1.1.2.4.2 rmind * FUNCTION: AcpiNsDeleteSubtree
221 1.1.1.2.4.2 rmind *
222 1.1.1.2.4.2 rmind * PARAMETERS: StartHandle - Handle in namespace where search begins
223 1.1.1.2.4.2 rmind *
224 1.1.1.2.4.2 rmind * RETURNS Status
225 1.1.1.2.4.2 rmind *
226 1.1.1.2.4.2 rmind * DESCRIPTION: Walks the namespace starting at the given handle and deletes
227 1.1.1.2.4.2 rmind * all objects, entries, and scopes in the entire subtree.
228 1.1.1.2.4.2 rmind *
229 1.1.1.2.4.2 rmind * Namespace/Interpreter should be locked or the subsystem should
230 1.1.1.2.4.2 rmind * be in shutdown before this routine is called.
231 1.1.1.2.4.2 rmind *
232 1.1.1.2.4.2 rmind ******************************************************************************/
233 1.1.1.2.4.2 rmind
234 1.1.1.2.4.2 rmind static ACPI_STATUS
235 1.1.1.2.4.2 rmind AcpiNsDeleteSubtree (
236 1.1.1.2.4.2 rmind ACPI_HANDLE StartHandle)
237 1.1.1.2.4.2 rmind {
238 1.1.1.2.4.2 rmind ACPI_STATUS Status;
239 1.1.1.2.4.2 rmind ACPI_HANDLE ChildHandle;
240 1.1.1.2.4.2 rmind ACPI_HANDLE ParentHandle;
241 1.1.1.2.4.2 rmind ACPI_HANDLE NextChildHandle;
242 1.1.1.2.4.2 rmind ACPI_HANDLE Dummy;
243 1.1.1.2.4.2 rmind UINT32 Level;
244 1.1.1.2.4.2 rmind
245 1.1.1.2.4.2 rmind
246 1.1.1.2.4.2 rmind ACPI_FUNCTION_TRACE (NsDeleteSubtree);
247 1.1.1.2.4.2 rmind
248 1.1.1.2.4.2 rmind
249 1.1.1.2.4.2 rmind ParentHandle = StartHandle;
250 1.1.1.2.4.2 rmind ChildHandle = NULL;
251 1.1.1.2.4.2 rmind Level = 1;
252 1.1.1.2.4.2 rmind
253 1.1.1.2.4.2 rmind /*
254 1.1.1.2.4.2 rmind * Traverse the tree of objects until we bubble back up
255 1.1.1.2.4.2 rmind * to where we started.
256 1.1.1.2.4.2 rmind */
257 1.1.1.2.4.2 rmind while (Level > 0)
258 1.1.1.2.4.2 rmind {
259 1.1.1.2.4.2 rmind /* Attempt to get the next object in this scope */
260 1.1.1.2.4.2 rmind
261 1.1.1.2.4.2 rmind Status = AcpiGetNextObject (ACPI_TYPE_ANY, ParentHandle,
262 1.1.1.2.4.2 rmind ChildHandle, &NextChildHandle);
263 1.1.1.2.4.2 rmind
264 1.1.1.2.4.2 rmind ChildHandle = NextChildHandle;
265 1.1.1.2.4.2 rmind
266 1.1.1.2.4.2 rmind /* Did we get a new object? */
267 1.1.1.2.4.2 rmind
268 1.1.1.2.4.2 rmind if (ACPI_SUCCESS (Status))
269 1.1.1.2.4.2 rmind {
270 1.1.1.2.4.2 rmind /* Check if this object has any children */
271 1.1.1.2.4.2 rmind
272 1.1.1.2.4.2 rmind if (ACPI_SUCCESS (AcpiGetNextObject (ACPI_TYPE_ANY, ChildHandle,
273 1.1.1.2.4.2 rmind NULL, &Dummy)))
274 1.1.1.2.4.2 rmind {
275 1.1.1.2.4.2 rmind /*
276 1.1.1.2.4.2 rmind * There is at least one child of this object,
277 1.1.1.2.4.2 rmind * visit the object
278 1.1.1.2.4.2 rmind */
279 1.1.1.2.4.2 rmind Level++;
280 1.1.1.2.4.2 rmind ParentHandle = ChildHandle;
281 1.1.1.2.4.2 rmind ChildHandle = NULL;
282 1.1.1.2.4.2 rmind }
283 1.1.1.2.4.2 rmind }
284 1.1.1.2.4.2 rmind else
285 1.1.1.2.4.2 rmind {
286 1.1.1.2.4.2 rmind /*
287 1.1.1.2.4.2 rmind * No more children in this object, go back up to
288 1.1.1.2.4.2 rmind * the object's parent
289 1.1.1.2.4.2 rmind */
290 1.1.1.2.4.2 rmind Level--;
291 1.1.1.2.4.2 rmind
292 1.1.1.2.4.2 rmind /* Delete all children now */
293 1.1.1.2.4.2 rmind
294 1.1.1.2.4.2 rmind AcpiNsDeleteChildren (ChildHandle);
295 1.1.1.2.4.2 rmind
296 1.1.1.2.4.2 rmind ChildHandle = ParentHandle;
297 1.1.1.2.4.2 rmind Status = AcpiGetParent (ParentHandle, &ParentHandle);
298 1.1.1.2.4.2 rmind if (ACPI_FAILURE (Status))
299 1.1.1.2.4.2 rmind {
300 1.1.1.2.4.2 rmind return_ACPI_STATUS (Status);
301 1.1.1.2.4.2 rmind }
302 1.1.1.2.4.2 rmind }
303 1.1.1.2.4.2 rmind }
304 1.1.1.2.4.2 rmind
305 1.1.1.2.4.2 rmind /* Now delete the starting object, and we are done */
306 1.1.1.2.4.2 rmind
307 1.1.1.2.4.2 rmind AcpiNsRemoveNode (ChildHandle);
308 1.1.1.2.4.2 rmind return_ACPI_STATUS (AE_OK);
309 1.1.1.2.4.2 rmind }
310 1.1.1.2.4.2 rmind
311 1.1.1.2.4.2 rmind
312 1.1.1.2.4.2 rmind /*******************************************************************************
313 1.1.1.2.4.2 rmind *
314 1.1.1.2.4.2 rmind * FUNCTION: AcpiNsUnloadNameSpace
315 1.1.1.2.4.2 rmind *
316 1.1.1.2.4.2 rmind * PARAMETERS: Handle - Root of namespace subtree to be deleted
317 1.1.1.2.4.2 rmind *
318 1.1.1.2.4.2 rmind * RETURN: Status
319 1.1.1.2.4.2 rmind *
320 1.1.1.2.4.2 rmind * DESCRIPTION: Shrinks the namespace, typically in response to an undocking
321 1.1.1.2.4.2 rmind * event. Deletes an entire subtree starting from (and
322 1.1.1.2.4.2 rmind * including) the given handle.
323 1.1.1.2.4.2 rmind *
324 1.1.1.2.4.2 rmind ******************************************************************************/
325 1.1.1.2.4.2 rmind
326 1.1.1.2.4.2 rmind ACPI_STATUS
327 1.1.1.2.4.2 rmind AcpiNsUnloadNamespace (
328 1.1.1.2.4.2 rmind ACPI_HANDLE Handle)
329 1.1.1.2.4.2 rmind {
330 1.1.1.2.4.2 rmind ACPI_STATUS Status;
331 1.1.1.2.4.2 rmind
332 1.1.1.2.4.2 rmind
333 1.1.1.2.4.2 rmind ACPI_FUNCTION_TRACE (NsUnloadNameSpace);
334 1.1.1.2.4.2 rmind
335 1.1.1.2.4.2 rmind
336 1.1.1.2.4.2 rmind /* Parameter validation */
337 1.1.1.2.4.2 rmind
338 1.1.1.2.4.2 rmind if (!AcpiGbl_RootNode)
339 1.1.1.2.4.2 rmind {
340 1.1.1.2.4.2 rmind return_ACPI_STATUS (AE_NO_NAMESPACE);
341 1.1.1.2.4.2 rmind }
342 1.1.1.2.4.2 rmind
343 1.1.1.2.4.2 rmind if (!Handle)
344 1.1.1.2.4.2 rmind {
345 1.1.1.2.4.2 rmind return_ACPI_STATUS (AE_BAD_PARAMETER);
346 1.1.1.2.4.2 rmind }
347 1.1.1.2.4.2 rmind
348 1.1.1.2.4.2 rmind /* This function does the real work */
349 1.1.1.2.4.2 rmind
350 1.1.1.2.4.2 rmind Status = AcpiNsDeleteSubtree (Handle);
351 1.1.1.2.4.2 rmind
352 1.1.1.2.4.2 rmind return_ACPI_STATUS (Status);
353 1.1.1.2.4.2 rmind }
354 1.1.1.2.4.2 rmind #endif
355 1.1.1.2.4.2 rmind #endif
356 1.1.1.2.4.2 rmind
357