acobject.h 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591
  1. /******************************************************************************
  2. *
  3. * Name: acobject.h - Definition of ACPI_OPERAND_OBJECT (Internal object only)
  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 _ACOBJECT_H
  43. #define _ACOBJECT_H
  44. /* acpisrc:StructDefs -- for acpisrc conversion */
  45. /*
  46. * The ACPI_OPERAND_OBJECT is used to pass AML operands from the dispatcher
  47. * to the interpreter, and to keep track of the various handlers such as
  48. * address space handlers and notify handlers. The object is a constant
  49. * size in order to allow it to be cached and reused.
  50. *
  51. * Note: The object is optimized to be aligned and will not work if it is
  52. * byte-packed.
  53. */
  54. #if ACPI_MACHINE_WIDTH == 64
  55. #pragma pack(8)
  56. #else
  57. #pragma pack(4)
  58. #endif
  59. /*******************************************************************************
  60. *
  61. * Common Descriptors
  62. *
  63. ******************************************************************************/
  64. /*
  65. * Common area for all objects.
  66. *
  67. * DescriptorType is used to differentiate between internal descriptors, and
  68. * must be in the same place across all descriptors
  69. *
  70. * Note: The DescriptorType and Type fields must appear in the identical
  71. * position in both the ACPI_NAMESPACE_NODE and ACPI_OPERAND_OBJECT
  72. * structures.
  73. */
  74. #define ACPI_OBJECT_COMMON_HEADER \
  75. union acpi_operand_object *NextObject; /* Objects linked to parent NS node */\
  76. UINT8 DescriptorType; /* To differentiate various internal objs */\
  77. UINT8 Type; /* ACPI_OBJECT_TYPE */\
  78. UINT16 ReferenceCount; /* For object deletion management */\
  79. UINT8 Flags;
  80. /*
  81. * Note: There are 3 bytes available here before the
  82. * next natural alignment boundary (for both 32/64 cases)
  83. */
  84. /* Values for Flag byte above */
  85. #define AOPOBJ_AML_CONSTANT 0x01 /* Integer is an AML constant */
  86. #define AOPOBJ_STATIC_POINTER 0x02 /* Data is part of an ACPI table, don't delete */
  87. #define AOPOBJ_DATA_VALID 0x04 /* Object is initialized and data is valid */
  88. #define AOPOBJ_OBJECT_INITIALIZED 0x08 /* Region is initialized */
  89. #define AOPOBJ_REG_CONNECTED 0x10 /* _REG was run */
  90. #define AOPOBJ_SETUP_COMPLETE 0x20 /* Region setup is complete */
  91. #define AOPOBJ_INVALID 0x40 /* Host OS won't allow a Region address */
  92. /******************************************************************************
  93. *
  94. * Basic data types
  95. *
  96. *****************************************************************************/
  97. typedef struct acpi_object_common
  98. {
  99. ACPI_OBJECT_COMMON_HEADER
  100. } ACPI_OBJECT_COMMON;
  101. typedef struct acpi_object_integer
  102. {
  103. ACPI_OBJECT_COMMON_HEADER
  104. UINT8 Fill[3]; /* Prevent warning on some compilers */
  105. UINT64 Value;
  106. } ACPI_OBJECT_INTEGER;
  107. /*
  108. * Note: The String and Buffer object must be identical through the
  109. * pointer and length elements. There is code that depends on this.
  110. *
  111. * Fields common to both Strings and Buffers
  112. */
  113. #define ACPI_COMMON_BUFFER_INFO(_Type) \
  114. _Type *Pointer; \
  115. UINT32 Length;
  116. typedef struct acpi_object_string /* Null terminated, ASCII characters only */
  117. {
  118. ACPI_OBJECT_COMMON_HEADER
  119. ACPI_COMMON_BUFFER_INFO (char) /* String in AML stream or allocated string */
  120. } ACPI_OBJECT_STRING;
  121. typedef struct acpi_object_buffer
  122. {
  123. ACPI_OBJECT_COMMON_HEADER
  124. ACPI_COMMON_BUFFER_INFO (UINT8) /* Buffer in AML stream or allocated buffer */
  125. UINT32 AmlLength;
  126. UINT8 *AmlStart;
  127. ACPI_NAMESPACE_NODE *Node; /* Link back to parent node */
  128. } ACPI_OBJECT_BUFFER;
  129. typedef struct acpi_object_package
  130. {
  131. ACPI_OBJECT_COMMON_HEADER
  132. ACPI_NAMESPACE_NODE *Node; /* Link back to parent node */
  133. union acpi_operand_object **Elements; /* Array of pointers to AcpiObjects */
  134. UINT8 *AmlStart;
  135. UINT32 AmlLength;
  136. UINT32 Count; /* # of elements in package */
  137. } ACPI_OBJECT_PACKAGE;
  138. /******************************************************************************
  139. *
  140. * Complex data types
  141. *
  142. *****************************************************************************/
  143. typedef struct acpi_object_event
  144. {
  145. ACPI_OBJECT_COMMON_HEADER
  146. ACPI_SEMAPHORE OsSemaphore; /* Actual OS synchronization object */
  147. } ACPI_OBJECT_EVENT;
  148. typedef struct acpi_object_mutex
  149. {
  150. ACPI_OBJECT_COMMON_HEADER
  151. UINT8 SyncLevel; /* 0-15, specified in Mutex() call */
  152. UINT16 AcquisitionDepth; /* Allow multiple Acquires, same thread */
  153. ACPI_MUTEX OsMutex; /* Actual OS synchronization object */
  154. ACPI_THREAD_ID ThreadId; /* Current owner of the mutex */
  155. struct acpi_thread_state *OwnerThread; /* Current owner of the mutex */
  156. union acpi_operand_object *Prev; /* Link for list of acquired mutexes */
  157. union acpi_operand_object *Next; /* Link for list of acquired mutexes */
  158. ACPI_NAMESPACE_NODE *Node; /* Containing namespace node */
  159. UINT8 OriginalSyncLevel; /* Owner's original sync level (0-15) */
  160. } ACPI_OBJECT_MUTEX;
  161. typedef struct acpi_object_region
  162. {
  163. ACPI_OBJECT_COMMON_HEADER
  164. UINT8 SpaceId;
  165. ACPI_NAMESPACE_NODE *Node; /* Containing namespace node */
  166. union acpi_operand_object *Handler; /* Handler for region access */
  167. union acpi_operand_object *Next;
  168. ACPI_PHYSICAL_ADDRESS Address;
  169. UINT32 Length;
  170. } ACPI_OBJECT_REGION;
  171. typedef struct acpi_object_method
  172. {
  173. ACPI_OBJECT_COMMON_HEADER
  174. UINT8 InfoFlags;
  175. UINT8 ParamCount;
  176. UINT8 SyncLevel;
  177. union acpi_operand_object *Mutex;
  178. union acpi_operand_object *Node;
  179. UINT8 *AmlStart;
  180. union
  181. {
  182. ACPI_INTERNAL_METHOD Implementation;
  183. union acpi_operand_object *Handler;
  184. } Dispatch;
  185. UINT32 AmlLength;
  186. UINT8 ThreadCount;
  187. ACPI_OWNER_ID OwnerId;
  188. } ACPI_OBJECT_METHOD;
  189. /* Flags for InfoFlags field above */
  190. #define ACPI_METHOD_MODULE_LEVEL 0x01 /* Method is actually module-level code */
  191. #define ACPI_METHOD_INTERNAL_ONLY 0x02 /* Method is implemented internally (_OSI) */
  192. #define ACPI_METHOD_SERIALIZED 0x04 /* Method is serialized */
  193. #define ACPI_METHOD_SERIALIZED_PENDING 0x08 /* Method is to be marked serialized */
  194. #define ACPI_METHOD_IGNORE_SYNC_LEVEL 0x10 /* Method was auto-serialized at table load time */
  195. #define ACPI_METHOD_MODIFIED_NAMESPACE 0x20 /* Method modified the namespace */
  196. /******************************************************************************
  197. *
  198. * Objects that can be notified. All share a common NotifyInfo area.
  199. *
  200. *****************************************************************************/
  201. /*
  202. * Common fields for objects that support ASL notifications
  203. */
  204. #define ACPI_COMMON_NOTIFY_INFO \
  205. union acpi_operand_object *NotifyList[2]; /* Handlers for system/device notifies */\
  206. union acpi_operand_object *Handler; /* Handler for Address space */
  207. typedef struct acpi_object_notify_common /* COMMON NOTIFY for POWER, PROCESSOR, DEVICE, and THERMAL */
  208. {
  209. ACPI_OBJECT_COMMON_HEADER
  210. ACPI_COMMON_NOTIFY_INFO
  211. } ACPI_OBJECT_NOTIFY_COMMON;
  212. typedef struct acpi_object_device
  213. {
  214. ACPI_OBJECT_COMMON_HEADER
  215. ACPI_COMMON_NOTIFY_INFO
  216. ACPI_GPE_BLOCK_INFO *GpeBlock;
  217. } ACPI_OBJECT_DEVICE;
  218. typedef struct acpi_object_power_resource
  219. {
  220. ACPI_OBJECT_COMMON_HEADER
  221. ACPI_COMMON_NOTIFY_INFO
  222. UINT32 SystemLevel;
  223. UINT32 ResourceOrder;
  224. } ACPI_OBJECT_POWER_RESOURCE;
  225. typedef struct acpi_object_processor
  226. {
  227. ACPI_OBJECT_COMMON_HEADER
  228. /* The next two fields take advantage of the 3-byte space before NOTIFY_INFO */
  229. UINT8 ProcId;
  230. UINT8 Length;
  231. ACPI_COMMON_NOTIFY_INFO
  232. ACPI_IO_ADDRESS Address;
  233. } ACPI_OBJECT_PROCESSOR;
  234. typedef struct acpi_object_thermal_zone
  235. {
  236. ACPI_OBJECT_COMMON_HEADER
  237. ACPI_COMMON_NOTIFY_INFO
  238. } ACPI_OBJECT_THERMAL_ZONE;
  239. /******************************************************************************
  240. *
  241. * Fields. All share a common header/info field.
  242. *
  243. *****************************************************************************/
  244. /*
  245. * Common bitfield for the field objects
  246. * "Field Datum" -- a datum from the actual field object
  247. * "Buffer Datum" -- a datum from a user buffer, read from or to be written to the field
  248. */
  249. #define ACPI_COMMON_FIELD_INFO \
  250. UINT8 FieldFlags; /* Access, update, and lock bits */\
  251. UINT8 Attribute; /* From AccessAs keyword */\
  252. UINT8 AccessByteWidth; /* Read/Write size in bytes */\
  253. ACPI_NAMESPACE_NODE *Node; /* Link back to parent node */\
  254. UINT32 BitLength; /* Length of field in bits */\
  255. UINT32 BaseByteOffset; /* Byte offset within containing object */\
  256. UINT32 Value; /* Value to store into the Bank or Index register */\
  257. UINT8 StartFieldBitOffset;/* Bit offset within first field datum (0-63) */\
  258. UINT8 AccessLength; /* For serial regions/fields */
  259. typedef struct acpi_object_field_common /* COMMON FIELD (for BUFFER, REGION, BANK, and INDEX fields) */
  260. {
  261. ACPI_OBJECT_COMMON_HEADER
  262. ACPI_COMMON_FIELD_INFO
  263. union acpi_operand_object *RegionObj; /* Parent Operation Region object (REGION/BANK fields only) */
  264. } ACPI_OBJECT_FIELD_COMMON;
  265. typedef struct acpi_object_region_field
  266. {
  267. ACPI_OBJECT_COMMON_HEADER
  268. ACPI_COMMON_FIELD_INFO
  269. UINT16 ResourceLength;
  270. union acpi_operand_object *RegionObj; /* Containing OpRegion object */
  271. UINT8 *ResourceBuffer; /* ResourceTemplate for serial regions/fields */
  272. UINT16 PinNumberIndex; /* Index relative to previous Connection/Template */
  273. } ACPI_OBJECT_REGION_FIELD;
  274. typedef struct acpi_object_bank_field
  275. {
  276. ACPI_OBJECT_COMMON_HEADER
  277. ACPI_COMMON_FIELD_INFO
  278. union acpi_operand_object *RegionObj; /* Containing OpRegion object */
  279. union acpi_operand_object *BankObj; /* BankSelect Register object */
  280. } ACPI_OBJECT_BANK_FIELD;
  281. typedef struct acpi_object_index_field
  282. {
  283. ACPI_OBJECT_COMMON_HEADER
  284. ACPI_COMMON_FIELD_INFO
  285. /*
  286. * No "RegionObj" pointer needed since the Index and Data registers
  287. * are each field definitions unto themselves.
  288. */
  289. union acpi_operand_object *IndexObj; /* Index register */
  290. union acpi_operand_object *DataObj; /* Data register */
  291. } ACPI_OBJECT_INDEX_FIELD;
  292. /* The BufferField is different in that it is part of a Buffer, not an OpRegion */
  293. typedef struct acpi_object_buffer_field
  294. {
  295. ACPI_OBJECT_COMMON_HEADER
  296. ACPI_COMMON_FIELD_INFO
  297. union acpi_operand_object *BufferObj; /* Containing Buffer object */
  298. } ACPI_OBJECT_BUFFER_FIELD;
  299. /******************************************************************************
  300. *
  301. * Objects for handlers
  302. *
  303. *****************************************************************************/
  304. typedef struct acpi_object_notify_handler
  305. {
  306. ACPI_OBJECT_COMMON_HEADER
  307. ACPI_NAMESPACE_NODE *Node; /* Parent device */
  308. UINT32 HandlerType; /* Type: Device/System/Both */
  309. ACPI_NOTIFY_HANDLER Handler; /* Handler address */
  310. void *Context;
  311. union acpi_operand_object *Next[2]; /* Device and System handler lists */
  312. } ACPI_OBJECT_NOTIFY_HANDLER;
  313. typedef struct acpi_object_addr_handler
  314. {
  315. ACPI_OBJECT_COMMON_HEADER
  316. UINT8 SpaceId;
  317. UINT8 HandlerFlags;
  318. ACPI_ADR_SPACE_HANDLER Handler;
  319. ACPI_NAMESPACE_NODE *Node; /* Parent device */
  320. void *Context;
  321. ACPI_ADR_SPACE_SETUP Setup;
  322. union acpi_operand_object *RegionList; /* Regions using this handler */
  323. union acpi_operand_object *Next;
  324. } ACPI_OBJECT_ADDR_HANDLER;
  325. /* Flags for address handler (HandlerFlags) */
  326. #define ACPI_ADDR_HANDLER_DEFAULT_INSTALLED 0x01
  327. /******************************************************************************
  328. *
  329. * Special internal objects
  330. *
  331. *****************************************************************************/
  332. /*
  333. * The Reference object is used for these opcodes:
  334. * Arg[0-6], Local[0-7], IndexOp, NameOp, RefOfOp, LoadOp, LoadTableOp, DebugOp
  335. * The Reference.Class differentiates these types.
  336. */
  337. typedef struct acpi_object_reference
  338. {
  339. ACPI_OBJECT_COMMON_HEADER
  340. UINT8 Class; /* Reference Class */
  341. UINT8 TargetType; /* Used for Index Op */
  342. UINT8 Reserved;
  343. void *Object; /* NameOp=>HANDLE to obj, IndexOp=>ACPI_OPERAND_OBJECT */
  344. ACPI_NAMESPACE_NODE *Node; /* RefOf or Namepath */
  345. union acpi_operand_object **Where; /* Target of Index */
  346. UINT8 *IndexPointer; /* Used for Buffers and Strings */
  347. UINT32 Value; /* Used for Local/Arg/Index/DdbHandle */
  348. } ACPI_OBJECT_REFERENCE;
  349. /* Values for Reference.Class above */
  350. typedef enum
  351. {
  352. ACPI_REFCLASS_LOCAL = 0, /* Method local */
  353. ACPI_REFCLASS_ARG = 1, /* Method argument */
  354. ACPI_REFCLASS_REFOF = 2, /* Result of RefOf() TBD: Split to Ref/Node and Ref/OperandObj? */
  355. ACPI_REFCLASS_INDEX = 3, /* Result of Index() */
  356. ACPI_REFCLASS_TABLE = 4, /* DdbHandle - Load(), LoadTable() */
  357. ACPI_REFCLASS_NAME = 5, /* Reference to a named object */
  358. ACPI_REFCLASS_DEBUG = 6, /* Debug object */
  359. ACPI_REFCLASS_MAX = 6
  360. } ACPI_REFERENCE_CLASSES;
  361. /*
  362. * Extra object is used as additional storage for types that
  363. * have AML code in their declarations (TermArgs) that must be
  364. * evaluated at run time.
  365. *
  366. * Currently: Region and FieldUnit types
  367. */
  368. typedef struct acpi_object_extra
  369. {
  370. ACPI_OBJECT_COMMON_HEADER
  371. ACPI_NAMESPACE_NODE *Method_REG; /* _REG method for this region (if any) */
  372. ACPI_NAMESPACE_NODE *ScopeNode;
  373. void *RegionContext; /* Region-specific data */
  374. UINT8 *AmlStart;
  375. UINT32 AmlLength;
  376. } ACPI_OBJECT_EXTRA;
  377. /* Additional data that can be attached to namespace nodes */
  378. typedef struct acpi_object_data
  379. {
  380. ACPI_OBJECT_COMMON_HEADER
  381. ACPI_OBJECT_HANDLER Handler;
  382. void *Pointer;
  383. } ACPI_OBJECT_DATA;
  384. /* Structure used when objects are cached for reuse */
  385. typedef struct acpi_object_cache_list
  386. {
  387. ACPI_OBJECT_COMMON_HEADER
  388. union acpi_operand_object *Next; /* Link for object cache and internal lists*/
  389. } ACPI_OBJECT_CACHE_LIST;
  390. /******************************************************************************
  391. *
  392. * ACPI_OPERAND_OBJECT Descriptor - a giant union of all of the above
  393. *
  394. *****************************************************************************/
  395. typedef union acpi_operand_object
  396. {
  397. ACPI_OBJECT_COMMON Common;
  398. ACPI_OBJECT_INTEGER Integer;
  399. ACPI_OBJECT_STRING String;
  400. ACPI_OBJECT_BUFFER Buffer;
  401. ACPI_OBJECT_PACKAGE Package;
  402. ACPI_OBJECT_EVENT Event;
  403. ACPI_OBJECT_METHOD Method;
  404. ACPI_OBJECT_MUTEX Mutex;
  405. ACPI_OBJECT_REGION Region;
  406. ACPI_OBJECT_NOTIFY_COMMON CommonNotify;
  407. ACPI_OBJECT_DEVICE Device;
  408. ACPI_OBJECT_POWER_RESOURCE PowerResource;
  409. ACPI_OBJECT_PROCESSOR Processor;
  410. ACPI_OBJECT_THERMAL_ZONE ThermalZone;
  411. ACPI_OBJECT_FIELD_COMMON CommonField;
  412. ACPI_OBJECT_REGION_FIELD Field;
  413. ACPI_OBJECT_BUFFER_FIELD BufferField;
  414. ACPI_OBJECT_BANK_FIELD BankField;
  415. ACPI_OBJECT_INDEX_FIELD IndexField;
  416. ACPI_OBJECT_NOTIFY_HANDLER Notify;
  417. ACPI_OBJECT_ADDR_HANDLER AddressSpace;
  418. ACPI_OBJECT_REFERENCE Reference;
  419. ACPI_OBJECT_EXTRA Extra;
  420. ACPI_OBJECT_DATA Data;
  421. ACPI_OBJECT_CACHE_LIST Cache;
  422. /*
  423. * Add namespace node to union in order to simplify code that accepts both
  424. * ACPI_OPERAND_OBJECTs and ACPI_NAMESPACE_NODEs. The structures share
  425. * a common DescriptorType field in order to differentiate them.
  426. */
  427. ACPI_NAMESPACE_NODE Node;
  428. } ACPI_OPERAND_OBJECT;
  429. /******************************************************************************
  430. *
  431. * ACPI_DESCRIPTOR - objects that share a common descriptor identifier
  432. *
  433. *****************************************************************************/
  434. /* Object descriptor types */
  435. #define ACPI_DESC_TYPE_CACHED 0x01 /* Used only when object is cached */
  436. #define ACPI_DESC_TYPE_STATE 0x02
  437. #define ACPI_DESC_TYPE_STATE_UPDATE 0x03
  438. #define ACPI_DESC_TYPE_STATE_PACKAGE 0x04
  439. #define ACPI_DESC_TYPE_STATE_CONTROL 0x05
  440. #define ACPI_DESC_TYPE_STATE_RPSCOPE 0x06
  441. #define ACPI_DESC_TYPE_STATE_PSCOPE 0x07
  442. #define ACPI_DESC_TYPE_STATE_WSCOPE 0x08
  443. #define ACPI_DESC_TYPE_STATE_RESULT 0x09
  444. #define ACPI_DESC_TYPE_STATE_NOTIFY 0x0A
  445. #define ACPI_DESC_TYPE_STATE_THREAD 0x0B
  446. #define ACPI_DESC_TYPE_WALK 0x0C
  447. #define ACPI_DESC_TYPE_PARSER 0x0D
  448. #define ACPI_DESC_TYPE_OPERAND 0x0E
  449. #define ACPI_DESC_TYPE_NAMED 0x0F
  450. #define ACPI_DESC_TYPE_MAX 0x0F
  451. typedef struct acpi_common_descriptor
  452. {
  453. void *CommonPointer;
  454. UINT8 DescriptorType; /* To differentiate various internal objs */
  455. } ACPI_COMMON_DESCRIPTOR;
  456. typedef union acpi_descriptor
  457. {
  458. ACPI_COMMON_DESCRIPTOR Common;
  459. ACPI_OPERAND_OBJECT Object;
  460. ACPI_NAMESPACE_NODE Node;
  461. ACPI_PARSE_OBJECT Op;
  462. } ACPI_DESCRIPTOR;
  463. #pragma pack()
  464. #endif /* _ACOBJECT_H */