Advertisement
Guest User

Untitled

a guest
Sep 3rd, 2012
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.49 KB | None | 0 0
  1. into_all all code_regex _T_0 replaceall_matched begin T_0 end;
  2. into_all all code_regex _T_1 replaceall_matched begin T_1 end;
  3. into_all all code_regex _T_2 replaceall_matched begin T_2 end;
  4. into_all all code_regex _T_3 replaceall_matched begin T_3 end;
  5. into_all all code_regex _T_4 replaceall_matched begin T_4 end;
  6. into_all all code_regex _T_5 replaceall_matched begin T_5 end;
  7. into_all all code_regex _T_6 replaceall_matched begin T_6 end;
  8. into method label DTGP remove_entry;
  9. into definitionblock code_regex . insert
  10. begin
  11. Method (DTGP, 5, NotSerialized)\n
  12. {\n
  13. If (LEqual (Arg0, Buffer (0x10)\n
  14. {\n
  15. /* 0000 */ 0xC6, 0xB7, 0xB5, 0xA0, 0x18, 0x13, 0x1C, 0x44, \n
  16. /* 0008 */ 0xB0, 0xC9, 0xFE, 0x69, 0x5E, 0xAF, 0x94, 0x9B\n
  17. }))\n
  18. {\n
  19. If (LEqual (Arg1, One))\n
  20. {\n
  21. If (LEqual (Arg2, Zero))\n
  22. {\n
  23. Store (Buffer (One)\n
  24. {\n
  25. 0x03\n
  26. }, Arg4)\n
  27. Return (One)\n
  28. }\n
  29. If (LEqual (Arg2, One))\n
  30. {\n
  31. Return (One)\n
  32. }\n
  33. }\n
  34. }\n
  35. Store (Buffer (One)\n
  36. {\n
  37. 0x00\n
  38. }, Arg4)\n
  39. Return (Zero)\n
  40. }
  41. end;
  42. into method label _DSM parent_adr 0x001D0000 remove_entry;
  43. into device name_adr 0x001D0000 insert
  44. begin
  45. Method (_DSM, 4, NotSerialized)\n
  46. {\n
  47. Store (Package ()\n
  48. {\n
  49. "device-id", \n
  50. Buffer (0x04)\n
  51. {\n
  52. 0x26, 0x1c, 0x00, 0x00\n
  53. }, \n
  54. "built-in", \n
  55. Buffer (One)\n
  56. {\n
  57. 0x00\n
  58. }, \n
  59. "AAPL,clock-id", \n
  60. Buffer (One)\n
  61. {\n
  62. 0x01\n
  63. }, \n
  64. "device_type", \n
  65. Buffer (0x05)\n
  66. {\n
  67. "EHCI"\n
  68. }, \n
  69. "AAPL,current-available", \n
  70. 0x0834, \n
  71. "AAPL,current-extra", \n
  72. 0x0898, \n
  73. "AAPL,current-extra-in-sleep", \n
  74. 0x0640, \n
  75. "AAPL,device-internal",\n
  76. 0x02,\n
  77. "AAPL,max-port-current-in-sleep",\n
  78. 0x834, \n
  79. Buffer (One)\n
  80. {\n
  81. 0x00\n
  82. }\n
  83. }, Local0)\n
  84. DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))\n
  85. Return (Local0)\n
  86. }
  87. end;
  88. into method label _DSM parent_adr 0x001A0000 remove_entry;
  89. into device name_adr 0x001A0000 insert
  90. begin
  91. Method (_DSM, 4, NotSerialized)\n
  92. {\n
  93. Store (Package ()\n
  94. {\n
  95. "device-id", \n
  96. Buffer (0x04)\n
  97. {\n
  98. 0x26, 0x1c, 0x00, 0x00\n
  99. }, \n
  100. "built-in", \n
  101. Buffer (One)\n
  102. {\n
  103. 0x00\n
  104. }, \n
  105. "AAPL,clock-id", \n
  106. Buffer (One)\n
  107. {\n
  108. 0x02\n
  109. }, \n
  110. "device_type", \n
  111. Buffer (0x05)\n
  112. {\n
  113. "EHCI"\n
  114. }, \n
  115. "AAPL,current-available", \n
  116. 0x0834, \n
  117. "AAPL,current-extra", \n
  118. 0x0898, \n
  119. "AAPL,current-extra-in-sleep", \n
  120. 0x0640, \n
  121. "AAPL,device-internal",\n
  122. 0x02,\n
  123. "AAPL,max-port-current-in-sleep",\n
  124. 0x834, \n
  125. Buffer (One)\n
  126. {\n
  127. 0x00\n
  128. }\n
  129. }, Local0)\n
  130. DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))\n
  131. Return (Local0)\n
  132. }
  133. end;
  134. into definitionblock code_regex External\s\(\\TNOT\) remove_matched;
  135. into device name_hid PNP0303 insert
  136. begin
  137. Method (_DSM, 4, NotSerialized)\n
  138. {\n
  139. Store (Package (0x02)\n
  140. {\n
  141. "AAPL,has-embedded-fn-keys", \n
  142. Buffer (0x04)\n
  143. {\n
  144. 0x01, 0x00, 0x00, 0x00\n
  145. }\n
  146. }, Local0)\n
  147. DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))\n
  148. Return (Local0)\n
  149. }\n
  150. end;
  151. into device label HDEF insert
  152. begin
  153. Method (_DSM, 4, NotSerialized)\n
  154. {\n
  155. Store (Package (0x04)\n
  156. {\n
  157. "layout-id", \n
  158. Buffer (0x04)\n
  159. {\n
  160. 0x0C, 0x00, 0x00, 0x00\n
  161. }, \n
  162. "PinConfigurations", \n
  163. Buffer (Zero) {}\n
  164. }, Local0)\n
  165. DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))\n
  166. Return (Local0)\n
  167. }
  168. end;
  169. into method label _STA parent_hid PNP0103 remove_entry;
  170. into device name_hid PNP0103 insert
  171. begin
  172. Method (_STA, 0, NotSerialized)\n
  173. {\n
  174. Return (0x0F)\n
  175. }
  176. end;
  177. into device name_hid PNP0000 code_regex IRQNoFlags\s\(\)\n\s+\{(\d+)\} remove_matched;
  178. into device name_hid PNP0100 code_regex IRQNoFlags\s\(\)\n\s+\{(\d+)\} remove_matched;
  179. into device name_hid PNP0B00 code_regex IRQNoFlags\s\(\)\n\s+\{(\d+)\} remove_matched;
  180. into device name_hid PNP0103 code_regex IRQNoFlags\s\(\)\n\s+\{(\d+)\} removeall_matched;
  181. into device name_hid PNP0103 code_regex Name\s\(([^,]+),\sResourceTemplate\s\(\)\n\s+\{((?:.|\n)*)\}\) replace_matched
  182. begin
  183. Name (%1, ResourceTemplate ()\n
  184. {\n
  185. IRQNoFlags ()\n
  186. {0}\n
  187. IRQNoFlags ()\n
  188. {8}\n
  189. IRQNoFlags ()\n
  190. {11}\n
  191. IRQNoFlags ()\n
  192. {15}\n
  193. %2
  194. })
  195. end;
  196. into method label _DSM parent_adr 0x001F0000 remove_entry;
  197. into device name_adr 0x001F0000 insert
  198. begin
  199. Method (_DSM, 4, NotSerialized)\n
  200. {\n
  201. Store (Package (0x02)\n
  202. {\n
  203. "device-id", \n
  204. Buffer (0x04)\n
  205. {\n
  206. 0x49, 0x1C, 0x00, 0x00\n
  207. }\n
  208. }, Local0)\n
  209. DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))\n
  210. Return (Local0)\n
  211. }
  212. end;
  213. into scope label \_SB insert
  214. begin
  215. Device (PNLF)\n
  216. {\n
  217. Name (_HID, EisaId ("APP0002"))\n
  218. Name (_CID, "backlight")\n
  219. Name (_UID, 0x0A)\n
  220. Name (_STA, 0x0B)\n
  221. }
  222. end;
  223. into device name_hid PNP0B00 code_regex (IO\s\((?:\s*[^,]+,\s*(?:\/\/\s.*)?\s*\n)+\s*)(\dx\d+)(,\s*(?:\/\/\s.*)?\s*\n\s*\)) replace_matched begin %10x02%3 end;
  224. into method label _PTS code_regex_not If\s\(LEqual\s\(Arg0,\s0x05\)\) code_regex ^((?:.|\n)*)$ replace_matched
  225. begin
  226. If (LEqual (Arg0, 0x05)) {}\n
  227. Else\n
  228. {\n
  229. %1
  230. }
  231. end;
  232. into method label SMAT code_regex Return\s\(Zero\) remove_matched;
  233. into method label SMAT insert
  234. begin
  235. Return (Zero)
  236. end;
  237. into method label _DSM parent_adr 0x001D0001 remove_entry;
  238. into device name_adr 0x001D0001 insert
  239. begin
  240. Method (_DSM, 4, NotSerialized)\n
  241. {\n
  242. Store (Package (0x02)\n
  243. {\n
  244. "device-id", \n
  245. Buffer (0x04)\n
  246. {\n
  247. 0x27, 0x1c, 0x00, 0x00\n
  248. }\n
  249. }, Local0)\n
  250. DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))\n
  251. Return (Local0)\n
  252. }
  253. end;
  254. into method label _DSM parent_adr 0x001D0002 remove_entry;
  255. into device name_adr 0x001D0002 insert
  256. begin
  257. Method (_DSM, 4, NotSerialized)\n
  258. {\n
  259. Store (Package (0x02)\n
  260. {\n
  261. "device-id", \n
  262. Buffer (0x04)\n
  263. {\n
  264. 0x2c, 0x1c, 0x00, 0x00\n
  265. }\n
  266. }, Local0)\n
  267. DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))\n
  268. Return (Local0)\n
  269. }
  270. end;
  271. into method label _DSM parent_adr 0x001D0003 remove_entry;
  272. into device name_adr 0x001D0003 insert
  273. begin
  274. Method (_DSM, 4, NotSerialized)\n
  275. {\n
  276. Store (Package (0x02)\n
  277. {\n
  278. "device-id", \n
  279. Buffer (0x04)\n
  280. {\n
  281. 0x27, 0x1c, 0x00, 0x00\n
  282. }\n
  283. }, Local0)\n
  284. DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))\n
  285. Return (Local0)\n
  286. }
  287. end;
  288. into method label _DSM parent_adr 0x001D0004 remove_entry;
  289. into device name_adr 0x001D0004 insert
  290. begin
  291. Method (_DSM, 4, NotSerialized)\n
  292. {\n
  293. Store (Package (0x02)\n
  294. {\n
  295. "device-id", \n
  296. Buffer (0x04)\n
  297. {\n
  298. 0x2c, 0x1c, 0x00, 0x00\n
  299. }\n
  300. }, Local0)\n
  301. DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))\n
  302. Return (Local0)\n
  303. }
  304. end;
  305. into method label _DSM parent_adr 0x001A0001 remove_entry;
  306. into device name_adr 0x001A0001 insert
  307. begin
  308. Method (_DSM, 4, NotSerialized)\n
  309. {\n
  310. Store (Package (0x02)\n
  311. {\n
  312. "device-id", \n
  313. Buffer (0x04)\n
  314. {\n
  315. 0x27, 0x1c, 0x00, 0x00\n
  316. }\n
  317. }, Local0)\n
  318. DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))\n
  319. Return (Local0)\n
  320. }
  321. end;
  322. into method label _DSM parent_adr 0x001A0002 remove_entry;
  323. into device name_adr 0x001A0002 insert
  324. begin
  325. Method (_DSM, 4, NotSerialized)\n
  326. {\n
  327. Store (Package (0x02)\n
  328. {\n
  329. "device-id", \n
  330. Buffer (0x04)\n
  331. {\n
  332. 0x2c, 0x1c, 0x00, 0x00\n
  333. }\n
  334. }, Local0)\n
  335. DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))\n
  336. Return (Local0)\n
  337. }
  338. end;
  339. into method label _DSM parent_adr 0x001A0003 remove_entry;
  340. into device name_adr 0x001A0003 insert
  341. begin
  342. Method (_DSM, 4, NotSerialized)\n
  343. {\n
  344. Store (Package (0x02)\n
  345. {\n
  346. "device-id", \n
  347. Buffer (0x04)\n
  348. {\n
  349. 0x27, 0x1c, 0x00, 0x00\n
  350. }\n
  351. }, Local0)\n
  352. DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))\n
  353. Return (Local0)\n
  354. }
  355. end;
  356. into method label _DSM parent_adr 0x001F0003 remove_entry;
  357. into device name_adr 0x001F0003 insert
  358. begin
  359. Device (BUS0)\n
  360. {\n
  361. Name (_CID, "smbus")\n
  362. Name (_ADR, Zero)\n
  363. Device (DVL0)\n
  364. {\n
  365. Name (_ADR, 0x57)\n
  366. Name (_CID, "diagsvault")\n
  367. Method (_DSM, 4, NotSerialized)\n
  368. {\n
  369. Store (Package (0x02)\n
  370. {\n
  371. "address", \n
  372. 0x57\n
  373. }, Local0)\n
  374. DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))\n
  375. Return (Local0)\n
  376. }\n
  377. }\n
  378. }
  379. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement