Source code of Windows XP (NT5)
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.

311 lines
12 KiB

  1. //
  2. // Copyright (c) 1997-1999 Microsoft Corporation
  3. //
  4. Device(AMW0)
  5. {
  6. Name(_HID, "*pnp0c14")
  7. Name(_UID, 0x0)
  8. Name(_WDG, Buffer() {
  9. 0x5a, 0x0f, 0xBC, 0xAB, 0xa1, 0x8e, 0xd1, 0x11, 0x00, 0xa0, 0xc9, 0x06, 0x29, 0x10, 0, 0,
  10. 65, 65, // Object Id (AA)
  11. 1, // Instance Count
  12. 0x05, // Flags (WMIACPI_REGFLAG_EXPENSIVE |
  13. // WMIACPI_REGFLAG_STRING)
  14. 0x5b, 0x0f, 0xBC, 0xAB, 0xa1, 0x8e, 0xd1, 0x11, 0x00, 0xa0, 0xc9, 0x06, 0x29, 0x10, 0, 0,
  15. 65, 66, // Object Id (AB)
  16. 1, // Instance Count
  17. 0x06, // Flags (WMIACPI_REGFLAG_METHOD |
  18. // WMIACPI_REGFLAG_STRING)
  19. 0x5c, 0x0f, 0xBC, 0xAB, 0xa1, 0x8e, 0xd1, 0x11, 0x00, 0xa0, 0xc9, 0x06, 0x29, 0x10, 0, 0,
  20. 0xa0, 0, // Notification Id
  21. 1, // Instance Count
  22. 0x08, // Flags (WMIACPI_REGFLAG_EVENT)
  23. 0x6a, 0x0f, 0xBC, 0xAB, 0xa1, 0x8e, 0xd1, 0x11, 0x00, 0xa0, 0xc9, 0x06, 0x29, 0x10, 0, 0,
  24. 66, 65, // Object Id (BA)
  25. 3, // Instance Count
  26. 0x01, // Flags (WMIACPI_REGFLAG_EXPENSIVE)
  27. 0x6b, 0x0f, 0xBC, 0xAB, 0xa1, 0x8e, 0xd1, 0x11, 0x00, 0xa0, 0xc9, 0x06, 0x29, 0x10, 0, 0,
  28. 66, 66, // Object Id (BB)
  29. 3, // Instance Count
  30. 0x02, // Flags (WMIACPI_REGFLAG_METHOD)
  31. 0x6c, 0x0f, 0xBC, 0xAB, 0xa1, 0x8e, 0xd1, 0x11, 0x00, 0xa0, 0xc9, 0x06, 0x29, 0x10, 0, 0,
  32. 0xb0, 0, // Notification Id
  33. 1, // Instance Count
  34. 0x08, // Flags (WMIACPI_REGFLAG_EVENT)
  35. 0x7a, 0x0f, 0xBC, 0xAB, 0xa1, 0x8e, 0xd1, 0x11, 0x00, 0xa0, 0xc9, 0x06, 0x29, 0x10, 0, 0,
  36. 67, 65, // Object Id (CA)
  37. 3, // Instance Count
  38. 0x00, //
  39. })
  40. Name(WQCA, Package(5) {
  41. "Hello",
  42. Buffer(3) { 1, 3, 5 },
  43. "World",
  44. Buffer(1) { 7 },
  45. 0x12345678
  46. })
  47. Name(STAA, "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA")
  48. Name(CCAA, 0)
  49. Method(WCAA, 1) {
  50. Store(Arg0, CCAA)
  51. }
  52. Method(WQAA, 1) {
  53. if (LEqual(CCAA, Zero)) {
  54. Return("Bad Data")
  55. } else {
  56. Return(STAA)
  57. }
  58. }
  59. Method(WSAA, 2) {
  60. Store(Arg1, STAA)
  61. }
  62. Name(ACEN, 0)
  63. Name(ACED, "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA")
  64. Method(WEA0, 1) {
  65. Store(Arg0, ACEN)
  66. }
  67. Method(WMAB, 3) {
  68. if (LEqual(Arg1, 1))
  69. {
  70. Store(Arg2, ACED)
  71. if (LEqual(ACEN, 1)) {
  72. Notify(AMW0, 0xa0)
  73. }
  74. Return(Arg2)
  75. } else {
  76. Return(Arg1)
  77. }
  78. }
  79. Name(STB0, Buffer(0x10) {
  80. 1,0,0,0, 2,0,0,0, 3,0,0,0, 4,0,0,0
  81. })
  82. Name(STB1, Buffer(0x10) {
  83. 0,1,0,0, 0,2,0,0, 0,3,0,0, 0,4,0,0
  84. })
  85. Name(STB2, Buffer(0x10) {
  86. 0,0,1,0, 0,0,2,0, 0,0,3,0, 0,0,4,0
  87. })
  88. Method(WQBA, 1) {
  89. if (LEqual(Arg0, 0)) {
  90. Return(STB0)
  91. }
  92. if (LEqual(Arg0, 1)) {
  93. Return(STB1)
  94. }
  95. if (LEqual(Arg0, 2)) {
  96. Return(STB2)
  97. }
  98. }
  99. Method(WSBA, 2) {
  100. if (LEqual(Arg0, 0)) {
  101. Store(Arg1, STB0)
  102. }
  103. if (LEqual(Arg0, 1)) {
  104. Store(Arg1, STB1)
  105. }
  106. if (LEqual(Arg0, 2)) {
  107. Store(Arg1, STB2)
  108. }
  109. }
  110. Name(B0ED, Buffer(0x10) {
  111. 0,0,0,1, 0,0,0,2, 0,0,0,3, 0,0,0,4
  112. })
  113. Method(WMBB, 3) {
  114. if (LEqual(Arg1, 1))
  115. {
  116. Store(Arg2, B0ED)
  117. Notify(AMW0, 0xB0)
  118. Return(Arg2)
  119. } else {
  120. Return(Arg1)
  121. }
  122. }
  123. Method(_WED, 1) {
  124. if (LEqual(Arg0, 0xA0)) {
  125. Return(ACED)
  126. }
  127. if (LEqual(Arg0, 0xB0)) {
  128. Return(B0ED)
  129. }
  130. }
  131. }
  132. Device(AMW1)
  133. {
  134. Name(_HID, "*pnp0c14")
  135. Name(_UID, 0x1)
  136. Name(_WDG, Buffer() {
  137. 0x5a, 0x0f, 0xBC, 0xAB, 0xa1, 0x8e, 0xd1, 0x11, 0x00, 0xa0, 0xc9, 0x06, 0x29, 0x10, 0, 0,
  138. 65, 65, // Object Id (AA)
  139. 1, // Instance Count
  140. 0x05, // Flags (WMIACPI_REGFLAG_EXPENSIVE |
  141. // WMIACPI_REGFLAG_STRING)
  142. 0x5b, 0x0f, 0xBC, 0xAB, 0xa1, 0x8e, 0xd1, 0x11, 0x00, 0xa0, 0xc9, 0x06, 0x29, 0x10, 0, 0,
  143. 65, 66, // Object Id (AB)
  144. 1, // Instance Count
  145. 0x06, // Flags (WMIACPI_REGFLAG_METHOD |
  146. // WMIACPI_REGFLAG_STRING)
  147. 0x5c, 0x0f, 0xBC, 0xAB, 0xa1, 0x8e, 0xd1, 0x11, 0x00, 0xa0, 0xc9, 0x06, 0x29, 0x10, 0, 0,
  148. 0xa0, 0, // Notification Id
  149. 1, // Instance Count
  150. 0x08, // Flags (WMIACPI_REGFLAG_EVENT)
  151. 0x6a, 0x0f, 0xBC, 0xAB, 0xa1, 0x8e, 0xd1, 0x11, 0x00, 0xa0, 0xc9, 0x06, 0x29, 0x10, 0, 0,
  152. 66, 65, // Object Id (BA)
  153. 3, // Instance Count
  154. 0x01, // Flags (WMIACPI_REGFLAG_EXPENSIVE)
  155. 0x6b, 0x0f, 0xBC, 0xAB, 0xa1, 0x8e, 0xd1, 0x11, 0x00, 0xa0, 0xc9, 0x06, 0x29, 0x10, 0, 0,
  156. 66, 66, // Object Id (BB)
  157. 3, // Instance Count
  158. 0x02, // Flags (WMIACPI_REGFLAG_METHOD)
  159. 0x6c, 0x0f, 0xBC, 0xAB, 0xa1, 0x8e, 0xd1, 0x11, 0x00, 0xa0, 0xc9, 0x06, 0x29, 0x10, 0, 0,
  160. 0xb0, 0, // Notification Id
  161. 1, // Instance Count
  162. 0x08, // Flags (WMIACPI_REGFLAG_EVENT)
  163. 0x7a, 0x0f, 0xBC, 0xAB, 0xa1, 0x8e, 0xd1, 0x11, 0x00, 0xa0, 0xc9, 0x06, 0x29, 0x10, 0, 0,
  164. 67, 65, // Object Id (CA)
  165. 3, // Instance Count
  166. 0x00, //
  167. })
  168. Name(WQCA, Package(5) {
  169. "Hello",
  170. Buffer(3) { 1, 3, 5 },
  171. "World",
  172. Buffer(1) { 7 },
  173. 0x12345678
  174. })
  175. Name(STAA, "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA")
  176. Name(CCAA, 0)
  177. Method(WCAA, 1) {
  178. Store(Arg0, CCAA)
  179. }
  180. Method(WQAA, 1) {
  181. if (LEqual(CCAA, Zero)) {
  182. Return("Bad Data")
  183. } else {
  184. Return(STAA)
  185. }
  186. }
  187. Method(WSAA, 2) {
  188. Store(Arg1, STAA)
  189. }
  190. Name(ACEN, 0)
  191. Name(ACED, "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA")
  192. Method(WEA0, 1) {
  193. Store(Arg0, ACEN)
  194. }
  195. Method(WMAB, 3) {
  196. if (LEqual(Arg1, 1))
  197. {
  198. Store(Arg2, ACED)
  199. if (LEqual(ACEN, 1)) {
  200. Notify(AMW0, 0xa0)
  201. }
  202. Return(Arg2)
  203. }
  204. Return(Arg1)
  205. }
  206. Name(STB0, Buffer(0x10) {
  207. 1,0,0,0, 2,0,0,0, 3,0,0,0, 4,0,0,0
  208. })
  209. Name(STB1, Buffer(0x10) {
  210. 0,1,0,0, 0,2,0,0, 0,3,0,0, 0,4,0,0
  211. })
  212. Name(STB2, Buffer(0x10) {
  213. 0,0,1,0, 0,0,2,0, 0,0,3,0, 0,0,4,0
  214. })
  215. Method(WQBA, 1) {
  216. if (LEqual(Arg0, 0)) {
  217. Return(STB0)
  218. }
  219. if (LEqual(Arg0, 1)) {
  220. Return(STB1)
  221. }
  222. if (LEqual(Arg0, 2)) {
  223. Return(STB2)
  224. }
  225. }
  226. Method(WSBA, 2) {
  227. if (LEqual(Arg0, 0)) {
  228. Store(Arg1, STB0)
  229. }
  230. if (LEqual(Arg0, 1)) {
  231. Store(Arg1, STB1)
  232. }
  233. if (LEqual(Arg0, 2)) {
  234. Store(Arg1, STB2)
  235. }
  236. }
  237. Name(B0ED, Buffer(0x10) {
  238. 0,0,0,1, 0,0,0,2, 0,0,0,3, 0,0,0,4
  239. })
  240. Method(WMBB, 3) {
  241. if (LEqual(Arg1, 1))
  242. {
  243. Store(Arg2, B0ED)
  244. Notify(AMW0, 0xB0)
  245. Return(Arg2)
  246. }
  247. Return(Arg1)
  248. }
  249. Method(_WED, 1) {
  250. if (LEqual(Arg0, 0xA0)) {
  251. Return(ACED)
  252. }
  253. if (LEqual(Arg0, 0xB0)) {
  254. Return(B0ED)
  255. }
  256. }
  257. }