XenevaOS
Loading...
Searching...
No Matches
acpiosxf.h
Go to the documentation of this file.
1/******************************************************************************
2 *
3 * Name: acpiosxf.h - All interfaces to the OS Services Layer (OSL). These
4 * interfaces must be implemented by OSL to interface the
5 * ACPI components to the host operating system.
6 *
7 *****************************************************************************/
8
9/******************************************************************************
10 *
11 * 1. Copyright Notice
12 *
13 * Some or all of this work - Copyright (c) 1999 - 2019, Intel Corp.
14 * All rights reserved.
15 *
16 * 2. License
17 *
18 * 2.1. This is your license from Intel Corp. under its intellectual property
19 * rights. You may have additional license terms from the party that provided
20 * you this software, covering your right to use that party's intellectual
21 * property rights.
22 *
23 * 2.2. Intel grants, free of charge, to any person ("Licensee") obtaining a
24 * copy of the source code appearing in this file ("Covered Code") an
25 * irrevocable, perpetual, worldwide license under Intel's copyrights in the
26 * base code distributed originally by Intel ("Original Intel Code") to copy,
27 * make derivatives, distribute, use and display any portion of the Covered
28 * Code in any form, with the right to sublicense such rights; and
29 *
30 * 2.3. Intel grants Licensee a non-exclusive and non-transferable patent
31 * license (with the right to sublicense), under only those claims of Intel
32 * patents that are infringed by the Original Intel Code, to make, use, sell,
33 * offer to sell, and import the Covered Code and derivative works thereof
34 * solely to the minimum extent necessary to exercise the above copyright
35 * license, and in no event shall the patent license extend to any additions
36 * to or modifications of the Original Intel Code. No other license or right
37 * is granted directly or by implication, estoppel or otherwise;
38 *
39 * The above copyright and patent license is granted only if the following
40 * conditions are met:
41 *
42 * 3. Conditions
43 *
44 * 3.1. Redistribution of Source with Rights to Further Distribute Source.
45 * Redistribution of source code of any substantial portion of the Covered
46 * Code or modification with rights to further distribute source must include
47 * the above Copyright Notice, the above License, this list of Conditions,
48 * and the following Disclaimer and Export Compliance provision. In addition,
49 * Licensee must cause all Covered Code to which Licensee contributes to
50 * contain a file documenting the changes Licensee made to create that Covered
51 * Code and the date of any change. Licensee must include in that file the
52 * documentation of any changes made by any predecessor Licensee. Licensee
53 * must include a prominent statement that the modification is derived,
54 * directly or indirectly, from Original Intel Code.
55 *
56 * 3.2. Redistribution of Source with no Rights to Further Distribute Source.
57 * Redistribution of source code of any substantial portion of the Covered
58 * Code or modification without rights to further distribute source must
59 * include the following Disclaimer and Export Compliance provision in the
60 * documentation and/or other materials provided with distribution. In
61 * addition, Licensee may not authorize further sublicense of source of any
62 * portion of the Covered Code, and must include terms to the effect that the
63 * license from Licensee to its licensee is limited to the intellectual
64 * property embodied in the software Licensee provides to its licensee, and
65 * not to intellectual property embodied in modifications its licensee may
66 * make.
67 *
68 * 3.3. Redistribution of Executable. Redistribution in executable form of any
69 * substantial portion of the Covered Code or modification must reproduce the
70 * above Copyright Notice, and the following Disclaimer and Export Compliance
71 * provision in the documentation and/or other materials provided with the
72 * distribution.
73 *
74 * 3.4. Intel retains all right, title, and interest in and to the Original
75 * Intel Code.
76 *
77 * 3.5. Neither the name Intel nor any other trademark owned or controlled by
78 * Intel shall be used in advertising or otherwise to promote the sale, use or
79 * other dealings in products derived from or relating to the Covered Code
80 * without prior written authorization from Intel.
81 *
82 * 4. Disclaimer and Export Compliance
83 *
84 * 4.1. INTEL MAKES NO WARRANTY OF ANY KIND REGARDING ANY SOFTWARE PROVIDED
85 * HERE. ANY SOFTWARE ORIGINATING FROM INTEL OR DERIVED FROM INTEL SOFTWARE
86 * IS PROVIDED "AS IS," AND INTEL WILL NOT PROVIDE ANY SUPPORT, ASSISTANCE,
87 * INSTALLATION, TRAINING OR OTHER SERVICES. INTEL WILL NOT PROVIDE ANY
88 * UPDATES, ENHANCEMENTS OR EXTENSIONS. INTEL SPECIFICALLY DISCLAIMS ANY
89 * IMPLIED WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT AND FITNESS FOR A
90 * PARTICULAR PURPOSE.
91 *
92 * 4.2. IN NO EVENT SHALL INTEL HAVE ANY LIABILITY TO LICENSEE, ITS LICENSEES
93 * OR ANY OTHER THIRD PARTY, FOR ANY LOST PROFITS, LOST DATA, LOSS OF USE OR
94 * COSTS OF PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, OR FOR ANY INDIRECT,
95 * SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THIS AGREEMENT, UNDER ANY
96 * CAUSE OF ACTION OR THEORY OF LIABILITY, AND IRRESPECTIVE OF WHETHER INTEL
97 * HAS ADVANCE NOTICE OF THE POSSIBILITY OF SUCH DAMAGES. THESE LIMITATIONS
98 * SHALL APPLY NOTWITHSTANDING THE FAILURE OF THE ESSENTIAL PURPOSE OF ANY
99 * LIMITED REMEDY.
100 *
101 * 4.3. Licensee shall not export, either directly or indirectly, any of this
102 * software or system incorporating such software without first obtaining any
103 * required license or other approval from the U. S. Department of Commerce or
104 * any other agency or department of the United States Government. In the
105 * event Licensee exports any such software from the United States or
106 * re-exports any such software from a foreign destination, Licensee shall
107 * ensure that the distribution and export/re-export of the software is in
108 * compliance with all laws, regulations, orders, or other restrictions of the
109 * U.S. Export Administration Regulations. Licensee agrees that neither it nor
110 * any of its subsidiaries will export/re-export any technical data, process,
111 * software, or service, directly or indirectly, to any country for which the
112 * United States government or any agency thereof requires an export license,
113 * other governmental approval, or letter of assurance, without first obtaining
114 * such license, approval or letter.
115 *
116 *****************************************************************************
117 *
118 * Alternatively, you may choose to be licensed under the terms of the
119 * following license:
120 *
121 * Redistribution and use in source and binary forms, with or without
122 * modification, are permitted provided that the following conditions
123 * are met:
124 * 1. Redistributions of source code must retain the above copyright
125 * notice, this list of conditions, and the following disclaimer,
126 * without modification.
127 * 2. Redistributions in binary form must reproduce at minimum a disclaimer
128 * substantially similar to the "NO WARRANTY" disclaimer below
129 * ("Disclaimer") and any redistribution must be conditioned upon
130 * including a substantially similar Disclaimer requirement for further
131 * binary redistribution.
132 * 3. Neither the names of the above-listed copyright holders nor the names
133 * of any contributors may be used to endorse or promote products derived
134 * from this software without specific prior written permission.
135 *
136 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
137 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
138 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
139 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
140 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
141 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
142 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
143 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
144 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
145 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
146 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
147 *
148 * Alternatively, you may choose to be licensed under the terms of the
149 * GNU General Public License ("GPL") version 2 as published by the Free
150 * Software Foundation.
151 *
152 *****************************************************************************/
153
154#ifndef __ACPIOSXF_H__
155#define __ACPIOSXF_H__
156
157#include "platform/acenv.h"
158#include "actypes.h"
159
160
161/* Types for AcpiOsExecute */
162
174
175#define ACPI_NO_UNIT_LIMIT ((UINT32) -1)
176#define ACPI_MUTEX_SEM 1
177
178
179/* Functions for AcpiOsSignal */
180
181#define ACPI_SIGNAL_FATAL 0
182#define ACPI_SIGNAL_BREAKPOINT 1
183
191
192
193/*
194 * OSL Initialization and shutdown primitives
195 */
196#ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsInitialize
199 void);
200#endif
201
202#ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsTerminate
205 void);
206#endif
207
208
209/*
210 * ACPI Table interfaces
211 */
212#ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsGetRootPointer
213OS_DLL_FUNC ACPI_PHYSICAL_ADDRESS
215 void);
216#endif
217
218#ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsPredefinedOverride
221 const ACPI_PREDEFINED_NAMES *InitVal,
222 ACPI_STRING *NewVal);
223#endif
224
225#ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsTableOverride
228 ACPI_TABLE_HEADER *ExistingTable,
229 ACPI_TABLE_HEADER **NewTable);
230#endif
231
232#ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsPhysicalTableOverride
235 ACPI_TABLE_HEADER *ExistingTable,
236 ACPI_PHYSICAL_ADDRESS *NewAddress,
237 UINT32 *NewTableLength);
238#endif
239
240
241/*
242 * Spinlock primitives
243 */
244#ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsCreateLock
247 ACPI_SPINLOCK *OutHandle);
248#endif
249
250#ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsDeleteLock
251OS_DLL_FUNC void
253 ACPI_SPINLOCK Handle);
254#endif
255
256#ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsAcquireLock
259 ACPI_SPINLOCK Handle);
260#endif
261
262#ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsReleaseLock
263OS_DLL_FUNC void
265 ACPI_SPINLOCK Handle,
267#endif
268
269
270/*
271 * Semaphore primitives
272 */
273#ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsCreateSemaphore
276 UINT32 MaxUnits,
277 UINT32 InitialUnits,
278 ACPI_SEMAPHORE *OutHandle);
279#endif
280
281#ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsDeleteSemaphore
284 ACPI_SEMAPHORE Handle);
285#endif
286
287#ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsWaitSemaphore
290 ACPI_SEMAPHORE Handle,
291 UINT32 Units,
292 UINT16 Timeout);
293#endif
294
295#ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsSignalSemaphore
298 ACPI_SEMAPHORE Handle,
299 UINT32 Units);
300#endif
301
302
303/*
304 * Mutex primitives. May be configured to use semaphores instead via
305 * ACPI_MUTEX_TYPE (see platform/acenv.h)
306 */
307#if (ACPI_MUTEX_TYPE != ACPI_BINARY_SEMAPHORE)
308
309#ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsCreateMutex
312 ACPI_MUTEX *OutHandle);
313#endif
314
315#ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsDeleteMutex
316OS_DLL_FUNC void
318 ACPI_MUTEX Handle);
319#endif
320
321#ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsAcquireMutex
324 ACPI_MUTEX Handle,
325 UINT16 Timeout);
326#endif
327
328#ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsReleaseMutex
329OS_DLL_FUNC void
331 ACPI_MUTEX Handle);
332#endif
333
334#endif
335
336
337/*
338 * Memory allocation and mapping
339 */
340#ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsAllocate
341OS_DLL_FUNC void *
343 ACPI_SIZE Size);
344#endif
345
346#ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsAllocateZeroed
347void *
349 ACPI_SIZE Size);
350#endif
351
352#ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsFree
353OS_DLL_FUNC void
355 void * Memory);
356#endif
357
358#ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsMapMemory
359OS_DLL_FUNC void *
361 ACPI_PHYSICAL_ADDRESS Where,
362 ACPI_SIZE Length);
363#endif
364
365#ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsUnmapMemory
366OS_DLL_FUNC void
368 void *LogicalAddress,
369 ACPI_SIZE Size);
370#endif
371
372#ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsGetPhysicalAddress
375 void *LogicalAddress,
376 ACPI_PHYSICAL_ADDRESS *PhysicalAddress);
377#endif
378
379
380/*
381 * Memory/Object Cache
382 */
383#ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsCreateCache
384#ifndef ACPI_USE_LOCAL_CACHE
386#endif
389 char *CacheName,
390 UINT16 ObjectSize,
392 ACPI_CACHE_T **ReturnCache);
393#endif
394
395#ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsDeleteCache
396#ifndef ACPI_USE_LOCAL_CACHE
398#endif
401 ACPI_CACHE_T *Cache);
402#endif
403
404#ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsPurgeCache
405#ifndef ACPI_USE_LOCAL_CACHE
407#endif
410 ACPI_CACHE_T *Cache);
411#endif
412
413#ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsAcquireObject
414#ifndef ACPI_USE_LOCAL_CACHE
416#endif
417void *
419 ACPI_CACHE_T *Cache);
420#endif
421
422#ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsReleaseObject
423#ifndef ACPI_USE_LOCAL_CACHE
425#endif
428 ACPI_CACHE_T *Cache,
429 void *Object);
430#endif
431
432
433/*
434 * Interrupt handlers
435 */
436#ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsInstallInterruptHandler
440 ACPI_OSD_HANDLER ServiceRoutine,
441 void *Context);
442#endif
443
444#ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsRemoveInterruptHandler
448 ACPI_OSD_HANDLER ServiceRoutine);
449#endif
450
451
452/*
453 * Threads and Scheduling
454 */
455#ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsGetThreadId
458 void);
459#endif
460
461#ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsExecute
465 ACPI_OSD_EXEC_CALLBACK Function,
466 void *Context);
467#endif
468
469#ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsWaitEventsComplete
470OS_DLL_FUNC void
472 void);
473#endif
474
475#ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsSleep
476OS_DLL_FUNC void
478 UINT64 Milliseconds);
479#endif
480
481#ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsStall
482OS_DLL_FUNC void
484 UINT32 Microseconds);
485#endif
486
487
488/*
489 * Platform and hardware-independent I/O interfaces
490 */
491#ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsReadPort
494 ACPI_IO_ADDRESS Address,
495 UINT32 *Value,
496 UINT32 Width);
497#endif
498
499#ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsWritePort
502 ACPI_IO_ADDRESS Address,
503 UINT32 Value,
504 UINT32 Width);
505#endif
506
507
508/*
509 * Platform and hardware-independent physical memory interfaces
510 */
511#ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsReadMemory
514 ACPI_PHYSICAL_ADDRESS Address,
515 UINT64 *Value,
516 UINT32 Width);
517#endif
518
519#ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsWriteMemory
522 ACPI_PHYSICAL_ADDRESS Address,
523 UINT64 Value,
524 UINT32 Width);
525#endif
526
527
528/*
529 * Platform and hardware-independent PCI configuration space access
530 * Note: Can't use "Register" as a parameter, changed to "Reg" --
531 * certain compilers complain.
532 */
533#ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsReadPciConfiguration
536 ACPI_PCI_ID *PciId,
537 UINT32 Reg,
538 UINT64 *Value,
539 UINT32 Width);
540#endif
541
542#ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsWritePciConfiguration
545 ACPI_PCI_ID *PciId,
546 UINT32 Reg,
547 UINT64 Value,
548 UINT32 Width);
549#endif
550
551
552/*
553 * Miscellaneous
554 */
555#ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsReadable
558 void *Pointer,
559 ACPI_SIZE Length);
560#endif
561
562#ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsWritable
565 void *Pointer,
566 ACPI_SIZE Length);
567#endif
568
569#ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsGetTimer
572 void);
573#endif
574
575#ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsSignal
578 UINT32 Function,
579 void *Info);
580#endif
581
582#ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsEnterSleep
585 UINT8 SleepState,
586 UINT32 RegaValue,
587 UINT32 RegbValue);
588#endif
589
590
591/*
592 * Debug print routines
593 */
594#ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsPrintf
597 const char *Format,
598 ...);
599#endif
600
601#ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsVprintf
602OS_DLL_FUNC void
604 const char *Format,
605 va_list Args);
606#endif
607
608#ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsRedirectOutput
609void
611 void *Destination);
612#endif
613
614
615/*
616 * Debug IO
617 */
618#ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsGetLine
621 char *Buffer,
622 UINT32 BufferLength,
623 UINT32 *BytesRead);
624#endif
625
626#ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsInitializeDebugger
629 void);
630#endif
631
632#ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsTerminateDebugger
633void
635 void);
636#endif
637
638#ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsWaitCommandReady
641 void);
642#endif
643
644#ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsNotifyCommandComplete
647 void);
648#endif
649
650#ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsTracePoint
651void
655 UINT8 *Aml,
656 char *Pathname);
657#endif
658
659
660/*
661 * Obtain ACPI table(s)
662 */
663#ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsGetTableByName
666 char *Signature,
668 ACPI_TABLE_HEADER **Table,
669 ACPI_PHYSICAL_ADDRESS *Address);
670#endif
671
672#ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsGetTableByIndex
675 UINT32 Index,
676 ACPI_TABLE_HEADER **Table,
678 ACPI_PHYSICAL_ADDRESS *Address);
679#endif
680
681#ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsGetTableByAddress
684 ACPI_PHYSICAL_ADDRESS Address,
685 ACPI_TABLE_HEADER **Table);
686#endif
687
688
689/*
690 * Directory manipulation
691 */
692#ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsOpenDirectory
693void *
695 char *Pathname,
696 char *WildcardSpec,
697 char RequestedFileType);
698#endif
699
700/* RequesteFileType values */
701
702#define REQUEST_FILE_ONLY 0
703#define REQUEST_DIR_ONLY 1
704
705
706#ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsGetNextFilename
707char *
709 void *DirHandle);
710#endif
711
712#ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsCloseDirectory
713void
715 void *DirHandle);
716#endif
717
718
719#endif /* __ACPIOSXF_H__ */
unsigned int UINT32
Definition ProcessorBind.h:102
UINT32 InterruptNumber[1]
Definition Acpi10.h:287
uint32_t Size
Definition pe.h:1
uint32_t Signature
Definition pe.h:0
char ACPI_OBJECT_TYPE UINT32 Flags
Definition acdebug.h:453
char ** Args
Definition acdebug.h:451
#define ACPI_INTERNAL_VAR_XFACE
Definition acenv.h:430
UINT32 void * Context
Definition acevents.h:322
char * va_list
Definition acmsvcex.h:186
OS_DLL_FUNC ACPI_STATUS AcpiOsReadMemory(ACPI_PHYSICAL_ADDRESS Address, UINT64 *Value, UINT32 Width)
Definition acpiosl.cpp:261
OS_DLL_FUNC ACPI_STATUS AcpiOsInstallInterruptHandler(UINT32 InterruptNumber, ACPI_OSD_HANDLER ServiceRoutine, void *Context)
Definition acpiosl.cpp:215
void AcpiOsRedirectOutput(void *Destination)
OS_DLL_FUNC void AcpiOsWaitEventsComplete(void)
Definition acpiosl.cpp:359
OS_DLL_FUNC void AcpiOsUnmapMemory(void *LogicalAddress, ACPI_SIZE Size)
Definition acpiosl.cpp:80
void * AcpiOsOpenDirectory(char *Pathname, char *WildcardSpec, char RequestedFileType)
OS_DLL_FUNC ACPI_STATUS AcpiOsTableOverride(ACPI_TABLE_HEADER *ExistingTable, ACPI_TABLE_HEADER **NewTable)
Definition acpiosl.cpp:58
ACPI_STATUS AcpiOsInitializeDebugger(void)
ACPI_STATUS AcpiOsReleaseObject(ACPI_CACHE_T *Cache, void *Object)
OS_DLL_FUNC ACPI_STATUS AcpiOsExecute(ACPI_EXECUTE_TYPE Type, ACPI_OSD_EXEC_CALLBACK Function, void *Context)
Definition acpiosl.cpp:115
struct acpi_signal_fatal_info ACPI_SIGNAL_FATAL_INFO
ACPI_STATUS AcpiOsDeleteCache(ACPI_CACHE_T *Cache)
OS_DLL_FUNC void AcpiOsSleep(UINT64 Milliseconds)
Definition acpiosl.cpp:121
OS_DLL_FUNC ACPI_STATUS AcpiOsRemoveInterruptHandler(UINT32 InterruptNumber, ACPI_OSD_HANDLER ServiceRoutine)
Definition acpiosl.cpp:219
ACPI_STATUS AcpiOsWaitCommandReady(void)
OS_DLL_FUNC ACPI_STATUS AcpiOsReadPort(ACPI_IO_ADDRESS Address, UINT32 *Value, UINT32 Width)
Definition acpiosl.cpp:315
OS_DLL_FUNC ACPI_STATUS AcpiOsWriteMemory(ACPI_PHYSICAL_ADDRESS Address, UINT64 Value, UINT32 Width)
Definition acpiosl.cpp:288
ACPI_STATUS AcpiOsGetTableByAddress(ACPI_PHYSICAL_ADDRESS Address, ACPI_TABLE_HEADER **Table)
OS_DLL_FUNC ACPI_STATUS AcpiOsInitialize(void)
Definition acpiosl.cpp:40
ACPI_STATUS AcpiOsGetTableByName(char *Signature, UINT32 Instance, ACPI_TABLE_HEADER **Table, ACPI_PHYSICAL_ADDRESS *Address)
OS_DLL_FUNC void AcpiOsFree(void *Memory)
Definition acpiosl.cpp:98
OS_DLL_FUNC void AcpiOsVprintf(const char *Format, va_list Args)
Definition acpiosl.cpp:232
OS_DLL_FUNC ACPI_THREAD_ID AcpiOsGetThreadId(void)
Definition acpiosl.cpp:111
char * AcpiOsGetNextFilename(void *DirHandle)
OS_DLL_FUNC ACPI_CPU_FLAGS AcpiOsAcquireLock(ACPI_SPINLOCK Handle)
Definition acpiosl.cpp:193
void AcpiOsTerminateDebugger(void)
OS_DLL_FUNC ACPI_STATUS AcpiOsPhysicalTableOverride(ACPI_TABLE_HEADER *ExistingTable, ACPI_PHYSICAL_ADDRESS *NewAddress, UINT32 *NewTableLength)
Definition acpiosl.cpp:63
OS_DLL_FUNC ACPI_PHYSICAL_ADDRESS AcpiOsGetRootPointer(void)
Definition acpiosl.cpp:48
void * AcpiOsAllocateZeroed(ACPI_SIZE Size)
Definition utalloc.c:176
ACPI_STATUS AcpiOsCreateCache(char *CacheName, UINT16 ObjectSize, UINT16 MaxDepth, ACPI_CACHE_T **ReturnCache)
OS_DLL_FUNC ACPI_STATUS AcpiOsReadPciConfiguration(ACPI_PCI_ID *PciId, UINT32 Reg, UINT64 *Value, UINT32 Width)
Definition acpiosl.cpp:364
OS_DLL_FUNC ACPI_STATUS AcpiOsWritePort(ACPI_IO_ADDRESS Address, UINT32 Value, UINT32 Width)
Definition acpiosl.cpp:335
OS_DLL_FUNC ACPI_STATUS AcpiOsCreateLock(ACPI_SPINLOCK *OutHandle)
Definition acpiosl.cpp:181
OS_DLL_FUNC ACPI_STATUS AcpiOsDeleteSemaphore(ACPI_SEMAPHORE Handle)
Definition acpiosl.cpp:166
OS_DLL_FUNC ACPI_STATUS AcpiOsSignal(UINT32 Function, void *Info)
Definition acpiosl.cpp:246
OS_DLL_FUNC UINT64 AcpiOsGetTimer(void)
Definition acpiosl.cpp:354
OS_DLL_FUNC void * AcpiOsAllocate(ACPI_SIZE Size)
Definition acpiosl.cpp:94
OS_DLL_FUNC ACPI_STATUS AcpiOsWaitSemaphore(ACPI_SEMAPHORE Handle, UINT32 Units, UINT16 Timeout)
Definition acpiosl.cpp:171
OS_DLL_FUNC BOOLEAN AcpiOsReadable(void *Pointer, ACPI_SIZE Length)
Definition acpiosl.cpp:103
OS_DLL_FUNC ACPI_STATUS AcpiOsEnterSleep(UINT8 SleepState, UINT32 RegaValue, UINT32 RegbValue)
Definition acpiosl.cpp:252
ACPI_EXECUTE_TYPE
Definition acpiosxf.h:164
@ OSL_NOTIFY_HANDLER
Definition acpiosxf.h:166
@ OSL_DEBUGGER_EXEC_THREAD
Definition acpiosxf.h:169
@ OSL_GLOBAL_LOCK_HANDLER
Definition acpiosxf.h:165
@ OSL_EC_BURST_HANDLER
Definition acpiosxf.h:171
@ OSL_GPE_HANDLER
Definition acpiosxf.h:167
@ OSL_EC_POLL_HANDLER
Definition acpiosxf.h:170
@ OSL_DEBUGGER_MAIN_THREAD
Definition acpiosxf.h:168
ACPI_STATUS AcpiOsGetTableByIndex(UINT32 Index, ACPI_TABLE_HEADER **Table, UINT32 *Instance, ACPI_PHYSICAL_ADDRESS *Address)
ACPI_STATUS AcpiOsNotifyCommandComplete(void)
OS_DLL_FUNC ACPI_STATUS AcpiOsSignalSemaphore(ACPI_SEMAPHORE Handle, UINT32 Units)
Definition acpiosl.cpp:176
OS_DLL_FUNC void AcpiOsDeleteLock(ACPI_SPINLOCK Handle)
Definition acpiosl.cpp:189
void AcpiOsTracePoint(ACPI_TRACE_EVENT_TYPE Type, BOOLEAN Begin, UINT8 *Aml, char *Pathname)
OS_DLL_FUNC void AcpiOsStall(UINT32 Microseconds)
Definition acpiosl.cpp:126
OS_DLL_FUNC BOOLEAN AcpiOsWritable(void *Pointer, ACPI_SIZE Length)
Definition acpiosl.cpp:107
ACPI_STATUS AcpiOsGetLine(char *Buffer, UINT32 BufferLength, UINT32 *BytesRead)
OS_DLL_FUNC void AcpiOsReleaseLock(ACPI_SPINLOCK Handle, ACPI_CPU_FLAGS Flags)
Definition acpiosl.cpp:198
OS_DLL_FUNC void ACPI_INTERNAL_VAR_XFACE AcpiOsPrintf(const char *Format,...)
Definition acpiosl.cpp:224
OS_DLL_FUNC ACPI_STATUS AcpiOsPredefinedOverride(const ACPI_PREDEFINED_NAMES *InitVal, ACPI_STRING *NewVal)
Definition acpiosl.cpp:53
void AcpiOsCloseDirectory(void *DirHandle)
OS_DLL_FUNC ACPI_STATUS AcpiOsCreateSemaphore(UINT32 MaxUnits, UINT32 InitialUnits, ACPI_SEMAPHORE *OutHandle)
Definition acpiosl.cpp:161
OS_DLL_FUNC ACPI_STATUS AcpiOsGetPhysicalAddress(void *LogicalAddress, ACPI_PHYSICAL_ADDRESS *PhysicalAddress)
Definition acpiosl.cpp:84
void * AcpiOsAcquireObject(ACPI_CACHE_T *Cache)
OS_DLL_FUNC void * AcpiOsMapMemory(ACPI_PHYSICAL_ADDRESS Where, ACPI_SIZE Length)
Definition acpiosl.cpp:70
OS_DLL_FUNC ACPI_STATUS AcpiOsWritePciConfiguration(ACPI_PCI_ID *PciId, UINT32 Reg, UINT64 Value, UINT32 Width)
Definition acpiosl.cpp:379
ACPI_STATUS AcpiOsPurgeCache(ACPI_CACHE_T *Cache)
OS_DLL_FUNC ACPI_STATUS AcpiOsTerminate(void)
Definition acpiosl.cpp:44
ACPI_BUFFER *RetBuffer ACPI_BUFFER *RetBuffer char ACPI_WALK_RESOURCE_CALLBACK void *Context ACPI_BUFFER *RetBuffer UINT16 ACPI_RESOURCE **ResourcePtr ACPI_GENERIC_ADDRESS *Reg UINT32 *ReturnValue UINT8 UINT8 *Slp_TypB ACPI_PHYSICAL_ADDRESS PhysicalAddress64 UINT32 UINT32 *TimeElapsed UINT32 ACPI_STATUS const char UINT32 ACPI_STATUS const char UINT32 const char const char UINT32 const char BOOLEAN Begin
Definition acpixf.h:1383
ACPI_PHYSICAL_ADDRESS ACPI_SIZE BOOLEAN Warn BOOLEAN Physical UINT32 ACPI_TABLE_HEADER *OutTableHeader ACPI_TABLE_HEADER **OutTable ACPI_HANDLE UINT32 ACPI_WALK_CALLBACK ACPI_WALK_CALLBACK void void **ReturnValue UINT32 ACPI_BUFFER *RetPathPtr ACPI_OBJECT_HANDLER void *Data ACPI_OBJECT_HANDLER void **Data ACPI_STRING Pathname
Definition acpixf.h:796
ACPI_PHYSICAL_ADDRESS ACPI_SIZE BOOLEAN Warn BOOLEAN Physical UINT32 ACPI_TABLE_HEADER *OutTableHeader ACPI_TABLE_HEADER **OutTable ACPI_HANDLE UINT32 MaxDepth
Definition acpixf.h:732
ACPI_PHYSICAL_ADDRESS Address
Definition acpixf.h:637
ACPI_BUFFER *RetBuffer ACPI_BUFFER *RetBuffer char ACPI_WALK_RESOURCE_CALLBACK void *Context ACPI_BUFFER *RetBuffer UINT16 ACPI_RESOURCE **ResourcePtr ACPI_GENERIC_ADDRESS *Reg UINT32 *ReturnValue UINT8 UINT8 *Slp_TypB ACPI_PHYSICAL_ADDRESS PhysicalAddress64 UINT32 UINT32 *TimeElapsed UINT32 ACPI_STATUS const char * Format
Definition acpixf.h:1304
ACPI_PHYSICAL_ADDRESS ACPI_SIZE BOOLEAN Warn BOOLEAN Physical UINT32 Instance
Definition acpixf.h:691
ACPI_PHYSICAL_ADDRESS ACPI_SIZE BOOLEAN Warn BOOLEAN Physical UINT32 ACPI_TABLE_HEADER *OutTableHeader ACPI_TABLE_HEADER **OutTable ACPI_HANDLE UINT32 ACPI_WALK_CALLBACK ACPI_WALK_CALLBACK void void **ReturnValue UINT32 ACPI_BUFFER *RetPathPtr ACPI_OBJECT_HANDLER void *Data ACPI_OBJECT_HANDLER void **Data ACPI_STRING ACPI_OBJECT_LIST ACPI_BUFFER *ReturnObjectBuffer ACPI_DEVICE_INFO **ReturnBuffer ACPI_HANDLE ACPI_HANDLE ACPI_HANDLE *OutHandle ACPI_HANDLE *OutHandle void *Context void *Context ACPI_EVENT_HANDLER Handler UINT32 UINT32 Type
Definition acpixf.h:894
ACPI_PHYSICAL_ADDRESS ACPI_SIZE Length
Definition acpixf.h:638
ACPI_BUFFER *RetBuffer ACPI_BUFFER *RetBuffer char ACPI_WALK_RESOURCE_CALLBACK void *Context ACPI_BUFFER *RetBuffer UINT16 ACPI_RESOURCE **ResourcePtr ACPI_GENERIC_ADDRESS *Reg UINT32 *ReturnValue UINT8 UINT8 *Slp_TypB ACPI_PHYSICAL_ADDRESS PhysicalAddress64 UINT32 UINT32 *TimeElapsed UINT32 ACPI_STATUS const char UINT32 ACPI_STATUS const char UINT32 const char const char UINT32 const char BOOLEAN UINT8 * Aml
Definition acpixf.h:1384
#define ACPI_CACHE_T
Definition actypes.h:369
unsigned short UINT16
Definition actypes.h:237
unsigned char BOOLEAN
Definition actypes.h:235
#define AcpiOsDeleteMutex(Handle)
Definition actypes.h:383
#define ACPI_MUTEX
Definition actypes.h:381
#define ACPI_SEMAPHORE
Definition actypes.h:395
UINT32(ACPI_SYSTEM_XFACE * ACPI_OSD_HANDLER)(void *Context)
Definition actypes.h:1219
void(ACPI_SYSTEM_XFACE * ACPI_OSD_EXEC_CALLBACK)(void *Context)
Definition actypes.h:1223
#define AcpiOsAcquireMutex(Handle, Time)
Definition actypes.h:384
#define ACPI_CPU_FLAGS
Definition actypes.h:360
char * ACPI_STRING
Definition actypes.h:570
#define AcpiOsReleaseMutex(Handle)
Definition actypes.h:385
uint32_t ACPI_STATUS
Definition actypes.h:568
#define ACPI_SPINLOCK
Definition actypes.h:391
unsigned char UINT8
Definition actypes.h:236
COMPILER_DEPENDENT_UINT64 UINT64
Definition actypes.h:239
#define ACPI_THREAD_ID
Definition actypes.h:252
#define AcpiOsCreateMutex(OutHandle)
Definition actypes.h:382
ACPI_TRACE_EVENT_TYPE
Definition actypes.h:1482
#define OS_DLL_FUNC
Definition acxeneva.h:160
Definition actypes.h:1433
Definition actypes.h:1169
Definition acpiosxf.h:185
UINT32 Code
Definition acpiosxf.h:187
UINT32 Type
Definition acpiosxf.h:186
UINT32 Argument
Definition acpiosxf.h:188
Definition actbl.h:215