[ACPICA]
[reactos.git] / reactos / drivers / bus / acpi / acpica / include / acpiosxf.h
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 - 2015, 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 #ifndef __ACPIOSXF_H__
119 #define __ACPIOSXF_H__
120
121 #include "platform/acenv.h"
122 #include "actypes.h"
123
124
125 /* Types for AcpiOsExecute */
126
127 typedef enum
128 {
129 OSL_GLOBAL_LOCK_HANDLER,
130 OSL_NOTIFY_HANDLER,
131 OSL_GPE_HANDLER,
132 OSL_DEBUGGER_MAIN_THREAD,
133 OSL_DEBUGGER_EXEC_THREAD,
134 OSL_EC_POLL_HANDLER,
135 OSL_EC_BURST_HANDLER
136
137 } ACPI_EXECUTE_TYPE;
138
139 #define ACPI_NO_UNIT_LIMIT ((UINT32) -1)
140 #define ACPI_MUTEX_SEM 1
141
142
143 /* Functions for AcpiOsSignal */
144
145 #define ACPI_SIGNAL_FATAL 0
146 #define ACPI_SIGNAL_BREAKPOINT 1
147
148 typedef struct acpi_signal_fatal_info
149 {
150 UINT32 Type;
151 UINT32 Code;
152 UINT32 Argument;
153
154 } ACPI_SIGNAL_FATAL_INFO;
155
156
157 /*
158 * OSL Initialization and shutdown primitives
159 */
160 #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsInitialize
161 ACPI_STATUS
162 AcpiOsInitialize (
163 void);
164 #endif
165
166 #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsTerminate
167 ACPI_STATUS
168 AcpiOsTerminate (
169 void);
170 #endif
171
172
173 /*
174 * ACPI Table interfaces
175 */
176 #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsGetRootPointer
177 ACPI_PHYSICAL_ADDRESS
178 AcpiOsGetRootPointer (
179 void);
180 #endif
181
182 #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsPredefinedOverride
183 ACPI_STATUS
184 AcpiOsPredefinedOverride (
185 const ACPI_PREDEFINED_NAMES *InitVal,
186 ACPI_STRING *NewVal);
187 #endif
188
189 #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsTableOverride
190 ACPI_STATUS
191 AcpiOsTableOverride (
192 ACPI_TABLE_HEADER *ExistingTable,
193 ACPI_TABLE_HEADER **NewTable);
194 #endif
195
196 #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsPhysicalTableOverride
197 ACPI_STATUS
198 AcpiOsPhysicalTableOverride (
199 ACPI_TABLE_HEADER *ExistingTable,
200 ACPI_PHYSICAL_ADDRESS *NewAddress,
201 UINT32 *NewTableLength);
202 #endif
203
204
205 /*
206 * Spinlock primitives
207 */
208 #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsCreateLock
209 ACPI_STATUS
210 AcpiOsCreateLock (
211 ACPI_SPINLOCK *OutHandle);
212 #endif
213
214 #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsDeleteLock
215 void
216 AcpiOsDeleteLock (
217 ACPI_SPINLOCK Handle);
218 #endif
219
220 #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsAcquireLock
221 ACPI_CPU_FLAGS
222 AcpiOsAcquireLock (
223 ACPI_SPINLOCK Handle);
224 #endif
225
226 #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsReleaseLock
227 void
228 AcpiOsReleaseLock (
229 ACPI_SPINLOCK Handle,
230 ACPI_CPU_FLAGS Flags);
231 #endif
232
233
234 /*
235 * Semaphore primitives
236 */
237 #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsCreateSemaphore
238 ACPI_STATUS
239 AcpiOsCreateSemaphore (
240 UINT32 MaxUnits,
241 UINT32 InitialUnits,
242 ACPI_SEMAPHORE *OutHandle);
243 #endif
244
245 #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsDeleteSemaphore
246 ACPI_STATUS
247 AcpiOsDeleteSemaphore (
248 ACPI_SEMAPHORE Handle);
249 #endif
250
251 #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsWaitSemaphore
252 ACPI_STATUS
253 AcpiOsWaitSemaphore (
254 ACPI_SEMAPHORE Handle,
255 UINT32 Units,
256 UINT16 Timeout);
257 #endif
258
259 #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsSignalSemaphore
260 ACPI_STATUS
261 AcpiOsSignalSemaphore (
262 ACPI_SEMAPHORE Handle,
263 UINT32 Units);
264 #endif
265
266
267 /*
268 * Mutex primitives. May be configured to use semaphores instead via
269 * ACPI_MUTEX_TYPE (see platform/acenv.h)
270 */
271 #if (ACPI_MUTEX_TYPE != ACPI_BINARY_SEMAPHORE)
272
273 #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsCreateMutex
274 ACPI_STATUS
275 AcpiOsCreateMutex (
276 ACPI_MUTEX *OutHandle);
277 #endif
278
279 #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsDeleteMutex
280 void
281 AcpiOsDeleteMutex (
282 ACPI_MUTEX Handle);
283 #endif
284
285 #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsAcquireMutex
286 ACPI_STATUS
287 AcpiOsAcquireMutex (
288 ACPI_MUTEX Handle,
289 UINT16 Timeout);
290 #endif
291
292 #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsReleaseMutex
293 void
294 AcpiOsReleaseMutex (
295 ACPI_MUTEX Handle);
296 #endif
297
298 #endif
299
300
301 /*
302 * Memory allocation and mapping
303 */
304 #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsAllocate
305 void *
306 AcpiOsAllocate (
307 ACPI_SIZE Size);
308 #endif
309
310 #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsAllocateZeroed
311 void *
312 AcpiOsAllocateZeroed (
313 ACPI_SIZE Size);
314 #endif
315
316 #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsFree
317 void
318 AcpiOsFree (
319 void * Memory);
320 #endif
321
322 #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsMapMemory
323 void *
324 AcpiOsMapMemory (
325 ACPI_PHYSICAL_ADDRESS Where,
326 ACPI_SIZE Length);
327 #endif
328
329 #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsUnmapMemory
330 void
331 AcpiOsUnmapMemory (
332 void *LogicalAddress,
333 ACPI_SIZE Size);
334 #endif
335
336 #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsGetPhysicalAddress
337 ACPI_STATUS
338 AcpiOsGetPhysicalAddress (
339 void *LogicalAddress,
340 ACPI_PHYSICAL_ADDRESS *PhysicalAddress);
341 #endif
342
343
344 /*
345 * Memory/Object Cache
346 */
347 #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsCreateCache
348 ACPI_STATUS
349 AcpiOsCreateCache (
350 char *CacheName,
351 UINT16 ObjectSize,
352 UINT16 MaxDepth,
353 ACPI_CACHE_T **ReturnCache);
354 #endif
355
356 #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsDeleteCache
357 ACPI_STATUS
358 AcpiOsDeleteCache (
359 ACPI_CACHE_T *Cache);
360 #endif
361
362 #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsPurgeCache
363 ACPI_STATUS
364 AcpiOsPurgeCache (
365 ACPI_CACHE_T *Cache);
366 #endif
367
368 #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsAcquireObject
369 void *
370 AcpiOsAcquireObject (
371 ACPI_CACHE_T *Cache);
372 #endif
373
374 #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsReleaseObject
375 ACPI_STATUS
376 AcpiOsReleaseObject (
377 ACPI_CACHE_T *Cache,
378 void *Object);
379 #endif
380
381
382 /*
383 * Interrupt handlers
384 */
385 #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsInstallInterruptHandler
386 ACPI_STATUS
387 AcpiOsInstallInterruptHandler (
388 UINT32 InterruptNumber,
389 ACPI_OSD_HANDLER ServiceRoutine,
390 void *Context);
391 #endif
392
393 #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsRemoveInterruptHandler
394 ACPI_STATUS
395 AcpiOsRemoveInterruptHandler (
396 UINT32 InterruptNumber,
397 ACPI_OSD_HANDLER ServiceRoutine);
398 #endif
399
400
401 /*
402 * Threads and Scheduling
403 */
404 #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsGetThreadId
405 ACPI_THREAD_ID
406 AcpiOsGetThreadId (
407 void);
408 #endif
409
410 #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsExecute
411 ACPI_STATUS
412 AcpiOsExecute (
413 ACPI_EXECUTE_TYPE Type,
414 ACPI_OSD_EXEC_CALLBACK Function,
415 void *Context);
416 #endif
417
418 #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsWaitEventsComplete
419 void
420 AcpiOsWaitEventsComplete (
421 void);
422 #endif
423
424 #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsSleep
425 void
426 AcpiOsSleep (
427 UINT64 Milliseconds);
428 #endif
429
430 #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsStall
431 void
432 AcpiOsStall (
433 UINT32 Microseconds);
434 #endif
435
436
437 /*
438 * Platform and hardware-independent I/O interfaces
439 */
440 #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsReadPort
441 ACPI_STATUS
442 AcpiOsReadPort (
443 ACPI_IO_ADDRESS Address,
444 UINT32 *Value,
445 UINT32 Width);
446 #endif
447
448 #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsWritePort
449 ACPI_STATUS
450 AcpiOsWritePort (
451 ACPI_IO_ADDRESS Address,
452 UINT32 Value,
453 UINT32 Width);
454 #endif
455
456
457 /*
458 * Platform and hardware-independent physical memory interfaces
459 */
460 #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsReadMemory
461 ACPI_STATUS
462 AcpiOsReadMemory (
463 ACPI_PHYSICAL_ADDRESS Address,
464 UINT64 *Value,
465 UINT32 Width);
466 #endif
467
468 #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsWriteMemory
469 ACPI_STATUS
470 AcpiOsWriteMemory (
471 ACPI_PHYSICAL_ADDRESS Address,
472 UINT64 Value,
473 UINT32 Width);
474 #endif
475
476
477 /*
478 * Platform and hardware-independent PCI configuration space access
479 * Note: Can't use "Register" as a parameter, changed to "Reg" --
480 * certain compilers complain.
481 */
482 #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsReadPciConfiguration
483 ACPI_STATUS
484 AcpiOsReadPciConfiguration (
485 ACPI_PCI_ID *PciId,
486 UINT32 Reg,
487 UINT64 *Value,
488 UINT32 Width);
489 #endif
490
491 #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsWritePciConfiguration
492 ACPI_STATUS
493 AcpiOsWritePciConfiguration (
494 ACPI_PCI_ID *PciId,
495 UINT32 Reg,
496 UINT64 Value,
497 UINT32 Width);
498 #endif
499
500
501 /*
502 * Miscellaneous
503 */
504 #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsReadable
505 BOOLEAN
506 AcpiOsReadable (
507 void *Pointer,
508 ACPI_SIZE Length);
509 #endif
510
511 #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsWritable
512 BOOLEAN
513 AcpiOsWritable (
514 void *Pointer,
515 ACPI_SIZE Length);
516 #endif
517
518 #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsGetTimer
519 UINT64
520 AcpiOsGetTimer (
521 void);
522 #endif
523
524 #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsSignal
525 ACPI_STATUS
526 AcpiOsSignal (
527 UINT32 Function,
528 void *Info);
529 #endif
530
531
532 /*
533 * Debug print routines
534 */
535 #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsPrintf
536 void ACPI_INTERNAL_VAR_XFACE
537 AcpiOsPrintf (
538 const char *Format,
539 ...);
540 #endif
541
542 #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsVprintf
543 void
544 AcpiOsVprintf (
545 const char *Format,
546 va_list Args);
547 #endif
548
549 #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsRedirectOutput
550 void
551 AcpiOsRedirectOutput (
552 void *Destination);
553 #endif
554
555
556 /*
557 * Debug input
558 */
559 #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsGetLine
560 ACPI_STATUS
561 AcpiOsGetLine (
562 char *Buffer,
563 UINT32 BufferLength,
564 UINT32 *BytesRead);
565 #endif
566
567
568 /*
569 * Obtain ACPI table(s)
570 */
571 #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsGetTableByName
572 ACPI_STATUS
573 AcpiOsGetTableByName (
574 char *Signature,
575 UINT32 Instance,
576 ACPI_TABLE_HEADER **Table,
577 ACPI_PHYSICAL_ADDRESS *Address);
578 #endif
579
580 #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsGetTableByIndex
581 ACPI_STATUS
582 AcpiOsGetTableByIndex (
583 UINT32 Index,
584 ACPI_TABLE_HEADER **Table,
585 UINT32 *Instance,
586 ACPI_PHYSICAL_ADDRESS *Address);
587 #endif
588
589 #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsGetTableByAddress
590 ACPI_STATUS
591 AcpiOsGetTableByAddress (
592 ACPI_PHYSICAL_ADDRESS Address,
593 ACPI_TABLE_HEADER **Table);
594 #endif
595
596
597 /*
598 * Directory manipulation
599 */
600 #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsOpenDirectory
601 void *
602 AcpiOsOpenDirectory (
603 char *Pathname,
604 char *WildcardSpec,
605 char RequestedFileType);
606 #endif
607
608 /* RequesteFileType values */
609
610 #define REQUEST_FILE_ONLY 0
611 #define REQUEST_DIR_ONLY 1
612
613
614 #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsGetNextFilename
615 char *
616 AcpiOsGetNextFilename (
617 void *DirHandle);
618 #endif
619
620 #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsCloseDirectory
621 void
622 AcpiOsCloseDirectory (
623 void *DirHandle);
624 #endif
625
626
627 /*
628 * File I/O and related support
629 */
630 #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsOpenFile
631 ACPI_FILE
632 AcpiOsOpenFile (
633 const char *Path,
634 UINT8 Modes);
635 #endif
636
637 #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsCloseFile
638 void
639 AcpiOsCloseFile (
640 ACPI_FILE File);
641 #endif
642
643 #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsReadFile
644 int
645 AcpiOsReadFile (
646 ACPI_FILE File,
647 void *Buffer,
648 ACPI_SIZE Size,
649 ACPI_SIZE Count);
650 #endif
651
652 #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsWriteFile
653 int
654 AcpiOsWriteFile (
655 ACPI_FILE File,
656 void *Buffer,
657 ACPI_SIZE Size,
658 ACPI_SIZE Count);
659 #endif
660
661 #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsGetFileOffset
662 long
663 AcpiOsGetFileOffset (
664 ACPI_FILE File);
665 #endif
666
667 #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsSetFileOffset
668 ACPI_STATUS
669 AcpiOsSetFileOffset (
670 ACPI_FILE File,
671 long Offset,
672 UINT8 From);
673 #endif
674
675 #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsTracePoint
676 void
677 AcpiOsTracePoint (
678 ACPI_TRACE_EVENT_TYPE Type,
679 BOOLEAN Begin,
680 UINT8 *Aml,
681 char *Pathname);
682 #endif
683
684
685 #endif /* __ACPIOSXF_H__ */