acpixf.h 33 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258
  1. /******************************************************************************
  2. *
  3. * Name: acpixf.h - External interfaces to the ACPI subsystem
  4. *
  5. *****************************************************************************/
  6. /*
  7. * Copyright (C) 2000 - 2015, Intel Corp.
  8. * All rights reserved.
  9. *
  10. * Redistribution and use in source and binary forms, with or without
  11. * modification, are permitted provided that the following conditions
  12. * are met:
  13. * 1. Redistributions of source code must retain the above copyright
  14. * notice, this list of conditions, and the following disclaimer,
  15. * without modification.
  16. * 2. Redistributions in binary form must reproduce at minimum a disclaimer
  17. * substantially similar to the "NO WARRANTY" disclaimer below
  18. * ("Disclaimer") and any redistribution must be conditioned upon
  19. * including a substantially similar Disclaimer requirement for further
  20. * binary redistribution.
  21. * 3. Neither the names of the above-listed copyright holders nor the names
  22. * of any contributors may be used to endorse or promote products derived
  23. * from this software without specific prior written permission.
  24. *
  25. * Alternatively, this software may be distributed under the terms of the
  26. * GNU General Public License ("GPL") version 2 as published by the Free
  27. * Software Foundation.
  28. *
  29. * NO WARRANTY
  30. * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  31. * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  32. * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR
  33. * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  34. * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  35. * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  36. * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  37. * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
  38. * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
  39. * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  40. * POSSIBILITY OF SUCH DAMAGES.
  41. */
  42. #ifndef __ACXFACE_H__
  43. #define __ACXFACE_H__
  44. #pragma GCC diagnostic ignored "-Wunused-function"
  45. /* Current ACPICA subsystem version in YYYYMMDD format */
  46. #define ACPI_CA_VERSION 0x20151218
  47. #include "acconfig.h"
  48. #include "actypes.h"
  49. #include "actbl.h"
  50. #include "acbuffer.h"
  51. /*****************************************************************************
  52. *
  53. * Macros used for ACPICA globals and configuration
  54. *
  55. ****************************************************************************/
  56. /*
  57. * Ensure that global variables are defined and initialized only once.
  58. *
  59. * The use of these macros allows for a single list of globals (here)
  60. * in order to simplify maintenance of the code.
  61. */
  62. #ifdef DEFINE_ACPI_GLOBALS
  63. #define ACPI_GLOBAL(type,name) \
  64. extern type name; \
  65. type name
  66. #define ACPI_INIT_GLOBAL(type,name,value) \
  67. type name=value
  68. #else
  69. #ifndef ACPI_GLOBAL
  70. #define ACPI_GLOBAL(type,name) \
  71. extern type name
  72. #endif
  73. #ifndef ACPI_INIT_GLOBAL
  74. #define ACPI_INIT_GLOBAL(type,name,value) \
  75. extern type name
  76. #endif
  77. #endif
  78. /*
  79. * These macros configure the various ACPICA interfaces. They are
  80. * useful for generating stub inline functions for features that are
  81. * configured out of the current kernel or ACPICA application.
  82. */
  83. #ifndef ACPI_EXTERNAL_RETURN_STATUS
  84. #define ACPI_EXTERNAL_RETURN_STATUS(Prototype) \
  85. Prototype;
  86. #endif
  87. #ifndef ACPI_EXTERNAL_RETURN_OK
  88. #define ACPI_EXTERNAL_RETURN_OK(Prototype) \
  89. Prototype;
  90. #endif
  91. #ifndef ACPI_EXTERNAL_RETURN_VOID
  92. #define ACPI_EXTERNAL_RETURN_VOID(Prototype) \
  93. Prototype;
  94. #endif
  95. #ifndef ACPI_EXTERNAL_RETURN_UINT32
  96. #define ACPI_EXTERNAL_RETURN_UINT32(Prototype) \
  97. Prototype;
  98. #endif
  99. #ifndef ACPI_EXTERNAL_RETURN_PTR
  100. #define ACPI_EXTERNAL_RETURN_PTR(Prototype) \
  101. Prototype;
  102. #endif
  103. /*****************************************************************************
  104. *
  105. * Public globals and runtime configuration options
  106. *
  107. ****************************************************************************/
  108. /*
  109. * Enable "slack mode" of the AML interpreter? Default is FALSE, and the
  110. * interpreter strictly follows the ACPI specification. Setting to TRUE
  111. * allows the interpreter to ignore certain errors and/or bad AML constructs.
  112. *
  113. * Currently, these features are enabled by this flag:
  114. *
  115. * 1) Allow "implicit return" of last value in a control method
  116. * 2) Allow access beyond the end of an operation region
  117. * 3) Allow access to uninitialized locals/args (auto-init to integer 0)
  118. * 4) Allow ANY object type to be a source operand for the Store() operator
  119. * 5) Allow unresolved references (invalid target name) in package objects
  120. * 6) Enable warning messages for behavior that is not ACPI spec compliant
  121. */
  122. ACPI_INIT_GLOBAL (UINT8, AcpiGbl_EnableInterpreterSlack, FALSE);
  123. /*
  124. * Automatically serialize all methods that create named objects? Default
  125. * is TRUE, meaning that all NonSerialized methods are scanned once at
  126. * table load time to determine those that create named objects. Methods
  127. * that create named objects are marked Serialized in order to prevent
  128. * possible run-time problems if they are entered by more than one thread.
  129. */
  130. ACPI_INIT_GLOBAL (UINT8, AcpiGbl_AutoSerializeMethods, TRUE);
  131. /*
  132. * Create the predefined _OSI method in the namespace? Default is TRUE
  133. * because ACPICA is fully compatible with other ACPI implementations.
  134. * Changing this will revert ACPICA (and machine ASL) to pre-OSI behavior.
  135. */
  136. ACPI_INIT_GLOBAL (UINT8, AcpiGbl_CreateOsiMethod, TRUE);
  137. /*
  138. * Optionally use default values for the ACPI register widths. Set this to
  139. * TRUE to use the defaults, if an FADT contains incorrect widths/lengths.
  140. */
  141. ACPI_INIT_GLOBAL (UINT8, AcpiGbl_UseDefaultRegisterWidths, TRUE);
  142. /*
  143. * Whether or not to verify the table checksum before installation. Set
  144. * this to TRUE to verify the table checksum before install it to the table
  145. * manager. Note that enabling this option causes errors to happen in some
  146. * OSPMs during early initialization stages. Default behavior is to do such
  147. * verification.
  148. */
  149. ACPI_INIT_GLOBAL (UINT8, AcpiGbl_VerifyTableChecksum, TRUE);
  150. /*
  151. * Optionally enable output from the AML Debug Object.
  152. */
  153. ACPI_INIT_GLOBAL (UINT8, AcpiGbl_EnableAmlDebugObject, FALSE);
  154. /*
  155. * Optionally copy the entire DSDT to local memory (instead of simply
  156. * mapping it.) There are some BIOSs that corrupt or replace the original
  157. * DSDT, creating the need for this option. Default is FALSE, do not copy
  158. * the DSDT.
  159. */
  160. ACPI_INIT_GLOBAL (UINT8, AcpiGbl_CopyDsdtLocally, FALSE);
  161. /*
  162. * Optionally ignore an XSDT if present and use the RSDT instead.
  163. * Although the ACPI specification requires that an XSDT be used instead
  164. * of the RSDT, the XSDT has been found to be corrupt or ill-formed on
  165. * some machines. Default behavior is to use the XSDT if present.
  166. */
  167. ACPI_INIT_GLOBAL (UINT8, AcpiGbl_DoNotUseXsdt, FALSE);
  168. /*
  169. * Optionally allow default region handlers to be overridden.
  170. */
  171. ACPI_INIT_GLOBAL (UINT8, AcpiGbl_OverrideDefaultRegionHandlers, FALSE);
  172. /*
  173. * Optionally use 32-bit FADT addresses if and when there is a conflict
  174. * (address mismatch) between the 32-bit and 64-bit versions of the
  175. * address. Although ACPICA adheres to the ACPI specification which
  176. * requires the use of the corresponding 64-bit address if it is non-zero,
  177. * some machines have been found to have a corrupted non-zero 64-bit
  178. * address. Default is FALSE, do not favor the 32-bit addresses.
  179. */
  180. ACPI_INIT_GLOBAL (UINT8, AcpiGbl_Use32BitFadtAddresses, FALSE);
  181. /*
  182. * Optionally use 32-bit FACS table addresses.
  183. * It is reported that some platforms fail to resume from system suspending
  184. * if 64-bit FACS table address is selected:
  185. * https://bugzilla.kernel.org/show_bug.cgi?id=74021
  186. * Default is TRUE, favor the 32-bit addresses.
  187. */
  188. ACPI_INIT_GLOBAL (UINT8, AcpiGbl_Use32BitFacsAddresses, TRUE);
  189. /*
  190. * Optionally truncate I/O addresses to 16 bits. Provides compatibility
  191. * with other ACPI implementations. NOTE: During ACPICA initialization,
  192. * this value is set to TRUE if any Windows OSI strings have been
  193. * requested by the BIOS.
  194. */
  195. ACPI_INIT_GLOBAL (UINT8, AcpiGbl_TruncateIoAddresses, FALSE);
  196. /*
  197. * Disable runtime checking and repair of values returned by control methods.
  198. * Use only if the repair is causing a problem on a particular machine.
  199. */
  200. ACPI_INIT_GLOBAL (UINT8, AcpiGbl_DisableAutoRepair, FALSE);
  201. /*
  202. * Optionally do not install any SSDTs from the RSDT/XSDT during initialization.
  203. * This can be useful for debugging ACPI problems on some machines.
  204. */
  205. ACPI_INIT_GLOBAL (UINT8, AcpiGbl_DisableSsdtTableInstall, FALSE);
  206. /*
  207. * Optionally enable runtime namespace override.
  208. */
  209. ACPI_INIT_GLOBAL (UINT8, AcpiGbl_RuntimeNamespaceOverride, TRUE);
  210. /*
  211. * We keep track of the latest version of Windows that has been requested by
  212. * the BIOS. ACPI 5.0.
  213. */
  214. ACPI_INIT_GLOBAL (UINT8, AcpiGbl_OsiData, 0);
  215. /*
  216. * ACPI 5.0 introduces the concept of a "reduced hardware platform", meaning
  217. * that the ACPI hardware is no longer required. A flag in the FADT indicates
  218. * a reduced HW machine, and that flag is duplicated here for convenience.
  219. */
  220. ACPI_INIT_GLOBAL (BOOLEAN, AcpiGbl_ReducedHardware, FALSE);
  221. /*
  222. * This mechanism is used to trace a specified AML method. The method is
  223. * traced each time it is executed.
  224. */
  225. ACPI_INIT_GLOBAL (UINT32, AcpiGbl_TraceFlags, 0);
  226. ACPI_INIT_GLOBAL (const char *, AcpiGbl_TraceMethodName, NULL);
  227. ACPI_INIT_GLOBAL (UINT32, AcpiGbl_TraceDbgLevel, ACPI_TRACE_LEVEL_DEFAULT);
  228. ACPI_INIT_GLOBAL (UINT32, AcpiGbl_TraceDbgLayer, ACPI_TRACE_LAYER_DEFAULT);
  229. /*
  230. * Runtime configuration of debug output control masks. We want the debug
  231. * switches statically initialized so they are already set when the debugger
  232. * is entered.
  233. */
  234. #ifdef ACPI_DEBUG_OUTPUT
  235. ACPI_INIT_GLOBAL (UINT32, AcpiDbgLevel, ACPI_DEBUG_DEFAULT);
  236. #else
  237. ACPI_INIT_GLOBAL (UINT32, AcpiDbgLevel, ACPI_NORMAL_DEFAULT);
  238. #endif
  239. ACPI_INIT_GLOBAL (UINT32, AcpiDbgLayer, ACPI_COMPONENT_DEFAULT);
  240. /* Optionally enable timer output with Debug Object output */
  241. ACPI_INIT_GLOBAL (UINT8, AcpiGbl_DisplayDebugTimer, FALSE);
  242. /*
  243. * Other miscellaneous globals
  244. */
  245. ACPI_GLOBAL (ACPI_TABLE_FADT, AcpiGbl_FADT);
  246. ACPI_GLOBAL (UINT32, AcpiCurrentGpeCount);
  247. ACPI_GLOBAL (BOOLEAN, AcpiGbl_SystemAwakeAndRunning);
  248. /*****************************************************************************
  249. *
  250. * ACPICA public interface configuration.
  251. *
  252. * Interfaces that are configured out of the ACPICA build are replaced
  253. * by inlined stubs by default.
  254. *
  255. ****************************************************************************/
  256. /*
  257. * Hardware-reduced prototypes (default: Not hardware reduced).
  258. *
  259. * All ACPICA hardware-related interfaces that use these macros will be
  260. * configured out of the ACPICA build if the ACPI_REDUCED_HARDWARE flag
  261. * is set to TRUE.
  262. *
  263. * Note: This static build option for reduced hardware is intended to
  264. * reduce ACPICA code size if desired or necessary. However, even if this
  265. * option is not specified, the runtime behavior of ACPICA is dependent
  266. * on the actual FADT reduced hardware flag (HW_REDUCED_ACPI). If set,
  267. * the flag will enable similar behavior -- ACPICA will not attempt
  268. * to access any ACPI-relate hardware (SCI, GPEs, Fixed Events, etc.)
  269. */
  270. #if (!ACPI_REDUCED_HARDWARE)
  271. #define ACPI_HW_DEPENDENT_RETURN_STATUS(Prototype) \
  272. ACPI_EXTERNAL_RETURN_STATUS(Prototype)
  273. #define ACPI_HW_DEPENDENT_RETURN_OK(Prototype) \
  274. ACPI_EXTERNAL_RETURN_OK(Prototype)
  275. #define ACPI_HW_DEPENDENT_RETURN_VOID(Prototype) \
  276. ACPI_EXTERNAL_RETURN_VOID(Prototype)
  277. #else
  278. #define ACPI_HW_DEPENDENT_RETURN_STATUS(Prototype) \
  279. static ACPI_INLINE Prototype {return(AE_NOT_CONFIGURED);}
  280. #define ACPI_HW_DEPENDENT_RETURN_OK(Prototype) \
  281. static ACPI_INLINE Prototype {return(AE_OK);}
  282. #define ACPI_HW_DEPENDENT_RETURN_VOID(Prototype) \
  283. static ACPI_INLINE Prototype {return;}
  284. #endif /* !ACPI_REDUCED_HARDWARE */
  285. /*
  286. * Error message prototypes (default: error messages enabled).
  287. *
  288. * All interfaces related to error and warning messages
  289. * will be configured out of the ACPICA build if the
  290. * ACPI_NO_ERROR_MESSAGE flag is defined.
  291. */
  292. #ifndef ACPI_NO_ERROR_MESSAGES
  293. #define ACPI_MSG_DEPENDENT_RETURN_VOID(Prototype) \
  294. Prototype;
  295. #else
  296. #define ACPI_MSG_DEPENDENT_RETURN_VOID(Prototype) \
  297. static ACPI_INLINE Prototype {return;}
  298. #endif /* ACPI_NO_ERROR_MESSAGES */
  299. /*
  300. * Debugging output prototypes (default: no debug output).
  301. *
  302. * All interfaces related to debug output messages
  303. * will be configured out of the ACPICA build unless the
  304. * ACPI_DEBUG_OUTPUT flag is defined.
  305. */
  306. #ifdef ACPI_DEBUG_OUTPUT
  307. #define ACPI_DBG_DEPENDENT_RETURN_VOID(Prototype) \
  308. Prototype;
  309. #else
  310. #define ACPI_DBG_DEPENDENT_RETURN_VOID(Prototype) \
  311. static ACPI_INLINE Prototype {return;}
  312. #endif /* ACPI_DEBUG_OUTPUT */
  313. /*
  314. * Application prototypes
  315. *
  316. * All interfaces used by application will be configured
  317. * out of the ACPICA build unless the ACPI_APPLICATION
  318. * flag is defined.
  319. */
  320. #ifdef ACPI_APPLICATION
  321. #define ACPI_APP_DEPENDENT_RETURN_VOID(Prototype) \
  322. Prototype;
  323. #else
  324. #define ACPI_APP_DEPENDENT_RETURN_VOID(Prototype) \
  325. static ACPI_INLINE Prototype {return;}
  326. #endif /* ACPI_APPLICATION */
  327. /*
  328. * Debugger prototypes
  329. *
  330. * All interfaces used by debugger will be configured
  331. * out of the ACPICA build unless the ACPI_DEBUGGER
  332. * flag is defined.
  333. */
  334. #ifdef ACPI_DEBUGGER
  335. #define ACPI_DBR_DEPENDENT_RETURN_OK(Prototype) \
  336. ACPI_EXTERNAL_RETURN_OK(Prototype)
  337. #define ACPI_DBR_DEPENDENT_RETURN_VOID(Prototype) \
  338. ACPI_EXTERNAL_RETURN_VOID(Prototype)
  339. #else
  340. #define ACPI_DBR_DEPENDENT_RETURN_OK(Prototype) \
  341. static ACPI_INLINE Prototype {return(AE_OK);}
  342. #define ACPI_DBR_DEPENDENT_RETURN_VOID(Prototype) \
  343. static ACPI_INLINE Prototype {return;}
  344. #endif /* ACPI_DEBUGGER */
  345. /*****************************************************************************
  346. *
  347. * ACPICA public interface prototypes
  348. *
  349. ****************************************************************************/
  350. /*
  351. * Initialization
  352. */
  353. ACPI_EXTERNAL_RETURN_STATUS (
  354. ACPI_STATUS
  355. AcpiInitializeTables (
  356. ACPI_TABLE_DESC *InitialStorage,
  357. UINT32 InitialTableCount,
  358. BOOLEAN AllowResize))
  359. ACPI_EXTERNAL_RETURN_STATUS (
  360. ACPI_STATUS
  361. AcpiInitializeSubsystem (
  362. void))
  363. ACPI_EXTERNAL_RETURN_STATUS (
  364. ACPI_STATUS
  365. AcpiEnableSubsystem (
  366. UINT32 Flags))
  367. ACPI_EXTERNAL_RETURN_STATUS (
  368. ACPI_STATUS
  369. AcpiInitializeObjects (
  370. UINT32 Flags))
  371. ACPI_EXTERNAL_RETURN_STATUS (
  372. ACPI_STATUS
  373. AcpiTerminate (
  374. void))
  375. /*
  376. * Miscellaneous global interfaces
  377. */
  378. ACPI_HW_DEPENDENT_RETURN_STATUS (
  379. ACPI_STATUS
  380. AcpiEnable (
  381. void))
  382. ACPI_HW_DEPENDENT_RETURN_STATUS (
  383. ACPI_STATUS
  384. AcpiDisable (
  385. void))
  386. ACPI_EXTERNAL_RETURN_STATUS (
  387. ACPI_STATUS
  388. AcpiSubsystemStatus (
  389. void))
  390. ACPI_EXTERNAL_RETURN_STATUS (
  391. ACPI_STATUS
  392. AcpiGetSystemInfo (
  393. ACPI_BUFFER *RetBuffer))
  394. ACPI_EXTERNAL_RETURN_STATUS (
  395. ACPI_STATUS
  396. AcpiGetStatistics (
  397. ACPI_STATISTICS *Stats))
  398. ACPI_EXTERNAL_RETURN_PTR (
  399. const char *
  400. AcpiFormatException (
  401. ACPI_STATUS Exception))
  402. ACPI_EXTERNAL_RETURN_STATUS (
  403. ACPI_STATUS
  404. AcpiPurgeCachedObjects (
  405. void))
  406. ACPI_EXTERNAL_RETURN_STATUS (
  407. ACPI_STATUS
  408. AcpiInstallInterface (
  409. ACPI_STRING InterfaceName))
  410. ACPI_EXTERNAL_RETURN_STATUS (
  411. ACPI_STATUS
  412. AcpiRemoveInterface (
  413. ACPI_STRING InterfaceName))
  414. ACPI_EXTERNAL_RETURN_STATUS (
  415. ACPI_STATUS
  416. AcpiUpdateInterfaces (
  417. UINT8 Action))
  418. ACPI_EXTERNAL_RETURN_UINT32 (
  419. UINT32
  420. AcpiCheckAddressRange (
  421. ACPI_ADR_SPACE_TYPE SpaceId,
  422. ACPI_PHYSICAL_ADDRESS Address,
  423. ACPI_SIZE Length,
  424. BOOLEAN Warn))
  425. ACPI_EXTERNAL_RETURN_STATUS (
  426. ACPI_STATUS
  427. AcpiDecodePldBuffer (
  428. UINT8 *InBuffer,
  429. ACPI_SIZE Length,
  430. ACPI_PLD_INFO **ReturnBuffer))
  431. /*
  432. * ACPI table load/unload interfaces
  433. */
  434. ACPI_EXTERNAL_RETURN_STATUS (
  435. ACPI_STATUS
  436. AcpiInstallTable (
  437. ACPI_PHYSICAL_ADDRESS Address,
  438. BOOLEAN Physical))
  439. ACPI_EXTERNAL_RETURN_STATUS (
  440. ACPI_STATUS
  441. AcpiLoadTable (
  442. ACPI_TABLE_HEADER *Table))
  443. ACPI_EXTERNAL_RETURN_STATUS (
  444. ACPI_STATUS
  445. AcpiUnloadParentTable (
  446. ACPI_HANDLE Object))
  447. ACPI_EXTERNAL_RETURN_STATUS (
  448. ACPI_STATUS
  449. AcpiLoadTables (
  450. void))
  451. /*
  452. * ACPI table manipulation interfaces
  453. */
  454. ACPI_EXTERNAL_RETURN_STATUS (
  455. ACPI_STATUS
  456. AcpiReallocateRootTable (
  457. void))
  458. ACPI_EXTERNAL_RETURN_STATUS (
  459. ACPI_STATUS
  460. AcpiFindRootPointer (
  461. ACPI_PHYSICAL_ADDRESS *RsdpAddress))
  462. ACPI_EXTERNAL_RETURN_STATUS (
  463. ACPI_STATUS
  464. AcpiGetTableHeader (
  465. ACPI_STRING Signature,
  466. UINT32 Instance,
  467. ACPI_TABLE_HEADER *OutTableHeader))
  468. ACPI_EXTERNAL_RETURN_STATUS (
  469. ACPI_STATUS
  470. AcpiGetTable (
  471. ACPI_STRING Signature,
  472. UINT32 Instance,
  473. ACPI_TABLE_HEADER **OutTable))
  474. ACPI_EXTERNAL_RETURN_STATUS (
  475. ACPI_STATUS
  476. AcpiGetTableByIndex (
  477. UINT32 TableIndex,
  478. ACPI_TABLE_HEADER **OutTable))
  479. ACPI_EXTERNAL_RETURN_STATUS (
  480. ACPI_STATUS
  481. AcpiInstallTableHandler (
  482. ACPI_TABLE_HANDLER Handler,
  483. void *Context))
  484. ACPI_EXTERNAL_RETURN_STATUS (
  485. ACPI_STATUS
  486. AcpiRemoveTableHandler (
  487. ACPI_TABLE_HANDLER Handler))
  488. /*
  489. * Namespace and name interfaces
  490. */
  491. ACPI_EXTERNAL_RETURN_STATUS (
  492. ACPI_STATUS
  493. AcpiWalkNamespace (
  494. ACPI_OBJECT_TYPE Type,
  495. ACPI_HANDLE StartObject,
  496. UINT32 MaxDepth,
  497. ACPI_WALK_CALLBACK DescendingCallback,
  498. ACPI_WALK_CALLBACK AscendingCallback,
  499. void *Context,
  500. void **ReturnValue))
  501. ACPI_EXTERNAL_RETURN_STATUS (
  502. ACPI_STATUS
  503. AcpiGetDevices (
  504. char *HID,
  505. ACPI_WALK_CALLBACK UserFunction,
  506. void *Context,
  507. void **ReturnValue))
  508. ACPI_EXTERNAL_RETURN_STATUS (
  509. ACPI_STATUS
  510. AcpiGetName (
  511. ACPI_HANDLE Object,
  512. UINT32 NameType,
  513. ACPI_BUFFER *RetPathPtr))
  514. ACPI_EXTERNAL_RETURN_STATUS (
  515. ACPI_STATUS
  516. AcpiGetHandle (
  517. ACPI_HANDLE Parent,
  518. ACPI_STRING Pathname,
  519. ACPI_HANDLE *RetHandle))
  520. ACPI_EXTERNAL_RETURN_STATUS (
  521. ACPI_STATUS
  522. AcpiAttachData (
  523. ACPI_HANDLE Object,
  524. ACPI_OBJECT_HANDLER Handler,
  525. void *Data))
  526. ACPI_EXTERNAL_RETURN_STATUS (
  527. ACPI_STATUS
  528. AcpiDetachData (
  529. ACPI_HANDLE Object,
  530. ACPI_OBJECT_HANDLER Handler))
  531. ACPI_EXTERNAL_RETURN_STATUS (
  532. ACPI_STATUS
  533. AcpiGetData (
  534. ACPI_HANDLE Object,
  535. ACPI_OBJECT_HANDLER Handler,
  536. void **Data))
  537. ACPI_EXTERNAL_RETURN_STATUS (
  538. ACPI_STATUS
  539. AcpiDebugTrace (
  540. const char *Name,
  541. UINT32 DebugLevel,
  542. UINT32 DebugLayer,
  543. UINT32 Flags))
  544. /*
  545. * Object manipulation and enumeration
  546. */
  547. ACPI_EXTERNAL_RETURN_STATUS (
  548. ACPI_STATUS
  549. AcpiEvaluateObject (
  550. ACPI_HANDLE Object,
  551. ACPI_STRING Pathname,
  552. ACPI_OBJECT_LIST *ParameterObjects,
  553. ACPI_BUFFER *ReturnObjectBuffer))
  554. ACPI_EXTERNAL_RETURN_STATUS (
  555. ACPI_STATUS
  556. AcpiEvaluateObjectTyped (
  557. ACPI_HANDLE Object,
  558. ACPI_STRING Pathname,
  559. ACPI_OBJECT_LIST *ExternalParams,
  560. ACPI_BUFFER *ReturnBuffer,
  561. ACPI_OBJECT_TYPE ReturnType))
  562. ACPI_EXTERNAL_RETURN_STATUS (
  563. ACPI_STATUS
  564. AcpiGetObjectInfo (
  565. ACPI_HANDLE Object,
  566. ACPI_DEVICE_INFO **ReturnBuffer))
  567. ACPI_EXTERNAL_RETURN_STATUS (
  568. ACPI_STATUS
  569. AcpiInstallMethod (
  570. UINT8 *Buffer))
  571. ACPI_EXTERNAL_RETURN_STATUS (
  572. ACPI_STATUS
  573. AcpiGetNextObject (
  574. ACPI_OBJECT_TYPE Type,
  575. ACPI_HANDLE Parent,
  576. ACPI_HANDLE Child,
  577. ACPI_HANDLE *OutHandle))
  578. ACPI_EXTERNAL_RETURN_STATUS (
  579. ACPI_STATUS
  580. AcpiGetType (
  581. ACPI_HANDLE Object,
  582. ACPI_OBJECT_TYPE *OutType))
  583. ACPI_EXTERNAL_RETURN_STATUS (
  584. ACPI_STATUS
  585. AcpiGetParent (
  586. ACPI_HANDLE Object,
  587. ACPI_HANDLE *OutHandle))
  588. /*
  589. * Handler interfaces
  590. */
  591. ACPI_EXTERNAL_RETURN_STATUS (
  592. ACPI_STATUS
  593. AcpiInstallInitializationHandler (
  594. ACPI_INIT_HANDLER Handler,
  595. UINT32 Function))
  596. ACPI_HW_DEPENDENT_RETURN_STATUS (
  597. ACPI_STATUS
  598. AcpiInstallSciHandler (
  599. ACPI_SCI_HANDLER Address,
  600. void *Context))
  601. ACPI_HW_DEPENDENT_RETURN_STATUS (
  602. ACPI_STATUS
  603. AcpiRemoveSciHandler (
  604. ACPI_SCI_HANDLER Address))
  605. ACPI_HW_DEPENDENT_RETURN_STATUS (
  606. ACPI_STATUS
  607. AcpiInstallGlobalEventHandler (
  608. ACPI_GBL_EVENT_HANDLER Handler,
  609. void *Context))
  610. ACPI_HW_DEPENDENT_RETURN_STATUS (
  611. ACPI_STATUS
  612. AcpiInstallFixedEventHandler (
  613. UINT32 AcpiEvent,
  614. ACPI_EVENT_HANDLER Handler,
  615. void *Context))
  616. ACPI_HW_DEPENDENT_RETURN_STATUS (
  617. ACPI_STATUS
  618. AcpiRemoveFixedEventHandler (
  619. UINT32 AcpiEvent,
  620. ACPI_EVENT_HANDLER Handler))
  621. ACPI_HW_DEPENDENT_RETURN_STATUS (
  622. ACPI_STATUS
  623. AcpiInstallGpeHandler (
  624. ACPI_HANDLE GpeDevice,
  625. UINT32 GpeNumber,
  626. UINT32 Type,
  627. ACPI_GPE_HANDLER Address,
  628. void *Context))
  629. ACPI_HW_DEPENDENT_RETURN_STATUS (
  630. ACPI_STATUS
  631. AcpiInstallGpeRawHandler (
  632. ACPI_HANDLE GpeDevice,
  633. UINT32 GpeNumber,
  634. UINT32 Type,
  635. ACPI_GPE_HANDLER Address,
  636. void *Context))
  637. ACPI_HW_DEPENDENT_RETURN_STATUS (
  638. ACPI_STATUS
  639. AcpiRemoveGpeHandler (
  640. ACPI_HANDLE GpeDevice,
  641. UINT32 GpeNumber,
  642. ACPI_GPE_HANDLER Address))
  643. ACPI_EXTERNAL_RETURN_STATUS (
  644. ACPI_STATUS
  645. AcpiInstallNotifyHandler (
  646. ACPI_HANDLE Device,
  647. UINT32 HandlerType,
  648. ACPI_NOTIFY_HANDLER Handler,
  649. void *Context))
  650. ACPI_EXTERNAL_RETURN_STATUS (
  651. ACPI_STATUS
  652. AcpiRemoveNotifyHandler (
  653. ACPI_HANDLE Device,
  654. UINT32 HandlerType,
  655. ACPI_NOTIFY_HANDLER Handler))
  656. ACPI_EXTERNAL_RETURN_STATUS (
  657. ACPI_STATUS
  658. AcpiInstallAddressSpaceHandler (
  659. ACPI_HANDLE Device,
  660. ACPI_ADR_SPACE_TYPE SpaceId,
  661. ACPI_ADR_SPACE_HANDLER Handler,
  662. ACPI_ADR_SPACE_SETUP Setup,
  663. void *Context))
  664. ACPI_EXTERNAL_RETURN_STATUS (
  665. ACPI_STATUS
  666. AcpiRemoveAddressSpaceHandler (
  667. ACPI_HANDLE Device,
  668. ACPI_ADR_SPACE_TYPE SpaceId,
  669. ACPI_ADR_SPACE_HANDLER Handler))
  670. ACPI_EXTERNAL_RETURN_STATUS (
  671. ACPI_STATUS
  672. AcpiInstallExceptionHandler (
  673. ACPI_EXCEPTION_HANDLER Handler))
  674. ACPI_EXTERNAL_RETURN_STATUS (
  675. ACPI_STATUS
  676. AcpiInstallInterfaceHandler (
  677. ACPI_INTERFACE_HANDLER Handler))
  678. /*
  679. * Global Lock interfaces
  680. */
  681. ACPI_HW_DEPENDENT_RETURN_STATUS (
  682. ACPI_STATUS
  683. AcpiAcquireGlobalLock (
  684. UINT16 Timeout,
  685. UINT32 *Handle))
  686. ACPI_HW_DEPENDENT_RETURN_STATUS (
  687. ACPI_STATUS
  688. AcpiReleaseGlobalLock (
  689. UINT32 Handle))
  690. /*
  691. * Interfaces to AML mutex objects
  692. */
  693. ACPI_EXTERNAL_RETURN_STATUS (
  694. ACPI_STATUS
  695. AcpiAcquireMutex (
  696. ACPI_HANDLE Handle,
  697. ACPI_STRING Pathname,
  698. UINT16 Timeout))
  699. ACPI_EXTERNAL_RETURN_STATUS (
  700. ACPI_STATUS
  701. AcpiReleaseMutex (
  702. ACPI_HANDLE Handle,
  703. ACPI_STRING Pathname))
  704. /*
  705. * Fixed Event interfaces
  706. */
  707. ACPI_HW_DEPENDENT_RETURN_STATUS (
  708. ACPI_STATUS
  709. AcpiEnableEvent (
  710. UINT32 Event,
  711. UINT32 Flags))
  712. ACPI_HW_DEPENDENT_RETURN_STATUS (
  713. ACPI_STATUS
  714. AcpiDisableEvent (
  715. UINT32 Event,
  716. UINT32 Flags))
  717. ACPI_HW_DEPENDENT_RETURN_STATUS (
  718. ACPI_STATUS
  719. AcpiClearEvent (
  720. UINT32 Event))
  721. ACPI_HW_DEPENDENT_RETURN_STATUS (
  722. ACPI_STATUS
  723. AcpiGetEventStatus (
  724. UINT32 Event,
  725. ACPI_EVENT_STATUS *EventStatus))
  726. /*
  727. * General Purpose Event (GPE) Interfaces
  728. */
  729. ACPI_HW_DEPENDENT_RETURN_STATUS (
  730. ACPI_STATUS
  731. AcpiUpdateAllGpes (
  732. void))
  733. ACPI_HW_DEPENDENT_RETURN_STATUS (
  734. ACPI_STATUS
  735. AcpiEnableGpe (
  736. ACPI_HANDLE GpeDevice,
  737. UINT32 GpeNumber))
  738. ACPI_HW_DEPENDENT_RETURN_STATUS (
  739. ACPI_STATUS
  740. AcpiDisableGpe (
  741. ACPI_HANDLE GpeDevice,
  742. UINT32 GpeNumber))
  743. ACPI_HW_DEPENDENT_RETURN_STATUS (
  744. ACPI_STATUS
  745. AcpiClearGpe (
  746. ACPI_HANDLE GpeDevice,
  747. UINT32 GpeNumber))
  748. ACPI_HW_DEPENDENT_RETURN_STATUS (
  749. ACPI_STATUS
  750. AcpiSetGpe (
  751. ACPI_HANDLE GpeDevice,
  752. UINT32 GpeNumber,
  753. UINT8 Action))
  754. ACPI_HW_DEPENDENT_RETURN_STATUS (
  755. ACPI_STATUS
  756. AcpiFinishGpe (
  757. ACPI_HANDLE GpeDevice,
  758. UINT32 GpeNumber))
  759. ACPI_HW_DEPENDENT_RETURN_STATUS (
  760. ACPI_STATUS
  761. AcpiMarkGpeForWake (
  762. ACPI_HANDLE GpeDevice,
  763. UINT32 GpeNumber))
  764. ACPI_HW_DEPENDENT_RETURN_STATUS (
  765. ACPI_STATUS
  766. AcpiSetupGpeForWake (
  767. ACPI_HANDLE ParentDevice,
  768. ACPI_HANDLE GpeDevice,
  769. UINT32 GpeNumber))
  770. ACPI_HW_DEPENDENT_RETURN_STATUS (
  771. ACPI_STATUS
  772. AcpiSetGpeWakeMask (
  773. ACPI_HANDLE GpeDevice,
  774. UINT32 GpeNumber,
  775. UINT8 Action))
  776. ACPI_HW_DEPENDENT_RETURN_STATUS (
  777. ACPI_STATUS
  778. AcpiGetGpeStatus (
  779. ACPI_HANDLE GpeDevice,
  780. UINT32 GpeNumber,
  781. ACPI_EVENT_STATUS *EventStatus))
  782. ACPI_HW_DEPENDENT_RETURN_STATUS (
  783. ACPI_STATUS
  784. AcpiDisableAllGpes (
  785. void))
  786. ACPI_HW_DEPENDENT_RETURN_STATUS (
  787. ACPI_STATUS
  788. AcpiEnableAllRuntimeGpes (
  789. void))
  790. ACPI_HW_DEPENDENT_RETURN_STATUS (
  791. ACPI_STATUS
  792. AcpiEnableAllWakeupGpes (
  793. void))
  794. ACPI_HW_DEPENDENT_RETURN_STATUS (
  795. ACPI_STATUS
  796. AcpiGetGpeDevice (
  797. UINT32 GpeIndex,
  798. ACPI_HANDLE *GpeDevice))
  799. ACPI_HW_DEPENDENT_RETURN_STATUS (
  800. ACPI_STATUS
  801. AcpiInstallGpeBlock (
  802. ACPI_HANDLE GpeDevice,
  803. ACPI_GENERIC_ADDRESS *GpeBlockAddress,
  804. UINT32 RegisterCount,
  805. UINT32 InterruptNumber))
  806. ACPI_HW_DEPENDENT_RETURN_STATUS (
  807. ACPI_STATUS
  808. AcpiRemoveGpeBlock (
  809. ACPI_HANDLE GpeDevice))
  810. /*
  811. * Resource interfaces
  812. */
  813. typedef
  814. ACPI_STATUS (*ACPI_WALK_RESOURCE_CALLBACK) (
  815. ACPI_RESOURCE *Resource,
  816. void *Context);
  817. ACPI_EXTERNAL_RETURN_STATUS (
  818. ACPI_STATUS
  819. AcpiGetVendorResource (
  820. ACPI_HANDLE Device,
  821. char *Name,
  822. ACPI_VENDOR_UUID *Uuid,
  823. ACPI_BUFFER *RetBuffer))
  824. ACPI_EXTERNAL_RETURN_STATUS (
  825. ACPI_STATUS
  826. AcpiGetCurrentResources (
  827. ACPI_HANDLE Device,
  828. ACPI_BUFFER *RetBuffer))
  829. ACPI_EXTERNAL_RETURN_STATUS (
  830. ACPI_STATUS
  831. AcpiGetPossibleResources (
  832. ACPI_HANDLE Device,
  833. ACPI_BUFFER *RetBuffer))
  834. ACPI_EXTERNAL_RETURN_STATUS (
  835. ACPI_STATUS
  836. AcpiGetEventResources (
  837. ACPI_HANDLE DeviceHandle,
  838. ACPI_BUFFER *RetBuffer))
  839. ACPI_EXTERNAL_RETURN_STATUS (
  840. ACPI_STATUS
  841. AcpiWalkResourceBuffer (
  842. ACPI_BUFFER *Buffer,
  843. ACPI_WALK_RESOURCE_CALLBACK UserFunction,
  844. void *Context))
  845. ACPI_EXTERNAL_RETURN_STATUS (
  846. ACPI_STATUS
  847. AcpiWalkResources (
  848. ACPI_HANDLE Device,
  849. char *Name,
  850. ACPI_WALK_RESOURCE_CALLBACK UserFunction,
  851. void *Context))
  852. ACPI_EXTERNAL_RETURN_STATUS (
  853. ACPI_STATUS
  854. AcpiSetCurrentResources (
  855. ACPI_HANDLE Device,
  856. ACPI_BUFFER *InBuffer))
  857. ACPI_EXTERNAL_RETURN_STATUS (
  858. ACPI_STATUS
  859. AcpiGetIrqRoutingTable (
  860. ACPI_HANDLE Device,
  861. ACPI_BUFFER *RetBuffer))
  862. ACPI_EXTERNAL_RETURN_STATUS (
  863. ACPI_STATUS
  864. AcpiResourceToAddress64 (
  865. ACPI_RESOURCE *Resource,
  866. ACPI_RESOURCE_ADDRESS64 *Out))
  867. ACPI_EXTERNAL_RETURN_STATUS (
  868. ACPI_STATUS
  869. AcpiBufferToResource (
  870. UINT8 *AmlBuffer,
  871. UINT16 AmlBufferLength,
  872. ACPI_RESOURCE **ResourcePtr))
  873. /*
  874. * Hardware (ACPI device) interfaces
  875. */
  876. ACPI_EXTERNAL_RETURN_STATUS (
  877. ACPI_STATUS
  878. AcpiReset (
  879. void))
  880. ACPI_EXTERNAL_RETURN_STATUS (
  881. ACPI_STATUS
  882. AcpiRead (
  883. UINT64 *Value,
  884. ACPI_GENERIC_ADDRESS *Reg))
  885. ACPI_EXTERNAL_RETURN_STATUS (
  886. ACPI_STATUS
  887. AcpiWrite (
  888. UINT64 Value,
  889. ACPI_GENERIC_ADDRESS *Reg))
  890. ACPI_HW_DEPENDENT_RETURN_STATUS (
  891. ACPI_STATUS
  892. AcpiReadBitRegister (
  893. UINT32 RegisterId,
  894. UINT32 *ReturnValue))
  895. ACPI_HW_DEPENDENT_RETURN_STATUS (
  896. ACPI_STATUS
  897. AcpiWriteBitRegister (
  898. UINT32 RegisterId,
  899. UINT32 Value))
  900. /*
  901. * Sleep/Wake interfaces
  902. */
  903. ACPI_EXTERNAL_RETURN_STATUS (
  904. ACPI_STATUS
  905. AcpiGetSleepTypeData (
  906. UINT8 SleepState,
  907. UINT8 *Slp_TypA,
  908. UINT8 *Slp_TypB))
  909. ACPI_EXTERNAL_RETURN_STATUS (
  910. ACPI_STATUS
  911. AcpiEnterSleepStatePrep (
  912. UINT8 SleepState))
  913. ACPI_EXTERNAL_RETURN_STATUS (
  914. ACPI_STATUS
  915. AcpiEnterSleepState (
  916. UINT8 SleepState))
  917. ACPI_HW_DEPENDENT_RETURN_STATUS (
  918. ACPI_STATUS
  919. AcpiEnterSleepStateS4bios (
  920. void))
  921. ACPI_EXTERNAL_RETURN_STATUS (
  922. ACPI_STATUS
  923. AcpiLeaveSleepStatePrep (
  924. UINT8 SleepState))
  925. ACPI_EXTERNAL_RETURN_STATUS (
  926. ACPI_STATUS
  927. AcpiLeaveSleepState (
  928. UINT8 SleepState))
  929. ACPI_HW_DEPENDENT_RETURN_STATUS (
  930. ACPI_STATUS
  931. AcpiSetFirmwareWakingVector (
  932. ACPI_PHYSICAL_ADDRESS PhysicalAddress,
  933. ACPI_PHYSICAL_ADDRESS PhysicalAddress64))
  934. /*
  935. * ACPI Timer interfaces
  936. */
  937. ACPI_HW_DEPENDENT_RETURN_STATUS (
  938. ACPI_STATUS
  939. AcpiGetTimerResolution (
  940. UINT32 *Resolution))
  941. ACPI_HW_DEPENDENT_RETURN_STATUS (
  942. ACPI_STATUS
  943. AcpiGetTimer (
  944. UINT32 *Ticks))
  945. ACPI_HW_DEPENDENT_RETURN_STATUS (
  946. ACPI_STATUS
  947. AcpiGetTimerDuration (
  948. UINT32 StartTicks,
  949. UINT32 EndTicks,
  950. UINT32 *TimeElapsed))
  951. /*
  952. * Error/Warning output
  953. */
  954. ACPI_MSG_DEPENDENT_RETURN_VOID (
  955. ACPI_PRINTF_LIKE(3)
  956. void ACPI_INTERNAL_VAR_XFACE
  957. AcpiError (
  958. const char *ModuleName,
  959. UINT32 LineNumber,
  960. const char *Format,
  961. ...))
  962. ACPI_MSG_DEPENDENT_RETURN_VOID (
  963. ACPI_PRINTF_LIKE(4)
  964. void ACPI_INTERNAL_VAR_XFACE
  965. AcpiException (
  966. const char *ModuleName,
  967. UINT32 LineNumber,
  968. ACPI_STATUS Status,
  969. const char *Format,
  970. ...))
  971. ACPI_MSG_DEPENDENT_RETURN_VOID (
  972. ACPI_PRINTF_LIKE(3)
  973. void ACPI_INTERNAL_VAR_XFACE
  974. AcpiWarning (
  975. const char *ModuleName,
  976. UINT32 LineNumber,
  977. const char *Format,
  978. ...))
  979. ACPI_MSG_DEPENDENT_RETURN_VOID (
  980. ACPI_PRINTF_LIKE(3)
  981. void ACPI_INTERNAL_VAR_XFACE
  982. AcpiInfo (
  983. const char *ModuleName,
  984. UINT32 LineNumber,
  985. const char *Format,
  986. ...))
  987. ACPI_MSG_DEPENDENT_RETURN_VOID (
  988. ACPI_PRINTF_LIKE(3)
  989. void ACPI_INTERNAL_VAR_XFACE
  990. AcpiBiosError (
  991. const char *ModuleName,
  992. UINT32 LineNumber,
  993. const char *Format,
  994. ...))
  995. ACPI_MSG_DEPENDENT_RETURN_VOID (
  996. ACPI_PRINTF_LIKE(3)
  997. void ACPI_INTERNAL_VAR_XFACE
  998. AcpiBiosWarning (
  999. const char *ModuleName,
  1000. UINT32 LineNumber,
  1001. const char *Format,
  1002. ...))
  1003. /*
  1004. * Debug output
  1005. */
  1006. ACPI_DBG_DEPENDENT_RETURN_VOID (
  1007. ACPI_PRINTF_LIKE(6)
  1008. void ACPI_INTERNAL_VAR_XFACE
  1009. AcpiDebugPrint (
  1010. UINT32 RequestedDebugLevel,
  1011. UINT32 LineNumber,
  1012. const char *FunctionName,
  1013. const char *ModuleName,
  1014. UINT32 ComponentId,
  1015. const char *Format,
  1016. ...))
  1017. ACPI_DBG_DEPENDENT_RETURN_VOID (
  1018. ACPI_PRINTF_LIKE(6)
  1019. void ACPI_INTERNAL_VAR_XFACE
  1020. AcpiDebugPrintRaw (
  1021. UINT32 RequestedDebugLevel,
  1022. UINT32 LineNumber,
  1023. const char *FunctionName,
  1024. const char *ModuleName,
  1025. UINT32 ComponentId,
  1026. const char *Format,
  1027. ...))
  1028. ACPI_DBG_DEPENDENT_RETURN_VOID (
  1029. void
  1030. AcpiTracePoint (
  1031. ACPI_TRACE_EVENT_TYPE Type,
  1032. BOOLEAN Begin,
  1033. UINT8 *Aml,
  1034. char *Pathname))
  1035. ACPI_APP_DEPENDENT_RETURN_VOID (
  1036. ACPI_PRINTF_LIKE(1)
  1037. void ACPI_INTERNAL_VAR_XFACE
  1038. AcpiLogError (
  1039. const char *Format,
  1040. ...))
  1041. ACPI_STATUS
  1042. AcpiInitializeDebugger (
  1043. void);
  1044. void
  1045. AcpiTerminateDebugger (
  1046. void);
  1047. void
  1048. AcpiSetDebuggerThreadId (
  1049. ACPI_THREAD_ID ThreadId);
  1050. #endif /* __ACXFACE_H__ */