acinterp.h 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757
  1. /******************************************************************************
  2. *
  3. * Name: acinterp.h - Interpreter subcomponent prototypes and defines
  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 __ACINTERP_H__
  43. #define __ACINTERP_H__
  44. #define ACPI_WALK_OPERANDS (&(WalkState->Operands [WalkState->NumOperands -1]))
  45. /* Macros for tables used for debug output */
  46. #define ACPI_EXD_OFFSET(f) (UINT8) ACPI_OFFSET (ACPI_OPERAND_OBJECT,f)
  47. #define ACPI_EXD_NSOFFSET(f) (UINT8) ACPI_OFFSET (ACPI_NAMESPACE_NODE,f)
  48. #define ACPI_EXD_TABLE_SIZE(name) (sizeof(name) / sizeof (ACPI_EXDUMP_INFO))
  49. /*
  50. * If possible, pack the following structures to byte alignment, since we
  51. * don't care about performance for debug output. Two cases where we cannot
  52. * pack the structures:
  53. *
  54. * 1) Hardware does not support misaligned memory transfers
  55. * 2) Compiler does not support pointers within packed structures
  56. */
  57. #if (!defined(ACPI_MISALIGNMENT_NOT_SUPPORTED) && !defined(ACPI_PACKED_POINTERS_NOT_SUPPORTED))
  58. #pragma pack(1)
  59. #endif
  60. typedef const struct acpi_exdump_info
  61. {
  62. UINT8 Opcode;
  63. UINT8 Offset;
  64. char *Name;
  65. } ACPI_EXDUMP_INFO;
  66. /* Values for the Opcode field above */
  67. #define ACPI_EXD_INIT 0
  68. #define ACPI_EXD_TYPE 1
  69. #define ACPI_EXD_UINT8 2
  70. #define ACPI_EXD_UINT16 3
  71. #define ACPI_EXD_UINT32 4
  72. #define ACPI_EXD_UINT64 5
  73. #define ACPI_EXD_LITERAL 6
  74. #define ACPI_EXD_POINTER 7
  75. #define ACPI_EXD_ADDRESS 8
  76. #define ACPI_EXD_STRING 9
  77. #define ACPI_EXD_BUFFER 10
  78. #define ACPI_EXD_PACKAGE 11
  79. #define ACPI_EXD_FIELD 12
  80. #define ACPI_EXD_REFERENCE 13
  81. #define ACPI_EXD_LIST 14 /* Operand object list */
  82. #define ACPI_EXD_HDLR_LIST 15 /* Address Handler list */
  83. #define ACPI_EXD_RGN_LIST 16 /* Region list */
  84. #define ACPI_EXD_NODE 17 /* Namespace Node */
  85. /* restore default alignment */
  86. #pragma pack()
  87. /*
  88. * exconvrt - object conversion
  89. */
  90. ACPI_STATUS
  91. AcpiExConvertToInteger (
  92. ACPI_OPERAND_OBJECT *ObjDesc,
  93. ACPI_OPERAND_OBJECT **ResultDesc,
  94. UINT32 Flags);
  95. ACPI_STATUS
  96. AcpiExConvertToBuffer (
  97. ACPI_OPERAND_OBJECT *ObjDesc,
  98. ACPI_OPERAND_OBJECT **ResultDesc);
  99. ACPI_STATUS
  100. AcpiExConvertToString (
  101. ACPI_OPERAND_OBJECT *ObjDesc,
  102. ACPI_OPERAND_OBJECT **ResultDesc,
  103. UINT32 Type);
  104. /* Types for ->String conversion */
  105. #define ACPI_EXPLICIT_BYTE_COPY 0x00000000
  106. #define ACPI_EXPLICIT_CONVERT_HEX 0x00000001
  107. #define ACPI_IMPLICIT_CONVERT_HEX 0x00000002
  108. #define ACPI_EXPLICIT_CONVERT_DECIMAL 0x00000003
  109. ACPI_STATUS
  110. AcpiExConvertToTargetType (
  111. ACPI_OBJECT_TYPE DestinationType,
  112. ACPI_OPERAND_OBJECT *SourceDesc,
  113. ACPI_OPERAND_OBJECT **ResultDesc,
  114. ACPI_WALK_STATE *WalkState);
  115. /*
  116. * exdebug - AML debug object
  117. */
  118. void
  119. AcpiExDoDebugObject (
  120. ACPI_OPERAND_OBJECT *SourceDesc,
  121. UINT32 Level,
  122. UINT32 Index);
  123. void
  124. AcpiExStartTraceMethod (
  125. ACPI_NAMESPACE_NODE *MethodNode,
  126. ACPI_OPERAND_OBJECT *ObjDesc,
  127. ACPI_WALK_STATE *WalkState);
  128. void
  129. AcpiExStopTraceMethod (
  130. ACPI_NAMESPACE_NODE *MethodNode,
  131. ACPI_OPERAND_OBJECT *ObjDesc,
  132. ACPI_WALK_STATE *WalkState);
  133. void
  134. AcpiExStartTraceOpcode (
  135. ACPI_PARSE_OBJECT *Op,
  136. ACPI_WALK_STATE *WalkState);
  137. void
  138. AcpiExStopTraceOpcode (
  139. ACPI_PARSE_OBJECT *Op,
  140. ACPI_WALK_STATE *WalkState);
  141. void
  142. AcpiExTracePoint (
  143. ACPI_TRACE_EVENT_TYPE Type,
  144. BOOLEAN Begin,
  145. UINT8 *Aml,
  146. char *Pathname);
  147. /*
  148. * exfield - ACPI AML (p-code) execution - field manipulation
  149. */
  150. ACPI_STATUS
  151. AcpiExCommonBufferSetup (
  152. ACPI_OPERAND_OBJECT *ObjDesc,
  153. UINT32 BufferLength,
  154. UINT32 *DatumCount);
  155. ACPI_STATUS
  156. AcpiExWriteWithUpdateRule (
  157. ACPI_OPERAND_OBJECT *ObjDesc,
  158. UINT64 Mask,
  159. UINT64 FieldValue,
  160. UINT32 FieldDatumByteOffset);
  161. void
  162. AcpiExGetBufferDatum(
  163. UINT64 *Datum,
  164. void *Buffer,
  165. UINT32 BufferLength,
  166. UINT32 ByteGranularity,
  167. UINT32 BufferOffset);
  168. void
  169. AcpiExSetBufferDatum (
  170. UINT64 MergedDatum,
  171. void *Buffer,
  172. UINT32 BufferLength,
  173. UINT32 ByteGranularity,
  174. UINT32 BufferOffset);
  175. ACPI_STATUS
  176. AcpiExReadDataFromField (
  177. ACPI_WALK_STATE *WalkState,
  178. ACPI_OPERAND_OBJECT *ObjDesc,
  179. ACPI_OPERAND_OBJECT **RetBufferDesc);
  180. ACPI_STATUS
  181. AcpiExWriteDataToField (
  182. ACPI_OPERAND_OBJECT *SourceDesc,
  183. ACPI_OPERAND_OBJECT *ObjDesc,
  184. ACPI_OPERAND_OBJECT **ResultDesc);
  185. /*
  186. * exfldio - low level field I/O
  187. */
  188. ACPI_STATUS
  189. AcpiExExtractFromField (
  190. ACPI_OPERAND_OBJECT *ObjDesc,
  191. void *Buffer,
  192. UINT32 BufferLength);
  193. ACPI_STATUS
  194. AcpiExInsertIntoField (
  195. ACPI_OPERAND_OBJECT *ObjDesc,
  196. void *Buffer,
  197. UINT32 BufferLength);
  198. ACPI_STATUS
  199. AcpiExAccessRegion (
  200. ACPI_OPERAND_OBJECT *ObjDesc,
  201. UINT32 FieldDatumByteOffset,
  202. UINT64 *Value,
  203. UINT32 ReadWrite);
  204. /*
  205. * exmisc - misc support routines
  206. */
  207. ACPI_STATUS
  208. AcpiExGetObjectReference (
  209. ACPI_OPERAND_OBJECT *ObjDesc,
  210. ACPI_OPERAND_OBJECT **ReturnDesc,
  211. ACPI_WALK_STATE *WalkState);
  212. ACPI_STATUS
  213. AcpiExConcatTemplate (
  214. ACPI_OPERAND_OBJECT *ObjDesc,
  215. ACPI_OPERAND_OBJECT *ObjDesc2,
  216. ACPI_OPERAND_OBJECT **ActualReturnDesc,
  217. ACPI_WALK_STATE *WalkState);
  218. ACPI_STATUS
  219. AcpiExDoConcatenate (
  220. ACPI_OPERAND_OBJECT *ObjDesc,
  221. ACPI_OPERAND_OBJECT *ObjDesc2,
  222. ACPI_OPERAND_OBJECT **ActualReturnDesc,
  223. ACPI_WALK_STATE *WalkState);
  224. ACPI_STATUS
  225. AcpiExDoLogicalNumericOp (
  226. UINT16 Opcode,
  227. UINT64 Integer0,
  228. UINT64 Integer1,
  229. BOOLEAN *LogicalResult);
  230. ACPI_STATUS
  231. AcpiExDoLogicalOp (
  232. UINT16 Opcode,
  233. ACPI_OPERAND_OBJECT *Operand0,
  234. ACPI_OPERAND_OBJECT *Operand1,
  235. BOOLEAN *LogicalResult);
  236. UINT64
  237. AcpiExDoMathOp (
  238. UINT16 Opcode,
  239. UINT64 Operand0,
  240. UINT64 Operand1);
  241. ACPI_STATUS
  242. AcpiExCreateMutex (
  243. ACPI_WALK_STATE *WalkState);
  244. ACPI_STATUS
  245. AcpiExCreateProcessor (
  246. ACPI_WALK_STATE *WalkState);
  247. ACPI_STATUS
  248. AcpiExCreatePowerResource (
  249. ACPI_WALK_STATE *WalkState);
  250. ACPI_STATUS
  251. AcpiExCreateRegion (
  252. UINT8 *AmlStart,
  253. UINT32 AmlLength,
  254. UINT8 RegionSpace,
  255. ACPI_WALK_STATE *WalkState);
  256. ACPI_STATUS
  257. AcpiExCreateEvent (
  258. ACPI_WALK_STATE *WalkState);
  259. ACPI_STATUS
  260. AcpiExCreateAlias (
  261. ACPI_WALK_STATE *WalkState);
  262. ACPI_STATUS
  263. AcpiExCreateMethod (
  264. UINT8 *AmlStart,
  265. UINT32 AmlLength,
  266. ACPI_WALK_STATE *WalkState);
  267. /*
  268. * exconfig - dynamic table load/unload
  269. */
  270. ACPI_STATUS
  271. AcpiExLoadOp (
  272. ACPI_OPERAND_OBJECT *ObjDesc,
  273. ACPI_OPERAND_OBJECT *Target,
  274. ACPI_WALK_STATE *WalkState);
  275. ACPI_STATUS
  276. AcpiExLoadTableOp (
  277. ACPI_WALK_STATE *WalkState,
  278. ACPI_OPERAND_OBJECT **ReturnDesc);
  279. ACPI_STATUS
  280. AcpiExUnloadTable (
  281. ACPI_OPERAND_OBJECT *DdbHandle);
  282. /*
  283. * exmutex - mutex support
  284. */
  285. ACPI_STATUS
  286. AcpiExAcquireMutex (
  287. ACPI_OPERAND_OBJECT *TimeDesc,
  288. ACPI_OPERAND_OBJECT *ObjDesc,
  289. ACPI_WALK_STATE *WalkState);
  290. ACPI_STATUS
  291. AcpiExAcquireMutexObject (
  292. UINT16 Timeout,
  293. ACPI_OPERAND_OBJECT *ObjDesc,
  294. ACPI_THREAD_ID ThreadId);
  295. ACPI_STATUS
  296. AcpiExReleaseMutex (
  297. ACPI_OPERAND_OBJECT *ObjDesc,
  298. ACPI_WALK_STATE *WalkState);
  299. ACPI_STATUS
  300. AcpiExReleaseMutexObject (
  301. ACPI_OPERAND_OBJECT *ObjDesc);
  302. void
  303. AcpiExReleaseAllMutexes (
  304. ACPI_THREAD_STATE *Thread);
  305. void
  306. AcpiExUnlinkMutex (
  307. ACPI_OPERAND_OBJECT *ObjDesc);
  308. /*
  309. * exprep - ACPI AML execution - prep utilities
  310. */
  311. ACPI_STATUS
  312. AcpiExPrepCommonFieldObject (
  313. ACPI_OPERAND_OBJECT *ObjDesc,
  314. UINT8 FieldFlags,
  315. UINT8 FieldAttribute,
  316. UINT32 FieldBitPosition,
  317. UINT32 FieldBitLength);
  318. ACPI_STATUS
  319. AcpiExPrepFieldValue (
  320. ACPI_CREATE_FIELD_INFO *Info);
  321. /*
  322. * exsystem - Interface to OS services
  323. */
  324. ACPI_STATUS
  325. AcpiExSystemDoNotifyOp (
  326. ACPI_OPERAND_OBJECT *Value,
  327. ACPI_OPERAND_OBJECT *ObjDesc);
  328. ACPI_STATUS
  329. AcpiExSystemDoSleep(
  330. UINT64 Time);
  331. ACPI_STATUS
  332. AcpiExSystemDoStall (
  333. UINT32 Time);
  334. ACPI_STATUS
  335. AcpiExSystemSignalEvent(
  336. ACPI_OPERAND_OBJECT *ObjDesc);
  337. ACPI_STATUS
  338. AcpiExSystemWaitEvent(
  339. ACPI_OPERAND_OBJECT *Time,
  340. ACPI_OPERAND_OBJECT *ObjDesc);
  341. ACPI_STATUS
  342. AcpiExSystemResetEvent(
  343. ACPI_OPERAND_OBJECT *ObjDesc);
  344. ACPI_STATUS
  345. AcpiExSystemWaitSemaphore (
  346. ACPI_SEMAPHORE Semaphore,
  347. UINT16 Timeout);
  348. ACPI_STATUS
  349. AcpiExSystemWaitMutex (
  350. ACPI_MUTEX Mutex,
  351. UINT16 Timeout);
  352. /*
  353. * exoparg1 - ACPI AML execution, 1 operand
  354. */
  355. ACPI_STATUS
  356. AcpiExOpcode_0A_0T_1R (
  357. ACPI_WALK_STATE *WalkState);
  358. ACPI_STATUS
  359. AcpiExOpcode_1A_0T_0R (
  360. ACPI_WALK_STATE *WalkState);
  361. ACPI_STATUS
  362. AcpiExOpcode_1A_0T_1R (
  363. ACPI_WALK_STATE *WalkState);
  364. ACPI_STATUS
  365. AcpiExOpcode_1A_1T_1R (
  366. ACPI_WALK_STATE *WalkState);
  367. ACPI_STATUS
  368. AcpiExOpcode_1A_1T_0R (
  369. ACPI_WALK_STATE *WalkState);
  370. /*
  371. * exoparg2 - ACPI AML execution, 2 operands
  372. */
  373. ACPI_STATUS
  374. AcpiExOpcode_2A_0T_0R (
  375. ACPI_WALK_STATE *WalkState);
  376. ACPI_STATUS
  377. AcpiExOpcode_2A_0T_1R (
  378. ACPI_WALK_STATE *WalkState);
  379. ACPI_STATUS
  380. AcpiExOpcode_2A_1T_1R (
  381. ACPI_WALK_STATE *WalkState);
  382. ACPI_STATUS
  383. AcpiExOpcode_2A_2T_1R (
  384. ACPI_WALK_STATE *WalkState);
  385. /*
  386. * exoparg3 - ACPI AML execution, 3 operands
  387. */
  388. ACPI_STATUS
  389. AcpiExOpcode_3A_0T_0R (
  390. ACPI_WALK_STATE *WalkState);
  391. ACPI_STATUS
  392. AcpiExOpcode_3A_1T_1R (
  393. ACPI_WALK_STATE *WalkState);
  394. /*
  395. * exoparg6 - ACPI AML execution, 6 operands
  396. */
  397. ACPI_STATUS
  398. AcpiExOpcode_6A_0T_1R (
  399. ACPI_WALK_STATE *WalkState);
  400. /*
  401. * exresolv - Object resolution and get value functions
  402. */
  403. ACPI_STATUS
  404. AcpiExResolveToValue (
  405. ACPI_OPERAND_OBJECT **StackPtr,
  406. ACPI_WALK_STATE *WalkState);
  407. ACPI_STATUS
  408. AcpiExResolveMultiple (
  409. ACPI_WALK_STATE *WalkState,
  410. ACPI_OPERAND_OBJECT *Operand,
  411. ACPI_OBJECT_TYPE *ReturnType,
  412. ACPI_OPERAND_OBJECT **ReturnDesc);
  413. /*
  414. * exresnte - resolve namespace node
  415. */
  416. ACPI_STATUS
  417. AcpiExResolveNodeToValue (
  418. ACPI_NAMESPACE_NODE **StackPtr,
  419. ACPI_WALK_STATE *WalkState);
  420. /*
  421. * exresop - resolve operand to value
  422. */
  423. ACPI_STATUS
  424. AcpiExResolveOperands (
  425. UINT16 Opcode,
  426. ACPI_OPERAND_OBJECT **StackPtr,
  427. ACPI_WALK_STATE *WalkState);
  428. /*
  429. * exdump - Interpreter debug output routines
  430. */
  431. void
  432. AcpiExDumpOperand (
  433. ACPI_OPERAND_OBJECT *ObjDesc,
  434. UINT32 Depth);
  435. void
  436. AcpiExDumpOperands (
  437. ACPI_OPERAND_OBJECT **Operands,
  438. const char *OpcodeName,
  439. UINT32 NumOpcodes);
  440. void
  441. AcpiExDumpObjectDescriptor (
  442. ACPI_OPERAND_OBJECT *Object,
  443. UINT32 Flags);
  444. void
  445. AcpiExDumpNamespaceNode (
  446. ACPI_NAMESPACE_NODE *Node,
  447. UINT32 Flags);
  448. /*
  449. * exnames - AML namestring support
  450. */
  451. ACPI_STATUS
  452. AcpiExGetNameString (
  453. ACPI_OBJECT_TYPE DataType,
  454. UINT8 *InAmlAddress,
  455. char **OutNameString,
  456. UINT32 *OutNameLength);
  457. /*
  458. * exstore - Object store support
  459. */
  460. ACPI_STATUS
  461. AcpiExStore (
  462. ACPI_OPERAND_OBJECT *ValDesc,
  463. ACPI_OPERAND_OBJECT *DestDesc,
  464. ACPI_WALK_STATE *WalkState);
  465. ACPI_STATUS
  466. AcpiExStoreObjectToNode (
  467. ACPI_OPERAND_OBJECT *SourceDesc,
  468. ACPI_NAMESPACE_NODE *Node,
  469. ACPI_WALK_STATE *WalkState,
  470. UINT8 ImplicitConversion);
  471. #define ACPI_IMPLICIT_CONVERSION TRUE
  472. #define ACPI_NO_IMPLICIT_CONVERSION FALSE
  473. /*
  474. * exstoren - resolve/store object
  475. */
  476. ACPI_STATUS
  477. AcpiExResolveObject (
  478. ACPI_OPERAND_OBJECT **SourceDescPtr,
  479. ACPI_OBJECT_TYPE TargetType,
  480. ACPI_WALK_STATE *WalkState);
  481. ACPI_STATUS
  482. AcpiExStoreObjectToObject (
  483. ACPI_OPERAND_OBJECT *SourceDesc,
  484. ACPI_OPERAND_OBJECT *DestDesc,
  485. ACPI_OPERAND_OBJECT **NewDesc,
  486. ACPI_WALK_STATE *WalkState);
  487. /*
  488. * exstorob - store object - buffer/string
  489. */
  490. ACPI_STATUS
  491. AcpiExStoreBufferToBuffer (
  492. ACPI_OPERAND_OBJECT *SourceDesc,
  493. ACPI_OPERAND_OBJECT *TargetDesc);
  494. ACPI_STATUS
  495. AcpiExStoreStringToString (
  496. ACPI_OPERAND_OBJECT *SourceDesc,
  497. ACPI_OPERAND_OBJECT *TargetDesc);
  498. /*
  499. * excopy - object copy
  500. */
  501. ACPI_STATUS
  502. AcpiExCopyIntegerToIndexField (
  503. ACPI_OPERAND_OBJECT *SourceDesc,
  504. ACPI_OPERAND_OBJECT *TargetDesc);
  505. ACPI_STATUS
  506. AcpiExCopyIntegerToBankField (
  507. ACPI_OPERAND_OBJECT *SourceDesc,
  508. ACPI_OPERAND_OBJECT *TargetDesc);
  509. ACPI_STATUS
  510. AcpiExCopyDataToNamedField (
  511. ACPI_OPERAND_OBJECT *SourceDesc,
  512. ACPI_NAMESPACE_NODE *Node);
  513. ACPI_STATUS
  514. AcpiExCopyIntegerToBufferField (
  515. ACPI_OPERAND_OBJECT *SourceDesc,
  516. ACPI_OPERAND_OBJECT *TargetDesc);
  517. /*
  518. * exutils - interpreter/scanner utilities
  519. */
  520. void
  521. AcpiExEnterInterpreter (
  522. void);
  523. void
  524. AcpiExExitInterpreter (
  525. void);
  526. BOOLEAN
  527. AcpiExTruncateFor32bitTable (
  528. ACPI_OPERAND_OBJECT *ObjDesc);
  529. void
  530. AcpiExAcquireGlobalLock (
  531. UINT32 Rule);
  532. void
  533. AcpiExReleaseGlobalLock (
  534. UINT32 Rule);
  535. void
  536. AcpiExEisaIdToString (
  537. char *Dest,
  538. UINT64 CompressedId);
  539. void
  540. AcpiExIntegerToString (
  541. char *Dest,
  542. UINT64 Value);
  543. void
  544. AcpiExPciClsToString (
  545. char *Dest,
  546. UINT8 ClassCode[3]);
  547. BOOLEAN
  548. AcpiIsValidSpaceId (
  549. UINT8 SpaceId);
  550. /*
  551. * exregion - default OpRegion handlers
  552. */
  553. ACPI_STATUS
  554. AcpiExSystemMemorySpaceHandler (
  555. UINT32 Function,
  556. ACPI_PHYSICAL_ADDRESS Address,
  557. UINT32 BitWidth,
  558. UINT64 *Value,
  559. void *HandlerContext,
  560. void *RegionContext);
  561. ACPI_STATUS
  562. AcpiExSystemIoSpaceHandler (
  563. UINT32 Function,
  564. ACPI_PHYSICAL_ADDRESS Address,
  565. UINT32 BitWidth,
  566. UINT64 *Value,
  567. void *HandlerContext,
  568. void *RegionContext);
  569. ACPI_STATUS
  570. AcpiExPciConfigSpaceHandler (
  571. UINT32 Function,
  572. ACPI_PHYSICAL_ADDRESS Address,
  573. UINT32 BitWidth,
  574. UINT64 *Value,
  575. void *HandlerContext,
  576. void *RegionContext);
  577. ACPI_STATUS
  578. AcpiExCmosSpaceHandler (
  579. UINT32 Function,
  580. ACPI_PHYSICAL_ADDRESS Address,
  581. UINT32 BitWidth,
  582. UINT64 *Value,
  583. void *HandlerContext,
  584. void *RegionContext);
  585. ACPI_STATUS
  586. AcpiExPciBarSpaceHandler (
  587. UINT32 Function,
  588. ACPI_PHYSICAL_ADDRESS Address,
  589. UINT32 BitWidth,
  590. UINT64 *Value,
  591. void *HandlerContext,
  592. void *RegionContext);
  593. ACPI_STATUS
  594. AcpiExEmbeddedControllerSpaceHandler (
  595. UINT32 Function,
  596. ACPI_PHYSICAL_ADDRESS Address,
  597. UINT32 BitWidth,
  598. UINT64 *Value,
  599. void *HandlerContext,
  600. void *RegionContext);
  601. ACPI_STATUS
  602. AcpiExSmBusSpaceHandler (
  603. UINT32 Function,
  604. ACPI_PHYSICAL_ADDRESS Address,
  605. UINT32 BitWidth,
  606. UINT64 *Value,
  607. void *HandlerContext,
  608. void *RegionContext);
  609. ACPI_STATUS
  610. AcpiExDataTableSpaceHandler (
  611. UINT32 Function,
  612. ACPI_PHYSICAL_ADDRESS Address,
  613. UINT32 BitWidth,
  614. UINT64 *Value,
  615. void *HandlerContext,
  616. void *RegionContext);
  617. #endif /* __INTERP_H__ */