Advertisement
Guest User

Untitled

a guest
Jul 16th, 2012
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.86 KB | None | 0 0
  1. [code]DefinitionBlock ("./dsdt.aml", "SSDT", 1, "PmRef", "CpuPm", 0x00003000)
  2. {
  3. External (\_PR_.CPU7, DeviceObj)
  4. External (\_PR_.CPU6, DeviceObj)
  5. External (\_PR_.CPU5, DeviceObj)
  6. External (\_PR_.CPU4, DeviceObj)
  7. External (\_PR_.CPU3, DeviceObj)
  8. External (\_PR_.CPU2, DeviceObj)
  9. External (\_PR_.CPU1, DeviceObj)
  10. External (\_PR_.CPU0, DeviceObj)
  11.  
  12. Scope (\)
  13. {
  14. Name (SSDT, Package (0x0C)
  15. {
  16. "CPU0IST ",
  17. 0x01C86018,
  18. 0x00000913,
  19. "APIST ",
  20. 0xDF5CDA98,
  21. 0x00000303,
  22. "CPU0CST ",
  23. 0xDF5CC698,
  24. 0x0000063C,
  25. "APCST ",
  26. 0xDF5CBD98,
  27. 0x00000119
  28. })
  29. Name (CFGD, 0x0070F6FF)
  30. Name (\PDC0, 0x80000000)
  31. Name (\PDC1, 0x80000000)
  32. Name (\PDC2, 0x80000000)
  33. Name (\PDC3, 0x80000000)
  34. Name (\PDC4, 0x80000000)
  35. Name (\PDC5, 0x80000000)
  36. Name (\PDC6, 0x80000000)
  37. Name (\PDC7, 0x80000000)
  38. Name (\SDTL, Zero)
  39. }
  40.  
  41. Scope (\_PR.CPU0)
  42. {
  43. Name (HI0, Zero)
  44. Name (HC0, Zero)
  45. Method (_PDC, 1, NotSerialized)
  46. {
  47. Store (CPDC (Arg0), Local0)
  48. GCAP (Local0)
  49. Return (Local0)
  50. }
  51.  
  52. Method (_OSC, 4, NotSerialized)
  53. {
  54. Store (COSC (Arg0, Arg1, Arg2, Arg3), Local0)
  55. GCAP (Local0)
  56. Return (Local0)
  57. }
  58.  
  59. Method (CPDC, 1, NotSerialized)
  60. {
  61. CreateDWordField (Arg0, Zero, REVS)
  62. CreateDWordField (Arg0, 0x04, SIZE)
  63. Store (SizeOf (Arg0), Local0)
  64. Store (Subtract (Local0, 0x08), Local1)
  65. CreateField (Arg0, 0x40, Multiply (Local1, 0x08), TEMP)
  66. Name (STS0, Buffer (0x04)
  67. {
  68. 0x00, 0x00, 0x00, 0x00
  69. })
  70. Concatenate (STS0, TEMP, Local2)
  71. Return (COSC (Buffer (0x10)
  72. {
  73. /* 0000 */ 0x16, 0xA6, 0x77, 0x40, 0x0C, 0x29, 0xBE, 0x47,
  74. /* 0008 */ 0x9E, 0xBD, 0xD8, 0x70, 0x58, 0x71, 0x39, 0x53
  75. }, REVS, SIZE, Local2))
  76. }
  77.  
  78. Method (COSC, 4, NotSerialized)
  79. {
  80. CreateDWordField (Arg3, Zero, STS0)
  81. CreateDWordField (Arg3, 0x04, CAP0)
  82. CreateDWordField (Arg0, Zero, IID0)
  83. CreateDWordField (Arg0, 0x04, IID1)
  84. CreateDWordField (Arg0, 0x08, IID2)
  85. CreateDWordField (Arg0, 0x0C, IID3)
  86. Name (UID0, Buffer (0x10)
  87. {
  88. /* 0000 */ 0x16, 0xA6, 0x77, 0x40, 0x0C, 0x29, 0xBE, 0x47,
  89. /* 0008 */ 0x9E, 0xBD, 0xD8, 0x70, 0x58, 0x71, 0x39, 0x53
  90. })
  91. CreateDWordField (UID0, Zero, EID0)
  92. CreateDWordField (UID0, 0x04, EID1)
  93. CreateDWordField (UID0, 0x08, EID2)
  94. CreateDWordField (UID0, 0x0C, EID3)
  95. If (LNot (LAnd (LAnd (LEqual (IID0, EID0), LEqual (IID1, EID1)),
  96. LAnd (LEqual (IID2, EID2), LEqual (IID3, EID3)))))
  97. {
  98. Store (0x06, STS0)
  99. Return (Arg3)
  100. }
  101.  
  102. If (LNotEqual (Arg1, One))
  103. {
  104. Store (0x0A, STS0)
  105. Return (Arg3)
  106. }
  107.  
  108. Return (Arg3)
  109. }
  110.  
  111. Method (GCAP, 1, NotSerialized)
  112. {
  113. CreateDWordField (Arg0, Zero, STS0)
  114. CreateDWordField (Arg0, 0x04, CAP0)
  115. If (LOr (LEqual (STS0, 0x06), LEqual (STS0, 0x0A)))
  116. {
  117. Return (Zero)
  118. }
  119.  
  120. If (And (STS0, One))
  121. {
  122. And (CAP0, 0x0BFF, CAP0)
  123. Return (Zero)
  124. }
  125.  
  126. Or (And (PDC0, 0x7FFFFFFF), CAP0, PDC0)
  127. If (And (CFGD, 0x3E))
  128. {
  129. If (LAnd (LAnd (And (CFGD, 0x0400), And (PDC0, 0x18
  130. )), LNot (And (SDTL, 0x02))))
  131. {
  132. Or (SDTL, 0x02, SDTL)
  133. OperationRegion (CST0, SystemMemory, DerefOf (Index (SSDT, 0x07)), DerefOf (Index (SSDT, 0x08
  134. )))
  135. Load (CST0, HC0)
  136. }
  137. }
  138.  
  139. Return (Zero)
  140. }
  141. }
  142.  
  143. Scope (\_PR.CPU1)
  144. {
  145. Name (HI1, Zero)
  146. Name (HC1, Zero)
  147. Method (_PDC, 1, NotSerialized)
  148. {
  149. Store (\_PR.CPU0.CPDC (Arg0), Local0)
  150. GCAP (Local0)
  151. Return (Local0)
  152. }
  153.  
  154. Method (_OSC, 4, NotSerialized)
  155. {
  156. Store (\_PR.CPU0.COSC (Arg0, Arg1, Arg2, Arg3), Local0)
  157. GCAP (Local0)
  158. Return (Local0)
  159. }
  160.  
  161. Method (GCAP, 1, NotSerialized)
  162. {
  163. CreateDWordField (Arg0, Zero, STS1)
  164. CreateDWordField (Arg0, 0x04, CAP1)
  165. If (LOr (LEqual (STS1, 0x06), LEqual (STS1, 0x0A)))
  166. {
  167. Return (Zero)
  168. }
  169.  
  170. If (And (STS1, One))
  171. {
  172. And (CAP1, 0x0BFF, CAP1)
  173. Return (Zero)
  174. }
  175.  
  176. Or (And (PDC1, 0x7FFFFFFF), CAP1, PDC1)
  177. If (LEqual (And (PDC0, 0x09), 0x09))
  178. {
  179. APPT ()
  180. }
  181.  
  182. If (And (PDC0, 0x18))
  183. {
  184. APCT ()
  185. }
  186.  
  187. Return (Zero)
  188. }
  189.  
  190. Method (APCT, 0, NotSerialized)
  191. {
  192. If (LAnd (And (CFGD, 0x2E), LNot (And (SDTL, 0x20
  193. ))))
  194. {
  195. Or (SDTL, 0x20, SDTL)
  196. OperationRegion (CST1, SystemMemory, DerefOf (Index (SSDT, 0x0A)), DerefOf (Index (SSDT, 0x0B
  197. )))
  198. Load (CST1, HC1)
  199. }
  200. }
  201.  
  202. Method (APPT, 0, NotSerialized)
  203. {
  204. If (LAnd (And (CFGD, One), LNot (And (SDTL, 0x10
  205. ))))
  206. {
  207. Or (SDTL, 0x10, SDTL)
  208. OperationRegion (IST1, SystemMemory, DerefOf (Index (SSDT, 0x04)), DerefOf (Index (SSDT, 0x05
  209. )))
  210. Load (IST1, HI1)
  211. }
  212. }
  213. }
  214.  
  215. Scope (\_PR.CPU2)
  216. {
  217. Method (_PDC, 1, NotSerialized)
  218. {
  219. Store (\_PR.CPU0.CPDC (Arg0), Local0)
  220. GCAP (Local0)
  221. Return (Local0)
  222. }
  223.  
  224. Method (_OSC, 4, NotSerialized)
  225. {
  226. Store (\_PR.CPU0.COSC (Arg0, Arg1, Arg2, Arg3), Local0)
  227. GCAP (Local0)
  228. Return (Local0)
  229. }
  230.  
  231. Method (GCAP, 1, NotSerialized)
  232. {
  233. CreateDWordField (Arg0, Zero, STS2)
  234. CreateDWordField (Arg0, 0x04, CAP2)
  235. If (LOr (LEqual (STS2, 0x06), LEqual (STS2, 0x0A)))
  236. {
  237. Return (Zero)
  238. }
  239.  
  240. If (And (STS2, One))
  241. {
  242. And (CAP2, 0x0BFF, CAP2)
  243. Return (Zero)
  244. }
  245.  
  246. Or (And (PDC2, 0x7FFFFFFF), CAP2, PDC2)
  247. If (LEqual (And (PDC2, 0x09), 0x09))
  248. {
  249. \_PR.CPU1.APPT ()
  250. }
  251.  
  252. If (And (PDC2, 0x18))
  253. {
  254. \_PR.CPU1.APCT ()
  255. }
  256.  
  257. Return (Zero)
  258. }
  259. }
  260.  
  261. Scope (\_PR.CPU3)
  262. {
  263. Method (_PDC, 1, NotSerialized)
  264. {
  265. Store (\_PR.CPU0.CPDC (Arg0), Local0)
  266. GCAP (Local0)
  267. Return (Local0)
  268. }
  269.  
  270. Method (_OSC, 4, NotSerialized)
  271. {
  272. Store (\_PR.CPU0.COSC (Arg0, Arg1, Arg2, Arg3), Local0)
  273. GCAP (Local0)
  274. Return (Local0)
  275. }
  276.  
  277. Method (GCAP, 1, NotSerialized)
  278. {
  279. CreateDWordField (Arg0, Zero, STS3)
  280. CreateDWordField (Arg0, 0x04, CAP3)
  281. If (LOr (LEqual (STS3, 0x06), LEqual (STS3, 0x0A)))
  282. {
  283. Return (Zero)
  284. }
  285.  
  286. If (And (STS3, One))
  287. {
  288. And (CAP3, 0x0BFF, CAP3)
  289. Return (Zero)
  290. }
  291.  
  292. Or (And (PDC3, 0x7FFFFFFF), CAP3, PDC3)
  293. If (LEqual (And (PDC3, 0x09), 0x09))
  294. {
  295. \_PR.CPU1.APPT ()
  296. }
  297.  
  298. If (And (PDC3, 0x18))
  299. {
  300. \_PR.CPU1.APCT ()
  301. }
  302.  
  303. Return (Zero)
  304. }
  305. }
  306.  
  307. Scope (\_PR.CPU4)
  308. {
  309. Method (_PDC, 1, NotSerialized)
  310. {
  311. Store (\_PR.CPU0.CPDC (Arg0), Local0)
  312. GCAP (Local0)
  313. Return (Local0)
  314. }
  315.  
  316. Method (_OSC, 4, NotSerialized)
  317. {
  318. Store (\_PR.CPU0.COSC (Arg0, Arg1, Arg2, Arg3), Local0)
  319. GCAP (Local0)
  320. Return (Local0)
  321. }
  322.  
  323. Method (GCAP, 1, NotSerialized)
  324. {
  325. CreateDWordField (Arg0, Zero, STS4)
  326. CreateDWordField (Arg0, 0x04, CAP4)
  327. If (LOr (LEqual (STS4, 0x06), LEqual (STS4, 0x0A)))
  328. {
  329. Return (Zero)
  330. }
  331.  
  332. If (And (STS4, One))
  333. {
  334. And (CAP4, 0x0BFF, CAP4)
  335. Return (Zero)
  336. }
  337.  
  338. Or (And (PDC4, 0x7FFFFFFF), CAP4, PDC4)
  339. If (LEqual (And (PDC4, 0x09), 0x09))
  340. {
  341. \_PR.CPU1.APPT ()
  342. }
  343.  
  344. If (And (PDC4, 0x18))
  345. {
  346. \_PR.CPU1.APCT ()
  347. }
  348.  
  349. Return (Zero)
  350. }
  351. }
  352.  
  353. Scope (\_PR.CPU5)
  354. {
  355. Method (_PDC, 1, NotSerialized)
  356. {
  357. Store (\_PR.CPU0.CPDC (Arg0), Local0)
  358. GCAP (Local0)
  359. Return (Local0)
  360. }
  361.  
  362. Method (_OSC, 4, NotSerialized)
  363. {
  364. Store (\_PR.CPU0.COSC (Arg0, Arg1, Arg2, Arg3), Local0)
  365. GCAP (Local0)
  366. Return (Local0)
  367. }
  368.  
  369. Method (GCAP, 1, NotSerialized)
  370. {
  371. CreateDWordField (Arg0, Zero, STS5)
  372. CreateDWordField (Arg0, 0x04, CAP5)
  373. If (LOr (LEqual (STS5, 0x06), LEqual (STS5, 0x0A)))
  374. {
  375. Return (Zero)
  376. }
  377.  
  378. If (And (STS5, One))
  379. {
  380. And (CAP5, 0x0BFF, CAP5)
  381. Return (Zero)
  382. }
  383.  
  384. Or (And (PDC5, 0x7FFFFFFF), CAP5, PDC5)
  385. If (LEqual (And (PDC5, 0x09), 0x09))
  386. {
  387. \_PR.CPU1.APPT ()
  388. }
  389.  
  390. If (And (PDC5, 0x18))
  391. {
  392. \_PR.CPU1.APCT ()
  393. }
  394.  
  395. Return (Zero)
  396. }
  397. }
  398.  
  399. Scope (\_PR.CPU6)
  400. {
  401. Method (_PDC, 1, NotSerialized)
  402. {
  403. Store (\_PR.CPU0.CPDC (Arg0), Local0)
  404. GCAP (Local0)
  405. Return (Local0)
  406. }
  407.  
  408. Method (_OSC, 4, NotSerialized)
  409. {
  410. Store (\_PR.CPU0.COSC (Arg0, Arg1, Arg2, Arg3), Local0)
  411. GCAP (Local0)
  412. Return (Local0)
  413. }
  414.  
  415. Method (GCAP, 1, NotSerialized)
  416. {
  417. CreateDWordField (Arg0, Zero, STS6)
  418. CreateDWordField (Arg0, 0x04, CAP6)
  419. If (LOr (LEqual (STS6, 0x06), LEqual (STS6, 0x0A)))
  420. {
  421. Return (Zero)
  422. }
  423.  
  424. If (And (STS6, One))
  425. {
  426. And (CAP6, 0x0BFF, CAP6)
  427. Return (Zero)
  428. }
  429.  
  430. Or (And (PDC6, 0x7FFFFFFF), CAP6, PDC6)
  431. If (LEqual (And (PDC6, 0x09), 0x09))
  432. {
  433. \_PR.CPU1.APPT ()
  434. }
  435.  
  436. If (And (PDC6, 0x18))
  437. {
  438. \_PR.CPU1.APCT ()
  439. }
  440.  
  441. Return (Zero)
  442. }
  443. }
  444.  
  445. Scope (\_PR.CPU7)
  446. {
  447. Method (_PDC, 1, NotSerialized)
  448. {
  449. Store (\_PR.CPU0.CPDC (Arg0), Local0)
  450. GCAP (Local0)
  451. Return (Local0)
  452. }
  453.  
  454. Method (_OSC, 4, NotSerialized)
  455. {
  456. Store (\_PR.CPU0.COSC (Arg0, Arg1, Arg2, Arg3), Local0)
  457. GCAP (Local0)
  458. Return (Local0)
  459. }
  460.  
  461. Method (GCAP, 1, NotSerialized)
  462. {
  463. CreateDWordField (Arg0, Zero, STS7)
  464. CreateDWordField (Arg0, 0x04, CAP7)
  465. If (LOr (LEqual (STS7, 0x06), LEqual (STS7, 0x0A)))
  466. {
  467. Return (Zero)
  468. }
  469.  
  470. If (And (STS7, One))
  471. {
  472. And (CAP7, 0x0BFF, CAP7)
  473. Return (Zero)
  474. }
  475.  
  476. Or (And (PDC7, 0x7FFFFFFF), CAP7, PDC7)
  477. If (LEqual (And (PDC7, 0x09), 0x09))
  478. {
  479. \_PR.CPU1.APPT ()
  480. }
  481.  
  482. If (And (PDC7, 0x18))
  483. {
  484. \_PR.CPU1.APCT ()
  485. }
  486.  
  487. Return (Zero)
  488. }
  489. }
  490. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement