Rev 1498 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1498 | serge | 1 | |
2 | * |
||
3 | * Name: acpixf.h - External interfaces to the ACPI subsystem |
||
4 | * |
||
5 | *****************************************************************************/ |
||
6 | |||
7 | |||
8 | * |
||
9 | * 1. Copyright Notice |
||
10 | * |
||
11 | * Some or all of this work - Copyright (c) 1999 - 2011, Intel Corp. |
||
2216 | Serge | 12 | * All rights reserved. |
1498 | serge | 13 | * |
14 | * 2. License |
||
15 | * |
||
16 | * 2.1. This is your license from Intel Corp. under its intellectual property |
||
17 | * rights. You may have additional license terms from the party that provided |
||
18 | * you this software, covering your right to use that party's intellectual |
||
19 | * property rights. |
||
20 | * |
||
21 | * 2.2. Intel grants, free of charge, to any person ("Licensee") obtaining a |
||
22 | * copy of the source code appearing in this file ("Covered Code") an |
||
23 | * irrevocable, perpetual, worldwide license under Intel's copyrights in the |
||
24 | * base code distributed originally by Intel ("Original Intel Code") to copy, |
||
25 | * make derivatives, distribute, use and display any portion of the Covered |
||
26 | * Code in any form, with the right to sublicense such rights; and |
||
27 | * |
||
28 | * 2.3. Intel grants Licensee a non-exclusive and non-transferable patent |
||
29 | * license (with the right to sublicense), under only those claims of Intel |
||
30 | * patents that are infringed by the Original Intel Code, to make, use, sell, |
||
31 | * offer to sell, and import the Covered Code and derivative works thereof |
||
32 | * solely to the minimum extent necessary to exercise the above copyright |
||
33 | * license, and in no event shall the patent license extend to any additions |
||
34 | * to or modifications of the Original Intel Code. No other license or right |
||
35 | * is granted directly or by implication, estoppel or otherwise; |
||
36 | * |
||
37 | * The above copyright and patent license is granted only if the following |
||
38 | * conditions are met: |
||
39 | * |
||
40 | * 3. Conditions |
||
41 | * |
||
42 | * 3.1. Redistribution of Source with Rights to Further Distribute Source. |
||
43 | * Redistribution of source code of any substantial portion of the Covered |
||
44 | * Code or modification with rights to further distribute source must include |
||
45 | * the above Copyright Notice, the above License, this list of Conditions, |
||
46 | * and the following Disclaimer and Export Compliance provision. In addition, |
||
47 | * Licensee must cause all Covered Code to which Licensee contributes to |
||
48 | * contain a file documenting the changes Licensee made to create that Covered |
||
49 | * Code and the date of any change. Licensee must include in that file the |
||
50 | * documentation of any changes made by any predecessor Licensee. Licensee |
||
51 | * must include a prominent statement that the modification is derived, |
||
52 | * directly or indirectly, from Original Intel Code. |
||
53 | * |
||
54 | * 3.2. Redistribution of Source with no Rights to Further Distribute Source. |
||
55 | * Redistribution of source code of any substantial portion of the Covered |
||
56 | * Code or modification without rights to further distribute source must |
||
57 | * include the following Disclaimer and Export Compliance provision in the |
||
58 | * documentation and/or other materials provided with distribution. In |
||
59 | * addition, Licensee may not authorize further sublicense of source of any |
||
60 | * portion of the Covered Code, and must include terms to the effect that the |
||
61 | * license from Licensee to its licensee is limited to the intellectual |
||
62 | * property embodied in the software Licensee provides to its licensee, and |
||
63 | * not to intellectual property embodied in modifications its licensee may |
||
64 | * make. |
||
65 | * |
||
66 | * 3.3. Redistribution of Executable. Redistribution in executable form of any |
||
67 | * substantial portion of the Covered Code or modification must reproduce the |
||
68 | * above Copyright Notice, and the following Disclaimer and Export Compliance |
||
69 | * provision in the documentation and/or other materials provided with the |
||
70 | * distribution. |
||
71 | * |
||
72 | * 3.4. Intel retains all right, title, and interest in and to the Original |
||
73 | * Intel Code. |
||
74 | * |
||
75 | * 3.5. Neither the name Intel nor any other trademark owned or controlled by |
||
76 | * Intel shall be used in advertising or otherwise to promote the sale, use or |
||
77 | * other dealings in products derived from or relating to the Covered Code |
||
78 | * without prior written authorization from Intel. |
||
79 | * |
||
80 | * 4. Disclaimer and Export Compliance |
||
81 | * |
||
82 | * 4.1. INTEL MAKES NO WARRANTY OF ANY KIND REGARDING ANY SOFTWARE PROVIDED |
||
83 | * HERE. ANY SOFTWARE ORIGINATING FROM INTEL OR DERIVED FROM INTEL SOFTWARE |
||
84 | * IS PROVIDED "AS IS," AND INTEL WILL NOT PROVIDE ANY SUPPORT, ASSISTANCE, |
||
85 | * INSTALLATION, TRAINING OR OTHER SERVICES. INTEL WILL NOT PROVIDE ANY |
||
86 | * UPDATES, ENHANCEMENTS OR EXTENSIONS. INTEL SPECIFICALLY DISCLAIMS ANY |
||
87 | * IMPLIED WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT AND FITNESS FOR A |
||
88 | * PARTICULAR PURPOSE. |
||
89 | * |
||
90 | * 4.2. IN NO EVENT SHALL INTEL HAVE ANY LIABILITY TO LICENSEE, ITS LICENSEES |
||
91 | * OR ANY OTHER THIRD PARTY, FOR ANY LOST PROFITS, LOST DATA, LOSS OF USE OR |
||
92 | * COSTS OF PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, OR FOR ANY INDIRECT, |
||
93 | * SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THIS AGREEMENT, UNDER ANY |
||
94 | * CAUSE OF ACTION OR THEORY OF LIABILITY, AND IRRESPECTIVE OF WHETHER INTEL |
||
95 | * HAS ADVANCE NOTICE OF THE POSSIBILITY OF SUCH DAMAGES. THESE LIMITATIONS |
||
96 | * SHALL APPLY NOTWITHSTANDING THE FAILURE OF THE ESSENTIAL PURPOSE OF ANY |
||
97 | * LIMITED REMEDY. |
||
98 | * |
||
99 | * 4.3. Licensee shall not export, either directly or indirectly, any of this |
||
100 | * software or system incorporating such software without first obtaining any |
||
101 | * required license or other approval from the U. S. Department of Commerce or |
||
102 | * any other agency or department of the United States Government. In the |
||
103 | * event Licensee exports any such software from the United States or |
||
104 | * re-exports any such software from a foreign destination, Licensee shall |
||
105 | * ensure that the distribution and export/re-export of the software is in |
||
106 | * compliance with all laws, regulations, orders, or other restrictions of the |
||
107 | * U.S. Export Administration Regulations. Licensee agrees that neither it nor |
||
108 | * any of its subsidiaries will export/re-export any technical data, process, |
||
109 | * software, or service, directly or indirectly, to any country for which the |
||
110 | * United States government or any agency thereof requires an export license, |
||
111 | * other governmental approval, or letter of assurance, without first obtaining |
||
112 | * such license, approval or letter. |
||
113 | * |
||
114 | *****************************************************************************/ |
||
115 | |||
116 | |||
117 | |||
118 | #define __ACXFACE_H__ |
||
119 | |||
120 | |||
121 | |||
122 | |||
2216 | Serge | 123 | |
1498 | serge | 124 | |
125 | #include "actbl.h" |
||
126 | |||
127 | |||
128 | * Globals that are publically available |
||
129 | */ |
||
130 | extern UINT32 AcpiCurrentGpeCount; |
||
131 | extern ACPI_TABLE_FADT AcpiGbl_FADT; |
||
132 | extern BOOLEAN AcpiGbl_SystemAwakeAndRunning; |
||
2216 | Serge | 133 | |
1498 | serge | 134 | |
135 | |||
136 | |||
137 | extern UINT32 AcpiDbgLayer; |
||
138 | |||
139 | |||
140 | |||
141 | |||
142 | extern UINT8 AcpiGbl_AllMethodsSerialized; |
||
143 | extern UINT8 AcpiGbl_CreateOsiMethod; |
||
144 | extern UINT8 AcpiGbl_UseDefaultRegisterWidths; |
||
145 | extern ACPI_NAME AcpiGbl_TraceMethodName; |
||
146 | extern UINT32 AcpiGbl_TraceFlags; |
||
147 | extern UINT8 AcpiGbl_EnableAmlDebugObject; |
||
148 | extern UINT8 AcpiGbl_CopyDsdtLocally; |
||
149 | extern UINT8 AcpiGbl_TruncateIoAddresses; |
||
150 | extern UINT8 AcpiGbl_DisableAutoRepair; |
||
2216 | Serge | 151 | |
1498 | serge | 152 | |
153 | |||
154 | * Initialization |
||
2216 | Serge | 155 | */ |
1498 | serge | 156 | ACPI_STATUS |
157 | AcpiInitializeTables ( |
||
158 | ACPI_TABLE_DESC *InitialStorage, |
||
159 | UINT32 InitialTableCount, |
||
160 | BOOLEAN AllowResize); |
||
161 | |||
162 | |||
163 | AcpiInitializeSubsystem ( |
||
164 | void); |
||
165 | |||
166 | |||
167 | AcpiEnableSubsystem ( |
||
168 | UINT32 Flags); |
||
169 | |||
170 | |||
171 | AcpiInitializeObjects ( |
||
172 | UINT32 Flags); |
||
173 | |||
174 | |||
175 | AcpiTerminate ( |
||
176 | void); |
||
177 | |||
178 | |||
179 | |||
2216 | Serge | 180 | * Miscellaneous global interfaces |
181 | */ |
||
182 | ACPI_STATUS |
||
1498 | serge | 183 | AcpiEnable ( |
184 | void); |
||
185 | |||
186 | |||
187 | AcpiDisable ( |
||
188 | void); |
||
189 | |||
190 | |||
191 | AcpiSubsystemStatus ( |
||
2216 | Serge | 192 | void); |
193 | |||
194 | |||
195 | AcpiGetSystemInfo ( |
||
1498 | serge | 196 | ACPI_BUFFER *RetBuffer); |
197 | |||
198 | |||
199 | AcpiGetStatistics ( |
||
200 | ACPI_STATISTICS *Stats); |
||
201 | |||
202 | |||
203 | AcpiFormatException ( |
||
204 | ACPI_STATUS Exception); |
||
205 | |||
206 | |||
207 | AcpiPurgeCachedObjects ( |
||
208 | void); |
||
209 | |||
210 | |||
2216 | Serge | 211 | AcpiInstallInterface ( |
212 | ACPI_STRING InterfaceName); |
||
213 | |||
1498 | serge | 214 | |
2216 | Serge | 215 | AcpiRemoveInterface ( |
216 | ACPI_STRING InterfaceName); |
||
217 | |||
218 | |||
219 | |||
1498 | serge | 220 | * ACPI Memory management |
2216 | Serge | 221 | */ |
1498 | serge | 222 | void * |
223 | AcpiAllocate ( |
||
224 | UINT32 Size); |
||
225 | |||
226 | |||
227 | AcpiCallocate ( |
||
228 | UINT32 Size); |
||
229 | |||
230 | |||
231 | AcpiFree ( |
||
232 | void *Address); |
||
233 | |||
234 | |||
235 | |||
236 | * ACPI table manipulation interfaces |
||
237 | */ |
||
238 | ACPI_STATUS |
||
239 | AcpiReallocateRootTable ( |
||
240 | void); |
||
241 | |||
242 | |||
243 | AcpiFindRootPointer ( |
||
244 | ACPI_SIZE *RsdpAddress); |
||
245 | |||
246 | |||
247 | AcpiLoadTables ( |
||
248 | void); |
||
249 | |||
250 | |||
251 | AcpiGetTableHeader ( |
||
252 | ACPI_STRING Signature, |
||
253 | UINT32 Instance, |
||
254 | ACPI_TABLE_HEADER *OutTableHeader); |
||
255 | |||
256 | |||
257 | AcpiGetTable ( |
||
258 | ACPI_STRING Signature, |
||
259 | UINT32 Instance, |
||
260 | ACPI_TABLE_HEADER **OutTable); |
||
261 | |||
262 | |||
263 | AcpiGetTableByIndex ( |
||
264 | UINT32 TableIndex, |
||
265 | ACPI_TABLE_HEADER **OutTable); |
||
266 | |||
267 | |||
268 | AcpiInstallTableHandler ( |
||
269 | ACPI_TABLE_HANDLER Handler, |
||
270 | void *Context); |
||
271 | |||
272 | |||
273 | AcpiRemoveTableHandler ( |
||
274 | ACPI_TABLE_HANDLER Handler); |
||
275 | |||
276 | |||
277 | |||
278 | * Namespace and name interfaces |
||
279 | */ |
||
280 | ACPI_STATUS |
||
281 | AcpiWalkNamespace ( |
||
282 | ACPI_OBJECT_TYPE Type, |
||
283 | ACPI_HANDLE StartObject, |
||
284 | UINT32 MaxDepth, |
||
285 | ACPI_WALK_CALLBACK PreOrderVisit, |
||
286 | ACPI_WALK_CALLBACK PostOrderVisit, |
||
287 | void *Context, |
||
288 | void **ReturnValue); |
||
289 | |||
290 | |||
291 | AcpiGetDevices ( |
||
292 | char *HID, |
||
293 | ACPI_WALK_CALLBACK UserFunction, |
||
294 | void *Context, |
||
295 | void **ReturnValue); |
||
296 | |||
297 | |||
298 | AcpiGetName ( |
||
299 | ACPI_HANDLE Object, |
||
300 | UINT32 NameType, |
||
301 | ACPI_BUFFER *RetPathPtr); |
||
302 | |||
303 | |||
304 | AcpiGetHandle ( |
||
305 | ACPI_HANDLE Parent, |
||
306 | ACPI_STRING Pathname, |
||
307 | ACPI_HANDLE *RetHandle); |
||
308 | |||
309 | |||
310 | AcpiAttachData ( |
||
311 | ACPI_HANDLE Object, |
||
312 | ACPI_OBJECT_HANDLER Handler, |
||
313 | void *Data); |
||
314 | |||
315 | |||
316 | AcpiDetachData ( |
||
317 | ACPI_HANDLE Object, |
||
318 | ACPI_OBJECT_HANDLER Handler); |
||
319 | |||
320 | |||
321 | AcpiGetData ( |
||
322 | ACPI_HANDLE Object, |
||
323 | ACPI_OBJECT_HANDLER Handler, |
||
324 | void **Data); |
||
325 | |||
326 | |||
327 | AcpiDebugTrace ( |
||
328 | char *Name, |
||
329 | UINT32 DebugLevel, |
||
330 | UINT32 DebugLayer, |
||
331 | UINT32 Flags); |
||
332 | |||
333 | |||
334 | |||
335 | * Object manipulation and enumeration |
||
336 | */ |
||
337 | ACPI_STATUS |
||
338 | AcpiEvaluateObject ( |
||
339 | ACPI_HANDLE Object, |
||
340 | ACPI_STRING Pathname, |
||
341 | ACPI_OBJECT_LIST *ParameterObjects, |
||
342 | ACPI_BUFFER *ReturnObjectBuffer); |
||
343 | |||
344 | |||
345 | AcpiEvaluateObjectTyped ( |
||
346 | ACPI_HANDLE Object, |
||
347 | ACPI_STRING Pathname, |
||
348 | ACPI_OBJECT_LIST *ExternalParams, |
||
349 | ACPI_BUFFER *ReturnBuffer, |
||
350 | ACPI_OBJECT_TYPE ReturnType); |
||
351 | |||
352 | |||
353 | AcpiGetObjectInfo ( |
||
354 | ACPI_HANDLE Object, |
||
355 | ACPI_DEVICE_INFO **ReturnBuffer); |
||
356 | |||
357 | |||
358 | AcpiInstallMethod ( |
||
359 | UINT8 *Buffer); |
||
360 | |||
361 | |||
362 | AcpiGetNextObject ( |
||
363 | ACPI_OBJECT_TYPE Type, |
||
364 | ACPI_HANDLE Parent, |
||
365 | ACPI_HANDLE Child, |
||
366 | ACPI_HANDLE *OutHandle); |
||
367 | |||
368 | |||
369 | AcpiGetType ( |
||
370 | ACPI_HANDLE Object, |
||
371 | ACPI_OBJECT_TYPE *OutType); |
||
372 | |||
373 | |||
374 | AcpiGetParent ( |
||
375 | ACPI_HANDLE Object, |
||
376 | ACPI_HANDLE *OutHandle); |
||
377 | |||
378 | |||
379 | |||
380 | * Handler interfaces |
||
381 | */ |
||
382 | ACPI_STATUS |
||
383 | AcpiInstallInitializationHandler ( |
||
384 | ACPI_INIT_HANDLER Handler, |
||
385 | UINT32 Function); |
||
386 | |||
387 | |||
388 | AcpiInstallGlobalEventHandler ( |
||
2216 | Serge | 389 | ACPI_GBL_EVENT_HANDLER Handler, |
390 | void *Context); |
||
391 | |||
392 | |||
393 | AcpiInstallFixedEventHandler ( |
||
1498 | serge | 394 | UINT32 AcpiEvent, |
395 | ACPI_EVENT_HANDLER Handler, |
||
396 | void *Context); |
||
397 | |||
398 | |||
399 | AcpiRemoveFixedEventHandler ( |
||
400 | UINT32 AcpiEvent, |
||
401 | ACPI_EVENT_HANDLER Handler); |
||
402 | |||
403 | |||
404 | AcpiInstallGpeHandler ( |
||
2216 | Serge | 405 | ACPI_HANDLE GpeDevice, |
406 | UINT32 GpeNumber, |
||
407 | UINT32 Type, |
||
408 | ACPI_GPE_HANDLER Address, |
||
409 | void *Context); |
||
410 | |||
411 | |||
412 | AcpiRemoveGpeHandler ( |
||
413 | ACPI_HANDLE GpeDevice, |
||
414 | UINT32 GpeNumber, |
||
415 | ACPI_GPE_HANDLER Address); |
||
416 | |||
417 | |||
418 | AcpiInstallNotifyHandler ( |
||
1498 | serge | 419 | ACPI_HANDLE Device, |
420 | UINT32 HandlerType, |
||
421 | ACPI_NOTIFY_HANDLER Handler, |
||
422 | void *Context); |
||
423 | |||
424 | |||
425 | AcpiRemoveNotifyHandler ( |
||
426 | ACPI_HANDLE Device, |
||
427 | UINT32 HandlerType, |
||
428 | ACPI_NOTIFY_HANDLER Handler); |
||
429 | |||
430 | |||
431 | AcpiInstallAddressSpaceHandler ( |
||
432 | ACPI_HANDLE Device, |
||
433 | ACPI_ADR_SPACE_TYPE SpaceId, |
||
434 | ACPI_ADR_SPACE_HANDLER Handler, |
||
435 | ACPI_ADR_SPACE_SETUP Setup, |
||
436 | void *Context); |
||
437 | |||
438 | |||
439 | AcpiRemoveAddressSpaceHandler ( |
||
440 | ACPI_HANDLE Device, |
||
441 | ACPI_ADR_SPACE_TYPE SpaceId, |
||
442 | ACPI_ADR_SPACE_HANDLER Handler); |
||
443 | |||
444 | |||
445 | AcpiInstallExceptionHandler ( |
||
2216 | Serge | 446 | ACPI_EXCEPTION_HANDLER Handler); |
447 | |||
1498 | serge | 448 | |
449 | AcpiInstallInterfaceHandler ( |
||
2216 | Serge | 450 | ACPI_INTERFACE_HANDLER Handler); |
451 | |||
1498 | serge | 452 | |
453 | |||
454 | * Global Lock interfaces |
||
2216 | Serge | 455 | */ |
1498 | serge | 456 | ACPI_STATUS |
457 | AcpiAcquireGlobalLock ( |
||
458 | UINT16 Timeout, |
||
459 | UINT32 *Handle); |
||
460 | |||
461 | |||
462 | AcpiReleaseGlobalLock ( |
||
463 | UINT32 Handle); |
||
464 | |||
465 | |||
2216 | Serge | 466 | |
467 | * Fixed Event interfaces |
||
468 | */ |
||
469 | ACPI_STATUS |
||
1498 | serge | 470 | AcpiEnableEvent ( |
471 | UINT32 Event, |
||
472 | UINT32 Flags); |
||
473 | |||
474 | |||
475 | AcpiDisableEvent ( |
||
476 | UINT32 Event, |
||
477 | UINT32 Flags); |
||
478 | |||
479 | |||
480 | AcpiClearEvent ( |
||
481 | UINT32 Event); |
||
482 | |||
483 | |||
484 | AcpiGetEventStatus ( |
||
485 | UINT32 Event, |
||
486 | ACPI_EVENT_STATUS *EventStatus); |
||
487 | |||
488 | |||
489 | |||
490 | * General Purpose Event (GPE) Interfaces |
||
2216 | Serge | 491 | */ |
1498 | serge | 492 | ACPI_STATUS |
493 | AcpiUpdateAllGpes ( |
||
2216 | Serge | 494 | void); |
495 | |||
1498 | serge | 496 | |
497 | AcpiEnableGpe ( |
||
498 | ACPI_HANDLE GpeDevice, |
||
499 | UINT32 GpeNumber); |
||
2216 | Serge | 500 | |
1498 | serge | 501 | |
502 | AcpiDisableGpe ( |
||
503 | ACPI_HANDLE GpeDevice, |
||
504 | UINT32 GpeNumber); |
||
2216 | Serge | 505 | |
1498 | serge | 506 | |
507 | AcpiClearGpe ( |
||
508 | ACPI_HANDLE GpeDevice, |
||
509 | UINT32 GpeNumber); |
||
510 | |||
511 | |||
512 | AcpiSetGpe ( |
||
2216 | Serge | 513 | ACPI_HANDLE GpeDevice, |
514 | UINT32 GpeNumber, |
||
515 | UINT8 Action); |
||
516 | |||
517 | |||
518 | AcpiFinishGpe ( |
||
519 | ACPI_HANDLE GpeDevice, |
||
520 | UINT32 GpeNumber); |
||
521 | |||
522 | |||
523 | AcpiSetupGpeForWake ( |
||
524 | ACPI_HANDLE ParentDevice, |
||
525 | ACPI_HANDLE GpeDevice, |
||
526 | UINT32 GpeNumber); |
||
527 | |||
528 | |||
529 | AcpiSetGpeWakeMask ( |
||
530 | ACPI_HANDLE GpeDevice, |
||
531 | UINT32 GpeNumber, |
||
532 | UINT8 Action); |
||
533 | |||
534 | |||
535 | AcpiGetGpeStatus ( |
||
1498 | serge | 536 | ACPI_HANDLE GpeDevice, |
537 | UINT32 GpeNumber, |
||
538 | ACPI_EVENT_STATUS *EventStatus); |
||
539 | |||
540 | |||
541 | AcpiDisableAllGpes ( |
||
542 | void); |
||
543 | |||
544 | |||
545 | AcpiEnableAllRuntimeGpes ( |
||
546 | void); |
||
547 | |||
548 | |||
549 | AcpiGetGpeDevice ( |
||
550 | UINT32 GpeIndex, |
||
551 | ACPI_HANDLE *GpeDevice); |
||
552 | |||
553 | |||
554 | AcpiInstallGpeBlock ( |
||
555 | ACPI_HANDLE GpeDevice, |
||
556 | ACPI_GENERIC_ADDRESS *GpeBlockAddress, |
||
557 | UINT32 RegisterCount, |
||
558 | UINT32 InterruptNumber); |
||
559 | |||
560 | |||
561 | AcpiRemoveGpeBlock ( |
||
562 | ACPI_HANDLE GpeDevice); |
||
563 | |||
564 | |||
565 | |||
566 | * Resource interfaces |
||
567 | */ |
||
568 | typedef |
||
569 | ACPI_STATUS (*ACPI_WALK_RESOURCE_CALLBACK) ( |
||
570 | ACPI_RESOURCE *Resource, |
||
571 | void *Context); |
||
572 | |||
573 | |||
574 | AcpiGetVendorResource ( |
||
575 | ACPI_HANDLE Device, |
||
576 | char *Name, |
||
577 | ACPI_VENDOR_UUID *Uuid, |
||
578 | ACPI_BUFFER *RetBuffer); |
||
579 | |||
580 | |||
581 | AcpiGetCurrentResources ( |
||
582 | ACPI_HANDLE Device, |
||
583 | ACPI_BUFFER *RetBuffer); |
||
584 | |||
585 | |||
586 | AcpiGetPossibleResources ( |
||
587 | ACPI_HANDLE Device, |
||
588 | ACPI_BUFFER *RetBuffer); |
||
589 | |||
590 | |||
591 | AcpiWalkResources ( |
||
592 | ACPI_HANDLE Device, |
||
593 | char *Name, |
||
594 | ACPI_WALK_RESOURCE_CALLBACK UserFunction, |
||
595 | void *Context); |
||
596 | |||
597 | |||
598 | AcpiSetCurrentResources ( |
||
599 | ACPI_HANDLE Device, |
||
600 | ACPI_BUFFER *InBuffer); |
||
601 | |||
602 | |||
603 | AcpiGetIrqRoutingTable ( |
||
604 | ACPI_HANDLE Device, |
||
605 | ACPI_BUFFER *RetBuffer); |
||
606 | |||
607 | |||
608 | AcpiResourceToAddress64 ( |
||
609 | ACPI_RESOURCE *Resource, |
||
610 | ACPI_RESOURCE_ADDRESS64 *Out); |
||
611 | |||
612 | |||
613 | |||
614 | * Hardware (ACPI device) interfaces |
||
615 | */ |
||
616 | ACPI_STATUS |
||
617 | AcpiReset ( |
||
618 | void); |
||
619 | |||
620 | |||
621 | AcpiRead ( |
||
622 | UINT64 *Value, |
||
623 | ACPI_GENERIC_ADDRESS *Reg); |
||
624 | |||
625 | |||
626 | AcpiWrite ( |
||
627 | UINT64 Value, |
||
628 | ACPI_GENERIC_ADDRESS *Reg); |
||
629 | |||
630 | |||
631 | AcpiReadBitRegister ( |
||
632 | UINT32 RegisterId, |
||
633 | UINT32 *ReturnValue); |
||
634 | |||
635 | |||
636 | AcpiWriteBitRegister ( |
||
637 | UINT32 RegisterId, |
||
638 | UINT32 Value); |
||
639 | |||
640 | |||
641 | AcpiGetSleepTypeData ( |
||
642 | UINT8 SleepState, |
||
643 | UINT8 *Slp_TypA, |
||
644 | UINT8 *Slp_TypB); |
||
645 | |||
646 | |||
647 | AcpiEnterSleepStatePrep ( |
||
648 | UINT8 SleepState); |
||
649 | |||
650 | |||
651 | AcpiEnterSleepState ( |
||
652 | UINT8 SleepState); |
||
653 | |||
654 | |||
655 | AcpiEnterSleepStateS4bios ( |
||
656 | void); |
||
657 | |||
658 | |||
659 | AcpiLeaveSleepState ( |
||
660 | UINT8 SleepState) |
||
661 | ; |
||
662 | ACPI_STATUS |
||
663 | AcpiSetFirmwareWakingVector ( |
||
664 | UINT32 PhysicalAddress); |
||
665 | |||
666 | |||
667 | ACPI_STATUS |
||
668 | AcpiSetFirmwareWakingVector64 ( |
||
669 | UINT64 PhysicalAddress); |
||
670 | #endif |
||
671 | |||
672 | |||
673 | |||
674 | * Error/Warning output |
||
675 | */ |
||
676 | void ACPI_INTERNAL_VAR_XFACE |
||
677 | AcpiError ( |
||
678 | const char *ModuleName, |
||
679 | UINT32 LineNumber, |
||
680 | const char *Format, |
||
681 | ...) ACPI_PRINTF_LIKE(3); |
||
682 | |||
683 | |||
684 | AcpiException ( |
||
685 | const char *ModuleName, |
||
686 | UINT32 LineNumber, |
||
687 | ACPI_STATUS Status, |
||
688 | const char *Format, |
||
689 | ...) ACPI_PRINTF_LIKE(4); |
||
690 | |||
691 | |||
692 | AcpiWarning ( |
||
693 | const char *ModuleName, |
||
694 | UINT32 LineNumber, |
||
695 | const char *Format, |
||
696 | ...) ACPI_PRINTF_LIKE(3); |
||
697 | |||
698 | |||
699 | AcpiInfo ( |
||
700 | const char *ModuleName, |
||
701 | UINT32 LineNumber, |
||
702 | const char *Format, |
||
703 | ...) ACPI_PRINTF_LIKE(3); |
||
704 | |||
705 | |||
706 | |||
707 | * Debug output |
||
708 | */ |
||
709 | #ifdef ACPI_DEBUG_OUTPUT |
||
710 | |||
711 | |||
712 | AcpiDebugPrint ( |
||
713 | UINT32 RequestedDebugLevel, |
||
714 | UINT32 LineNumber, |
||
715 | const char *FunctionName, |
||
716 | const char *ModuleName, |
||
717 | UINT32 ComponentId, |
||
718 | const char *Format, |
||
719 | ...) ACPI_PRINTF_LIKE(6); |
||
720 | |||
721 | |||
722 | AcpiDebugPrintRaw ( |
||
723 | UINT32 RequestedDebugLevel, |
||
724 | UINT32 LineNumber, |
||
725 | const char *FunctionName, |
||
726 | const char *ModuleName, |
||
727 | UINT32 ComponentId, |
||
728 | const char *Format, |
||
729 | ...) ACPI_PRINTF_LIKE(6); |
||
730 | #endif |
||
731 | |||
732 | |||
733 |