You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

AcpiAml.h 6.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  1. /** @file
  2. This file contains AML code definition in the latest ACPI spec.
  3. Copyright (c) 2011, Intel Corporation. All rights reserved.<BR>
  4. This program and the accompanying materials
  5. are licensed and made available under the terms and conditions of the BSD License
  6. which accompanies this distribution. The full text of the license may be found at
  7. http://opensource.org/licenses/bsd-license.php
  8. THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
  9. WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
  10. **/
  11. #ifndef _ACPI_AML_H_
  12. #define _ACPI_AML_H_
  13. FILE_LICENCE ( BSD3 );
  14. //
  15. // ACPI AML definition
  16. //
  17. //
  18. // Primary OpCode
  19. //
  20. #define AML_ZERO_OP 0x00
  21. #define AML_ONE_OP 0x01
  22. #define AML_ALIAS_OP 0x06
  23. #define AML_NAME_OP 0x08
  24. #define AML_BYTE_PREFIX 0x0a
  25. #define AML_WORD_PREFIX 0x0b
  26. #define AML_DWORD_PREFIX 0x0c
  27. #define AML_STRING_PREFIX 0x0d
  28. #define AML_QWORD_PREFIX 0x0e
  29. #define AML_SCOPE_OP 0x10
  30. #define AML_BUFFER_OP 0x11
  31. #define AML_PACKAGE_OP 0x12
  32. #define AML_VAR_PACKAGE_OP 0x13
  33. #define AML_METHOD_OP 0x14
  34. #define AML_DUAL_NAME_PREFIX 0x2e
  35. #define AML_MULTI_NAME_PREFIX 0x2f
  36. #define AML_NAME_CHAR_A 0x41
  37. #define AML_NAME_CHAR_B 0x42
  38. #define AML_NAME_CHAR_C 0x43
  39. #define AML_NAME_CHAR_D 0x44
  40. #define AML_NAME_CHAR_E 0x45
  41. #define AML_NAME_CHAR_F 0x46
  42. #define AML_NAME_CHAR_G 0x47
  43. #define AML_NAME_CHAR_H 0x48
  44. #define AML_NAME_CHAR_I 0x49
  45. #define AML_NAME_CHAR_J 0x4a
  46. #define AML_NAME_CHAR_K 0x4b
  47. #define AML_NAME_CHAR_L 0x4c
  48. #define AML_NAME_CHAR_M 0x4d
  49. #define AML_NAME_CHAR_N 0x4e
  50. #define AML_NAME_CHAR_O 0x4f
  51. #define AML_NAME_CHAR_P 0x50
  52. #define AML_NAME_CHAR_Q 0x51
  53. #define AML_NAME_CHAR_R 0x52
  54. #define AML_NAME_CHAR_S 0x53
  55. #define AML_NAME_CHAR_T 0x54
  56. #define AML_NAME_CHAR_U 0x55
  57. #define AML_NAME_CHAR_V 0x56
  58. #define AML_NAME_CHAR_W 0x57
  59. #define AML_NAME_CHAR_X 0x58
  60. #define AML_NAME_CHAR_Y 0x59
  61. #define AML_NAME_CHAR_Z 0x5a
  62. #define AML_ROOT_CHAR 0x5c
  63. #define AML_PARENT_PREFIX_CHAR 0x5e
  64. #define AML_NAME_CHAR__ 0x5f
  65. #define AML_LOCAL0 0x60
  66. #define AML_LOCAL1 0x61
  67. #define AML_LOCAL2 0x62
  68. #define AML_LOCAL3 0x63
  69. #define AML_LOCAL4 0x64
  70. #define AML_LOCAL5 0x65
  71. #define AML_LOCAL6 0x66
  72. #define AML_LOCAL7 0x67
  73. #define AML_ARG0 0x68
  74. #define AML_ARG1 0x69
  75. #define AML_ARG2 0x6a
  76. #define AML_ARG3 0x6b
  77. #define AML_ARG4 0x6c
  78. #define AML_ARG5 0x6d
  79. #define AML_ARG6 0x6e
  80. #define AML_STORE_OP 0x70
  81. #define AML_REF_OF_OP 0x71
  82. #define AML_ADD_OP 0x72
  83. #define AML_CONCAT_OP 0x73
  84. #define AML_SUBTRACT_OP 0x74
  85. #define AML_INCREMENT_OP 0x75
  86. #define AML_DECREMENT_OP 0x76
  87. #define AML_MULTIPLY_OP 0x77
  88. #define AML_DIVIDE_OP 0x78
  89. #define AML_SHIFT_LEFT_OP 0x79
  90. #define AML_SHIFT_RIGHT_OP 0x7a
  91. #define AML_AND_OP 0x7b
  92. #define AML_NAND_OP 0x7c
  93. #define AML_OR_OP 0x7d
  94. #define AML_NOR_OP 0x7e
  95. #define AML_XOR_OP 0x7f
  96. #define AML_NOT_OP 0x80
  97. #define AML_FIND_SET_LEFT_BIT_OP 0x81
  98. #define AML_FIND_SET_RIGHT_BIT_OP 0x82
  99. #define AML_DEREF_OF_OP 0x83
  100. #define AML_CONCAT_RES_OP 0x84
  101. #define AML_MOD_OP 0x85
  102. #define AML_NOTIFY_OP 0x86
  103. #define AML_SIZE_OF_OP 0x87
  104. #define AML_INDEX_OP 0x88
  105. #define AML_MATCH_OP 0x89
  106. #define AML_CREATE_DWORD_FIELD_OP 0x8a
  107. #define AML_CREATE_WORD_FIELD_OP 0x8b
  108. #define AML_CREATE_BYTE_FIELD_OP 0x8c
  109. #define AML_CREATE_BIT_FIELD_OP 0x8d
  110. #define AML_OBJECT_TYPE_OP 0x8e
  111. #define AML_CREATE_QWORD_FIELD_OP 0x8f
  112. #define AML_LAND_OP 0x90
  113. #define AML_LOR_OP 0x91
  114. #define AML_LNOT_OP 0x92
  115. #define AML_LEQUAL_OP 0x93
  116. #define AML_LGREATER_OP 0x94
  117. #define AML_LLESS_OP 0x95
  118. #define AML_TO_BUFFER_OP 0x96
  119. #define AML_TO_DEC_STRING_OP 0x97
  120. #define AML_TO_HEX_STRING_OP 0x98
  121. #define AML_TO_INTEGER_OP 0x99
  122. #define AML_TO_STRING_OP 0x9c
  123. #define AML_COPY_OBJECT_OP 0x9d
  124. #define AML_MID_OP 0x9e
  125. #define AML_CONTINUE_OP 0x9f
  126. #define AML_IF_OP 0xa0
  127. #define AML_ELSE_OP 0xa1
  128. #define AML_WHILE_OP 0xa2
  129. #define AML_NOOP_OP 0xa3
  130. #define AML_RETURN_OP 0xa4
  131. #define AML_BREAK_OP 0xa5
  132. #define AML_BREAK_POINT_OP 0xcc
  133. #define AML_ONES_OP 0xff
  134. //
  135. // Extended OpCode
  136. //
  137. #define AML_EXT_OP 0x5b
  138. #define AML_EXT_MUTEX_OP 0x01
  139. #define AML_EXT_EVENT_OP 0x02
  140. #define AML_EXT_COND_REF_OF_OP 0x12
  141. #define AML_EXT_CREATE_FIELD_OP 0x13
  142. #define AML_EXT_LOAD_TABLE_OP 0x1f
  143. #define AML_EXT_LOAD_OP 0x20
  144. #define AML_EXT_STALL_OP 0x21
  145. #define AML_EXT_SLEEP_OP 0x22
  146. #define AML_EXT_ACQUIRE_OP 0x23
  147. #define AML_EXT_SIGNAL_OP 0x24
  148. #define AML_EXT_WAIT_OP 0x25
  149. #define AML_EXT_RESET_OP 0x26
  150. #define AML_EXT_RELEASE_OP 0x27
  151. #define AML_EXT_FROM_BCD_OP 0x28
  152. #define AML_EXT_TO_BCD_OP 0x29
  153. #define AML_EXT_UNLOAD_OP 0x2a
  154. #define AML_EXT_REVISION_OP 0x30
  155. #define AML_EXT_DEBUG_OP 0x31
  156. #define AML_EXT_FATAL_OP 0x32
  157. #define AML_EXT_TIMER_OP 0x33
  158. #define AML_EXT_REGION_OP 0x80
  159. #define AML_EXT_FIELD_OP 0x81
  160. #define AML_EXT_DEVICE_OP 0x82
  161. #define AML_EXT_PROCESSOR_OP 0x83
  162. #define AML_EXT_POWER_RES_OP 0x84
  163. #define AML_EXT_THERMAL_ZONE_OP 0x85
  164. #define AML_EXT_INDEX_FIELD_OP 0x86
  165. #define AML_EXT_BANK_FIELD_OP 0x87
  166. #define AML_EXT_DATA_REGION_OP 0x88
  167. #endif