1a9f12690SJung-uk Kim /******************************************************************************
2a9f12690SJung-uk Kim  *
3a9f12690SJung-uk Kim  * Name: acpiosxf.h - All interfaces to the OS Services Layer (OSL). These
4a9f12690SJung-uk Kim  *                    interfaces must be implemented by OSL to interface the
5a9f12690SJung-uk Kim  *                    ACPI components to the host operating system.
6a9f12690SJung-uk Kim  *
7a9f12690SJung-uk Kim  *****************************************************************************/
8a9f12690SJung-uk Kim 
90d84335fSJung-uk Kim /******************************************************************************
100d84335fSJung-uk Kim  *
110d84335fSJung-uk Kim  * 1. Copyright Notice
120d84335fSJung-uk Kim  *
13722b1667SJung-uk Kim  * Some or all of this work - Copyright (c) 1999 - 2023, Intel Corp.
14a9f12690SJung-uk Kim  * All rights reserved.
15a9f12690SJung-uk Kim  *
160d84335fSJung-uk Kim  * 2. License
170d84335fSJung-uk Kim  *
180d84335fSJung-uk Kim  * 2.1. This is your license from Intel Corp. under its intellectual property
190d84335fSJung-uk Kim  * rights. You may have additional license terms from the party that provided
200d84335fSJung-uk Kim  * you this software, covering your right to use that party's intellectual
210d84335fSJung-uk Kim  * property rights.
220d84335fSJung-uk Kim  *
230d84335fSJung-uk Kim  * 2.2. Intel grants, free of charge, to any person ("Licensee") obtaining a
240d84335fSJung-uk Kim  * copy of the source code appearing in this file ("Covered Code") an
250d84335fSJung-uk Kim  * irrevocable, perpetual, worldwide license under Intel's copyrights in the
260d84335fSJung-uk Kim  * base code distributed originally by Intel ("Original Intel Code") to copy,
270d84335fSJung-uk Kim  * make derivatives, distribute, use and display any portion of the Covered
280d84335fSJung-uk Kim  * Code in any form, with the right to sublicense such rights; and
290d84335fSJung-uk Kim  *
300d84335fSJung-uk Kim  * 2.3. Intel grants Licensee a non-exclusive and non-transferable patent
310d84335fSJung-uk Kim  * license (with the right to sublicense), under only those claims of Intel
320d84335fSJung-uk Kim  * patents that are infringed by the Original Intel Code, to make, use, sell,
330d84335fSJung-uk Kim  * offer to sell, and import the Covered Code and derivative works thereof
340d84335fSJung-uk Kim  * solely to the minimum extent necessary to exercise the above copyright
350d84335fSJung-uk Kim  * license, and in no event shall the patent license extend to any additions
360d84335fSJung-uk Kim  * to or modifications of the Original Intel Code. No other license or right
370d84335fSJung-uk Kim  * is granted directly or by implication, estoppel or otherwise;
380d84335fSJung-uk Kim  *
390d84335fSJung-uk Kim  * The above copyright and patent license is granted only if the following
400d84335fSJung-uk Kim  * conditions are met:
410d84335fSJung-uk Kim  *
420d84335fSJung-uk Kim  * 3. Conditions
430d84335fSJung-uk Kim  *
440d84335fSJung-uk Kim  * 3.1. Redistribution of Source with Rights to Further Distribute Source.
450d84335fSJung-uk Kim  * Redistribution of source code of any substantial portion of the Covered
460d84335fSJung-uk Kim  * Code or modification with rights to further distribute source must include
470d84335fSJung-uk Kim  * the above Copyright Notice, the above License, this list of Conditions,
480d84335fSJung-uk Kim  * and the following Disclaimer and Export Compliance provision. In addition,
490d84335fSJung-uk Kim  * Licensee must cause all Covered Code to which Licensee contributes to
500d84335fSJung-uk Kim  * contain a file documenting the changes Licensee made to create that Covered
510d84335fSJung-uk Kim  * Code and the date of any change. Licensee must include in that file the
520d84335fSJung-uk Kim  * documentation of any changes made by any predecessor Licensee. Licensee
530d84335fSJung-uk Kim  * must include a prominent statement that the modification is derived,
540d84335fSJung-uk Kim  * directly or indirectly, from Original Intel Code.
550d84335fSJung-uk Kim  *
560d84335fSJung-uk Kim  * 3.2. Redistribution of Source with no Rights to Further Distribute Source.
570d84335fSJung-uk Kim  * Redistribution of source code of any substantial portion of the Covered
580d84335fSJung-uk Kim  * Code or modification without rights to further distribute source must
590d84335fSJung-uk Kim  * include the following Disclaimer and Export Compliance provision in the
600d84335fSJung-uk Kim  * documentation and/or other materials provided with distribution. In
610d84335fSJung-uk Kim  * addition, Licensee may not authorize further sublicense of source of any
620d84335fSJung-uk Kim  * portion of the Covered Code, and must include terms to the effect that the
630d84335fSJung-uk Kim  * license from Licensee to its licensee is limited to the intellectual
640d84335fSJung-uk Kim  * property embodied in the software Licensee provides to its licensee, and
650d84335fSJung-uk Kim  * not to intellectual property embodied in modifications its licensee may
660d84335fSJung-uk Kim  * make.
670d84335fSJung-uk Kim  *
680d84335fSJung-uk Kim  * 3.3. Redistribution of Executable. Redistribution in executable form of any
690d84335fSJung-uk Kim  * substantial portion of the Covered Code or modification must reproduce the
700d84335fSJung-uk Kim  * above Copyright Notice, and the following Disclaimer and Export Compliance
710d84335fSJung-uk Kim  * provision in the documentation and/or other materials provided with the
720d84335fSJung-uk Kim  * distribution.
730d84335fSJung-uk Kim  *
740d84335fSJung-uk Kim  * 3.4. Intel retains all right, title, and interest in and to the Original
750d84335fSJung-uk Kim  * Intel Code.
760d84335fSJung-uk Kim  *
770d84335fSJung-uk Kim  * 3.5. Neither the name Intel nor any other trademark owned or controlled by
780d84335fSJung-uk Kim  * Intel shall be used in advertising or otherwise to promote the sale, use or
790d84335fSJung-uk Kim  * other dealings in products derived from or relating to the Covered Code
800d84335fSJung-uk Kim  * without prior written authorization from Intel.
810d84335fSJung-uk Kim  *
820d84335fSJung-uk Kim  * 4. Disclaimer and Export Compliance
830d84335fSJung-uk Kim  *
840d84335fSJung-uk Kim  * 4.1. INTEL MAKES NO WARRANTY OF ANY KIND REGARDING ANY SOFTWARE PROVIDED
850d84335fSJung-uk Kim  * HERE. ANY SOFTWARE ORIGINATING FROM INTEL OR DERIVED FROM INTEL SOFTWARE
860d84335fSJung-uk Kim  * IS PROVIDED "AS IS," AND INTEL WILL NOT PROVIDE ANY SUPPORT, ASSISTANCE,
870d84335fSJung-uk Kim  * INSTALLATION, TRAINING OR OTHER SERVICES. INTEL WILL NOT PROVIDE ANY
880d84335fSJung-uk Kim  * UPDATES, ENHANCEMENTS OR EXTENSIONS. INTEL SPECIFICALLY DISCLAIMS ANY
890d84335fSJung-uk Kim  * IMPLIED WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT AND FITNESS FOR A
900d84335fSJung-uk Kim  * PARTICULAR PURPOSE.
910d84335fSJung-uk Kim  *
920d84335fSJung-uk Kim  * 4.2. IN NO EVENT SHALL INTEL HAVE ANY LIABILITY TO LICENSEE, ITS LICENSEES
930d84335fSJung-uk Kim  * OR ANY OTHER THIRD PARTY, FOR ANY LOST PROFITS, LOST DATA, LOSS OF USE OR
940d84335fSJung-uk Kim  * COSTS OF PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, OR FOR ANY INDIRECT,
950d84335fSJung-uk Kim  * SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THIS AGREEMENT, UNDER ANY
960d84335fSJung-uk Kim  * CAUSE OF ACTION OR THEORY OF LIABILITY, AND IRRESPECTIVE OF WHETHER INTEL
970d84335fSJung-uk Kim  * HAS ADVANCE NOTICE OF THE POSSIBILITY OF SUCH DAMAGES. THESE LIMITATIONS
980d84335fSJung-uk Kim  * SHALL APPLY NOTWITHSTANDING THE FAILURE OF THE ESSENTIAL PURPOSE OF ANY
990d84335fSJung-uk Kim  * LIMITED REMEDY.
1000d84335fSJung-uk Kim  *
1010d84335fSJung-uk Kim  * 4.3. Licensee shall not export, either directly or indirectly, any of this
1020d84335fSJung-uk Kim  * software or system incorporating such software without first obtaining any
1030d84335fSJung-uk Kim  * required license or other approval from the U. S. Department of Commerce or
1040d84335fSJung-uk Kim  * any other agency or department of the United States Government. In the
1050d84335fSJung-uk Kim  * event Licensee exports any such software from the United States or
1060d84335fSJung-uk Kim  * re-exports any such software from a foreign destination, Licensee shall
1070d84335fSJung-uk Kim  * ensure that the distribution and export/re-export of the software is in
1080d84335fSJung-uk Kim  * compliance with all laws, regulations, orders, or other restrictions of the
1090d84335fSJung-uk Kim  * U.S. Export Administration Regulations. Licensee agrees that neither it nor
1100d84335fSJung-uk Kim  * any of its subsidiaries will export/re-export any technical data, process,
1110d84335fSJung-uk Kim  * software, or service, directly or indirectly, to any country for which the
1120d84335fSJung-uk Kim  * United States government or any agency thereof requires an export license,
1130d84335fSJung-uk Kim  * other governmental approval, or letter of assurance, without first obtaining
1140d84335fSJung-uk Kim  * such license, approval or letter.
1150d84335fSJung-uk Kim  *
1160d84335fSJung-uk Kim  *****************************************************************************
1170d84335fSJung-uk Kim  *
1180d84335fSJung-uk Kim  * Alternatively, you may choose to be licensed under the terms of the
1190d84335fSJung-uk Kim  * following license:
1200d84335fSJung-uk Kim  *
121d244b227SJung-uk Kim  * Redistribution and use in source and binary forms, with or without
122d244b227SJung-uk Kim  * modification, are permitted provided that the following conditions
123d244b227SJung-uk Kim  * are met:
124d244b227SJung-uk Kim  * 1. Redistributions of source code must retain the above copyright
125d244b227SJung-uk Kim  *    notice, this list of conditions, and the following disclaimer,
126d244b227SJung-uk Kim  *    without modification.
127d244b227SJung-uk Kim  * 2. Redistributions in binary form must reproduce at minimum a disclaimer
128d244b227SJung-uk Kim  *    substantially similar to the "NO WARRANTY" disclaimer below
129d244b227SJung-uk Kim  *    ("Disclaimer") and any redistribution must be conditioned upon
130d244b227SJung-uk Kim  *    including a substantially similar Disclaimer requirement for further
131d244b227SJung-uk Kim  *    binary redistribution.
132d244b227SJung-uk Kim  * 3. Neither the names of the above-listed copyright holders nor the names
133d244b227SJung-uk Kim  *    of any contributors may be used to endorse or promote products derived
134d244b227SJung-uk Kim  *    from this software without specific prior written permission.
135a9f12690SJung-uk Kim  *
1360d84335fSJung-uk Kim  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
1370d84335fSJung-uk Kim  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
1380d84335fSJung-uk Kim  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
1390d84335fSJung-uk Kim  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
1400d84335fSJung-uk Kim  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
1410d84335fSJung-uk Kim  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
1420d84335fSJung-uk Kim  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
1430d84335fSJung-uk Kim  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
1440d84335fSJung-uk Kim  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
1450d84335fSJung-uk Kim  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
1460d84335fSJung-uk Kim  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1470d84335fSJung-uk Kim  *
1480d84335fSJung-uk Kim  * Alternatively, you may choose to be licensed under the terms of the
149d244b227SJung-uk Kim  * GNU General Public License ("GPL") version 2 as published by the Free
150d244b227SJung-uk Kim  * Software Foundation.
151a9f12690SJung-uk Kim  *
1520d84335fSJung-uk Kim  *****************************************************************************/
153a9f12690SJung-uk Kim 
154a9f12690SJung-uk Kim #ifndef __ACPIOSXF_H__
155a9f12690SJung-uk Kim #define __ACPIOSXF_H__
156a9f12690SJung-uk Kim 
157ab6f3bf9SJung-uk Kim #include <contrib/dev/acpica/include/platform/acenv.h>
158ab6f3bf9SJung-uk Kim #include <contrib/dev/acpica/include/actypes.h>
159a9f12690SJung-uk Kim 
160a9f12690SJung-uk Kim 
161a9f12690SJung-uk Kim /* Types for AcpiOsExecute */
162a9f12690SJung-uk Kim 
163a9f12690SJung-uk Kim typedef enum
164a9f12690SJung-uk Kim {
165a9f12690SJung-uk Kim     OSL_GLOBAL_LOCK_HANDLER,
166a9f12690SJung-uk Kim     OSL_NOTIFY_HANDLER,
167a9f12690SJung-uk Kim     OSL_GPE_HANDLER,
168f8146b88SJung-uk Kim     OSL_DEBUGGER_MAIN_THREAD,
169f8146b88SJung-uk Kim     OSL_DEBUGGER_EXEC_THREAD,
170a9f12690SJung-uk Kim     OSL_EC_POLL_HANDLER,
171a9f12690SJung-uk Kim     OSL_EC_BURST_HANDLER
172a9f12690SJung-uk Kim 
173a9f12690SJung-uk Kim } ACPI_EXECUTE_TYPE;
174a9f12690SJung-uk Kim 
175a9f12690SJung-uk Kim #define ACPI_NO_UNIT_LIMIT          ((UINT32) -1)
176a9f12690SJung-uk Kim #define ACPI_MUTEX_SEM              1
177a9f12690SJung-uk Kim 
178a9f12690SJung-uk Kim 
179a9f12690SJung-uk Kim /* Functions for AcpiOsSignal */
180a9f12690SJung-uk Kim 
181a9f12690SJung-uk Kim #define ACPI_SIGNAL_FATAL           0
182a9f12690SJung-uk Kim #define ACPI_SIGNAL_BREAKPOINT      1
183a9f12690SJung-uk Kim 
184a9f12690SJung-uk Kim typedef struct acpi_signal_fatal_info
185a9f12690SJung-uk Kim {
186a9f12690SJung-uk Kim     UINT32                  Type;
187a9f12690SJung-uk Kim     UINT32                  Code;
188a9f12690SJung-uk Kim     UINT32                  Argument;
189a9f12690SJung-uk Kim 
190a9f12690SJung-uk Kim } ACPI_SIGNAL_FATAL_INFO;
191a9f12690SJung-uk Kim 
192a9f12690SJung-uk Kim 
193a9f12690SJung-uk Kim /*
194a9f12690SJung-uk Kim  * OSL Initialization and shutdown primitives
195a9f12690SJung-uk Kim  */
196313a0c13SJung-uk Kim #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsInitialize
197a9f12690SJung-uk Kim ACPI_STATUS
198a9f12690SJung-uk Kim AcpiOsInitialize (
199a9f12690SJung-uk Kim     void);
200313a0c13SJung-uk Kim #endif
201a9f12690SJung-uk Kim 
202313a0c13SJung-uk Kim #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsTerminate
203a9f12690SJung-uk Kim ACPI_STATUS
204a9f12690SJung-uk Kim AcpiOsTerminate (
205a9f12690SJung-uk Kim     void);
206313a0c13SJung-uk Kim #endif
207a9f12690SJung-uk Kim 
208a9f12690SJung-uk Kim 
209a9f12690SJung-uk Kim /*
210a9f12690SJung-uk Kim  * ACPI Table interfaces
211a9f12690SJung-uk Kim  */
212313a0c13SJung-uk Kim #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsGetRootPointer
213a9f12690SJung-uk Kim ACPI_PHYSICAL_ADDRESS
214a9f12690SJung-uk Kim AcpiOsGetRootPointer (
215a9f12690SJung-uk Kim     void);
216313a0c13SJung-uk Kim #endif
217a9f12690SJung-uk Kim 
218313a0c13SJung-uk Kim #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsPredefinedOverride
219a9f12690SJung-uk Kim ACPI_STATUS
220a9f12690SJung-uk Kim AcpiOsPredefinedOverride (
221a9f12690SJung-uk Kim     const ACPI_PREDEFINED_NAMES *InitVal,
222a9f12690SJung-uk Kim     ACPI_STRING                 *NewVal);
223313a0c13SJung-uk Kim #endif
224a9f12690SJung-uk Kim 
225313a0c13SJung-uk Kim #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsTableOverride
226a9f12690SJung-uk Kim ACPI_STATUS
227a9f12690SJung-uk Kim AcpiOsTableOverride (
228a9f12690SJung-uk Kim     ACPI_TABLE_HEADER       *ExistingTable,
229a9f12690SJung-uk Kim     ACPI_TABLE_HEADER       **NewTable);
230313a0c13SJung-uk Kim #endif
231a9f12690SJung-uk Kim 
232313a0c13SJung-uk Kim #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsPhysicalTableOverride
233a159c266SJung-uk Kim ACPI_STATUS
234a159c266SJung-uk Kim AcpiOsPhysicalTableOverride (
235a159c266SJung-uk Kim     ACPI_TABLE_HEADER       *ExistingTable,
236a159c266SJung-uk Kim     ACPI_PHYSICAL_ADDRESS   *NewAddress,
237a159c266SJung-uk Kim     UINT32                  *NewTableLength);
238313a0c13SJung-uk Kim #endif
239a159c266SJung-uk Kim 
240a9f12690SJung-uk Kim 
241a9f12690SJung-uk Kim /*
242a9f12690SJung-uk Kim  * Spinlock primitives
243a9f12690SJung-uk Kim  */
244313a0c13SJung-uk Kim #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsCreateLock
245a9f12690SJung-uk Kim ACPI_STATUS
246a9f12690SJung-uk Kim AcpiOsCreateLock (
247a9f12690SJung-uk Kim     ACPI_SPINLOCK           *OutHandle);
2488ef1a331SJung-uk Kim #endif
249a9f12690SJung-uk Kim 
250313a0c13SJung-uk Kim #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsDeleteLock
251a9f12690SJung-uk Kim void
252a9f12690SJung-uk Kim AcpiOsDeleteLock (
253a9f12690SJung-uk Kim     ACPI_SPINLOCK           Handle);
254313a0c13SJung-uk Kim #endif
255a9f12690SJung-uk Kim 
256313a0c13SJung-uk Kim #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsAcquireLock
257a9f12690SJung-uk Kim ACPI_CPU_FLAGS
258a9f12690SJung-uk Kim AcpiOsAcquireLock (
259a9f12690SJung-uk Kim     ACPI_SPINLOCK           Handle);
260313a0c13SJung-uk Kim #endif
261a9f12690SJung-uk Kim 
262313a0c13SJung-uk Kim #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsReleaseLock
263a9f12690SJung-uk Kim void
264a9f12690SJung-uk Kim AcpiOsReleaseLock (
265a9f12690SJung-uk Kim     ACPI_SPINLOCK           Handle,
266a9f12690SJung-uk Kim     ACPI_CPU_FLAGS          Flags);
267313a0c13SJung-uk Kim #endif
268a9f12690SJung-uk Kim 
269a9f12690SJung-uk Kim 
270a9f12690SJung-uk Kim /*
271a9f12690SJung-uk Kim  * Semaphore primitives
272a9f12690SJung-uk Kim  */
273313a0c13SJung-uk Kim #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsCreateSemaphore
274a9f12690SJung-uk Kim ACPI_STATUS
275a9f12690SJung-uk Kim AcpiOsCreateSemaphore (
276a9f12690SJung-uk Kim     UINT32                  MaxUnits,
277a9f12690SJung-uk Kim     UINT32                  InitialUnits,
278a9f12690SJung-uk Kim     ACPI_SEMAPHORE          *OutHandle);
279313a0c13SJung-uk Kim #endif
280a9f12690SJung-uk Kim 
281313a0c13SJung-uk Kim #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsDeleteSemaphore
282a9f12690SJung-uk Kim ACPI_STATUS
283a9f12690SJung-uk Kim AcpiOsDeleteSemaphore (
284a9f12690SJung-uk Kim     ACPI_SEMAPHORE          Handle);
285313a0c13SJung-uk Kim #endif
286a9f12690SJung-uk Kim 
287313a0c13SJung-uk Kim #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsWaitSemaphore
288a9f12690SJung-uk Kim ACPI_STATUS
289a9f12690SJung-uk Kim AcpiOsWaitSemaphore (
290a9f12690SJung-uk Kim     ACPI_SEMAPHORE          Handle,
291a9f12690SJung-uk Kim     UINT32                  Units,
292a9f12690SJung-uk Kim     UINT16                  Timeout);
293313a0c13SJung-uk Kim #endif
294a9f12690SJung-uk Kim 
295313a0c13SJung-uk Kim #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsSignalSemaphore
296a9f12690SJung-uk Kim ACPI_STATUS
297a9f12690SJung-uk Kim AcpiOsSignalSemaphore (
298a9f12690SJung-uk Kim     ACPI_SEMAPHORE          Handle,
299a9f12690SJung-uk Kim     UINT32                  Units);
300313a0c13SJung-uk Kim #endif
301a9f12690SJung-uk Kim 
302a9f12690SJung-uk Kim 
303a9f12690SJung-uk Kim /*
304a9f12690SJung-uk Kim  * Mutex primitives. May be configured to use semaphores instead via
305a9f12690SJung-uk Kim  * ACPI_MUTEX_TYPE (see platform/acenv.h)
306a9f12690SJung-uk Kim  */
307a9f12690SJung-uk Kim #if (ACPI_MUTEX_TYPE != ACPI_BINARY_SEMAPHORE)
308a9f12690SJung-uk Kim 
309313a0c13SJung-uk Kim #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsCreateMutex
310a9f12690SJung-uk Kim ACPI_STATUS
311a9f12690SJung-uk Kim AcpiOsCreateMutex (
312a9f12690SJung-uk Kim     ACPI_MUTEX              *OutHandle);
313313a0c13SJung-uk Kim #endif
314a9f12690SJung-uk Kim 
315313a0c13SJung-uk Kim #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsDeleteMutex
316a9f12690SJung-uk Kim void
317a9f12690SJung-uk Kim AcpiOsDeleteMutex (
318a9f12690SJung-uk Kim     ACPI_MUTEX              Handle);
319313a0c13SJung-uk Kim #endif
320a9f12690SJung-uk Kim 
321313a0c13SJung-uk Kim #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsAcquireMutex
322a9f12690SJung-uk Kim ACPI_STATUS
323a9f12690SJung-uk Kim AcpiOsAcquireMutex (
324a9f12690SJung-uk Kim     ACPI_MUTEX              Handle,
325a9f12690SJung-uk Kim     UINT16                  Timeout);
326313a0c13SJung-uk Kim #endif
327a9f12690SJung-uk Kim 
328313a0c13SJung-uk Kim #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsReleaseMutex
329a9f12690SJung-uk Kim void
330a9f12690SJung-uk Kim AcpiOsReleaseMutex (
331a9f12690SJung-uk Kim     ACPI_MUTEX              Handle);
332a9f12690SJung-uk Kim #endif
333a9f12690SJung-uk Kim 
334313a0c13SJung-uk Kim #endif
335313a0c13SJung-uk Kim 
336a9f12690SJung-uk Kim 
337a9f12690SJung-uk Kim /*
338a9f12690SJung-uk Kim  * Memory allocation and mapping
339a9f12690SJung-uk Kim  */
340313a0c13SJung-uk Kim #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsAllocate
341a9f12690SJung-uk Kim void *
342a9f12690SJung-uk Kim AcpiOsAllocate (
343a9f12690SJung-uk Kim     ACPI_SIZE               Size);
344313a0c13SJung-uk Kim #endif
345a9f12690SJung-uk Kim 
346313a0c13SJung-uk Kim #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsAllocateZeroed
347313a0c13SJung-uk Kim void *
348313a0c13SJung-uk Kim AcpiOsAllocateZeroed (
349313a0c13SJung-uk Kim     ACPI_SIZE               Size);
350313a0c13SJung-uk Kim #endif
351313a0c13SJung-uk Kim 
352313a0c13SJung-uk Kim #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsFree
353a9f12690SJung-uk Kim void
354a9f12690SJung-uk Kim AcpiOsFree (
355a9f12690SJung-uk Kim     void *                  Memory);
356313a0c13SJung-uk Kim #endif
357a9f12690SJung-uk Kim 
358313a0c13SJung-uk Kim #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsMapMemory
359a9f12690SJung-uk Kim void *
360a9f12690SJung-uk Kim AcpiOsMapMemory (
361a9f12690SJung-uk Kim     ACPI_PHYSICAL_ADDRESS   Where,
362a9f12690SJung-uk Kim     ACPI_SIZE               Length);
363313a0c13SJung-uk Kim #endif
364a9f12690SJung-uk Kim 
365313a0c13SJung-uk Kim #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsUnmapMemory
366a9f12690SJung-uk Kim void
367a9f12690SJung-uk Kim AcpiOsUnmapMemory (
368a9f12690SJung-uk Kim     void                    *LogicalAddress,
369a9f12690SJung-uk Kim     ACPI_SIZE               Size);
370313a0c13SJung-uk Kim #endif
371a9f12690SJung-uk Kim 
372313a0c13SJung-uk Kim #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsGetPhysicalAddress
373a9f12690SJung-uk Kim ACPI_STATUS
374a9f12690SJung-uk Kim AcpiOsGetPhysicalAddress (
375a9f12690SJung-uk Kim     void                    *LogicalAddress,
376a9f12690SJung-uk Kim     ACPI_PHYSICAL_ADDRESS   *PhysicalAddress);
377313a0c13SJung-uk Kim #endif
378a9f12690SJung-uk Kim 
379a9f12690SJung-uk Kim 
380a9f12690SJung-uk Kim /*
381a9f12690SJung-uk Kim  * Memory/Object Cache
382a9f12690SJung-uk Kim  */
383313a0c13SJung-uk Kim #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsCreateCache
384a9f12690SJung-uk Kim ACPI_STATUS
385a9f12690SJung-uk Kim AcpiOsCreateCache (
386a9f12690SJung-uk Kim     char                    *CacheName,
387a9f12690SJung-uk Kim     UINT16                  ObjectSize,
388a9f12690SJung-uk Kim     UINT16                  MaxDepth,
389a9f12690SJung-uk Kim     ACPI_CACHE_T            **ReturnCache);
390313a0c13SJung-uk Kim #endif
391a9f12690SJung-uk Kim 
392313a0c13SJung-uk Kim #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsDeleteCache
393a9f12690SJung-uk Kim ACPI_STATUS
394a9f12690SJung-uk Kim AcpiOsDeleteCache (
395a9f12690SJung-uk Kim     ACPI_CACHE_T            *Cache);
396313a0c13SJung-uk Kim #endif
397a9f12690SJung-uk Kim 
398313a0c13SJung-uk Kim #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsPurgeCache
399a9f12690SJung-uk Kim ACPI_STATUS
400a9f12690SJung-uk Kim AcpiOsPurgeCache (
401a9f12690SJung-uk Kim     ACPI_CACHE_T            *Cache);
402313a0c13SJung-uk Kim #endif
403a9f12690SJung-uk Kim 
404313a0c13SJung-uk Kim #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsAcquireObject
405a9f12690SJung-uk Kim void *
406a9f12690SJung-uk Kim AcpiOsAcquireObject (
407a9f12690SJung-uk Kim     ACPI_CACHE_T            *Cache);
408313a0c13SJung-uk Kim #endif
409a9f12690SJung-uk Kim 
410313a0c13SJung-uk Kim #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsReleaseObject
411a9f12690SJung-uk Kim ACPI_STATUS
412a9f12690SJung-uk Kim AcpiOsReleaseObject (
413a9f12690SJung-uk Kim     ACPI_CACHE_T            *Cache,
414a9f12690SJung-uk Kim     void                    *Object);
415313a0c13SJung-uk Kim #endif
416a9f12690SJung-uk Kim 
417a9f12690SJung-uk Kim 
418a9f12690SJung-uk Kim /*
419a9f12690SJung-uk Kim  * Interrupt handlers
420a9f12690SJung-uk Kim  */
421313a0c13SJung-uk Kim #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsInstallInterruptHandler
422a9f12690SJung-uk Kim ACPI_STATUS
423a9f12690SJung-uk Kim AcpiOsInstallInterruptHandler (
424a9f12690SJung-uk Kim     UINT32                  InterruptNumber,
425a9f12690SJung-uk Kim     ACPI_OSD_HANDLER        ServiceRoutine,
426a9f12690SJung-uk Kim     void                    *Context);
427313a0c13SJung-uk Kim #endif
428a9f12690SJung-uk Kim 
429313a0c13SJung-uk Kim #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsRemoveInterruptHandler
430a9f12690SJung-uk Kim ACPI_STATUS
431a9f12690SJung-uk Kim AcpiOsRemoveInterruptHandler (
432a9f12690SJung-uk Kim     UINT32                  InterruptNumber,
433a9f12690SJung-uk Kim     ACPI_OSD_HANDLER        ServiceRoutine);
434313a0c13SJung-uk Kim #endif
435a9f12690SJung-uk Kim 
436a9f12690SJung-uk Kim 
437a9f12690SJung-uk Kim /*
438a9f12690SJung-uk Kim  * Threads and Scheduling
439a9f12690SJung-uk Kim  */
440313a0c13SJung-uk Kim #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsGetThreadId
441a9f12690SJung-uk Kim ACPI_THREAD_ID
442a9f12690SJung-uk Kim AcpiOsGetThreadId (
443a9f12690SJung-uk Kim     void);
444313a0c13SJung-uk Kim #endif
445a9f12690SJung-uk Kim 
446313a0c13SJung-uk Kim #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsExecute
447a9f12690SJung-uk Kim ACPI_STATUS
448a9f12690SJung-uk Kim AcpiOsExecute (
449a9f12690SJung-uk Kim     ACPI_EXECUTE_TYPE       Type,
450a9f12690SJung-uk Kim     ACPI_OSD_EXEC_CALLBACK  Function,
451a9f12690SJung-uk Kim     void                    *Context);
452313a0c13SJung-uk Kim #endif
453a9f12690SJung-uk Kim 
454313a0c13SJung-uk Kim #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsWaitEventsComplete
455a9f12690SJung-uk Kim void
456a9f12690SJung-uk Kim AcpiOsWaitEventsComplete (
457a7a3b383SJung-uk Kim     void);
458313a0c13SJung-uk Kim #endif
459a9f12690SJung-uk Kim 
460313a0c13SJung-uk Kim #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsSleep
461a9f12690SJung-uk Kim void
462a9f12690SJung-uk Kim AcpiOsSleep (
4639a179dd8SJung-uk Kim     UINT64                  Milliseconds);
464313a0c13SJung-uk Kim #endif
465a9f12690SJung-uk Kim 
466313a0c13SJung-uk Kim #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsStall
467a9f12690SJung-uk Kim void
468a9f12690SJung-uk Kim AcpiOsStall (
469a9f12690SJung-uk Kim     UINT32                  Microseconds);
470313a0c13SJung-uk Kim #endif
471a9f12690SJung-uk Kim 
472a9f12690SJung-uk Kim 
473a9f12690SJung-uk Kim /*
474a9f12690SJung-uk Kim  * Platform and hardware-independent I/O interfaces
475a9f12690SJung-uk Kim  */
476313a0c13SJung-uk Kim #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsReadPort
477a9f12690SJung-uk Kim ACPI_STATUS
478a9f12690SJung-uk Kim AcpiOsReadPort (
479a9f12690SJung-uk Kim     ACPI_IO_ADDRESS         Address,
480a9f12690SJung-uk Kim     UINT32                  *Value,
481a9f12690SJung-uk Kim     UINT32                  Width);
482313a0c13SJung-uk Kim #endif
483a9f12690SJung-uk Kim 
484313a0c13SJung-uk Kim #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsWritePort
485a9f12690SJung-uk Kim ACPI_STATUS
486a9f12690SJung-uk Kim AcpiOsWritePort (
487a9f12690SJung-uk Kim     ACPI_IO_ADDRESS         Address,
488a9f12690SJung-uk Kim     UINT32                  Value,
489a9f12690SJung-uk Kim     UINT32                  Width);
490313a0c13SJung-uk Kim #endif
491a9f12690SJung-uk Kim 
492a9f12690SJung-uk Kim 
493a9f12690SJung-uk Kim /*
494a9f12690SJung-uk Kim  * Platform and hardware-independent physical memory interfaces
495a9f12690SJung-uk Kim  */
496313a0c13SJung-uk Kim #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsReadMemory
497a9f12690SJung-uk Kim ACPI_STATUS
498a9f12690SJung-uk Kim AcpiOsReadMemory (
499a9f12690SJung-uk Kim     ACPI_PHYSICAL_ADDRESS   Address,
500a159c266SJung-uk Kim     UINT64                  *Value,
501a9f12690SJung-uk Kim     UINT32                  Width);
502313a0c13SJung-uk Kim #endif
503a9f12690SJung-uk Kim 
504313a0c13SJung-uk Kim #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsWriteMemory
505a9f12690SJung-uk Kim ACPI_STATUS
506a9f12690SJung-uk Kim AcpiOsWriteMemory (
507a9f12690SJung-uk Kim     ACPI_PHYSICAL_ADDRESS   Address,
508a159c266SJung-uk Kim     UINT64                  Value,
509a9f12690SJung-uk Kim     UINT32                  Width);
510313a0c13SJung-uk Kim #endif
511a9f12690SJung-uk Kim 
512a9f12690SJung-uk Kim 
513a9f12690SJung-uk Kim /*
514a9f12690SJung-uk Kim  * Platform and hardware-independent PCI configuration space access
515a9f12690SJung-uk Kim  * Note: Can't use "Register" as a parameter, changed to "Reg" --
516a9f12690SJung-uk Kim  * certain compilers complain.
517a9f12690SJung-uk Kim  */
518313a0c13SJung-uk Kim #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsReadPciConfiguration
519a9f12690SJung-uk Kim ACPI_STATUS
520a9f12690SJung-uk Kim AcpiOsReadPciConfiguration (
521a9f12690SJung-uk Kim     ACPI_PCI_ID             *PciId,
522a9f12690SJung-uk Kim     UINT32                  Reg,
523709fac06SJung-uk Kim     UINT64                  *Value,
524a9f12690SJung-uk Kim     UINT32                  Width);
525313a0c13SJung-uk Kim #endif
526a9f12690SJung-uk Kim 
527313a0c13SJung-uk Kim #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsWritePciConfiguration
528a9f12690SJung-uk Kim ACPI_STATUS
529a9f12690SJung-uk Kim AcpiOsWritePciConfiguration (
530a9f12690SJung-uk Kim     ACPI_PCI_ID             *PciId,
531a9f12690SJung-uk Kim     UINT32                  Reg,
5329a179dd8SJung-uk Kim     UINT64                  Value,
533a9f12690SJung-uk Kim     UINT32                  Width);
534313a0c13SJung-uk Kim #endif
535a9f12690SJung-uk Kim 
536a9f12690SJung-uk Kim 
537a9f12690SJung-uk Kim /*
538a9f12690SJung-uk Kim  * Miscellaneous
539a9f12690SJung-uk Kim  */
540313a0c13SJung-uk Kim #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsReadable
541a9f12690SJung-uk Kim BOOLEAN
542a9f12690SJung-uk Kim AcpiOsReadable (
543a9f12690SJung-uk Kim     void                    *Pointer,
544a9f12690SJung-uk Kim     ACPI_SIZE               Length);
545313a0c13SJung-uk Kim #endif
546a9f12690SJung-uk Kim 
547313a0c13SJung-uk Kim #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsWritable
548a9f12690SJung-uk Kim BOOLEAN
549a9f12690SJung-uk Kim AcpiOsWritable (
550a9f12690SJung-uk Kim     void                    *Pointer,
551a9f12690SJung-uk Kim     ACPI_SIZE               Length);
552313a0c13SJung-uk Kim #endif
553a9f12690SJung-uk Kim 
554313a0c13SJung-uk Kim #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsGetTimer
555a9f12690SJung-uk Kim UINT64
556a9f12690SJung-uk Kim AcpiOsGetTimer (
557a9f12690SJung-uk Kim     void);
558313a0c13SJung-uk Kim #endif
559a9f12690SJung-uk Kim 
560313a0c13SJung-uk Kim #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsSignal
561a9f12690SJung-uk Kim ACPI_STATUS
562a9f12690SJung-uk Kim AcpiOsSignal (
563a9f12690SJung-uk Kim     UINT32                  Function,
564a9f12690SJung-uk Kim     void                    *Info);
565313a0c13SJung-uk Kim #endif
566a9f12690SJung-uk Kim 
56728482948SJung-uk Kim #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsEnterSleep
56828482948SJung-uk Kim ACPI_STATUS
56928482948SJung-uk Kim AcpiOsEnterSleep (
57028482948SJung-uk Kim     UINT8                   SleepState,
57128482948SJung-uk Kim     UINT32                  RegaValue,
57228482948SJung-uk Kim     UINT32                  RegbValue);
57328482948SJung-uk Kim #endif
57428482948SJung-uk Kim 
575a9f12690SJung-uk Kim 
576a9f12690SJung-uk Kim /*
577a9f12690SJung-uk Kim  * Debug print routines
578a9f12690SJung-uk Kim  */
579313a0c13SJung-uk Kim #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsPrintf
580a009b7dcSJung-uk Kim ACPI_PRINTF_LIKE (1)
581a9f12690SJung-uk Kim void ACPI_INTERNAL_VAR_XFACE
582a9f12690SJung-uk Kim AcpiOsPrintf (
583a9f12690SJung-uk Kim     const char              *Format,
584a9f12690SJung-uk Kim     ...);
585313a0c13SJung-uk Kim #endif
586a9f12690SJung-uk Kim 
587313a0c13SJung-uk Kim #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsVprintf
588a9f12690SJung-uk Kim void
589a9f12690SJung-uk Kim AcpiOsVprintf (
590a9f12690SJung-uk Kim     const char              *Format,
591a9f12690SJung-uk Kim     va_list                 Args);
592313a0c13SJung-uk Kim #endif
593a9f12690SJung-uk Kim 
594313a0c13SJung-uk Kim #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsRedirectOutput
595a9f12690SJung-uk Kim void
596a9f12690SJung-uk Kim AcpiOsRedirectOutput (
597a9f12690SJung-uk Kim     void                    *Destination);
598313a0c13SJung-uk Kim #endif
599a9f12690SJung-uk Kim 
600a9f12690SJung-uk Kim 
601a9f12690SJung-uk Kim /*
60228482948SJung-uk Kim  * Debug IO
603a9f12690SJung-uk Kim  */
604313a0c13SJung-uk Kim #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsGetLine
60542e58c03SJung-uk Kim ACPI_STATUS
606a9f12690SJung-uk Kim AcpiOsGetLine (
60742e58c03SJung-uk Kim     char                    *Buffer,
60842e58c03SJung-uk Kim     UINT32                  BufferLength,
60942e58c03SJung-uk Kim     UINT32                  *BytesRead);
610313a0c13SJung-uk Kim #endif
611a9f12690SJung-uk Kim 
61228482948SJung-uk Kim #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsInitializeDebugger
61328482948SJung-uk Kim ACPI_STATUS
61428482948SJung-uk Kim AcpiOsInitializeDebugger (
61528482948SJung-uk Kim     void);
61628482948SJung-uk Kim #endif
61728482948SJung-uk Kim 
61828482948SJung-uk Kim #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsTerminateDebugger
61928482948SJung-uk Kim void
62028482948SJung-uk Kim AcpiOsTerminateDebugger (
62128482948SJung-uk Kim     void);
62228482948SJung-uk Kim #endif
62328482948SJung-uk Kim 
62428482948SJung-uk Kim #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsWaitCommandReady
62528482948SJung-uk Kim ACPI_STATUS
62628482948SJung-uk Kim AcpiOsWaitCommandReady (
62728482948SJung-uk Kim     void);
62828482948SJung-uk Kim #endif
62928482948SJung-uk Kim 
63028482948SJung-uk Kim #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsNotifyCommandComplete
63128482948SJung-uk Kim ACPI_STATUS
63228482948SJung-uk Kim AcpiOsNotifyCommandComplete (
63328482948SJung-uk Kim     void);
63428482948SJung-uk Kim #endif
63528482948SJung-uk Kim 
636493deb39SJung-uk Kim #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsTracePoint
637493deb39SJung-uk Kim void
638493deb39SJung-uk Kim AcpiOsTracePoint (
639493deb39SJung-uk Kim     ACPI_TRACE_EVENT_TYPE   Type,
640493deb39SJung-uk Kim     BOOLEAN                 Begin,
641493deb39SJung-uk Kim     UINT8                   *Aml,
642493deb39SJung-uk Kim     char                    *Pathname);
643493deb39SJung-uk Kim #endif
644493deb39SJung-uk Kim 
645a9f12690SJung-uk Kim 
646a9f12690SJung-uk Kim /*
647a9d8d09cSJung-uk Kim  * Obtain ACPI table(s)
648a9d8d09cSJung-uk Kim  */
649313a0c13SJung-uk Kim #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsGetTableByName
650a9d8d09cSJung-uk Kim ACPI_STATUS
651a9d8d09cSJung-uk Kim AcpiOsGetTableByName (
652a9d8d09cSJung-uk Kim     char                    *Signature,
653a9d8d09cSJung-uk Kim     UINT32                  Instance,
654a9d8d09cSJung-uk Kim     ACPI_TABLE_HEADER       **Table,
655a9d8d09cSJung-uk Kim     ACPI_PHYSICAL_ADDRESS   *Address);
656313a0c13SJung-uk Kim #endif
657a9d8d09cSJung-uk Kim 
658313a0c13SJung-uk Kim #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsGetTableByIndex
659a9d8d09cSJung-uk Kim ACPI_STATUS
660a9d8d09cSJung-uk Kim AcpiOsGetTableByIndex (
661a9d8d09cSJung-uk Kim     UINT32                  Index,
662a9d8d09cSJung-uk Kim     ACPI_TABLE_HEADER       **Table,
66379c6d946SJung-uk Kim     UINT32                  *Instance,
664a9d8d09cSJung-uk Kim     ACPI_PHYSICAL_ADDRESS   *Address);
665313a0c13SJung-uk Kim #endif
666a9d8d09cSJung-uk Kim 
667313a0c13SJung-uk Kim #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsGetTableByAddress
668a9d8d09cSJung-uk Kim ACPI_STATUS
669a9d8d09cSJung-uk Kim AcpiOsGetTableByAddress (
670a9d8d09cSJung-uk Kim     ACPI_PHYSICAL_ADDRESS   Address,
671a9d8d09cSJung-uk Kim     ACPI_TABLE_HEADER       **Table);
672313a0c13SJung-uk Kim #endif
673a9d8d09cSJung-uk Kim 
674a9d8d09cSJung-uk Kim 
675a9d8d09cSJung-uk Kim /*
676a9f12690SJung-uk Kim  * Directory manipulation
677a9f12690SJung-uk Kim  */
678313a0c13SJung-uk Kim #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsOpenDirectory
679a9f12690SJung-uk Kim void *
680a9f12690SJung-uk Kim AcpiOsOpenDirectory (
681a9f12690SJung-uk Kim     char                    *Pathname,
682a9f12690SJung-uk Kim     char                    *WildcardSpec,
683a9f12690SJung-uk Kim     char                    RequestedFileType);
684313a0c13SJung-uk Kim #endif
685a9f12690SJung-uk Kim 
686a9f12690SJung-uk Kim /* RequesteFileType values */
687a9f12690SJung-uk Kim 
688a9f12690SJung-uk Kim #define REQUEST_FILE_ONLY                   0
689a9f12690SJung-uk Kim #define REQUEST_DIR_ONLY                    1
690a9f12690SJung-uk Kim 
691a9f12690SJung-uk Kim 
692313a0c13SJung-uk Kim #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsGetNextFilename
693a9f12690SJung-uk Kim char *
694a9f12690SJung-uk Kim AcpiOsGetNextFilename (
695a9f12690SJung-uk Kim     void                    *DirHandle);
696313a0c13SJung-uk Kim #endif
697a9f12690SJung-uk Kim 
698313a0c13SJung-uk Kim #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsCloseDirectory
699a9f12690SJung-uk Kim void
700a9f12690SJung-uk Kim AcpiOsCloseDirectory (
701a9f12690SJung-uk Kim     void                    *DirHandle);
702313a0c13SJung-uk Kim #endif
703313a0c13SJung-uk Kim 
704313a0c13SJung-uk Kim 
705a9f12690SJung-uk Kim #endif /* __ACPIOSXF_H__ */
706