Advertisement
Guest User

Untitled

a guest
Dec 13th, 2017
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 21.65 KB | None | 0 0
  1. Device (EC0)
  2. {
  3. Name (_HID, EisaId ("PNP0C09"))
  4. Name (_UID, One)
  5. Name (_CRS, ResourceTemplate ()
  6. {
  7. IO (Decode16,
  8. 0x0062, // Range Minimum
  9. 0x0062, // Range Maximum
  10. 0x00, // Alignment
  11. 0x01, // Length
  12. )
  13. IO (Decode16,
  14. 0x0066, // Range Minimum
  15. 0x0066, // Range Maximum
  16. 0x00, // Alignment
  17. 0x01, // Length
  18. )
  19. })
  20. OperationRegion (ERAM, EmbeddedControl, Zero, 0xFF)
  21. Field (ERAM, ByteAcc, Lock, Preserve)
  22. {
  23. SMPR, 8,
  24. SMST, 8,
  25. SMAD, 8,
  26. SMCM, 8,
  27. SMD0, 256,
  28. BCNT, 8,
  29. SMAA, 8,
  30. BATD, 16,
  31. Offset (0x40),
  32. SW2S, 1,
  33. , 2,
  34. ADPP, 1,
  35. TAPM, 1,
  36. Offset (0x41),
  37. WIN7, 1,
  38. , 2,
  39. WINP, 1,
  40. RFLG, 1,
  41. PFN2, 1,
  42. WOLF, 1,
  43. PFLG, 1,
  44. , 4,
  45. QWOS, 1,
  46. , 1,
  47. BTON, 1,
  48. Offset (0x43),
  49. BBDA, 1,
  50. , 2,
  51. ACKY, 1,
  52. Offset (0x44),
  53. , 2,
  54. FASO, 1,
  55. Offset (0x4E),
  56. LIDE, 1,
  57. , 2,
  58. TLDP, 1,
  59. Offset (0x52),
  60. LIDS, 1,
  61. , 1,
  62. , 1,
  63. TLID, 1,
  64. Offset (0x58),
  65. RTMP, 8,
  66. ECT1, 8,
  67. ECT2, 8,
  68. RG5B, 8,
  69. Offset (0x5F),
  70. SBVO, 1,
  71. Offset (0x68),
  72. , 3,
  73. PLGS, 1,
  74. Offset (0x69),
  75. , 6,
  76. BDSO, 1,
  77. Offset (0x70),
  78. BADC, 16,
  79. BFCC, 16,
  80. BADV, 16,
  81. BDVO, 8,
  82. Offset (0x7E),
  83. BATP, 8,
  84. Offset (0x82),
  85. MBST, 8,
  86. MCUR, 16,
  87. MBRM, 16,
  88. MBCV, 16,
  89. Offset (0x8D),
  90. , 5,
  91. MBFC, 1,
  92. Offset (0x94),
  93. GSSU, 1,
  94. GSMS, 1,
  95. CS2S, 1,
  96. Offset (0x95),
  97. MMST, 4,
  98. DMST, 4,
  99. MBPG, 8,
  100. Offset (0xA0),
  101. QBHK, 8,
  102. Offset (0xA2),
  103. QBBB, 8,
  104. Offset (0xA4),
  105. MBTS, 1,
  106. MBTF, 1,
  107. , 5,
  108. LLBW, 1,
  109. MBTC, 1,
  110. , 2,
  111. MBNH, 1,
  112. Offset (0xA6),
  113. MBDC, 8,
  114. , 1,
  115. CPBT, 1,
  116. Offset (0xAA),
  117. , 1,
  118. MMBC, 1,
  119. , 5,
  120. RCDS, 1,
  121. Offset (0xAD),
  122. SARS, 8,
  123. Offset (0xAF),
  124. MCER, 8,
  125. Offset (0xB2),
  126. RPM1, 8,
  127. RPM2, 8,
  128. OCPL, 4,
  129. OCPH, 4,
  130. Offset (0xBC),
  131. MCEA, 8,
  132. Offset (0xCF),
  133. , 3,
  134. B47W, 1,
  135. Offset (0xD0),
  136. EBPL, 1,
  137. Offset (0xD2),
  138. , 7,
  139. DLYE, 1,
  140. Offset (0xD4),
  141. PSDH, 8,
  142. PSDL, 8,
  143. DBPL, 8,
  144. Offset (0xDA),
  145. PSIX, 8,
  146. PSKB, 1,
  147. PSTP, 1,
  148. PSBA, 1,
  149. LANP, 1,
  150. , 1,
  151. UPWR, 1,
  152. LIDW, 1,
  153. Offset (0xE0),
  154. DLTH, 8,
  155. DLTL, 8,
  156. EBRL, 8,
  157. Offset (0xE6),
  158. SFHK, 8,
  159. Offset (0xF0),
  160. , 3,
  161. WPWR, 1,
  162. Offset (0xF2),
  163. , 5,
  164. WANL, 1,
  165. Offset (0xF4),
  166. SFAN, 8,
  167. Offset (0xF9),
  168. FTCF, 1
  169. }
  170. Name (Q22L, Zero)
  171. Name (Q22C, Zero)
  172. Name (BATN, Zero)
  173. Name (BATF, 0xC0)
  174. Method (_REG, 2, NotSerialized)
  175. {
  176. If (LAnd (LEqual (Arg0, 0x03), LEqual (Arg1, One)))
  177. {
  178. Store (Arg1, ECON)
  179. If (ECON)
  180. {
  181. Store (SW2S, PWRS)
  182. W7RF ()
  183. Store (PPCM, OCPH)
  184. UTAS ()
  185. Sleep (0x03E8)
  186. ^^^ACEL.INIT ()
  187. }
  188. }
  189. }
  190. Method (BPOL, 1, NotSerialized)
  191. {
  192. Store (Arg0, DBPL)
  193. Store (One, EBPL)
  194. }
  195. Method (BPOM, 0, NotSerialized)
  196. {
  197. Store (Zero, DBPL)
  198. Store (Zero, EBPL)
  199. }
  200. Name (_GPE, 0x05)
  201. Method (_Q09, 0, NotSerialized)
  202. {
  203. Store (0x09, DBFE)
  204. Store (Add (DBFF, One), DBFF)
  205. Notify (BAT0, 0x80)
  206. Notify (ACAD, 0x80)
  207. If (LNotEqual (^^^^LID.FLID, Zero))
  208. {
  209. Notify (LID, 0x80)
  210. Store (Zero, ^^^^LID.FLID)
  211. If (LEqual (LIDS, Zero))
  212. {
  213. _Q8A ()
  214. Sleep (0x64)
  215. }
  216. }
  217. Notify (BAT0, 0x80)
  218. Store (Zero, ^^^^ACAD.FACS)
  219. Notify (ACAD, 0x80)
  220. If (LEqual (^^^^WMID.WMI5, 0x05))
  221. {
  222. ^^^^WMID.GWEV (0x05, Zero)
  223. Store (Zero, ^^^^WMID.WMI5)
  224. }
  225. }
  226. Method (_Q20, 0, NotSerialized)
  227. {
  228. Store (0x20, DBFE)
  229. Store (Add (DBFF, One), DBFF)
  230. CPUS ()
  231. GBAS ()
  232. If (And (0x40, BATF))
  233. {
  234. Notify (BAT0, 0x81)
  235. }
  236. If (And (0x02, BATF))
  237. {
  238. Notify (ACAD, 0x80)
  239. If (SW2S)
  240. {
  241. CBCD ()
  242. ^^^^WMID.GWEV (0x03, Zero)
  243. }
  244. }
  245. Notify (BAT0, 0x80)
  246. BPOL (0x05)
  247. If (SW2S)
  248. {
  249. ^^^^WMID.GWEV (0x03, Zero)
  250. }
  251. }
  252. Method (GBAS, 0, NotSerialized)
  253. {
  254. Store (Zero, BATF)
  255. If (MBTS)
  256. {
  257. If (LNotEqual (^^^^BAT0.B1ST, 0x1F))
  258. {
  259. Or (BATF, 0x40, BATF)
  260. }
  261. }
  262. Else
  263. {
  264. If (LEqual (^^^^BAT0.B1ST, 0x1F))
  265. {
  266. Or (BATF, 0x40, BATF)
  267. }
  268. }
  269. If (SW2S)
  270. {
  271. If (LEqual (^^^^ACAD.ACWT, Zero))
  272. {
  273. Or (BATF, 0x02, BATF)
  274. }
  275. }
  276. Else
  277. {
  278. If (LNotEqual (^^^^ACAD.ACWT, Zero))
  279. {
  280. Or (BATF, 0x02, BATF)
  281. }
  282. }
  283. }
  284. Method (_Q2A, 0, NotSerialized)
  285. {
  286. Notify (BAT0, 0x81)
  287. Notify (BAT0, 0x80)
  288. }
  289. Method (_Q22, 0, NotSerialized)
  290. {
  291. Store (0x22, DBFE)
  292. Store (Add (DBFF, One), DBFF)
  293. Notify (BAT0, 0x80)
  294. Sleep (0x03E8)
  295. Store (0x22, Q22L)
  296. Store (Zero, Q22C)
  297. Store (Zero, LLBW)
  298. Notify (BAT0, 0x80)
  299. }
  300. Method (_Q80, 0, NotSerialized)
  301. {
  302. Store ("_Q80 : Temperature Up/Down", Debug)
  303. If (LAnd (LEqual (\_TZ.HOTF, One), W8OS))
  304. {
  305. Return (Zero)
  306. }
  307. Notify (\_TZ.THRM, 0x80)
  308. }
  309. Method (_Q8A, 0, NotSerialized)
  310. {
  311. Store (0x8A, DBFE)
  312. Store (Add (DBFF, One), DBFF)
  313. Store ("_Q8A : LID Switch Event", Debug)
  314. Store (Zero, LIDE)
  315. Notify (LID, 0x80)
  316. ^^^ACEL.ADJT ()
  317. }
  318. Method (_Q11, 0, Serialized)
  319. {
  320. Store (0x11, DBFE)
  321. Store (Add (DBFF, One), DBFF)
  322. If (LOr (LEqual (TPOS, 0x40), LEqual (TPOS, 0x50)))
  323. {
  324. Notify (^^^VGA.LCD, 0x86)
  325. }
  326. Else
  327. {
  328. Acquire (PSMX, 0xFFFF)
  329. Store (0x05, BRB1)
  330. Store (0x8A, BCMD)
  331. BSMI (Zero)
  332. Release (PSMX)
  333. }
  334. Stall (0xFF)
  335. Stall (0xFF)
  336. Stall (0xFF)
  337. Stall (0xFF)
  338. }
  339. Method (_Q10, 0, Serialized)
  340. {
  341. Store (0x10, DBFE)
  342. Store (Add (DBFF, One), DBFF)
  343. If (LOr (LEqual (TPOS, 0x40), LEqual (TPOS, 0x50)))
  344. {
  345. Notify (^^^VGA.LCD, 0x87)
  346. }
  347. Else
  348. {
  349. Acquire (PSMX, 0xFFFF)
  350. Store (0x0A, BRTL)
  351. Store (0x8A, BCMD)
  352. BSMI (Zero)
  353. Release (PSMX)
  354. }
  355. Stall (0xFF)
  356. Stall (0xFF)
  357. Stall (0xFF)
  358. Stall (0xFF)
  359. }
  360. Method (_Q15, 0, NotSerialized)
  361. {
  362. Store (0x15, DBFE)
  363. Store (Add (DBFF, One), DBFF)
  364. Store ("!!! Wireless Button pressed !!!", Debug)
  365. If (W8OS)
  366. {
  367. Notify (WLBU, 0x80)
  368. }
  369. Else
  370. {
  371. Acquire (MUT2, 0xFFFF)
  372. If (WWBS)
  373. {
  374. Store (Zero, WWBS)
  375. }
  376. Else
  377. {
  378. Store (One, WWBS)
  379. }
  380. UPWS ()
  381. ^^^^WMID.GWEV (0x05, Zero)
  382. }
  383. Sleep (0x12C0)
  384. Release (MUT2)
  385. }
  386. Method (UPWS, 0, NotSerialized)
  387. {
  388. If (WWBS)
  389. {
  390. If (LNotEqual (^^^^WMID.WMIF, Zero))
  391. {
  392. If (LAnd (WWLE, WWLS))
  393. {
  394. Store (One, ^^^SMBS.O052)
  395. }
  396. Else
  397. {
  398. Store (Zero, ^^^SMBS.O052)
  399. }
  400. If (LAnd (WCME, WCMS))
  401. {
  402. Store (One, ^^^SMBS.O189)
  403. }
  404. Else
  405. {
  406. Store (Zero, ^^^SMBS.O189)
  407. }
  408. }
  409. Else
  410. {
  411. If (WWLE)
  412. {
  413. Store (One, ^^^SMBS.O052)
  414. }
  415. If (WCME)
  416. {
  417. Store (One, ^^^SMBS.O189)
  418. }
  419. }
  420. }
  421. Else
  422. {
  423. Store (Zero, ^^^SMBS.O052)
  424. Store (Zero, ^^^SMBS.O189)
  425. }
  426. }
  427. Method (_Q33, 0, NotSerialized)
  428. {
  429. Store (0x33, DBFE)
  430. Store (Add (DBFF, One), DBFF)
  431. Store ("!!! Peak Shift Timer sync up !!!", Debug)
  432. If (ECON)
  433. {
  434. Store (0xFF, PSIX)
  435. Sleep (One)
  436. FromBCD (^^RTC.RTMN, PSDL)
  437. FromBCD (^^RTC.RTHR, PSDH)
  438. Store (0x1C, PSIX)
  439. Sleep (One)
  440. FromBCD (^^RTC.RTDY, PSDL)
  441. FromBCD (^^RTC.RTSE, PSDH)
  442. Store (0x1D, PSIX)
  443. Sleep (One)
  444. }
  445. }
  446. Method (_Q8E, 0, NotSerialized)
  447. {
  448. Store (0x8E, DBFE)
  449. Store (Add (DBFF, One), DBFF)
  450. Store ("!!! Down CPU speed. !!!", Debug)
  451. If (ECON)
  452. {
  453. Store (\_PR.C000._PPC, Local0)
  454. Store (PPCM, Local1)
  455. If (LLess (Local0, Local1))
  456. {
  457. Add (Local0, One, Local0)
  458. }
  459. Store (Local0, \_PR.C000._PPC)
  460. Notify (\_PR.C000, 0x80)
  461. If (LGreater (ECPU, One))
  462. {
  463. Store (Local0, \_PR.C001._PPC)
  464. Notify (\_PR.C001, 0x80)
  465. }
  466. If (LGreater (ECPU, 0x02))
  467. {
  468. Store (Local0, \_PR.C002._PPC)
  469. Notify (\_PR.C002, 0x80)
  470. }
  471. If (LGreater (ECPU, 0x03))
  472. {
  473. Store (Local0, \_PR.C003._PPC)
  474. Notify (\_PR.C003, 0x80)
  475. }
  476. Store (Local0, OCPL)
  477. }
  478. }
  479. Method (_Q8F, 0, NotSerialized)
  480. {
  481. Store (0x8F, DBFE)
  482. Store (Add (DBFF, One), DBFF)
  483. Store ("!!! Up CPU speed !!!", Debug)
  484. If (ECON)
  485. {
  486. Store (\_PR.C000._PPC, Local0)
  487. If (Local0)
  488. {
  489. Subtract (Local0, One, Local0)
  490. Store (Local0, \_PR.C000._PPC)
  491. Notify (\_PR.C000, 0x80)
  492. If (LGreater (ECPU, One))
  493. {
  494. Store (Local0, \_PR.C001._PPC)
  495. Notify (\_PR.C001, 0x80)
  496. }
  497. If (LGreater (ECPU, 0x02))
  498. {
  499. Store (Local0, \_PR.C002._PPC)
  500. Notify (\_PR.C002, 0x80)
  501. }
  502. If (LGreater (ECPU, 0x03))
  503. {
  504. Store (Local0, \_PR.C003._PPC)
  505. Notify (\_PR.C003, 0x80)
  506. }
  507. }
  508. Store (Local0, OCPL)
  509. }
  510. }
  511. Method (_Q92, 0, NotSerialized)
  512. {
  513. UTAS ()
  514. }
  515. Method (_Q96, 0, NotSerialized)
  516. {
  517. Store (Zero, \_TZ.PSVD)
  518. Notify (\_TZ.THRM, 0x81)
  519. }
  520. Method (_Q99, 0, NotSerialized)
  521. {
  522. Store (0x99, DBFE)
  523. Store (Add (DBFF, One), DBFF)
  524. TSMI (0xD5, One)
  525. }
  526. Field (ERAM, ByteAcc, Lock, Preserve)
  527. {
  528. Offset (0x04),
  529. SMW0, 16
  530. }
  531. Field (ERAM, ByteAcc, Lock, Preserve)
  532. {
  533. Offset (0x04),
  534. SMB0, 8
  535. }
  536. Field (ERAM, ByteAcc, Lock, Preserve)
  537. {
  538. Offset (0x04),
  539. FLD0, 64
  540. }
  541. Field (ERAM, ByteAcc, Lock, Preserve)
  542. {
  543. Offset (0x04),
  544. FLD1, 128
  545. }
  546. Field (ERAM, ByteAcc, Lock, Preserve)
  547. {
  548. Offset (0x04),
  549. FLD2, 192
  550. }
  551. Field (ERAM, ByteAcc, Lock, Preserve)
  552. {
  553. Offset (0x04),
  554. FLD3, 256
  555. }
  556. Mutex (MUT0, 0x00)
  557. Mutex (MUT1, 0x00)
  558. Mutex (MUT2, 0x00)
  559. Method (SMRD, 4, NotSerialized)
  560. {
  561. If (LNot (ECON))
  562. {
  563. Return (0xFF)
  564. }
  565. If (LNotEqual (Arg0, 0x07))
  566. {
  567. If (LNotEqual (Arg0, 0x09))
  568. {
  569. If (LNotEqual (Arg0, 0x0B))
  570. {
  571. If (LNotEqual (Arg0, 0x47))
  572. {
  573. Return (0x19)
  574. }
  575. }
  576. }
  577. }
  578. Acquire (MUT0, 0xFFFF)
  579. Store (0x04, Local0)
  580. While (LGreater (Local0, One))
  581. {
  582. And (SMST, 0x40, SMST)
  583. Store (Arg2, SMCM)
  584. Store (Arg1, SMAD)
  585. Store (Arg0, SMPR)
  586. Store (Zero, Local3)
  587. While (LNot (And (SMST, 0xBF, Local1)))
  588. {
  589. Sleep (0x02)
  590. Increment (Local3)
  591. If (LEqual (Local3, 0x32))
  592. {
  593. And (SMST, 0x40, SMST)
  594. Store (Arg2, SMCM)
  595. Store (Arg1, SMAD)
  596. Store (Arg0, SMPR)
  597. Store (Zero, Local3)
  598. }
  599. }
  600. If (LEqual (Local1, 0x80))
  601. {
  602. Store (Zero, Local0)
  603. }
  604. Else
  605. {
  606. Decrement (Local0)
  607. }
  608. }
  609. If (Local0)
  610. {
  611. Store (And (Local1, 0x1F), Local0)
  612. }
  613. Else
  614. {
  615. If (LEqual (Arg0, 0x07))
  616. {
  617. Store (SMB0, Arg3)
  618. }
  619. If (LEqual (Arg0, 0x47))
  620. {
  621. Store (SMB0, Arg3)
  622. }
  623. If (LEqual (Arg0, 0x09))
  624. {
  625. Store (SMW0, Arg3)
  626. }
  627. If (LEqual (Arg0, 0x0B))
  628. {
  629. Store (BCNT, Local3)
  630. ShiftRight (0x0100, 0x03, Local2)
  631. If (LGreater (Local3, Local2))
  632. {
  633. Store (Local2, Local3)
  634. }
  635. If (LLess (Local3, 0x09))
  636. {
  637. Store (FLD0, Local2)
  638. }
  639. Else
  640. {
  641. If (LLess (Local3, 0x11))
  642. {
  643. Store (FLD1, Local2)
  644. }
  645. Else
  646. {
  647. If (LLess (Local3, 0x19))
  648. {
  649. Store (FLD2, Local2)
  650. }
  651. Else
  652. {
  653. Store (FLD3, Local2)
  654. }
  655. }
  656. }
  657. Increment (Local3)
  658. Store (Buffer (Local3) {}, Local4)
  659. Decrement (Local3)
  660. Store (Zero, Local5)
  661. While (LGreater (Local3, Local5))
  662. {
  663. GBFE (Local2, Local5, RefOf (Local6))
  664. PBFE (Local4, Local5, Local6)
  665. Increment (Local5)
  666. }
  667. PBFE (Local4, Local5, Zero)
  668. Store (Local4, Arg3)
  669. }
  670. }
  671. Release (MUT0)
  672. Return (Local0)
  673. }
  674. Method (SMWR, 4, NotSerialized)
  675. {
  676. If (LNot (ECON))
  677. {
  678. Return (0xFF)
  679. }
  680. If (LNotEqual (Arg0, 0x06))
  681. {
  682. If (LNotEqual (Arg0, 0x08))
  683. {
  684. If (LNotEqual (Arg0, 0x0A))
  685. {
  686. If (LNotEqual (Arg0, 0x46))
  687. {
  688. Return (0x19)
  689. }
  690. }
  691. }
  692. }
  693. Acquire (MUT0, 0xFFFF)
  694. Store (0x04, Local0)
  695. While (LGreater (Local0, One))
  696. {
  697. If (LEqual (Arg0, 0x06))
  698. {
  699. Store (Arg3, SMB0)
  700. }
  701. If (LEqual (Arg0, 0x46))
  702. {
  703. Store (Arg3, SMB0)
  704. }
  705. If (LEqual (Arg0, 0x08))
  706. {
  707. Store (Arg3, SMW0)
  708. }
  709. If (LEqual (Arg0, 0x0A))
  710. {
  711. Store (Arg3, SMD0)
  712. }
  713. And (SMST, 0x40, SMST)
  714. Store (Arg2, SMCM)
  715. Store (Arg1, SMAD)
  716. Store (Arg0, SMPR)
  717. Store (Zero, Local3)
  718. While (LNot (And (SMST, 0xBF, Local1)))
  719. {
  720. Sleep (0x02)
  721. Increment (Local3)
  722. If (LEqual (Local3, 0x32))
  723. {
  724. And (SMST, 0x40, SMST)
  725. Store (Arg2, SMCM)
  726. Store (Arg1, SMAD)
  727. Store (Arg0, SMPR)
  728. Store (Zero, Local3)
  729. }
  730. }
  731. If (LEqual (Local1, 0x80))
  732. {
  733. Store (Zero, Local0)
  734. }
  735. Else
  736. {
  737. Decrement (Local0)
  738. }
  739. }
  740. If (Local0)
  741. {
  742. Store (And (Local1, 0x1F), Local0)
  743. }
  744. Release (MUT0)
  745. Return (Local0)
  746. }
  747. Method (GSHK, 0, Serialized)
  748. {
  749. If (ECON)
  750. {
  751. Store (SFHK, Local0)
  752. }
  753. Return (Local0)
  754. }
  755. Method (SSHK, 1, Serialized)
  756. {
  757. If (ECON)
  758. {
  759. Store (Arg0, SFHK)
  760. }
  761. }
  762. Name (DISS, Buffer (0x0A)
  763. {
  764. /* 0000 */ 0x01, 0x02, 0x10, 0x04, 0x20, 0x03, 0x11, 0x05,
  765. /* 0008 */ 0x21, 0x01
  766. })
  767. Name (SWII, 0x0A)
  768. Method (GNSD, 0, Serialized)
  769. {
  770. Store (Zero, Local0)
  771. Store (CSTE, Local1)
  772. Store (ADDL, Local2)
  773. While (LLess (Local0, SWII))
  774. {
  775. Store (DerefOf (Index (DISS, Local0)), Local3)
  776. If (LEqual (Local3, Local1))
  777. {
  778. While (LLess (Local0, SWII))
  779. {
  780. Store (Local0, Local4)
  781. Increment (Local4)
  782. Store (DerefOf (Index (DISS, Local4)), Local5)
  783. If (LEqual (And (Local2, Local5), Local5))
  784. {
  785. Store (Local5, NSTE)
  786. Store (SWII, Local0)
  787. }
  788. Else
  789. {
  790. Increment (Local0)
  791. }
  792. }
  793. }
  794. Else
  795. {
  796. Increment (Local0)
  797. }
  798. }
  799. }
  800. Method (CPUS, 0, NotSerialized)
  801. {
  802. Store (Zero, Local0)
  803. Store (Local0, \_PR.C000._PPC)
  804. Notify (\_PR.C000, 0x80)
  805. If (LGreater (ECPU, One))
  806. {
  807. Store (Local0, \_PR.C001._PPC)
  808. Notify (\_PR.C001, 0x80)
  809. }
  810. If (LGreater (ECPU, 0x02))
  811. {
  812. Store (Local0, \_PR.C002._PPC)
  813. Notify (\_PR.C002, 0x80)
  814. }
  815. If (LGreater (ECPU, 0x03))
  816. {
  817. Store (Local0, \_PR.C003._PPC)
  818. Notify (\_PR.C003, 0x80)
  819. }
  820. If (ECON)
  821. {
  822. Store (Local0, OCPL)
  823. }
  824. }
  825. Method (KTWU, 0, NotSerialized)
  826. {
  827. If (ECON)
  828. {
  829. Store (KBWU, PSKB)
  830. Store (TPWU, PSTP)
  831. }
  832. }
  833. Method (W7RF, 0, NotSerialized)
  834. {
  835. If (ECON)
  836. {
  837. Store (Zero, WIN7)
  838. Store (Zero, RFLG)
  839. If (LEqual (OSTB, 0x50))
  840. {
  841. Store (One, WIN7)
  842. }
  843. If (LEqual (OSTB, 0x80))
  844. {
  845. Store (One, RFLG)
  846. }
  847. If (LEqual (SSOS, One))
  848. {
  849. Store (One, WINP)
  850. }
  851. }
  852. }
  853. Method (CBCD, 0, NotSerialized)
  854. {
  855. If (ECON)
  856. {
  857. Store (MBDC, Local0)
  858. And (Local0, 0xE4, Local0)
  859. Store (Local0, MBDC)
  860. }
  861. }
  862. Method (UTAS, 0, NotSerialized)
  863. {
  864. If (ECON)
  865. {
  866. If (LEqual (GSMS, One))
  867. {
  868. Store (MMST, Local0)
  869. }
  870. Else
  871. {
  872. Store (DMST, Local0)
  873. }
  874. }
  875. }
  876. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement