Advertisement
Guest User

Untitled

a guest
Dec 10th, 2011
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 272.33 KB | None | 0 0
  1. /*
  2. * Intel ACPI Component Architecture
  3. * AML Disassembler version 20091214
  4. *
  5. * Disassembly of ./dsdt.dat, Sat Dec 10 19:16:27 2011
  6. *
  7. *
  8. * Original Table Header:
  9. * Signature "DSDT"
  10. * Length 0x00007AB4 (31412)
  11. * Revision 0x01 **** ACPI 1.0, no 64-bit math support
  12. * Checksum 0x95
  13. * OEM ID "A1282"
  14. * OEM Table ID "A1282000"
  15. * OEM Revision 0x00000000 (0)
  16. * Compiler ID "INTL"
  17. * Compiler Version 0x20091214 (537465364)
  18. */
  19. DefinitionBlock ("./dsdt.aml", "DSDT", 1, "A1282", "A1282000", 0x00000000)
  20. {
  21. Method (DTGP, 5, NotSerialized)
  22. {
  23. If (LEqual (Arg0, Buffer (0x10)
  24. {
  25. /* 0000 */ 0xC6, 0xB7, 0xB5, 0xA0, 0x18, 0x13, 0x1C, 0x44,
  26. /* 0008 */ 0xB0, 0xC9, 0xFE, 0x69, 0x5E, 0xAF, 0x94, 0x9B
  27. }))
  28. {
  29. If (LEqual (Arg1, One))
  30. {
  31. If (LEqual (Arg2, Zero))
  32. {
  33. Store (Buffer (One)
  34. {
  35. 0x03
  36. }, Arg4)
  37. Return (One)
  38. }
  39.  
  40. If (LEqual (Arg2, One))
  41. {
  42. Return (One)
  43. }
  44. }
  45. }
  46.  
  47. Store (Buffer (One)
  48. {
  49. 0x00
  50. }, Arg4)
  51. Return (Zero)
  52. }
  53.  
  54. Scope (_PR)
  55. {
  56. Processor (P001, 0x01, 0x00000810, 0x06) {}
  57. Processor (P002, 0x02, 0x00000000, 0x00) {}
  58. Processor (P003, 0x03, 0x00000000, 0x00) {}
  59. Processor (P004, 0x04, 0x00000000, 0x00) {}
  60. }
  61.  
  62. Name (DP80, 0x80)
  63. Name (DP90, 0x90)
  64. Name (SPIO, 0x2E)
  65. Name (IOHW, 0x0290)
  66. Name (APIC, One)
  67. Name (PMBS, 0x0800)
  68. Name (PMLN, 0x80)
  69. Name (GPBS, 0x0480)
  70. Name (GPLN, 0x40)
  71. Name (SMBL, Zero)
  72. Name (PM30, 0x0830)
  73. Name (SUSW, 0xFF)
  74. Name (SMIO, 0xB2)
  75. Name (EAQF, One)
  76. Name (CQST, 0x3C)
  77. Name (TOBS, 0x0860)
  78. Name (SUCC, One)
  79. Name (NVLD, 0x02)
  80. Name (CRIT, 0x04)
  81. Name (NCRT, 0x06)
  82. Name (LIDS, One)
  83. Name (PCIB, 0xF0000000)
  84. Name (PCIL, 0x04000000)
  85. Name (CPUC, 0x04)
  86. Name (SMBS, 0x0400)
  87. OperationRegion (BIOS, SystemMemory, 0xDFF8E064, 0xFF)
  88. Field (BIOS, ByteAcc, NoLock, Preserve)
  89. {
  90. SS1, 1,
  91. SS2, 1,
  92. SS3, 1,
  93. SS4, 1,
  94. Offset (0x01),
  95. IOST, 16,
  96. TOPM, 32,
  97. ROMS, 32,
  98. MG1B, 32,
  99. MG1L, 32,
  100. MG2B, 32,
  101. MG2L, 32,
  102. Offset (0x1C),
  103. CPB0, 32,
  104. CPB1, 32,
  105. CPB2, 32,
  106. CPB3, 32,
  107. ASSB, 8,
  108. AOTB, 8,
  109. AAXB, 32,
  110. SMIF, 8,
  111. DTSE, 8,
  112. DTS1, 8,
  113. DTS2, 8,
  114. MPEN, 8,
  115. TPMF, 8,
  116. MG3B, 32,
  117. MG3L, 32,
  118. MSC1, 32,
  119. MSC2, 32,
  120. MSC3, 32,
  121. MSC4, 32,
  122. MSC5, 32,
  123. MSC6, 32,
  124. MSC7, 32,
  125. MSC8, 32,
  126. DMAX, 8,
  127. HPTA, 32
  128. }
  129.  
  130. Method (RRIO, 4, NotSerialized)
  131. {
  132. Store ("RRIO", Debug)
  133. }
  134.  
  135. Method (RDMA, 3, NotSerialized)
  136. {
  137. Store ("rDMA", Debug)
  138. }
  139.  
  140. Name (PICM, Zero)
  141. Method (_PIC, 1, NotSerialized)
  142. {
  143. If (Arg0)
  144. {
  145. Store (0xAA, DBG8)
  146. }
  147. Else
  148. {
  149. Store (0xAC, DBG8)
  150. }
  151.  
  152. Store (Arg0, PICM)
  153. }
  154.  
  155. Name (OSVR, Ones)
  156. Method (OSFL, 0, NotSerialized)
  157. {
  158. If (LNotEqual (OSVR, Ones))
  159. {
  160. Return (OSVR)
  161. }
  162.  
  163. If (LEqual (PICM, Zero))
  164. {
  165. Store (0xAC, DBG8)
  166. }
  167.  
  168. Store (One, OSVR)
  169. If (CondRefOf (_OSI, Local1))
  170. {
  171. If (_OSI ("Windows 2000"))
  172. {
  173. Store (0x04, OSVR)
  174. }
  175.  
  176. If (_OSI ("Windows 2001"))
  177. {
  178. Store (Zero, OSVR)
  179. }
  180.  
  181. If (_OSI ("Windows 2001 SP1"))
  182. {
  183. Store (Zero, OSVR)
  184. }
  185.  
  186. If (_OSI ("Windows 2001 SP2"))
  187. {
  188. Store (Zero, OSVR)
  189. }
  190.  
  191. If (_OSI ("Windows 2001.1"))
  192. {
  193. Store (Zero, OSVR)
  194. }
  195.  
  196. If (_OSI ("Windows 2001.1 SP1"))
  197. {
  198. Store (Zero, OSVR)
  199. }
  200.  
  201. If (_OSI ("Windows 2006"))
  202. {
  203. Store (Zero, OSVR)
  204. }
  205. }
  206. Else
  207. {
  208. If (MCTH (_OS, "Microsoft Windows NT"))
  209. {
  210. Store (0x04, OSVR)
  211. }
  212. Else
  213. {
  214. If (MCTH (_OS, "Microsoft WindowsME: Millennium Edition"))
  215. {
  216. Store (0x02, OSVR)
  217. }
  218.  
  219. If (MCTH (_OS, "Linux"))
  220. {
  221. Store (0x03, OSVR)
  222. }
  223. }
  224. }
  225.  
  226. Return (OSVR)
  227. }
  228.  
  229. Method (MCTH, 2, NotSerialized)
  230. {
  231. If (LLess (SizeOf (Arg0), SizeOf (Arg1)))
  232. {
  233. Return (Zero)
  234. }
  235.  
  236. Add (SizeOf (Arg0), One, Local0)
  237. Name (BUF0, Buffer (Local0) {})
  238. Name (BUF1, Buffer (Local0) {})
  239. Store (Arg0, BUF0)
  240. Store (Arg1, BUF1)
  241. While (Local0)
  242. {
  243. Decrement (Local0)
  244. If (LNotEqual (DerefOf (Index (BUF0, Local0)), DerefOf (Index (
  245. BUF1, Local0))))
  246. {
  247. Return (Zero)
  248. }
  249. }
  250.  
  251. Return (One)
  252. }
  253.  
  254. Name (PRWP, Package (0x02)
  255. {
  256. Zero,
  257. Zero
  258. })
  259. Method (GPRW, 2, NotSerialized)
  260. {
  261. Store (Arg0, Index (PRWP, Zero))
  262. Store (ShiftLeft (SS1, One), Local0)
  263. Or (Local0, ShiftLeft (SS2, 0x02), Local0)
  264. Or (Local0, ShiftLeft (SS3, 0x03), Local0)
  265. Or (Local0, ShiftLeft (SS4, 0x04), Local0)
  266. If (And (ShiftLeft (One, Arg1), Local0))
  267. {
  268. Store (Arg1, Index (PRWP, One))
  269. }
  270. Else
  271. {
  272. ShiftRight (Local0, One, Local0)
  273. If (LOr (LEqual (OSFL (), One), LEqual (OSFL (), 0x02)))
  274. {
  275. FindSetLeftBit (Local0, Index (PRWP, One))
  276. }
  277. Else
  278. {
  279. FindSetRightBit (Local0, Index (PRWP, One))
  280. }
  281. }
  282.  
  283. Return (PRWP)
  284. }
  285.  
  286. Name (WAKP, Package (0x02)
  287. {
  288. Zero,
  289. Zero
  290. })
  291. OperationRegion (DEB0, SystemIO, DP80, One)
  292. Field (DEB0, ByteAcc, NoLock, Preserve)
  293. {
  294. DBG8, 8
  295. }
  296.  
  297. OperationRegion (DEB1, SystemIO, DP90, 0x02)
  298. Field (DEB1, WordAcc, NoLock, Preserve)
  299. {
  300. DBG9, 16
  301. }
  302.  
  303. Scope (_SB)
  304. {
  305. Name (PR00, Package (0x16)
  306. {
  307. Package (0x04)
  308. {
  309. 0x0001FFFF,
  310. Zero,
  311. LNKA,
  312. Zero
  313. },
  314.  
  315. Package (0x04)
  316. {
  317. 0x0001FFFF,
  318. One,
  319. LNKB,
  320. Zero
  321. },
  322.  
  323. Package (0x04)
  324. {
  325. 0x0001FFFF,
  326. 0x02,
  327. LNKC,
  328. Zero
  329. },
  330.  
  331. Package (0x04)
  332. {
  333. 0x0001FFFF,
  334. 0x03,
  335. LNKD,
  336. Zero
  337. },
  338.  
  339. Package (0x04)
  340. {
  341. 0x0006FFFF,
  342. Zero,
  343. LNKA,
  344. Zero
  345. },
  346.  
  347. Package (0x04)
  348. {
  349. 0x0006FFFF,
  350. One,
  351. LNKB,
  352. Zero
  353. },
  354.  
  355. Package (0x04)
  356. {
  357. 0x0006FFFF,
  358. 0x02,
  359. LNKC,
  360. Zero
  361. },
  362.  
  363. Package (0x04)
  364. {
  365. 0x0006FFFF,
  366. 0x03,
  367. LNKD,
  368. Zero
  369. },
  370.  
  371. Package (0x04)
  372. {
  373. 0x001FFFFF,
  374. Zero,
  375. LNKC,
  376. Zero
  377. },
  378.  
  379. Package (0x04)
  380. {
  381. 0x001FFFFF,
  382. One,
  383. LNKG,
  384. Zero
  385. },
  386.  
  387. Package (0x04)
  388. {
  389. 0x001DFFFF,
  390. Zero,
  391. LNKH,
  392. Zero
  393. },
  394.  
  395. Package (0x04)
  396. {
  397. 0x001DFFFF,
  398. One,
  399. LNKD,
  400. Zero
  401. },
  402.  
  403. Package (0x04)
  404. {
  405. 0x001DFFFF,
  406. 0x02,
  407. LNKC,
  408. Zero
  409. },
  410.  
  411. Package (0x04)
  412. {
  413. 0x001DFFFF,
  414. 0x03,
  415. LNKA,
  416. Zero
  417. },
  418.  
  419. Package (0x04)
  420. {
  421. 0x001EFFFF,
  422. Zero,
  423. LNKB,
  424. Zero
  425. },
  426.  
  427. Package (0x04)
  428. {
  429. 0x001EFFFF,
  430. One,
  431. LNKE,
  432. Zero
  433. },
  434.  
  435. Package (0x04)
  436. {
  437. 0x001CFFFF,
  438. Zero,
  439. LNKA,
  440. Zero
  441. },
  442.  
  443. Package (0x04)
  444. {
  445. 0x001CFFFF,
  446. One,
  447. LNKB,
  448. Zero
  449. },
  450.  
  451. Package (0x04)
  452. {
  453. 0x001CFFFF,
  454. 0x02,
  455. LNKC,
  456. Zero
  457. },
  458.  
  459. Package (0x04)
  460. {
  461. 0x001CFFFF,
  462. 0x03,
  463. LNKD,
  464. Zero
  465. },
  466.  
  467. Package (0x04)
  468. {
  469. 0x0002FFFF,
  470. Zero,
  471. LNKA,
  472. Zero
  473. },
  474.  
  475. Package (0x04)
  476. {
  477. 0x001BFFFF,
  478. Zero,
  479. LNKF,
  480. Zero
  481. }
  482. })
  483. Name (AR00, Package (0x16)
  484. {
  485. Package (0x04)
  486. {
  487. 0x0001FFFF,
  488. Zero,
  489. Zero,
  490. 0x10
  491. },
  492.  
  493. Package (0x04)
  494. {
  495. 0x0001FFFF,
  496. One,
  497. Zero,
  498. 0x11
  499. },
  500.  
  501. Package (0x04)
  502. {
  503. 0x0001FFFF,
  504. 0x02,
  505. Zero,
  506. 0x12
  507. },
  508.  
  509. Package (0x04)
  510. {
  511. 0x0001FFFF,
  512. 0x03,
  513. Zero,
  514. 0x13
  515. },
  516.  
  517. Package (0x04)
  518. {
  519. 0x0006FFFF,
  520. Zero,
  521. Zero,
  522. 0x10
  523. },
  524.  
  525. Package (0x04)
  526. {
  527. 0x0006FFFF,
  528. One,
  529. Zero,
  530. 0x11
  531. },
  532.  
  533. Package (0x04)
  534. {
  535. 0x0006FFFF,
  536. 0x02,
  537. Zero,
  538. 0x12
  539. },
  540.  
  541. Package (0x04)
  542. {
  543. 0x0006FFFF,
  544. 0x03,
  545. Zero,
  546. 0x13
  547. },
  548.  
  549. Package (0x04)
  550. {
  551. 0x001FFFFF,
  552. Zero,
  553. Zero,
  554. 0x12
  555. },
  556.  
  557. Package (0x04)
  558. {
  559. 0x001FFFFF,
  560. One,
  561. Zero,
  562. 0x16
  563. },
  564.  
  565. Package (0x04)
  566. {
  567. 0x001DFFFF,
  568. Zero,
  569. Zero,
  570. 0x17
  571. },
  572.  
  573. Package (0x04)
  574. {
  575. 0x001DFFFF,
  576. One,
  577. Zero,
  578. 0x13
  579. },
  580.  
  581. Package (0x04)
  582. {
  583. 0x001DFFFF,
  584. 0x02,
  585. Zero,
  586. 0x12
  587. },
  588.  
  589. Package (0x04)
  590. {
  591. 0x001DFFFF,
  592. 0x03,
  593. Zero,
  594. 0x10
  595. },
  596.  
  597. Package (0x04)
  598. {
  599. 0x001EFFFF,
  600. Zero,
  601. Zero,
  602. 0x11
  603. },
  604.  
  605. Package (0x04)
  606. {
  607. 0x001EFFFF,
  608. One,
  609. Zero,
  610. 0x14
  611. },
  612.  
  613. Package (0x04)
  614. {
  615. 0x001CFFFF,
  616. Zero,
  617. Zero,
  618. 0x10
  619. },
  620.  
  621. Package (0x04)
  622. {
  623. 0x001CFFFF,
  624. One,
  625. Zero,
  626. 0x11
  627. },
  628.  
  629. Package (0x04)
  630. {
  631. 0x001CFFFF,
  632. 0x02,
  633. Zero,
  634. 0x12
  635. },
  636.  
  637. Package (0x04)
  638. {
  639. 0x001CFFFF,
  640. 0x03,
  641. Zero,
  642. 0x13
  643. },
  644.  
  645. Package (0x04)
  646. {
  647. 0x0002FFFF,
  648. Zero,
  649. Zero,
  650. 0x10
  651. },
  652.  
  653. Package (0x04)
  654. {
  655. 0x001BFFFF,
  656. Zero,
  657. Zero,
  658. 0x15
  659. }
  660. })
  661. Name (PR02, Package (0x04)
  662. {
  663. Package (0x04)
  664. {
  665. 0xFFFF,
  666. Zero,
  667. LNKA,
  668. Zero
  669. },
  670.  
  671. Package (0x04)
  672. {
  673. 0xFFFF,
  674. One,
  675. LNKB,
  676. Zero
  677. },
  678.  
  679. Package (0x04)
  680. {
  681. 0xFFFF,
  682. 0x02,
  683. LNKC,
  684. Zero
  685. },
  686.  
  687. Package (0x04)
  688. {
  689. 0xFFFF,
  690. 0x03,
  691. LNKD,
  692. Zero
  693. }
  694. })
  695. Name (AR02, Package (0x04)
  696. {
  697. Package (0x04)
  698. {
  699. 0xFFFF,
  700. Zero,
  701. Zero,
  702. 0x10
  703. },
  704.  
  705. Package (0x04)
  706. {
  707. 0xFFFF,
  708. One,
  709. Zero,
  710. 0x11
  711. },
  712.  
  713. Package (0x04)
  714. {
  715. 0xFFFF,
  716. 0x02,
  717. Zero,
  718. 0x12
  719. },
  720.  
  721. Package (0x04)
  722. {
  723. 0xFFFF,
  724. 0x03,
  725. Zero,
  726. 0x13
  727. }
  728. })
  729. Name (PR03, Package (0x04)
  730. {
  731. Package (0x04)
  732. {
  733. 0xFFFF,
  734. Zero,
  735. LNKA,
  736. Zero
  737. },
  738.  
  739. Package (0x04)
  740. {
  741. 0xFFFF,
  742. One,
  743. LNKB,
  744. Zero
  745. },
  746.  
  747. Package (0x04)
  748. {
  749. 0xFFFF,
  750. 0x02,
  751. LNKC,
  752. Zero
  753. },
  754.  
  755. Package (0x04)
  756. {
  757. 0xFFFF,
  758. 0x03,
  759. LNKD,
  760. Zero
  761. }
  762. })
  763. Name (AR03, Package (0x04)
  764. {
  765. Package (0x04)
  766. {
  767. 0xFFFF,
  768. Zero,
  769. Zero,
  770. 0x10
  771. },
  772.  
  773. Package (0x04)
  774. {
  775. 0xFFFF,
  776. One,
  777. Zero,
  778. 0x11
  779. },
  780.  
  781. Package (0x04)
  782. {
  783. 0xFFFF,
  784. 0x02,
  785. Zero,
  786. 0x12
  787. },
  788.  
  789. Package (0x04)
  790. {
  791. 0xFFFF,
  792. 0x03,
  793. Zero,
  794. 0x13
  795. }
  796. })
  797. Name (PR01, Package (0x08)
  798. {
  799. Package (0x04)
  800. {
  801. 0xFFFF,
  802. Zero,
  803. LNKD,
  804. Zero
  805. },
  806.  
  807. Package (0x04)
  808. {
  809. 0xFFFF,
  810. One,
  811. LNKA,
  812. Zero
  813. },
  814.  
  815. Package (0x04)
  816. {
  817. 0xFFFF,
  818. 0x02,
  819. LNKB,
  820. Zero
  821. },
  822.  
  823. Package (0x04)
  824. {
  825. 0xFFFF,
  826. 0x03,
  827. LNKC,
  828. Zero
  829. },
  830.  
  831. Package (0x04)
  832. {
  833. 0x0001FFFF,
  834. Zero,
  835. LNKA,
  836. Zero
  837. },
  838.  
  839. Package (0x04)
  840. {
  841. 0x0001FFFF,
  842. One,
  843. LNKB,
  844. Zero
  845. },
  846.  
  847. Package (0x04)
  848. {
  849. 0x0001FFFF,
  850. 0x02,
  851. LNKC,
  852. Zero
  853. },
  854.  
  855. Package (0x04)
  856. {
  857. 0x0001FFFF,
  858. 0x03,
  859. LNKD,
  860. Zero
  861. }
  862. })
  863. Name (AR01, Package (0x08)
  864. {
  865. Package (0x04)
  866. {
  867. 0xFFFF,
  868. Zero,
  869. Zero,
  870. 0x13
  871. },
  872.  
  873. Package (0x04)
  874. {
  875. 0xFFFF,
  876. One,
  877. Zero,
  878. 0x10
  879. },
  880.  
  881. Package (0x04)
  882. {
  883. 0xFFFF,
  884. 0x02,
  885. Zero,
  886. 0x11
  887. },
  888.  
  889. Package (0x04)
  890. {
  891. 0xFFFF,
  892. 0x03,
  893. Zero,
  894. 0x12
  895. },
  896.  
  897. Package (0x04)
  898. {
  899. 0x0001FFFF,
  900. Zero,
  901. Zero,
  902. 0x10
  903. },
  904.  
  905. Package (0x04)
  906. {
  907. 0x0001FFFF,
  908. One,
  909. Zero,
  910. 0x11
  911. },
  912.  
  913. Package (0x04)
  914. {
  915. 0x0001FFFF,
  916. 0x02,
  917. Zero,
  918. 0x12
  919. },
  920.  
  921. Package (0x04)
  922. {
  923. 0x0001FFFF,
  924. 0x03,
  925. Zero,
  926. 0x13
  927. }
  928. })
  929. Name (PR04, Package (0x04)
  930. {
  931. Package (0x04)
  932. {
  933. 0xFFFF,
  934. Zero,
  935. LNKA,
  936. Zero
  937. },
  938.  
  939. Package (0x04)
  940. {
  941. 0xFFFF,
  942. One,
  943. LNKB,
  944. Zero
  945. },
  946.  
  947. Package (0x04)
  948. {
  949. 0xFFFF,
  950. 0x02,
  951. LNKC,
  952. Zero
  953. },
  954.  
  955. Package (0x04)
  956. {
  957. 0xFFFF,
  958. 0x03,
  959. LNKD,
  960. Zero
  961. }
  962. })
  963. Name (AR04, Package (0x04)
  964. {
  965. Package (0x04)
  966. {
  967. 0xFFFF,
  968. Zero,
  969. Zero,
  970. 0x10
  971. },
  972.  
  973. Package (0x04)
  974. {
  975. 0xFFFF,
  976. One,
  977. Zero,
  978. 0x11
  979. },
  980.  
  981. Package (0x04)
  982. {
  983. 0xFFFF,
  984. 0x02,
  985. Zero,
  986. 0x12
  987. },
  988.  
  989. Package (0x04)
  990. {
  991. 0xFFFF,
  992. 0x03,
  993. Zero,
  994. 0x13
  995. }
  996. })
  997. Name (PR05, Package (0x04)
  998. {
  999. Package (0x04)
  1000. {
  1001. 0xFFFF,
  1002. Zero,
  1003. LNKB,
  1004. Zero
  1005. },
  1006.  
  1007. Package (0x04)
  1008. {
  1009. 0xFFFF,
  1010. One,
  1011. LNKC,
  1012. Zero
  1013. },
  1014.  
  1015. Package (0x04)
  1016. {
  1017. 0xFFFF,
  1018. 0x02,
  1019. LNKD,
  1020. Zero
  1021. },
  1022.  
  1023. Package (0x04)
  1024. {
  1025. 0xFFFF,
  1026. 0x03,
  1027. LNKA,
  1028. Zero
  1029. }
  1030. })
  1031. Name (AR05, Package (0x04)
  1032. {
  1033. Package (0x04)
  1034. {
  1035. 0xFFFF,
  1036. Zero,
  1037. Zero,
  1038. 0x11
  1039. },
  1040.  
  1041. Package (0x04)
  1042. {
  1043. 0xFFFF,
  1044. One,
  1045. Zero,
  1046. 0x12
  1047. },
  1048.  
  1049. Package (0x04)
  1050. {
  1051. 0xFFFF,
  1052. 0x02,
  1053. Zero,
  1054. 0x13
  1055. },
  1056.  
  1057. Package (0x04)
  1058. {
  1059. 0xFFFF,
  1060. 0x03,
  1061. Zero,
  1062. 0x10
  1063. }
  1064. })
  1065. Name (PRSA, ResourceTemplate ()
  1066. {
  1067. IRQ (Level, ActiveLow, Shared, )
  1068. {3,4,5,6,7,10,11,12,14,15}
  1069. })
  1070. Alias (PRSA, PRSB)
  1071. Alias (PRSA, PRSC)
  1072. Alias (PRSA, PRSD)
  1073. Alias (PRSA, PRSE)
  1074. Alias (PRSA, PRSF)
  1075. Alias (PRSA, PRSG)
  1076. Alias (PRSA, PRSH)
  1077. Device (PCI0)
  1078. {
  1079. Name (_HID, EisaId ("PNP0A08"))
  1080. Name (_ADR, Zero)
  1081. Method (^BN00, 0, NotSerialized)
  1082. {
  1083. Return (Zero)
  1084. }
  1085.  
  1086. Method (_BBN, 0, NotSerialized)
  1087. {
  1088. Return (BN00 ())
  1089. }
  1090.  
  1091. Name (_UID, Zero)
  1092. Method (_PRT, 0, NotSerialized)
  1093. {
  1094. If (PICM)
  1095. {
  1096. Return (AR00)
  1097. }
  1098.  
  1099. Return (PR00)
  1100. }
  1101.  
  1102. Method (_S3D, 0, NotSerialized)
  1103. {
  1104. If (LOr (LEqual (OSFL (), One), LEqual (OSFL (), 0x02)))
  1105. {
  1106. Return (0x02)
  1107. }
  1108. Else
  1109. {
  1110. Return (0x03)
  1111. }
  1112. }
  1113.  
  1114. Device (PEGP)
  1115. {
  1116. Name (_ADR, 0x00060000)
  1117. Device (GFX0)
  1118. {
  1119. Name (_ADR, Zero)
  1120. Name (_SUN, One)
  1121. Method (_DSM, 4, NotSerialized)
  1122. {
  1123. Store (Package (0x1C)
  1124. {
  1125. "AAPL,slot-name",
  1126. Buffer (0x0D)
  1127. {
  1128. "PCI-E Slot-1"
  1129. },
  1130.  
  1131. "@0,compatible",
  1132. Buffer (0x0B)
  1133. {
  1134. "NVDA,NVMac"
  1135. },
  1136.  
  1137. "@0,device_type",
  1138. Buffer (0x08)
  1139. {
  1140. "display"
  1141. },
  1142.  
  1143. "@0,name",
  1144. Buffer (0x0F)
  1145. {
  1146. "NVDA,Display-A"
  1147. },
  1148.  
  1149. "@1,compatible",
  1150. Buffer (0x0B)
  1151. {
  1152. "NVDA,NVMac"
  1153. },
  1154.  
  1155. "@1,device_type",
  1156. Buffer (0x08)
  1157. {
  1158. "display"
  1159. },
  1160.  
  1161. "@1,name",
  1162. Buffer (0x0F)
  1163. {
  1164. "NVDA,Display-B"
  1165. },
  1166.  
  1167. "NVCAP",
  1168. Buffer (0x18)
  1169. {
  1170. /* 0000 */ 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00,
  1171. /* 0008 */ 0x1C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0A,
  1172. /* 0010 */ 0x00, 0x00, 0x00, 0x00
  1173. },
  1174.  
  1175. "NVPM",
  1176. Buffer (0x20)
  1177. {
  1178. /* 0000 */ 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  1179. /* 0008 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  1180. /* 0010 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  1181. /* 0018 */ 0x00, 0x00, 0x00, 0x00
  1182. },
  1183.  
  1184. "VRAM,totalsize",
  1185. Buffer (0x04)
  1186. {
  1187. 0x00, 0x00, 0x00, 0x40
  1188. },
  1189.  
  1190. "device_type",
  1191. Buffer (0x0D)
  1192. {
  1193. "NVDA,GeForce"
  1194. },
  1195.  
  1196. "model",
  1197. Buffer (0x20)
  1198. {
  1199. "POV Nvidia GeForce 9600 GT 1 GB"
  1200. },
  1201.  
  1202. "rom-revision",
  1203. Buffer (0x23)
  1204. {
  1205. "DSDT ROM v.1a by #EvOsx86 (c)"
  1206. },
  1207.  
  1208. "reg",
  1209. Buffer (0x78)
  1210. {
  1211. /* 0000 */ 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00,
  1212. /* 0008 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  1213. /* 0010 */ 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x01, 0x02,
  1214. /* 0018 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  1215. /* 0020 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01,
  1216. /* 0028 */ 0x14, 0x00, 0x01, 0x42, 0x00, 0x00, 0x00, 0x00,
  1217. /* 0030 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  1218. /* 0038 */ 0x00, 0x00, 0x00, 0x10, 0x1C, 0x00, 0x01, 0x02,
  1219. /* 0040 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  1220. /* 0048 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02,
  1221. /* 0050 */ 0x24, 0x00, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00,
  1222. /* 0058 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  1223. /* 0060 */ 0x80, 0x00, 0x00, 0x00, 0x30, 0x00, 0x01, 0x02,
  1224. /* 0068 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  1225. /* 0070 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00
  1226. }
  1227. }, Local0)
  1228. DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
  1229. Return (Local0)
  1230. }
  1231. }
  1232. }
  1233.  
  1234. Name (_CID, EisaId ("PNP0A03"))
  1235. Device (MCH)
  1236. {
  1237. Name (_HID, EisaId ("PNP0C01"))
  1238. Name (_UID, 0x0A)
  1239. Name (_CRS, ResourceTemplate ()
  1240. {
  1241. Memory32Fixed (ReadWrite,
  1242. 0xFED14000, // Address Base
  1243. 0x00006000, // Address Length
  1244. )
  1245. })
  1246. }
  1247.  
  1248. Method (NPTS, 1, NotSerialized)
  1249. {
  1250. }
  1251.  
  1252. Method (NWAK, 1, NotSerialized)
  1253. {
  1254. }
  1255.  
  1256. Device (P0P2)
  1257. {
  1258. Name (_ADR, 0x00010000)
  1259. Method (_PRW, 0, NotSerialized)
  1260. {
  1261. Return (GPRW (0x09, 0x04))
  1262. }
  1263.  
  1264. Method (_PRT, 0, NotSerialized)
  1265. {
  1266. If (PICM)
  1267. {
  1268. Return (AR02)
  1269. }
  1270.  
  1271. Return (PR02)
  1272. }
  1273. }
  1274.  
  1275. Device (P0P3)
  1276. {
  1277. Name (_ADR, 0x00060000)
  1278. Method (_PRW, 0, NotSerialized)
  1279. {
  1280. Return (GPRW (0x09, 0x04))
  1281. }
  1282.  
  1283. Method (_PRT, 0, NotSerialized)
  1284. {
  1285. If (PICM)
  1286. {
  1287. Return (AR03)
  1288. }
  1289.  
  1290. Return (PR03)
  1291. }
  1292. }
  1293.  
  1294. Device (P0P1)
  1295. {
  1296. Name (_ADR, 0x001E0000)
  1297. Method (_PRW, 0, NotSerialized)
  1298. {
  1299. Return (GPRW (0x0B, 0x04))
  1300. }
  1301.  
  1302. Method (_PRT, 0, NotSerialized)
  1303. {
  1304. If (PICM)
  1305. {
  1306. Return (AR01)
  1307. }
  1308.  
  1309. Return (PR01)
  1310. }
  1311. }
  1312.  
  1313. Device (SBRG)
  1314. {
  1315. Name (_ADR, 0x001F0000)
  1316. Device (IELK)
  1317. {
  1318. Name (_HID, "AWY0001")
  1319. OperationRegion (RXA0, PCI_Config, 0xA0, 0x20)
  1320. Field (RXA0, ByteAcc, NoLock, Preserve)
  1321. {
  1322. , 9,
  1323. PBLV, 1,
  1324. Offset (0x10),
  1325. , 1,
  1326. PBMS, 1,
  1327. , 1,
  1328. PMCS, 1,
  1329. ECNS, 1,
  1330. Offset (0x11),
  1331. ECT1, 16,
  1332. ELEN, 1,
  1333. Offset (0x14)
  1334. }
  1335.  
  1336. Method (\_GPE._L0A, 0, NotSerialized)
  1337. {
  1338. Notify (\_SB.PCI0.SBRG.IELK, 0x81)
  1339. Store (One, \_SB.PCI0.SBRG.IELK.PMCS)
  1340. }
  1341.  
  1342. Method (_STA, 0, NotSerialized)
  1343. {
  1344. If (ELEN)
  1345. {
  1346. Return (0x0F)
  1347. }
  1348. Else
  1349. {
  1350. Return (Zero)
  1351. }
  1352. }
  1353.  
  1354. Method (SMOD, 1, NotSerialized)
  1355. {
  1356. }
  1357.  
  1358. Method (GPBS, 0, NotSerialized)
  1359. {
  1360. Return (XOr (PBLV, One))
  1361. }
  1362. }
  1363.  
  1364. Method (SPTS, 1, NotSerialized)
  1365. {
  1366. Store (One, PS1S)
  1367. Store (One, PS1E)
  1368. Store (One, SLPS)
  1369. }
  1370.  
  1371. Method (SWAK, 1, NotSerialized)
  1372. {
  1373. Store (Zero, SLPS)
  1374. Store (Zero, PS1E)
  1375. If (LAnd (LEqual (Arg0, One), RTCS)) {}
  1376. Else
  1377. {
  1378. If (LAnd (LEqual (Arg0, 0x03), BRTC)) {}
  1379. Else
  1380. {
  1381. Notify (PWRB, 0x02)
  1382. }
  1383. }
  1384. }
  1385.  
  1386. OperationRegion (APMP, SystemIO, SMIO, 0x02)
  1387. Field (APMP, ByteAcc, NoLock, Preserve)
  1388. {
  1389. APMC, 8,
  1390. APMS, 8
  1391. }
  1392.  
  1393. Field (APMP, ByteAcc, NoLock, Preserve)
  1394. {
  1395. Offset (0x01),
  1396. , 1,
  1397. BRTC, 1
  1398. }
  1399.  
  1400. OperationRegion (PMS0, SystemIO, PMBS, 0x04)
  1401. Field (PMS0, ByteAcc, NoLock, Preserve)
  1402. {
  1403. , 10,
  1404. RTCS, 1,
  1405. , 4,
  1406. WAKS, 1,
  1407. Offset (0x03),
  1408. PWBT, 1,
  1409. Offset (0x04)
  1410. }
  1411.  
  1412. OperationRegion (SMIE, SystemIO, PM30, 0x08)
  1413. Field (SMIE, ByteAcc, NoLock, Preserve)
  1414. {
  1415. , 4,
  1416. PS1E, 1,
  1417. , 31,
  1418. PS1S, 1,
  1419. Offset (0x08)
  1420. }
  1421.  
  1422. Scope (\_SB)
  1423. {
  1424. Name (SLPS, Zero)
  1425. Device (SLPB)
  1426. {
  1427. Name (_HID, EisaId ("PNP0C0E"))
  1428. Method (_STA, 0, NotSerialized)
  1429. {
  1430. If (LNotEqual (SUSW, 0xFF))
  1431. {
  1432. Return (0x0F)
  1433. }
  1434.  
  1435. Return (Zero)
  1436. }
  1437.  
  1438. Method (SBEV, 0, NotSerialized)
  1439. {
  1440. If (SLPS)
  1441. {
  1442. Notify (SLPB, 0x02)
  1443. }
  1444. Else
  1445. {
  1446. Notify (SLPB, 0x80)
  1447. }
  1448. }
  1449.  
  1450. Method (\_GPE._L1B, 0, NotSerialized)
  1451. {
  1452. \_SB.SLPB.SBEV ()
  1453. }
  1454.  
  1455. Method (_PRW, 0, NotSerialized)
  1456. {
  1457. Return (Package (0x02)
  1458. {
  1459. 0x1B,
  1460. 0x04
  1461. })
  1462. }
  1463. }
  1464. }
  1465.  
  1466. Device (PIC)
  1467. {
  1468. Name (_HID, EisaId ("PNP0000"))
  1469. Name (_CRS, ResourceTemplate ()
  1470. {
  1471. IO (Decode16,
  1472. 0x0020, // Range Minimum
  1473. 0x0020, // Range Maximum
  1474. 0x00, // Alignment
  1475. 0x02, // Length
  1476. )
  1477. IO (Decode16,
  1478. 0x00A0, // Range Minimum
  1479. 0x00A0, // Range Maximum
  1480. 0x00, // Alignment
  1481. 0x02, // Length
  1482. )
  1483. IRQNoFlags ()
  1484. {2}
  1485. })
  1486. }
  1487.  
  1488. Device (DMAD)
  1489. {
  1490. Name (_HID, EisaId ("PNP0200"))
  1491. Name (_CRS, ResourceTemplate ()
  1492. {
  1493. DMA (Compatibility, BusMaster, Transfer8, )
  1494. {4}
  1495. IO (Decode16,
  1496. 0x0000, // Range Minimum
  1497. 0x0000, // Range Maximum
  1498. 0x00, // Alignment
  1499. 0x10, // Length
  1500. )
  1501. IO (Decode16,
  1502. 0x0081, // Range Minimum
  1503. 0x0081, // Range Maximum
  1504. 0x00, // Alignment
  1505. 0x03, // Length
  1506. )
  1507. IO (Decode16,
  1508. 0x0087, // Range Minimum
  1509. 0x0087, // Range Maximum
  1510. 0x00, // Alignment
  1511. 0x01, // Length
  1512. )
  1513. IO (Decode16,
  1514. 0x0089, // Range Minimum
  1515. 0x0089, // Range Maximum
  1516. 0x00, // Alignment
  1517. 0x03, // Length
  1518. )
  1519. IO (Decode16,
  1520. 0x008F, // Range Minimum
  1521. 0x008F, // Range Maximum
  1522. 0x00, // Alignment
  1523. 0x01, // Length
  1524. )
  1525. IO (Decode16,
  1526. 0x00C0, // Range Minimum
  1527. 0x00C0, // Range Maximum
  1528. 0x00, // Alignment
  1529. 0x20, // Length
  1530. )
  1531. })
  1532. }
  1533.  
  1534. Device (TMR)
  1535. {
  1536. Name (_HID, EisaId ("PNP0100"))
  1537. Name (_CRS, ResourceTemplate ()
  1538. {
  1539. IO (Decode16,
  1540. 0x0040, // Range Minimum
  1541. 0x0040, // Range Maximum
  1542. 0x00, // Alignment
  1543. 0x04, // Length
  1544. )
  1545. IRQNoFlags ()
  1546. {0}
  1547. })
  1548. }
  1549.  
  1550. Device (RTC0)
  1551. {
  1552. Name (_HID, EisaId ("PNP0B00"))
  1553. Name (_CRS, ResourceTemplate ()
  1554. {
  1555. IO (Decode16,
  1556. 0x0070, // Range Minimum
  1557. 0x0070, // Range Maximum
  1558. 0x00, // Alignment
  1559. 0x02, // Length
  1560. )
  1561. IRQNoFlags ()
  1562. {8}
  1563. })
  1564. }
  1565.  
  1566. Device (SPKR)
  1567. {
  1568. Name (_HID, EisaId ("PNP0800"))
  1569. Name (_CRS, ResourceTemplate ()
  1570. {
  1571. IO (Decode16,
  1572. 0x0061, // Range Minimum
  1573. 0x0061, // Range Maximum
  1574. 0x00, // Alignment
  1575. 0x01, // Length
  1576. )
  1577. })
  1578. }
  1579.  
  1580. Device (COPR)
  1581. {
  1582. Name (_HID, EisaId ("PNP0C04"))
  1583. Name (_CRS, ResourceTemplate ()
  1584. {
  1585. IO (Decode16,
  1586. 0x00F0, // Range Minimum
  1587. 0x00F0, // Range Maximum
  1588. 0x00, // Alignment
  1589. 0x10, // Length
  1590. )
  1591. IRQNoFlags ()
  1592. {13}
  1593. })
  1594. }
  1595.  
  1596. Device (LPTE)
  1597. {
  1598. Method (_HID, 0, NotSerialized)
  1599. {
  1600. If (LPTM (0x02))
  1601. {
  1602. Return (0x0104D041)
  1603. }
  1604. Else
  1605. {
  1606. Return (0x0004D041)
  1607. }
  1608. }
  1609.  
  1610. Method (_STA, 0, NotSerialized)
  1611. {
  1612. Return (DSTA (0x02))
  1613. }
  1614.  
  1615. Method (_DIS, 0, NotSerialized)
  1616. {
  1617. DCNT (0x02, Zero)
  1618. }
  1619.  
  1620. Method (_CRS, 0, NotSerialized)
  1621. {
  1622. DCRS (0x02, One)
  1623. If (LPTM (0x02))
  1624. {
  1625. Store (IRQM, IRQE)
  1626. Store (DMAM, DMAE)
  1627. Store (IO11, IO21)
  1628. Store (IO12, IO22)
  1629. Store (LEN1, LEN2)
  1630. Add (IO21, 0x0400, IO31)
  1631. Store (IO31, IO32)
  1632. Store (LEN2, LEN3)
  1633. Return (CRS2)
  1634. }
  1635. Else
  1636. {
  1637. Return (CRS1)
  1638. }
  1639. }
  1640.  
  1641. Method (_SRS, 1, NotSerialized)
  1642. {
  1643. DSRS (Arg0, 0x02)
  1644. }
  1645.  
  1646. Method (_PRS, 0, NotSerialized)
  1647. {
  1648. If (LPTM (0x02))
  1649. {
  1650. Return (EPPR)
  1651. }
  1652. Else
  1653. {
  1654. Return (LPPR)
  1655. }
  1656. }
  1657.  
  1658. Name (LPPR, ResourceTemplate ()
  1659. {
  1660. StartDependentFnNoPri ()
  1661. {
  1662. IO (Decode16,
  1663. 0x0378, // Range Minimum
  1664. 0x0378, // Range Maximum
  1665. 0x01, // Alignment
  1666. 0x08, // Length
  1667. )
  1668. IRQNoFlags ()
  1669. {3,4,5,6,7,10,11,12}
  1670. DMA (Compatibility, NotBusMaster, Transfer8, )
  1671. {}
  1672. }
  1673. StartDependentFnNoPri ()
  1674. {
  1675. IO (Decode16,
  1676. 0x0278, // Range Minimum
  1677. 0x0278, // Range Maximum
  1678. 0x01, // Alignment
  1679. 0x08, // Length
  1680. )
  1681. IRQNoFlags ()
  1682. {3,4,5,6,7,10,11,12}
  1683. DMA (Compatibility, NotBusMaster, Transfer8, )
  1684. {}
  1685. }
  1686. StartDependentFnNoPri ()
  1687. {
  1688. IO (Decode16,
  1689. 0x03BC, // Range Minimum
  1690. 0x03BC, // Range Maximum
  1691. 0x01, // Alignment
  1692. 0x04, // Length
  1693. )
  1694. IRQNoFlags ()
  1695. {3,4,5,6,7,10,11,12}
  1696. DMA (Compatibility, NotBusMaster, Transfer8, )
  1697. {}
  1698. }
  1699. EndDependentFn ()
  1700. })
  1701. Name (EPPR, ResourceTemplate ()
  1702. {
  1703. StartDependentFn (0x00, 0x00)
  1704. {
  1705. IO (Decode16,
  1706. 0x0378, // Range Minimum
  1707. 0x0378, // Range Maximum
  1708. 0x01, // Alignment
  1709. 0x08, // Length
  1710. )
  1711. IO (Decode16,
  1712. 0x0778, // Range Minimum
  1713. 0x0778, // Range Maximum
  1714. 0x01, // Alignment
  1715. 0x08, // Length
  1716. )
  1717. IRQNoFlags ()
  1718. {7}
  1719. DMA (Compatibility, NotBusMaster, Transfer8, )
  1720. {3}
  1721. }
  1722. StartDependentFnNoPri ()
  1723. {
  1724. IO (Decode16,
  1725. 0x0378, // Range Minimum
  1726. 0x0378, // Range Maximum
  1727. 0x01, // Alignment
  1728. 0x08, // Length
  1729. )
  1730. IO (Decode16,
  1731. 0x0778, // Range Minimum
  1732. 0x0778, // Range Maximum
  1733. 0x01, // Alignment
  1734. 0x08, // Length
  1735. )
  1736. IRQNoFlags ()
  1737. {3,4,5,6,7,10,11,12}
  1738. DMA (Compatibility, NotBusMaster, Transfer8, )
  1739. {0,1,2,3}
  1740. }
  1741. StartDependentFnNoPri ()
  1742. {
  1743. IO (Decode16,
  1744. 0x0278, // Range Minimum
  1745. 0x0278, // Range Maximum
  1746. 0x01, // Alignment
  1747. 0x08, // Length
  1748. )
  1749. IO (Decode16,
  1750. 0x0678, // Range Minimum
  1751. 0x0678, // Range Maximum
  1752. 0x01, // Alignment
  1753. 0x08, // Length
  1754. )
  1755. IRQNoFlags ()
  1756. {3,4,5,6,7,10,11,12}
  1757. DMA (Compatibility, NotBusMaster, Transfer8, )
  1758. {0,1,2,3}
  1759. }
  1760. StartDependentFnNoPri ()
  1761. {
  1762. IO (Decode16,
  1763. 0x03BC, // Range Minimum
  1764. 0x03BC, // Range Maximum
  1765. 0x01, // Alignment
  1766. 0x04, // Length
  1767. )
  1768. IO (Decode16,
  1769. 0x07BC, // Range Minimum
  1770. 0x07BC, // Range Maximum
  1771. 0x01, // Alignment
  1772. 0x04, // Length
  1773. )
  1774. IRQNoFlags ()
  1775. {3,4,5,6,7,10,11,12}
  1776. DMA (Compatibility, NotBusMaster, Transfer8, )
  1777. {0,1,2,3}
  1778. }
  1779. EndDependentFn ()
  1780. })
  1781. }
  1782.  
  1783. Device (SIOR)
  1784. {
  1785. Name (_HID, EisaId ("PNP0C02"))
  1786. Method (_UID, 0, NotSerialized)
  1787. {
  1788. Return (SPIO)
  1789. }
  1790.  
  1791. Name (CRS, ResourceTemplate ()
  1792. {
  1793. IO (Decode16,
  1794. 0x0000, // Range Minimum
  1795. 0x0000, // Range Maximum
  1796. 0x00, // Alignment
  1797. 0x00, // Length
  1798. _Y00)
  1799. IO (Decode16,
  1800. 0x0000, // Range Minimum
  1801. 0x0000, // Range Maximum
  1802. 0x00, // Alignment
  1803. 0x00, // Length
  1804. )
  1805. IO (Decode16,
  1806. 0x0290, // Range Minimum
  1807. 0x0290, // Range Maximum
  1808. 0x00, // Alignment
  1809. 0x08, // Length
  1810. )
  1811. })
  1812. Method (_CRS, 0, NotSerialized)
  1813. {
  1814. If (LAnd (LNotEqual (SPIO, 0x03F0), LGreater (SPIO, 0xF0)))
  1815. {
  1816. CreateWordField (CRS, \_SB.PCI0.SBRG.SIOR._Y00._MIN, GP10)
  1817. CreateWordField (CRS, \_SB.PCI0.SBRG.SIOR._Y00._MAX, GP11)
  1818. CreateByteField (CRS, \_SB.PCI0.SBRG.SIOR._Y00._LEN, GPL1)
  1819. Store (SPIO, GP10)
  1820. Store (SPIO, GP11)
  1821. Store (0x02, GPL1)
  1822. }
  1823.  
  1824. Return (CRS)
  1825. }
  1826. }
  1827.  
  1828. Name (DCAT, Package (0x15)
  1829. {
  1830. 0x02,
  1831. 0x03,
  1832. One,
  1833. Zero,
  1834. 0xFF,
  1835. 0x07,
  1836. 0xFF,
  1837. 0xFF,
  1838. 0x07,
  1839. 0xFF,
  1840. 0xFF,
  1841. 0xFF,
  1842. 0xFF,
  1843. 0xFF,
  1844. 0xFF,
  1845. 0xFF,
  1846. 0x07,
  1847. 0x08,
  1848. 0x09,
  1849. 0xFF,
  1850. 0xFF
  1851. })
  1852. Mutex (IOCF, 0x00)
  1853. Method (ENFG, 1, NotSerialized)
  1854. {
  1855. Acquire (IOCF, 0xFFFF)
  1856. Store (0x87, INDX)
  1857. Store (0x87, INDX)
  1858. Store (Arg0, LDN)
  1859. }
  1860.  
  1861. Method (EXFG, 0, NotSerialized)
  1862. {
  1863. Store (0xAA, INDX)
  1864. Release (IOCF)
  1865. }
  1866.  
  1867. Method (LPTM, 1, NotSerialized)
  1868. {
  1869. ENFG (CGLD (Arg0))
  1870. And (OPT0, 0x02, Local0)
  1871. EXFG ()
  1872. Return (Local0)
  1873. }
  1874.  
  1875. Method (UHID, 1, NotSerialized)
  1876. {
  1877. If (LEqual (Arg0, One))
  1878. {
  1879. ENFG (CGLD (Arg0))
  1880. And (OPT1, 0x38, Local0)
  1881. EXFG ()
  1882. If (Local0)
  1883. {
  1884. Return (0x1005D041)
  1885. }
  1886. }
  1887.  
  1888. Return (0x0105D041)
  1889. }
  1890.  
  1891. Name (KBFG, One)
  1892. Name (MSFG, One)
  1893. Method (SIOK, 1, NotSerialized)
  1894. {
  1895. ENFG (0x0A)
  1896. If (And (LGreater (Arg0, One), LNotEqual (Arg0, 0x05)))
  1897. {
  1898. If (LEqual (Arg0, 0x03))
  1899. {
  1900. Or (CRE4, 0x10, CRE4)
  1901. }
  1902.  
  1903. And (CRE0, 0x04, CRE0)
  1904. Store (CRE3, Local0)
  1905. If (KBFG)
  1906. {
  1907. Or (CRE0, 0x41, CRE0)
  1908. }
  1909.  
  1910. If (MSFG)
  1911. {
  1912. Or (CRE0, 0x20, CRE0)
  1913. And (CRE0, 0x7F, CRE0)
  1914. }
  1915. }
  1916. Else
  1917. {
  1918. If (LEqual (Arg0, One))
  1919. {
  1920. Store (Zero, OPT6)
  1921. Or (OPT3, 0xFF, OPT3)
  1922. Or (OPT4, 0xFF, OPT4)
  1923. If (KBFG)
  1924. {
  1925. Or (OPT6, 0x10, OPT6)
  1926. }
  1927.  
  1928. If (MSFG)
  1929. {
  1930. Or (OPT6, 0x20, OPT6)
  1931. }
  1932. }
  1933. }
  1934.  
  1935. Store (CRE3, Local0)
  1936. EXFG ()
  1937. }
  1938.  
  1939. Method (SIOS, 1, NotSerialized)
  1940. {
  1941. Store ("SIOS", Debug)
  1942. SIOK (Arg0)
  1943. }
  1944.  
  1945. Method (SIOW, 1, NotSerialized)
  1946. {
  1947. Store ("SIOW", Debug)
  1948. SIOK (Zero)
  1949. }
  1950.  
  1951. Method (SIOH, 0, NotSerialized)
  1952. {
  1953. Store ("SIOH", Debug)
  1954. ENFG (0x0A)
  1955. If (And (OPT3, 0x10))
  1956. {
  1957. Notify (PS2K, 0x02)
  1958. }
  1959.  
  1960. If (And (OPT3, 0x20))
  1961. {
  1962. Notify (PS2M, 0x02)
  1963. }
  1964.  
  1965. EXFG ()
  1966. SIOK (Zero)
  1967. }
  1968.  
  1969. OperationRegion (IOID, SystemIO, SPIO, 0x02)
  1970. Field (IOID, ByteAcc, NoLock, Preserve)
  1971. {
  1972. INDX, 8,
  1973. DATA, 8
  1974. }
  1975.  
  1976. IndexField (INDX, DATA, ByteAcc, NoLock, Preserve)
  1977. {
  1978. Offset (0x07),
  1979. LDN, 8,
  1980. Offset (0x22),
  1981. FDCP, 1,
  1982. , 2,
  1983. LPTP, 1,
  1984. URAP, 1,
  1985. URBP, 1,
  1986. Offset (0x30),
  1987. ACTR, 8,
  1988. Offset (0x60),
  1989. IOAH, 8,
  1990. IOAL, 8,
  1991. IOH2, 8,
  1992. IOL2, 8,
  1993. Offset (0x70),
  1994. INTR, 4,
  1995. Offset (0x74),
  1996. DMCH, 3,
  1997. Offset (0xE0),
  1998. CRE0, 8,
  1999. CRE1, 8,
  2000. CRE2, 8,
  2001. CRE3, 8,
  2002. CRE4, 8,
  2003. CRE5, 8,
  2004. CRE6, 8,
  2005. Offset (0xF0),
  2006. OPT0, 8,
  2007. OPT1, 8,
  2008. OPT2, 8,
  2009. OPT3, 8,
  2010. OPT4, 8,
  2011. OPT5, 8,
  2012. OPT6, 8,
  2013. Offset (0xF9),
  2014. OPT9, 8
  2015. }
  2016.  
  2017. Method (CGLD, 1, NotSerialized)
  2018. {
  2019. Return (DerefOf (Index (DCAT, Arg0)))
  2020. }
  2021.  
  2022. Method (DSTA, 1, NotSerialized)
  2023. {
  2024. ENFG (CGLD (Arg0))
  2025. Store (ACTR, Local0)
  2026. EXFG ()
  2027. If (LEqual (Local0, 0xFF))
  2028. {
  2029. Return (Zero)
  2030. }
  2031.  
  2032. If (LEqual (Arg0, 0x05))
  2033. {
  2034. ShiftRight (Local0, 0x02, Local0)
  2035. }
  2036.  
  2037. If (LEqual (Arg0, 0x08))
  2038. {
  2039. ShiftRight (Local0, One, Local0)
  2040. }
  2041.  
  2042. And (Local0, One, Local0)
  2043. Or (IOST, ShiftLeft (Local0, Arg0), IOST)
  2044. If (Local0)
  2045. {
  2046. Return (0x0F)
  2047. }
  2048. Else
  2049. {
  2050. If (And (ShiftLeft (One, Arg0), IOST))
  2051. {
  2052. Return (0x0D)
  2053. }
  2054. Else
  2055. {
  2056. Return (Zero)
  2057. }
  2058. }
  2059. }
  2060.  
  2061. Method (DCNT, 2, NotSerialized)
  2062. {
  2063. ENFG (CGLD (Arg0))
  2064. If (LEqual (Arg0, 0x05))
  2065. {
  2066. ShiftLeft (IOH2, 0x08, Local1)
  2067. Or (IOL2, Local1, Local1)
  2068. }
  2069. Else
  2070. {
  2071. ShiftLeft (IOAH, 0x08, Local1)
  2072. Or (IOAL, Local1, Local1)
  2073. }
  2074.  
  2075. RRIO (Arg0, Arg1, Local1, 0x08)
  2076. If (LAnd (LLess (DMCH, 0x04), LNotEqual (And (DMCH, 0x03,
  2077. Local1), Zero)))
  2078. {
  2079. RDMA (Arg0, Arg1, Increment (Local1))
  2080. }
  2081.  
  2082. Store (Arg1, Local1)
  2083. Store (One, Local2)
  2084. If (LEqual (Arg0, 0x05))
  2085. {
  2086. ShiftLeft (Arg1, 0x02, Local1)
  2087. ShiftLeft (Local2, 0x02, Local2)
  2088. }
  2089.  
  2090. If (LEqual (Arg0, 0x08))
  2091. {
  2092. ShiftLeft (Arg1, One, Local1)
  2093. ShiftLeft (Local2, One, Local2)
  2094. }
  2095.  
  2096. Store (ACTR, Local0)
  2097. Not (Local2, Local3)
  2098. And (Local0, Local3, Local0)
  2099. Or (Local0, Local1, Local0)
  2100. Store (Local0, ACTR)
  2101. EXFG ()
  2102. }
  2103.  
  2104. Name (CRS1, ResourceTemplate ()
  2105. {
  2106. IRQNoFlags ()
  2107. {}
  2108. DMA (Compatibility, NotBusMaster, Transfer8, _Y01)
  2109. {}
  2110. IO (Decode16,
  2111. 0x0000, // Range Minimum
  2112. 0x0000, // Range Maximum
  2113. 0x01, // Alignment
  2114. 0x00, // Length
  2115. _Y02)
  2116. })
  2117. CreateWordField (CRS1, One, IRQM)
  2118. CreateByteField (CRS1, \_SB.PCI0.SBRG._Y01._DMA, DMAM)
  2119. CreateWordField (CRS1, \_SB.PCI0.SBRG._Y02._MIN, IO11)
  2120. CreateWordField (CRS1, \_SB.PCI0.SBRG._Y02._MAX, IO12)
  2121. CreateByteField (CRS1, \_SB.PCI0.SBRG._Y02._LEN, LEN1)
  2122. Name (CRS2, ResourceTemplate ()
  2123. {
  2124. IRQNoFlags ()
  2125. {6}
  2126. DMA (Compatibility, NotBusMaster, Transfer8, _Y03)
  2127. {2}
  2128. IO (Decode16,
  2129. 0x0000, // Range Minimum
  2130. 0x0000, // Range Maximum
  2131. 0x01, // Alignment
  2132. 0x00, // Length
  2133. _Y04)
  2134. IO (Decode16,
  2135. 0x0000, // Range Minimum
  2136. 0x0000, // Range Maximum
  2137. 0x01, // Alignment
  2138. 0x00, // Length
  2139. _Y05)
  2140. })
  2141. CreateWordField (CRS2, One, IRQE)
  2142. CreateByteField (CRS2, \_SB.PCI0.SBRG._Y03._DMA, DMAE)
  2143. CreateWordField (CRS2, \_SB.PCI0.SBRG._Y04._MIN, IO21)
  2144. CreateWordField (CRS2, \_SB.PCI0.SBRG._Y04._MAX, IO22)
  2145. CreateByteField (CRS2, \_SB.PCI0.SBRG._Y04._LEN, LEN2)
  2146. CreateWordField (CRS2, \_SB.PCI0.SBRG._Y05._MIN, IO31)
  2147. CreateWordField (CRS2, \_SB.PCI0.SBRG._Y05._MAX, IO32)
  2148. CreateByteField (CRS2, \_SB.PCI0.SBRG._Y05._LEN, LEN3)
  2149. Method (DCRS, 2, NotSerialized)
  2150. {
  2151. ENFG (CGLD (Arg0))
  2152. ShiftLeft (IOAH, 0x08, IO11)
  2153. Or (IOAL, IO11, IO11)
  2154. Store (IO11, IO12)
  2155. Subtract (FindSetRightBit (IO11), One, Local0)
  2156. ShiftLeft (One, Local0, LEN1)
  2157. If (INTR)
  2158. {
  2159. ShiftLeft (One, INTR, IRQM)
  2160. }
  2161. Else
  2162. {
  2163. Store (Zero, IRQM)
  2164. }
  2165.  
  2166. If (LOr (LGreater (DMCH, 0x03), LEqual (Arg1, Zero)))
  2167. {
  2168. Store (Zero, DMAM)
  2169. }
  2170. Else
  2171. {
  2172. And (DMCH, 0x03, Local1)
  2173. ShiftLeft (One, Local1, DMAM)
  2174. }
  2175.  
  2176. EXFG ()
  2177. Return (CRS1)
  2178. }
  2179.  
  2180. Method (DSRS, 2, NotSerialized)
  2181. {
  2182. CreateWordField (Arg0, One, IRQM)
  2183. CreateByteField (Arg0, 0x04, DMAM)
  2184. CreateWordField (Arg0, 0x08, IO11)
  2185. ENFG (CGLD (Arg1))
  2186. And (IO11, 0xFF, IOAL)
  2187. ShiftRight (IO11, 0x08, IOAH)
  2188. If (IRQM)
  2189. {
  2190. FindSetRightBit (IRQM, Local0)
  2191. Subtract (Local0, One, INTR)
  2192. }
  2193. Else
  2194. {
  2195. Store (Zero, INTR)
  2196. }
  2197.  
  2198. If (DMAM)
  2199. {
  2200. FindSetRightBit (DMAM, Local0)
  2201. Subtract (Local0, One, DMCH)
  2202. }
  2203. Else
  2204. {
  2205. Store (0x07, DMCH)
  2206. }
  2207.  
  2208. EXFG ()
  2209. DCNT (Arg1, One)
  2210. }
  2211.  
  2212. Device (RMSC)
  2213. {
  2214. Name (_HID, EisaId ("PNP0C02"))
  2215. Name (_UID, 0x10)
  2216. Name (CRS, ResourceTemplate ()
  2217. {
  2218. IO (Decode16,
  2219. 0x0010, // Range Minimum
  2220. 0x0010, // Range Maximum
  2221. 0x00, // Alignment
  2222. 0x10, // Length
  2223. )
  2224. IO (Decode16,
  2225. 0x0022, // Range Minimum
  2226. 0x0022, // Range Maximum
  2227. 0x00, // Alignment
  2228. 0x1E, // Length
  2229. )
  2230. IO (Decode16,
  2231. 0x0044, // Range Minimum
  2232. 0x0044, // Range Maximum
  2233. 0x00, // Alignment
  2234. 0x1C, // Length
  2235. )
  2236. IO (Decode16,
  2237. 0x0062, // Range Minimum
  2238. 0x0062, // Range Maximum
  2239. 0x00, // Alignment
  2240. 0x02, // Length
  2241. )
  2242. IO (Decode16,
  2243. 0x0065, // Range Minimum
  2244. 0x0065, // Range Maximum
  2245. 0x00, // Alignment
  2246. 0x0B, // Length
  2247. )
  2248. IO (Decode16,
  2249. 0x0072, // Range Minimum
  2250. 0x0072, // Range Maximum
  2251. 0x00, // Alignment
  2252. 0x0E, // Length
  2253. )
  2254. IO (Decode16,
  2255. 0x0080, // Range Minimum
  2256. 0x0080, // Range Maximum
  2257. 0x00, // Alignment
  2258. 0x01, // Length
  2259. )
  2260. IO (Decode16,
  2261. 0x0084, // Range Minimum
  2262. 0x0084, // Range Maximum
  2263. 0x00, // Alignment
  2264. 0x03, // Length
  2265. )
  2266. IO (Decode16,
  2267. 0x0088, // Range Minimum
  2268. 0x0088, // Range Maximum
  2269. 0x00, // Alignment
  2270. 0x01, // Length
  2271. )
  2272. IO (Decode16,
  2273. 0x008C, // Range Minimum
  2274. 0x008C, // Range Maximum
  2275. 0x00, // Alignment
  2276. 0x03, // Length
  2277. )
  2278. IO (Decode16,
  2279. 0x0090, // Range Minimum
  2280. 0x0090, // Range Maximum
  2281. 0x00, // Alignment
  2282. 0x10, // Length
  2283. )
  2284. IO (Decode16,
  2285. 0x00A2, // Range Minimum
  2286. 0x00A2, // Range Maximum
  2287. 0x00, // Alignment
  2288. 0x1E, // Length
  2289. )
  2290. IO (Decode16,
  2291. 0x00E0, // Range Minimum
  2292. 0x00E0, // Range Maximum
  2293. 0x00, // Alignment
  2294. 0x10, // Length
  2295. )
  2296. IO (Decode16,
  2297. 0x0400, // Range Minimum
  2298. 0x0400, // Range Maximum
  2299. 0x00, // Alignment
  2300. 0x20, // Length
  2301. )
  2302. IO (Decode16,
  2303. 0x04D0, // Range Minimum
  2304. 0x04D0, // Range Maximum
  2305. 0x00, // Alignment
  2306. 0x02, // Length
  2307. )
  2308. IO (Decode16,
  2309. 0x0000, // Range Minimum
  2310. 0x0000, // Range Maximum
  2311. 0x00, // Alignment
  2312. 0x00, // Length
  2313. _Y06)
  2314. IO (Decode16,
  2315. 0x0000, // Range Minimum
  2316. 0x0000, // Range Maximum
  2317. 0x00, // Alignment
  2318. 0x00, // Length
  2319. _Y07)
  2320. IO (Decode16,
  2321. 0x0000, // Range Minimum
  2322. 0x0000, // Range Maximum
  2323. 0x00, // Alignment
  2324. 0x00, // Length
  2325. _Y08)
  2326. Memory32Fixed (ReadWrite,
  2327. 0xFED1C000, // Address Base
  2328. 0x00004000, // Address Length
  2329. )
  2330. Memory32Fixed (ReadWrite,
  2331. 0xFED20000, // Address Base
  2332. 0x00070000, // Address Length
  2333. )
  2334. })
  2335. Method (_CRS, 0, NotSerialized)
  2336. {
  2337. CreateWordField (CRS, \_SB.PCI0.SBRG.RMSC._Y06._MIN, GP00)
  2338. CreateWordField (CRS, \_SB.PCI0.SBRG.RMSC._Y06._MAX, GP01)
  2339. CreateByteField (CRS, \_SB.PCI0.SBRG.RMSC._Y06._LEN, GP0L)
  2340. Store (PMBS, GP00)
  2341. Store (PMBS, GP01)
  2342. Store (PMLN, GP0L)
  2343. If (SMBS)
  2344. {
  2345. CreateWordField (CRS, \_SB.PCI0.SBRG.RMSC._Y07._MIN, GP10)
  2346. CreateWordField (CRS, \_SB.PCI0.SBRG.RMSC._Y07._MAX, GP11)
  2347. CreateByteField (CRS, \_SB.PCI0.SBRG.RMSC._Y07._LEN, GP1L)
  2348. Store (SMBS, GP10)
  2349. Store (SMBS, GP11)
  2350. Store (SMBL, GP1L)
  2351. }
  2352.  
  2353. If (GPBS)
  2354. {
  2355. CreateWordField (CRS, \_SB.PCI0.SBRG.RMSC._Y08._MIN, GP20)
  2356. CreateWordField (CRS, \_SB.PCI0.SBRG.RMSC._Y08._MAX, GP21)
  2357. CreateByteField (CRS, \_SB.PCI0.SBRG.RMSC._Y08._LEN, GP2L)
  2358. Store (GPBS, GP20)
  2359. Store (GPBS, GP21)
  2360. Store (GPLN, GP2L)
  2361. }
  2362.  
  2363. Return (CRS)
  2364. }
  2365. }
  2366.  
  2367. Scope (\)
  2368. {
  2369. OperationRegion (RAMW, SystemMemory, 0xDFFF0000, 0x00010000)
  2370. Field (RAMW, ByteAcc, NoLock, Preserve)
  2371. {
  2372. PAR0, 32,
  2373. PAR1, 32,
  2374. PAR2, 32
  2375. }
  2376.  
  2377. OperationRegion (IOB2, SystemIO, 0xB2, 0x02)
  2378. Field (IOB2, ByteAcc, NoLock, Preserve)
  2379. {
  2380. SMIC, 8,
  2381. SMIS, 8
  2382. }
  2383.  
  2384. Method (ISMI, 1, Serialized)
  2385. {
  2386. Store (Arg0, SMIC)
  2387. }
  2388.  
  2389. Method (GNVS, 1, Serialized)
  2390. {
  2391. Store (Arg0, PAR0)
  2392. ISMI (0x70)
  2393. Return (PAR1)
  2394. }
  2395.  
  2396. Method (SNVS, 2, Serialized)
  2397. {
  2398. Store (Arg0, PAR0)
  2399. Store (Arg1, PAR1)
  2400. ISMI (0x71)
  2401. }
  2402.  
  2403. Method (GMAX, 1, Serialized)
  2404. {
  2405. Store (Arg0, PAR0)
  2406. ISMI (0x74)
  2407. Return (PAR1)
  2408. }
  2409.  
  2410. Method (GMDX, 1, Serialized)
  2411. {
  2412. Store (Arg0, PAR0)
  2413. ISMI (0x75)
  2414. Return (PAR1)
  2415. }
  2416.  
  2417. Method (GCAX, 1, Serialized)
  2418. {
  2419. Store (Arg0, PAR0)
  2420. ISMI (0x76)
  2421. Return (PAR1)
  2422. }
  2423.  
  2424. Method (GCDX, 1, Serialized)
  2425. {
  2426. Store (Arg0, PAR0)
  2427. ISMI (0x77)
  2428. Return (PAR1)
  2429. }
  2430. }
  2431.  
  2432. Scope (\_SB.PCI0.SBRG)
  2433. {
  2434. Device (ASOC)
  2435. {
  2436. Name (_HID, "ATK0110")
  2437. Name (_UID, 0x01010110)
  2438. Method (_STA, 0, NotSerialized)
  2439. {
  2440. Return (0x0F)
  2441. }
  2442.  
  2443. Method (_INI, 0, NotSerialized)
  2444. {
  2445. FSBI ()
  2446. }
  2447.  
  2448. Method (FSBI, 0, NotSerialized)
  2449. {
  2450. If (LGreater (And (GCAX (One), 0x0FF0, Local0), 0x06F0))
  2451. {
  2452. And (ShiftRight (GMAX (0x2C), 0x10), 0x07, Local0)
  2453. }
  2454. Else
  2455. {
  2456. And (GMAX (0xCD), 0x07, Local0)
  2457. }
  2458.  
  2459. Name (T_0, Zero)
  2460. Store (Local0, T_0)
  2461. If (LEqual (T_0, Zero))
  2462. {
  2463. Store (0x42, Index (G3T0, 0x03))
  2464. }
  2465. Else
  2466. {
  2467. If (LEqual (T_0, 0x02))
  2468. {
  2469. Store (0xC9, Index (G3T0, 0x06))
  2470. Store (Zero, Index (G3T0, 0x03))
  2471. }
  2472. Else
  2473. {
  2474. If (LEqual (T_0, 0x04))
  2475. {
  2476. Store (0x85, Index (G3T0, 0x03))
  2477. }
  2478. Else
  2479. {
  2480. If (LEqual (T_0, 0x06))
  2481. {
  2482. Store (0xC8, Index (G3T0, 0x03))
  2483. }
  2484. }
  2485. }
  2486. }
  2487. }
  2488.  
  2489. Name (MBIF, Package (0x08)
  2490. {
  2491. 0x03,
  2492. "P5QPL-AM",
  2493. 0x01010103,
  2494. 0x02000100,
  2495. 0xE0000000,
  2496. Zero,
  2497. Zero,
  2498. Zero
  2499. })
  2500. Name (ASBF, Buffer (0x0100) {})
  2501. CreateDWordField (ASBF, Zero, ASB0)
  2502. CreateDWordField (ASBF, 0x04, ASB1)
  2503. Method (GGRP, 1, Serialized)
  2504. {
  2505. Name (T_0, Zero)
  2506. Store (Arg0, T_0)
  2507. If (LEqual (T_0, Zero))
  2508. {
  2509. Return (GRP0)
  2510. }
  2511. Else
  2512. {
  2513. If (LEqual (T_0, 0x03))
  2514. {
  2515. Return (GRP3)
  2516. }
  2517. Else
  2518. {
  2519. If (LEqual (T_0, 0x04))
  2520. {
  2521. Return (GRP4)
  2522. }
  2523. Else
  2524. {
  2525. If (LEqual (T_0, 0x05))
  2526. {
  2527. Return (GRP5)
  2528. }
  2529. Else
  2530. {
  2531. If (LEqual (T_0, 0x06))
  2532. {
  2533. Return (GRP6)
  2534. }
  2535. Else
  2536. {
  2537. Return (Zero)
  2538. }
  2539. }
  2540. }
  2541. }
  2542. }
  2543. }
  2544.  
  2545. Method (GITM, 1, Serialized)
  2546. {
  2547. CreateDWordField (Arg0, Zero, PRM0)
  2548. CreateDWordField (Arg0, 0x04, PRM1)
  2549. CreateByteField (Arg0, 0x03, GPID)
  2550. Store (One, ASB0)
  2551. Name (T_0, Zero)
  2552. Store (GPID, T_0)
  2553. If (LEqual (T_0, Zero))
  2554. {
  2555. GIT0 (PRM0)
  2556. }
  2557. Else
  2558. {
  2559. If (LEqual (T_0, 0x03))
  2560. {
  2561. GIT3 (PRM0)
  2562. }
  2563. Else
  2564. {
  2565. If (LEqual (T_0, 0x04))
  2566. {
  2567. GIT4 (PRM0)
  2568. }
  2569. Else
  2570. {
  2571. If (LEqual (T_0, 0x05))
  2572. {
  2573. GIT5 (PRM0, PRM1)
  2574. }
  2575. Else
  2576. {
  2577. If (LEqual (T_0, 0x06))
  2578. {
  2579. GIT6 (PRM0)
  2580. }
  2581. Else
  2582. {
  2583. Store (Zero, ASB0)
  2584. }
  2585. }
  2586. }
  2587. }
  2588. }
  2589.  
  2590. Return (ASBF)
  2591. }
  2592.  
  2593. Method (SITM, 1, Serialized)
  2594. {
  2595. CreateDWordField (Arg0, Zero, PRM0)
  2596. CreateDWordField (Arg0, 0x04, PRM1)
  2597. CreateDWordField (Arg0, 0x08, PRM2)
  2598. CreateByteField (Arg0, 0x03, GPID)
  2599. Store (One, ASB0)
  2600. Name (T_0, Zero)
  2601. Store (GPID, T_0)
  2602. If (LEqual (T_0, Zero))
  2603. {
  2604. SIT0 (PRM0, PRM1, PRM2)
  2605. }
  2606. Else
  2607. {
  2608. If (LEqual (T_0, 0x03))
  2609. {
  2610. SIT3 (PRM0, PRM1, PRM2)
  2611. }
  2612. Else
  2613. {
  2614. If (LEqual (T_0, 0x04))
  2615. {
  2616. SIT4 (PRM0, PRM1, PRM2)
  2617. }
  2618. Else
  2619. {
  2620. If (LEqual (T_0, 0x05))
  2621. {
  2622. SIT5 (PRM0, PRM1, PRM2)
  2623. }
  2624. Else
  2625. {
  2626. If (LEqual (T_0, 0x06))
  2627. {
  2628. SIT6 (PRM0, PRM1, PRM2)
  2629. }
  2630. Else
  2631. {
  2632. Store (Zero, ASB0)
  2633. }
  2634. }
  2635. }
  2636. }
  2637. }
  2638.  
  2639. Return (ASBF)
  2640. }
  2641.  
  2642. Method (OP2V, 2, NotSerialized)
  2643. {
  2644. Store (DerefOf (Index (Arg1, 0x04)), Local0)
  2645. Store (DerefOf (Index (Arg1, 0x05)), Local1)
  2646. Multiply (Arg0, Local1, Local1)
  2647. Add (Local0, Local1, Local0)
  2648. Return (Local0)
  2649. }
  2650.  
  2651. Method (V2OP, 2, NotSerialized)
  2652. {
  2653. Store (DerefOf (Index (Arg1, 0x04)), Local0)
  2654. Store (DerefOf (Index (Arg1, 0x05)), Local1)
  2655. Subtract (Arg0, Local0, Local0)
  2656. Divide (Local0, Local1, Local1, Local0)
  2657. Return (Local0)
  2658. }
  2659. }
  2660. }
  2661.  
  2662. Device (HPET)
  2663. {
  2664. Name (_HID, EisaId ("PNP0103"))
  2665. Name (CRS, ResourceTemplate ()
  2666. {
  2667. Memory32Fixed (ReadOnly,
  2668. 0xFED00000, // Address Base
  2669. 0x00000400, // Address Length
  2670. _Y09)
  2671. })
  2672. OperationRegion (^LPCR, SystemMemory, 0xFED1F404, 0x04)
  2673. Field (LPCR, AnyAcc, NoLock, Preserve)
  2674. {
  2675. HPTS, 2,
  2676. , 5,
  2677. HPTE, 1,
  2678. Offset (0x04)
  2679. }
  2680.  
  2681. Method (_STA, 0, NotSerialized)
  2682. {
  2683. If (LEqual (OSFL (), Zero))
  2684. {
  2685. If (HPTE)
  2686. {
  2687. Return (0x0F)
  2688. }
  2689. }
  2690. Else
  2691. {
  2692. If (HPTE)
  2693. {
  2694. Return (0x0B)
  2695. }
  2696. }
  2697.  
  2698. Return (Zero)
  2699. }
  2700.  
  2701. Method (_CRS, 0, NotSerialized)
  2702. {
  2703. CreateDWordField (CRS, \_SB.PCI0.SBRG.HPET._Y09._BAS, HPT)
  2704. Multiply (HPTS, 0x1000, Local0)
  2705. Add (Local0, 0xFED00000, HPT)
  2706. Return (CRS)
  2707. }
  2708. }
  2709.  
  2710. OperationRegion (RX80, PCI_Config, Zero, 0xFF)
  2711. Field (RX80, ByteAcc, NoLock, Preserve)
  2712. {
  2713. Offset (0x80),
  2714. LPCD, 16,
  2715. LPCE, 16
  2716. }
  2717.  
  2718. Name (DBPT, Package (0x04)
  2719. {
  2720. Package (0x08)
  2721. {
  2722. 0x03F8,
  2723. 0x02F8,
  2724. 0x0220,
  2725. 0x0228,
  2726. 0x0238,
  2727. 0x02E8,
  2728. 0x0338,
  2729. 0xFFFF
  2730. },
  2731.  
  2732. Package (0x08)
  2733. {
  2734. 0x03F8,
  2735. 0x02F8,
  2736. 0x0220,
  2737. 0x0228,
  2738. 0x0238,
  2739. 0x02E8,
  2740. 0x0338,
  2741. 0xFFFF
  2742. },
  2743.  
  2744. Package (0x03)
  2745. {
  2746. 0x0378,
  2747. 0x0278,
  2748. 0x03BC
  2749. },
  2750.  
  2751. Package (0x02)
  2752. {
  2753. 0x03F0,
  2754. 0x0370
  2755. }
  2756. })
  2757. Name (DDLT, Package (0x04)
  2758. {
  2759. Package (0x02)
  2760. {
  2761. Zero,
  2762. 0xFFF8
  2763. },
  2764.  
  2765. Package (0x02)
  2766. {
  2767. 0x04,
  2768. 0xFF8F
  2769. },
  2770.  
  2771. Package (0x02)
  2772. {
  2773. 0x08,
  2774. 0xFCFF
  2775. },
  2776.  
  2777. Package (0x02)
  2778. {
  2779. 0x0C,
  2780. 0xEFFF
  2781. }
  2782. })
  2783. Method (RRIO, 4, NotSerialized)
  2784. {
  2785. If (LAnd (LLessEqual (Arg0, 0x03), LGreaterEqual (Arg0, Zero)))
  2786. {
  2787. Store (Match (DerefOf (Index (DBPT, Arg0)), MEQ, Arg2, MTR,
  2788. Zero, Zero), Local0)
  2789. If (LNotEqual (Local0, Ones))
  2790. {
  2791. Store (DerefOf (Index (DerefOf (Index (DDLT, Arg0)), Zero)),
  2792. Local1)
  2793. Store (DerefOf (Index (DerefOf (Index (DDLT, Arg0)), One)),
  2794. Local2)
  2795. ShiftLeft (Local0, Local1, Local0)
  2796. And (LPCD, Local2, LPCD)
  2797. Or (LPCD, Local0, LPCD)
  2798. WX82 (Arg0, Arg1)
  2799. }
  2800. }
  2801.  
  2802. If (LEqual (Arg0, 0x08))
  2803. {
  2804. If (LEqual (Arg2, 0x0200))
  2805. {
  2806. WX82 (0x08, Arg0)
  2807. }
  2808. Else
  2809. {
  2810. If (LEqual (Arg2, 0x0208))
  2811. {
  2812. WX82 (0x09, Arg0)
  2813. }
  2814. }
  2815. }
  2816.  
  2817. If (LAnd (LLessEqual (Arg0, 0x0D), LGreaterEqual (Arg0, 0x0A)))
  2818. {
  2819. WX82 (Arg0, Arg1)
  2820. }
  2821. }
  2822.  
  2823. Method (WX82, 2, NotSerialized)
  2824. {
  2825. ShiftLeft (One, Arg0, Local0)
  2826. If (Arg1)
  2827. {
  2828. Or (LPCE, Local0, LPCE)
  2829. }
  2830. Else
  2831. {
  2832. Not (Local0, Local0)
  2833. And (LPCE, Local0, LPCE)
  2834. }
  2835. }
  2836.  
  2837. Method (RDMA, 3, NotSerialized)
  2838. {
  2839. }
  2840.  
  2841. Device (FWH)
  2842. {
  2843. Name (_HID, EisaId ("INT0800"))
  2844. Name (CRS, ResourceTemplate ()
  2845. {
  2846. Memory32Fixed (ReadOnly,
  2847. 0x00000000, // Address Base
  2848. 0x00000000, // Address Length
  2849. _Y0A)
  2850. Memory32Fixed (ReadOnly,
  2851. 0x00000000, // Address Base
  2852. 0x00000000, // Address Length
  2853. _Y0B)
  2854. })
  2855. CreateDWordField (CRS, \_SB.PCI0.SBRG.FWH._Y0A._BAS, BS00)
  2856. CreateDWordField (CRS, \_SB.PCI0.SBRG.FWH._Y0A._LEN, BL00)
  2857. CreateDWordField (CRS, \_SB.PCI0.SBRG.FWH._Y0B._BAS, BS10)
  2858. CreateDWordField (CRS, \_SB.PCI0.SBRG.FWH._Y0B._LEN, BL10)
  2859. Method (_CRS, 0, NotSerialized)
  2860. {
  2861. Store (0xFF800000, Local0)
  2862. FindSetRightBit (FHD0, Local1)
  2863. Decrement (Local1)
  2864. If (Local1)
  2865. {
  2866. Multiply (Local1, 0x00080000, Local1)
  2867. }
  2868.  
  2869. Add (Local0, Local1, Local2)
  2870. Store (Local2, BS00)
  2871. Add (BS00, 0x00400000, BS10)
  2872. Subtract (Zero, BS10, BL00)
  2873. Store (BL00, BL10)
  2874. Return (CRS)
  2875. }
  2876. }
  2877.  
  2878. Device (FWHE)
  2879. {
  2880. Name (_HID, EisaId ("PNP0C02"))
  2881. Name (_UID, 0x03)
  2882. Name (CRS, ResourceTemplate ()
  2883. {
  2884. Memory32Fixed (ReadOnly,
  2885. 0x00000000, // Address Base
  2886. 0x00000000, // Address Length
  2887. _Y0C)
  2888. })
  2889. Method (_CRS, 0, NotSerialized)
  2890. {
  2891. CreateDWordField (CRS, \_SB.PCI0.SBRG.FWHE._Y0C._BAS, BS00)
  2892. CreateDWordField (CRS, \_SB.PCI0.SBRG.FWHE._Y0C._LEN, BL00)
  2893. If (LEqual (^^FWH.BS00, Zero))
  2894. {
  2895. ^^FWH._CRS ()
  2896. }
  2897.  
  2898. Add (^^FWH.BS00, ^^FWH.BL00, BS00)
  2899. Subtract (^^FWH.BS10, BS00, BL00)
  2900. Return (CRS)
  2901. }
  2902. }
  2903.  
  2904. OperationRegion (FHR0, PCI_Config, 0xD8, 0x02)
  2905. Field (FHR0, ByteAcc, NoLock, Preserve)
  2906. {
  2907. FHD1, 4,
  2908. Offset (0x01),
  2909. FHD0, 8
  2910. }
  2911.  
  2912. Device (^PCIE)
  2913. {
  2914. Name (_HID, EisaId ("PNP0C02"))
  2915. Name (_UID, 0x11)
  2916. Name (CRS, ResourceTemplate ()
  2917. {
  2918. Memory32Fixed (ReadOnly,
  2919. 0xE0000000, // Address Base
  2920. 0x10000000, // Address Length
  2921. _Y0D)
  2922. })
  2923. Method (_CRS, 0, NotSerialized)
  2924. {
  2925. CreateDWordField (CRS, \_SB.PCI0.PCIE._Y0D._BAS, BAS1)
  2926. CreateDWordField (CRS, \_SB.PCI0.PCIE._Y0D._LEN, LEN1)
  2927. Store (PCIB, BAS1)
  2928. Store (PCIL, LEN1)
  2929. Return (CRS)
  2930. }
  2931. }
  2932.  
  2933. Scope (\_GPE)
  2934. {
  2935. Method (_L1A, 0, NotSerialized)
  2936. {
  2937. Notify (\_SB.PCI0.SBRG.ASOC, One)
  2938. Sleep (0xFFFF)
  2939. }
  2940. }
  2941.  
  2942. Scope (ASOC)
  2943. {
  2944. Name (VESL, Zero)
  2945. Method (SPLV, 1, Serialized)
  2946. {
  2947. And (Arg0, 0xFFFF, VESL)
  2948. Store (VESL, PAR0)
  2949. ISMI (0x88)
  2950. Store (And (PAR0, 0xFFFF), Local0)
  2951. Return (Local0)
  2952. }
  2953.  
  2954. Method (GPLV, 0, Serialized)
  2955. {
  2956. Return (VESL)
  2957. }
  2958. }
  2959.  
  2960. Device (UAR1)
  2961. {
  2962. Name (_UID, One)
  2963. Name (_HID, EisaId ("PNP0501"))
  2964. Method (_STA, 0, NotSerialized)
  2965. {
  2966. Return (DSTA (Zero))
  2967. }
  2968.  
  2969. Method (_DIS, 0, NotSerialized)
  2970. {
  2971. DCNT (Zero, Zero)
  2972. }
  2973.  
  2974. Method (_CRS, 0, NotSerialized)
  2975. {
  2976. Return (DCRS (Zero, Zero))
  2977. }
  2978.  
  2979. Method (_SRS, 1, NotSerialized)
  2980. {
  2981. DSRS (Arg0, Zero)
  2982. }
  2983.  
  2984. Method (_PRS, 0, NotSerialized)
  2985. {
  2986. Return (CMPR)
  2987. }
  2988.  
  2989. Name (CMPR, ResourceTemplate ()
  2990. {
  2991. StartDependentFn (0x00, 0x00)
  2992. {
  2993. IO (Decode16,
  2994. 0x03F8, // Range Minimum
  2995. 0x03F8, // Range Maximum
  2996. 0x01, // Alignment
  2997. 0x08, // Length
  2998. )
  2999. IRQNoFlags ()
  3000. {4}
  3001. DMA (Compatibility, NotBusMaster, Transfer8, )
  3002. {}
  3003. }
  3004. StartDependentFnNoPri ()
  3005. {
  3006. IO (Decode16,
  3007. 0x03F8, // Range Minimum
  3008. 0x03F8, // Range Maximum
  3009. 0x01, // Alignment
  3010. 0x08, // Length
  3011. )
  3012. IRQNoFlags ()
  3013. {3,4,5,6,7,10,11,12}
  3014. DMA (Compatibility, NotBusMaster, Transfer8, )
  3015. {}
  3016. }
  3017. StartDependentFnNoPri ()
  3018. {
  3019. IO (Decode16,
  3020. 0x02F8, // Range Minimum
  3021. 0x02F8, // Range Maximum
  3022. 0x01, // Alignment
  3023. 0x08, // Length
  3024. )
  3025. IRQNoFlags ()
  3026. {3,4,5,6,7,10,11,12}
  3027. DMA (Compatibility, NotBusMaster, Transfer8, )
  3028. {}
  3029. }
  3030. StartDependentFnNoPri ()
  3031. {
  3032. IO (Decode16,
  3033. 0xFFFF, // Range Minimum
  3034. 0xFFFF, // Range Maximum
  3035. 0x01, // Alignment
  3036. 0x08, // Length
  3037. )
  3038. IRQNoFlags ()
  3039. {3,4,5,6,7,10,11,12}
  3040. DMA (Compatibility, NotBusMaster, Transfer8, )
  3041. {}
  3042. }
  3043. StartDependentFnNoPri ()
  3044. {
  3045. IO (Decode16,
  3046. 0x02E8, // Range Minimum
  3047. 0x02E8, // Range Maximum
  3048. 0x01, // Alignment
  3049. 0x08, // Length
  3050. )
  3051. IRQNoFlags ()
  3052. {3,4,5,6,7,10,11,12}
  3053. DMA (Compatibility, NotBusMaster, Transfer8, )
  3054. {}
  3055. }
  3056. EndDependentFn ()
  3057. })
  3058. }
  3059.  
  3060. Method (UAR1._PRW, 0, NotSerialized)
  3061. {
  3062. Return (GPRW (0x08, 0x04))
  3063. }
  3064.  
  3065. Device (OMSC)
  3066. {
  3067. Name (_HID, EisaId ("PNP0C02"))
  3068. Name (_UID, Zero)
  3069. Name (CRS, ResourceTemplate ()
  3070. {
  3071. IO (Decode16,
  3072. 0x0000, // Range Minimum
  3073. 0x0000, // Range Maximum
  3074. 0x00, // Alignment
  3075. 0x00, // Length
  3076. _Y10)
  3077. IO (Decode16,
  3078. 0x0000, // Range Minimum
  3079. 0x0000, // Range Maximum
  3080. 0x00, // Alignment
  3081. 0x00, // Length
  3082. _Y11)
  3083. Memory32Fixed (ReadOnly,
  3084. 0x00000000, // Address Base
  3085. 0x00000000, // Address Length
  3086. _Y0E)
  3087. Memory32Fixed (ReadOnly,
  3088. 0x00000000, // Address Base
  3089. 0x00000000, // Address Length
  3090. _Y0F)
  3091. })
  3092. Method (_CRS, 0, NotSerialized)
  3093. {
  3094. If (APIC)
  3095. {
  3096. CreateDWordField (CRS, \_SB.PCI0.SBRG.OMSC._Y0E._LEN, ML01)
  3097. CreateDWordField (CRS, \_SB.PCI0.SBRG.OMSC._Y0E._BAS, MB01)
  3098. CreateDWordField (CRS, \_SB.PCI0.SBRG.OMSC._Y0F._LEN, ML02)
  3099. CreateDWordField (CRS, \_SB.PCI0.SBRG.OMSC._Y0F._BAS, MB02)
  3100. Store (0xFEC00000, MB01)
  3101. Store (0x1000, ML01)
  3102. Store (0xFEE00000, MB02)
  3103. Store (0x1000, ML02)
  3104. }
  3105.  
  3106. ShiftLeft (One, 0x0A, Local0)
  3107. If (And (IOST, Local0)) {}
  3108. Else
  3109. {
  3110. ShiftLeft (One, 0x0C, Local1)
  3111. If (And (IOST, Local1)) {}
  3112. Else
  3113. {
  3114. CreateWordField (CRS, \_SB.PCI0.SBRG.OMSC._Y10._MIN, P60N)
  3115. CreateWordField (CRS, \_SB.PCI0.SBRG.OMSC._Y10._MAX, P60M)
  3116. CreateByteField (CRS, \_SB.PCI0.SBRG.OMSC._Y10._LEN, P60L)
  3117. CreateWordField (CRS, \_SB.PCI0.SBRG.OMSC._Y11._MIN, P64N)
  3118. CreateWordField (CRS, \_SB.PCI0.SBRG.OMSC._Y11._MAX, P64M)
  3119. CreateByteField (CRS, \_SB.PCI0.SBRG.OMSC._Y11._LEN, P64L)
  3120. Store (0x60, P60N)
  3121. Store (0x60, P60M)
  3122. Store (One, P60L)
  3123. Store (0x64, P64N)
  3124. Store (0x64, P64M)
  3125. Store (One, P64L)
  3126. }
  3127. }
  3128.  
  3129. Return (CRS)
  3130. }
  3131. }
  3132.  
  3133. Device (^^RMEM)
  3134. {
  3135. Name (_HID, EisaId ("PNP0C01"))
  3136. Name (_UID, One)
  3137. Name (CRS, ResourceTemplate ()
  3138. {
  3139. Memory32Fixed (ReadWrite,
  3140. 0x00000000, // Address Base
  3141. 0x000A0000, // Address Length
  3142. )
  3143. Memory32Fixed (ReadOnly,
  3144. 0x00000000, // Address Base
  3145. 0x00000000, // Address Length
  3146. _Y12)
  3147. Memory32Fixed (ReadOnly,
  3148. 0x000E0000, // Address Base
  3149. 0x00020000, // Address Length
  3150. _Y13)
  3151. Memory32Fixed (ReadWrite,
  3152. 0x00100000, // Address Base
  3153. 0x00000000, // Address Length
  3154. _Y14)
  3155. Memory32Fixed (ReadOnly,
  3156. 0x00000000, // Address Base
  3157. 0x00000000, // Address Length
  3158. _Y15)
  3159. })
  3160. Method (_CRS, 0, NotSerialized)
  3161. {
  3162. CreateDWordField (CRS, \_SB.RMEM._Y12._BAS, BAS1)
  3163. CreateDWordField (CRS, \_SB.RMEM._Y12._LEN, LEN1)
  3164. CreateDWordField (CRS, \_SB.RMEM._Y13._BAS, BAS2)
  3165. CreateDWordField (CRS, \_SB.RMEM._Y13._LEN, LEN2)
  3166. CreateDWordField (CRS, \_SB.RMEM._Y14._LEN, LEN3)
  3167. CreateDWordField (CRS, \_SB.RMEM._Y15._BAS, BAS4)
  3168. CreateDWordField (CRS, \_SB.RMEM._Y15._LEN, LEN4)
  3169. If (OSFL ()) {}
  3170. Else
  3171. {
  3172. If (MG1B)
  3173. {
  3174. If (LGreater (MG1B, 0x000C0000))
  3175. {
  3176. Store (0x000C0000, BAS1)
  3177. Subtract (MG1B, BAS1, LEN1)
  3178. }
  3179. }
  3180. Else
  3181. {
  3182. Store (0x000C0000, BAS1)
  3183. Store (0x00020000, LEN1)
  3184. }
  3185.  
  3186. If (Add (MG1B, MG1L, Local0))
  3187. {
  3188. Store (Local0, BAS2)
  3189. Subtract (0x00100000, BAS2, LEN2)
  3190. }
  3191. }
  3192.  
  3193. Subtract (MG2B, 0x00100000, LEN3)
  3194. Add (MG2B, MG2L, BAS4)
  3195. Subtract (Zero, BAS4, LEN4)
  3196. Return (CRS)
  3197. }
  3198. }
  3199.  
  3200. Device (PS2K)
  3201. {
  3202. Name (_HID, EisaId ("PNP0303"))
  3203. Name (_CID, EisaId ("PNP030B"))
  3204. Method (_STA, 0, NotSerialized)
  3205. {
  3206. ShiftLeft (One, 0x0A, Local0)
  3207. If (And (IOST, Local0))
  3208. {
  3209. Return (0x0F)
  3210. }
  3211.  
  3212. Return (Zero)
  3213. }
  3214.  
  3215. Name (_CRS, ResourceTemplate ()
  3216. {
  3217. IO (Decode16,
  3218. 0x0060, // Range Minimum
  3219. 0x0060, // Range Maximum
  3220. 0x00, // Alignment
  3221. 0x01, // Length
  3222. )
  3223. IO (Decode16,
  3224. 0x0064, // Range Minimum
  3225. 0x0064, // Range Maximum
  3226. 0x00, // Alignment
  3227. 0x01, // Length
  3228. )
  3229. IRQNoFlags ()
  3230. {1}
  3231. })
  3232. }
  3233.  
  3234. Method (PS2K._PSW, 1, NotSerialized)
  3235. {
  3236. If (LNot (LOr (LEqual (OSFL (), One), LEqual (OSFL (), 0x02))))
  3237. {
  3238. Store (Arg0, KBFG)
  3239. }
  3240. }
  3241.  
  3242. Method (PS2K._PRW, 0, NotSerialized)
  3243. {
  3244. Return (GPRW (0x1D, 0x04))
  3245. }
  3246.  
  3247. Device (PS2M)
  3248. {
  3249. Name (_HID, EisaId ("PNP0F03"))
  3250. Name (_CID, EisaId ("PNP0F13"))
  3251. Method (_STA, 0, NotSerialized)
  3252. {
  3253. ShiftLeft (One, 0x0C, Local0)
  3254. If (And (IOST, Local0))
  3255. {
  3256. Return (0x0F)
  3257. }
  3258.  
  3259. Return (Zero)
  3260. }
  3261.  
  3262. Name (M2R0, ResourceTemplate ()
  3263. {
  3264. IRQNoFlags ()
  3265. {12}
  3266. })
  3267. Name (M2R1, ResourceTemplate ()
  3268. {
  3269. FixedIO (
  3270. 0x0060, // Address
  3271. 0x01, // Length
  3272. )
  3273. FixedIO (
  3274. 0x0064, // Address
  3275. 0x01, // Length
  3276. )
  3277. IRQNoFlags ()
  3278. {12}
  3279. })
  3280. Method (_CRS, 0, NotSerialized)
  3281. {
  3282. ShiftLeft (One, 0x0A, Local0)
  3283. If (And (IOST, Local0))
  3284. {
  3285. Return (M2R0)
  3286. }
  3287. Else
  3288. {
  3289. Return (M2R1)
  3290. }
  3291. }
  3292. }
  3293.  
  3294. Method (PS2M._PSW, 1, NotSerialized)
  3295. {
  3296. If (LNot (LOr (LEqual (OSFL (), One), LEqual (OSFL (), 0x02))))
  3297. {
  3298. Store (Arg0, MSFG)
  3299. }
  3300. }
  3301.  
  3302. Method (PS2M._PRW, 0, NotSerialized)
  3303. {
  3304. Return (GPRW (0x1D, 0x04))
  3305. }
  3306. }
  3307.  
  3308. Device (IDE0)
  3309. {
  3310. Name (_ADR, 0x001F0001)
  3311. Name (^NATA, Package (0x01)
  3312. {
  3313. 0x001F0001
  3314. })
  3315. Name (REGF, One)
  3316. Method (_REG, 2, NotSerialized)
  3317. {
  3318. If (LEqual (Arg0, 0x02))
  3319. {
  3320. Store (Arg1, REGF)
  3321. }
  3322. }
  3323.  
  3324. Name (TIM0, Package (0x08)
  3325. {
  3326. Package (0x04)
  3327. {
  3328. 0x78,
  3329. 0xB4,
  3330. 0xF0,
  3331. 0x0384
  3332. },
  3333.  
  3334. Package (0x04)
  3335. {
  3336. 0x23,
  3337. 0x21,
  3338. 0x10,
  3339. Zero
  3340. },
  3341.  
  3342. Package (0x04)
  3343. {
  3344. 0x0B,
  3345. 0x09,
  3346. 0x04,
  3347. Zero
  3348. },
  3349.  
  3350. Package (0x06)
  3351. {
  3352. 0x78,
  3353. 0x50,
  3354. 0x3C,
  3355. 0x28,
  3356. 0x1E,
  3357. 0x14
  3358. },
  3359.  
  3360. Package (0x06)
  3361. {
  3362. Zero,
  3363. One,
  3364. 0x02,
  3365. One,
  3366. 0x02,
  3367. One
  3368. },
  3369.  
  3370. Package (0x06)
  3371. {
  3372. Zero,
  3373. Zero,
  3374. Zero,
  3375. One,
  3376. One,
  3377. One
  3378. },
  3379.  
  3380. Package (0x04)
  3381. {
  3382. 0x04,
  3383. 0x03,
  3384. 0x02,
  3385. Zero
  3386. },
  3387.  
  3388. Package (0x04)
  3389. {
  3390. 0x02,
  3391. One,
  3392. Zero,
  3393. Zero
  3394. }
  3395. })
  3396. Name (TMD0, Buffer (0x14) {})
  3397. CreateDWordField (TMD0, Zero, PIO0)
  3398. CreateDWordField (TMD0, 0x04, DMA0)
  3399. CreateDWordField (TMD0, 0x08, PIO1)
  3400. CreateDWordField (TMD0, 0x0C, DMA1)
  3401. CreateDWordField (TMD0, 0x10, CHNF)
  3402. OperationRegion (CFG2, PCI_Config, 0x40, 0x20)
  3403. Field (CFG2, DWordAcc, NoLock, Preserve)
  3404. {
  3405. PMPT, 4,
  3406. PSPT, 4,
  3407. PMRI, 6,
  3408. Offset (0x02),
  3409. SMPT, 4,
  3410. SSPT, 4,
  3411. SMRI, 6,
  3412. Offset (0x04),
  3413. PSRI, 4,
  3414. SSRI, 4,
  3415. Offset (0x08),
  3416. PM3E, 1,
  3417. PS3E, 1,
  3418. SM3E, 1,
  3419. SS3E, 1,
  3420. Offset (0x0A),
  3421. PMUT, 2,
  3422. , 2,
  3423. PSUT, 2,
  3424. Offset (0x0B),
  3425. SMUT, 2,
  3426. , 2,
  3427. SSUT, 2,
  3428. Offset (0x0C),
  3429. Offset (0x14),
  3430. PM6E, 1,
  3431. PS6E, 1,
  3432. SM6E, 1,
  3433. SS6E, 1,
  3434. PMCR, 1,
  3435. PSCR, 1,
  3436. SMCR, 1,
  3437. SSCR, 1,
  3438. , 4,
  3439. PMAE, 1,
  3440. PSAE, 1,
  3441. SMAE, 1,
  3442. SSAE, 1
  3443. }
  3444.  
  3445. Name (GMPT, Zero)
  3446. Name (GMUE, Zero)
  3447. Name (GMUT, Zero)
  3448. Name (GMCR, Zero)
  3449. Name (GSPT, Zero)
  3450. Name (GSUE, Zero)
  3451. Name (GSUT, Zero)
  3452. Name (GSCR, Zero)
  3453. Device (CHN0)
  3454. {
  3455. Name (_ADR, Zero)
  3456. Method (_GTM, 0, NotSerialized)
  3457. {
  3458. ShiftLeft (PSCR, One, Local1)
  3459. Or (PMCR, Local1, Local0)
  3460. ShiftLeft (PMAE, 0x02, Local3)
  3461. ShiftLeft (PM6E, One, Local4)
  3462. Or (Local3, Local4, Local3)
  3463. Or (PM3E, Local3, Local1)
  3464. ShiftLeft (PMPT, 0x04, Local3)
  3465. Or (Local1, Local3, Local1)
  3466. ShiftLeft (PSAE, 0x02, Local3)
  3467. ShiftLeft (PS6E, One, Local4)
  3468. Or (Local3, Local4, Local3)
  3469. Or (PS3E, Local3, Local2)
  3470. ShiftLeft (PSPT, 0x04, Local3)
  3471. Or (Local2, Local3, Local2)
  3472. Return (GTM (PMRI, Local1, PMUT, PSRI, Local2, PSUT, Local0))
  3473. }
  3474.  
  3475. Method (_STM, 3, NotSerialized)
  3476. {
  3477. Store (Arg0, Debug)
  3478. Store (Arg0, TMD0)
  3479. ShiftLeft (PMAE, 0x02, Local3)
  3480. ShiftLeft (PM6E, One, Local4)
  3481. Or (Local3, Local4, Local3)
  3482. Or (PM3E, Local3, Local0)
  3483. ShiftLeft (PMPT, 0x04, Local3)
  3484. Or (Local0, Local3, Local0)
  3485. ShiftLeft (PSAE, 0x02, Local3)
  3486. ShiftLeft (PS6E, One, Local4)
  3487. Or (Local3, Local4, Local3)
  3488. Or (PS3E, Local3, Local1)
  3489. ShiftLeft (PSPT, 0x04, Local3)
  3490. Or (Local1, Local3, Local1)
  3491. Store (PMRI, GMPT)
  3492. Store (Local0, GMUE)
  3493. Store (PMUT, GMUT)
  3494. Store (PMCR, GMCR)
  3495. Store (PSRI, GSPT)
  3496. Store (Local1, GSUE)
  3497. Store (PSUT, GSUT)
  3498. Store (PSCR, GSCR)
  3499. STM ()
  3500. Store (GMPT, PMRI)
  3501. Store (GMUE, Local0)
  3502. Store (GMUT, PMUT)
  3503. Store (GMCR, PMCR)
  3504. Store (GSUE, Local1)
  3505. Store (GSUT, PSUT)
  3506. Store (GSCR, PSCR)
  3507. If (And (Local0, One))
  3508. {
  3509. Store (One, PM3E)
  3510. }
  3511. Else
  3512. {
  3513. Store (Zero, PM3E)
  3514. }
  3515.  
  3516. If (And (Local0, 0x02))
  3517. {
  3518. Store (One, PM6E)
  3519. }
  3520. Else
  3521. {
  3522. Store (Zero, PM6E)
  3523. }
  3524.  
  3525. If (And (Local0, 0x04))
  3526. {
  3527. Store (One, PMAE)
  3528. }
  3529. Else
  3530. {
  3531. Store (Zero, PMAE)
  3532. }
  3533.  
  3534. If (And (Local1, One))
  3535. {
  3536. Store (One, PS3E)
  3537. }
  3538. Else
  3539. {
  3540. Store (Zero, PS3E)
  3541. }
  3542.  
  3543. If (And (Local1, 0x02))
  3544. {
  3545. Store (One, PS6E)
  3546. }
  3547. Else
  3548. {
  3549. Store (Zero, PS6E)
  3550. }
  3551.  
  3552. If (And (Local1, 0x04))
  3553. {
  3554. Store (One, PSAE)
  3555. }
  3556. Else
  3557. {
  3558. Store (Zero, PSAE)
  3559. }
  3560.  
  3561. Store (GTF (Zero, Arg1), ATA0)
  3562. Store (GTF (One, Arg2), ATA1)
  3563. }
  3564.  
  3565. Device (DRV0)
  3566. {
  3567. Name (_ADR, Zero)
  3568. Method (_GTF, 0, NotSerialized)
  3569. {
  3570. Return (RATA (ATA0))
  3571. }
  3572. }
  3573.  
  3574. Device (DRV1)
  3575. {
  3576. Name (_ADR, One)
  3577. Method (_GTF, 0, NotSerialized)
  3578. {
  3579. Return (RATA (ATA1))
  3580. }
  3581. }
  3582. }
  3583.  
  3584. Device (CHN1)
  3585. {
  3586. Name (_ADR, One)
  3587. Method (_GTM, 0, NotSerialized)
  3588. {
  3589. ShiftLeft (SSCR, One, Local1)
  3590. Or (SMCR, Local1, Local0)
  3591. ShiftLeft (SMAE, 0x02, Local3)
  3592. ShiftLeft (SM6E, One, Local4)
  3593. Or (Local3, Local4, Local3)
  3594. Or (SM3E, Local3, Local1)
  3595. ShiftLeft (SMPT, 0x04, Local3)
  3596. Or (Local1, Local3, Local1)
  3597. ShiftLeft (SSAE, 0x02, Local3)
  3598. ShiftLeft (SS6E, One, Local4)
  3599. Or (Local3, Local4, Local3)
  3600. Or (SS3E, Local3, Local2)
  3601. ShiftLeft (SSPT, 0x04, Local3)
  3602. Or (Local2, Local3, Local2)
  3603. Return (GTM (SMRI, Local1, SMUT, SSRI, Local2, SSUT, Local0))
  3604. }
  3605.  
  3606. Method (_STM, 3, NotSerialized)
  3607. {
  3608. Store (Arg0, Debug)
  3609. Store (Arg0, TMD0)
  3610. ShiftLeft (SMAE, 0x02, Local3)
  3611. ShiftLeft (SM6E, One, Local4)
  3612. Or (Local3, Local4, Local3)
  3613. Or (SM3E, Local3, Local0)
  3614. ShiftLeft (SMPT, 0x04, Local3)
  3615. Or (Local0, Local3, Local0)
  3616. ShiftLeft (SSAE, 0x02, Local3)
  3617. ShiftLeft (SS6E, One, Local4)
  3618. Or (Local3, Local4, Local3)
  3619. Or (SS3E, Local3, Local1)
  3620. ShiftLeft (SSPT, 0x04, Local3)
  3621. Or (Local1, Local3, Local1)
  3622. Store (SMRI, GMPT)
  3623. Store (Local0, GMUE)
  3624. Store (SMUT, GMUT)
  3625. Store (SMCR, GMCR)
  3626. Store (SSRI, GSPT)
  3627. Store (Local1, GSUE)
  3628. Store (SSUT, GSUT)
  3629. Store (SSCR, GSCR)
  3630. STM ()
  3631. Store (GMPT, SMRI)
  3632. Store (GMUE, Local0)
  3633. Store (GMUT, SMUT)
  3634. Store (GMCR, SMCR)
  3635. Store (GSUE, Local1)
  3636. Store (GSUT, SSUT)
  3637. Store (GSCR, SSCR)
  3638. If (And (Local0, One))
  3639. {
  3640. Store (One, SM3E)
  3641. }
  3642. Else
  3643. {
  3644. Store (Zero, SM3E)
  3645. }
  3646.  
  3647. If (And (Local0, 0x02))
  3648. {
  3649. Store (One, SM6E)
  3650. }
  3651. Else
  3652. {
  3653. Store (Zero, SM6E)
  3654. }
  3655.  
  3656. If (And (Local0, 0x04))
  3657. {
  3658. Store (One, SMAE)
  3659. }
  3660. Else
  3661. {
  3662. Store (Zero, SMAE)
  3663. }
  3664.  
  3665. If (And (Local1, One))
  3666. {
  3667. Store (One, SS3E)
  3668. }
  3669. Else
  3670. {
  3671. Store (Zero, SS3E)
  3672. }
  3673.  
  3674. If (And (Local1, 0x02))
  3675. {
  3676. Store (One, SS6E)
  3677. }
  3678. Else
  3679. {
  3680. Store (Zero, SS6E)
  3681. }
  3682.  
  3683. If (And (Local1, 0x04))
  3684. {
  3685. Store (One, SSAE)
  3686. }
  3687. Else
  3688. {
  3689. Store (Zero, SSAE)
  3690. }
  3691.  
  3692. Store (GTF (Zero, Arg1), ATA2)
  3693. Store (GTF (One, Arg2), ATA3)
  3694. }
  3695.  
  3696. Device (DRV0)
  3697. {
  3698. Name (_ADR, Zero)
  3699. Method (_GTF, 0, NotSerialized)
  3700. {
  3701. Return (RATA (ATA2))
  3702. }
  3703. }
  3704.  
  3705. Device (DRV1)
  3706. {
  3707. Name (_ADR, One)
  3708. Method (_GTF, 0, NotSerialized)
  3709. {
  3710. Return (RATA (ATA3))
  3711. }
  3712. }
  3713. }
  3714.  
  3715. Method (GTM, 7, Serialized)
  3716. {
  3717. Store (Ones, PIO0)
  3718. Store (Ones, PIO1)
  3719. Store (Ones, DMA0)
  3720. Store (Ones, DMA1)
  3721. Store (0x10, CHNF)
  3722. If (REGF) {}
  3723. Else
  3724. {
  3725. Return (TMD0)
  3726. }
  3727.  
  3728. If (And (Arg1, 0x20))
  3729. {
  3730. Or (CHNF, 0x02, CHNF)
  3731. }
  3732.  
  3733. Store (Match (DerefOf (Index (TIM0, One)), MEQ, Arg0, MTR,
  3734. Zero, Zero), Local6)
  3735. Store (DerefOf (Index (DerefOf (Index (TIM0, Zero)), Local6)),
  3736. Local7)
  3737. Store (Local7, DMA0)
  3738. Store (Local7, PIO0)
  3739. If (And (Arg4, 0x20))
  3740. {
  3741. Or (CHNF, 0x08, CHNF)
  3742. }
  3743.  
  3744. Store (Match (DerefOf (Index (TIM0, 0x02)), MEQ, Arg3, MTR,
  3745. Zero, Zero), Local6)
  3746. Store (DerefOf (Index (DerefOf (Index (TIM0, Zero)), Local6)),
  3747. Local7)
  3748. Store (Local7, DMA1)
  3749. Store (Local7, PIO1)
  3750. If (And (Arg1, 0x07))
  3751. {
  3752. Store (Arg2, Local5)
  3753. If (And (Arg1, 0x02))
  3754. {
  3755. Add (Local5, 0x02, Local5)
  3756. }
  3757.  
  3758. If (And (Arg1, 0x04))
  3759. {
  3760. Add (Local5, 0x04, Local5)
  3761. }
  3762.  
  3763. Store (DerefOf (Index (DerefOf (Index (TIM0, 0x03)), Local5)),
  3764. DMA0)
  3765. Or (CHNF, One, CHNF)
  3766. }
  3767.  
  3768. If (And (Arg4, 0x07))
  3769. {
  3770. Store (Arg5, Local5)
  3771. If (And (Arg4, 0x02))
  3772. {
  3773. Add (Local5, 0x02, Local5)
  3774. }
  3775.  
  3776. If (And (Arg4, 0x04))
  3777. {
  3778. Add (Local5, 0x04, Local5)
  3779. }
  3780.  
  3781. Store (DerefOf (Index (DerefOf (Index (TIM0, 0x03)), Local5)),
  3782. DMA1)
  3783. Or (CHNF, 0x04, CHNF)
  3784. }
  3785.  
  3786. Store (TMD0, Debug)
  3787. Return (TMD0)
  3788. }
  3789.  
  3790. Method (STM, 0, Serialized)
  3791. {
  3792. If (REGF)
  3793. {
  3794. Store (Zero, GMUE)
  3795. Store (Zero, GMUT)
  3796. Store (Zero, GSUE)
  3797. Store (Zero, GSUT)
  3798. If (And (CHNF, One))
  3799. {
  3800. Store (Match (DerefOf (Index (TIM0, 0x03)), MLE, DMA0, MTR,
  3801. Zero, Zero), Local0)
  3802. If (LGreater (Local0, 0x05))
  3803. {
  3804. Store (0x05, Local0)
  3805. }
  3806.  
  3807. Store (DerefOf (Index (DerefOf (Index (TIM0, 0x04)), Local0)),
  3808. GMUT)
  3809. Or (GMUE, One, GMUE)
  3810. If (LGreater (Local0, 0x02))
  3811. {
  3812. Or (GMUE, 0x02, GMUE)
  3813. }
  3814.  
  3815. If (LGreater (Local0, 0x04))
  3816. {
  3817. And (GMUE, 0xFD, GMUE)
  3818. Or (GMUE, 0x04, GMUE)
  3819. }
  3820. }
  3821. Else
  3822. {
  3823. If (Or (LEqual (PIO0, Ones), LEqual (PIO0, Zero)))
  3824. {
  3825. If (And (LLess (DMA0, Ones), LGreater (DMA0, Zero)))
  3826. {
  3827. Store (DMA0, PIO0)
  3828. Or (GMUE, 0x80, GMUE)
  3829. }
  3830. }
  3831. }
  3832.  
  3833. If (And (CHNF, 0x04))
  3834. {
  3835. Store (Match (DerefOf (Index (TIM0, 0x03)), MLE, DMA1, MTR,
  3836. Zero, Zero), Local0)
  3837. If (LGreater (Local0, 0x05))
  3838. {
  3839. Store (0x05, Local0)
  3840. }
  3841.  
  3842. Store (DerefOf (Index (DerefOf (Index (TIM0, 0x04)), Local0)),
  3843. GSUT)
  3844. Or (GSUE, One, GSUE)
  3845. If (LGreater (Local0, 0x02))
  3846. {
  3847. Or (GSUE, 0x02, GSUE)
  3848. }
  3849.  
  3850. If (LGreater (Local0, 0x04))
  3851. {
  3852. And (GSUE, 0xFD, GSUE)
  3853. Or (GSUE, 0x04, GSUE)
  3854. }
  3855. }
  3856. Else
  3857. {
  3858. If (Or (LEqual (PIO1, Ones), LEqual (PIO1, Zero)))
  3859. {
  3860. If (And (LLess (DMA1, Ones), LGreater (DMA1, Zero)))
  3861. {
  3862. Store (DMA1, PIO1)
  3863. Or (GSUE, 0x80, GSUE)
  3864. }
  3865. }
  3866. }
  3867.  
  3868. If (And (CHNF, 0x02))
  3869. {
  3870. Or (GMUE, 0x20, GMUE)
  3871. }
  3872.  
  3873. If (And (CHNF, 0x08))
  3874. {
  3875. Or (GSUE, 0x20, GSUE)
  3876. }
  3877.  
  3878. And (Match (DerefOf (Index (TIM0, Zero)), MGE, PIO0, MTR,
  3879. Zero, Zero), 0x07, Local0)
  3880. Store (DerefOf (Index (DerefOf (Index (TIM0, One)), Local0)),
  3881. Local1)
  3882. Store (Local1, GMPT)
  3883. If (LLess (Local0, 0x03))
  3884. {
  3885. Or (GMUE, 0x50, GMUE)
  3886. }
  3887.  
  3888. And (Match (DerefOf (Index (TIM0, Zero)), MGE, PIO1, MTR,
  3889. Zero, Zero), 0x07, Local0)
  3890. Store (DerefOf (Index (DerefOf (Index (TIM0, 0x02)), Local0)),
  3891. Local1)
  3892. Store (Local1, GSPT)
  3893. If (LLess (Local0, 0x03))
  3894. {
  3895. Or (GSUE, 0x50, GSUE)
  3896. }
  3897. }
  3898. }
  3899.  
  3900. Name (AT01, Buffer (0x07)
  3901. {
  3902. 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0xEF
  3903. })
  3904. Name (AT02, Buffer (0x07)
  3905. {
  3906. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x90
  3907. })
  3908. Name (AT03, Buffer (0x07)
  3909. {
  3910. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xC6
  3911. })
  3912. Name (AT04, Buffer (0x07)
  3913. {
  3914. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x91
  3915. })
  3916. Name (ATA0, Buffer (0x1D) {})
  3917. Name (ATA1, Buffer (0x1D) {})
  3918. Name (ATA2, Buffer (0x1D) {})
  3919. Name (ATA3, Buffer (0x1D) {})
  3920. Name (ATAB, Buffer (0x1D) {})
  3921. CreateByteField (ATAB, Zero, CMDC)
  3922. Method (GTFB, 3, Serialized)
  3923. {
  3924. Multiply (CMDC, 0x38, Local0)
  3925. Add (Local0, 0x08, Local1)
  3926. CreateField (ATAB, Local1, 0x38, CMDX)
  3927. Multiply (CMDC, 0x07, Local0)
  3928. CreateByteField (ATAB, Add (Local0, 0x02), A001)
  3929. CreateByteField (ATAB, Add (Local0, 0x06), A005)
  3930. Store (Arg0, CMDX)
  3931. Store (Arg1, A001)
  3932. Store (Arg2, A005)
  3933. Increment (CMDC)
  3934. }
  3935.  
  3936. Method (GTF, 2, Serialized)
  3937. {
  3938. Store (Arg1, Debug)
  3939. Store (Zero, CMDC)
  3940. Name (ID49, 0x0C00)
  3941. Name (ID59, Zero)
  3942. Name (ID53, 0x04)
  3943. Name (ID63, 0x0F00)
  3944. Name (ID88, 0x0F00)
  3945. Name (IRDY, One)
  3946. Name (PIOT, Zero)
  3947. Name (DMAT, Zero)
  3948. If (LEqual (SizeOf (Arg1), 0x0200))
  3949. {
  3950. CreateWordField (Arg1, 0x62, IW49)
  3951. Store (IW49, ID49)
  3952. CreateWordField (Arg1, 0x6A, IW53)
  3953. Store (IW53, ID53)
  3954. CreateWordField (Arg1, 0x7E, IW63)
  3955. Store (IW63, ID63)
  3956. CreateWordField (Arg1, 0x76, IW59)
  3957. Store (IW59, ID59)
  3958. CreateWordField (Arg1, 0xB0, IW88)
  3959. Store (IW88, ID88)
  3960. }
  3961.  
  3962. Store (0xA0, Local7)
  3963. If (Arg0)
  3964. {
  3965. Store (0xB0, Local7)
  3966. And (CHNF, 0x08, IRDY)
  3967. If (And (CHNF, 0x10))
  3968. {
  3969. Store (PIO1, PIOT)
  3970. }
  3971. Else
  3972. {
  3973. Store (PIO0, PIOT)
  3974. }
  3975.  
  3976. If (And (CHNF, 0x04))
  3977. {
  3978. If (And (CHNF, 0x10))
  3979. {
  3980. Store (DMA1, DMAT)
  3981. }
  3982. Else
  3983. {
  3984. Store (DMA0, DMAT)
  3985. }
  3986. }
  3987. }
  3988. Else
  3989. {
  3990. And (CHNF, 0x02, IRDY)
  3991. Store (PIO0, PIOT)
  3992. If (And (CHNF, One))
  3993. {
  3994. Store (DMA0, DMAT)
  3995. }
  3996. }
  3997.  
  3998. If (LAnd (LAnd (And (ID53, 0x04), And (ID88, 0xFF00
  3999. )), DMAT))
  4000. {
  4001. Store (Match (DerefOf (Index (TIM0, 0x03)), MLE, DMAT, MTR,
  4002. Zero, Zero), Local1)
  4003. If (LGreater (Local1, 0x05))
  4004. {
  4005. Store (0x05, Local1)
  4006. }
  4007.  
  4008. GTFB (AT01, Or (0x40, Local1), Local7)
  4009. }
  4010. Else
  4011. {
  4012. If (LAnd (And (ID63, 0xFF00), PIOT))
  4013. {
  4014. And (Match (DerefOf (Index (TIM0, Zero)), MGE, PIOT, MTR,
  4015. Zero, Zero), 0x03, Local0)
  4016. Or (0x20, DerefOf (Index (DerefOf (Index (TIM0, 0x07)), Local0
  4017. )), Local1)
  4018. GTFB (AT01, Local1, Local7)
  4019. }
  4020. }
  4021.  
  4022. If (IRDY)
  4023. {
  4024. And (Match (DerefOf (Index (TIM0, Zero)), MGE, PIOT, MTR,
  4025. Zero, Zero), 0x07, Local0)
  4026. Or (0x08, DerefOf (Index (DerefOf (Index (TIM0, 0x06)), Local0
  4027. )), Local1)
  4028. GTFB (AT01, Local1, Local7)
  4029. }
  4030. Else
  4031. {
  4032. If (And (ID49, 0x0400))
  4033. {
  4034. GTFB (AT01, One, Local7)
  4035. }
  4036. }
  4037.  
  4038. If (LAnd (And (ID59, 0x0100), And (ID59, 0xFF)))
  4039. {
  4040. GTFB (AT03, And (ID59, 0xFF), Local7)
  4041. }
  4042.  
  4043. Store (ATAB, Debug)
  4044. Return (ATAB)
  4045. }
  4046.  
  4047. Method (RATA, 1, NotSerialized)
  4048. {
  4049. CreateByteField (Arg0, Zero, CMDN)
  4050. Multiply (CMDN, 0x38, Local0)
  4051. CreateField (Arg0, 0x08, Local0, RETB)
  4052. Store (RETB, Debug)
  4053. Return (Concatenate (RETB, FZTF))
  4054. }
  4055. }
  4056.  
  4057. Device (IDE1)
  4058. {
  4059. Name (_ADR, 0x001F0002)
  4060. Name (\FZTF, Buffer (0x07)
  4061. {
  4062. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xF5
  4063. })
  4064. Name (REGF, One)
  4065. Method (_REG, 2, NotSerialized)
  4066. {
  4067. If (LEqual (Arg0, 0x02))
  4068. {
  4069. Store (Arg1, REGF)
  4070. }
  4071. }
  4072.  
  4073. Name (TIM0, Package (0x08)
  4074. {
  4075. Package (0x04)
  4076. {
  4077. 0x78,
  4078. 0xB4,
  4079. 0xF0,
  4080. 0x0384
  4081. },
  4082.  
  4083. Package (0x04)
  4084. {
  4085. 0x23,
  4086. 0x21,
  4087. 0x10,
  4088. Zero
  4089. },
  4090.  
  4091. Package (0x04)
  4092. {
  4093. 0x0B,
  4094. 0x09,
  4095. 0x04,
  4096. Zero
  4097. },
  4098.  
  4099. Package (0x06)
  4100. {
  4101. 0x78,
  4102. 0x50,
  4103. 0x3C,
  4104. 0x28,
  4105. 0x1E,
  4106. 0x14
  4107. },
  4108.  
  4109. Package (0x06)
  4110. {
  4111. Zero,
  4112. One,
  4113. 0x02,
  4114. One,
  4115. 0x02,
  4116. One
  4117. },
  4118.  
  4119. Package (0x06)
  4120. {
  4121. Zero,
  4122. Zero,
  4123. Zero,
  4124. One,
  4125. One,
  4126. One
  4127. },
  4128.  
  4129. Package (0x04)
  4130. {
  4131. 0x04,
  4132. 0x03,
  4133. 0x02,
  4134. Zero
  4135. },
  4136.  
  4137. Package (0x04)
  4138. {
  4139. 0x02,
  4140. One,
  4141. Zero,
  4142. Zero
  4143. }
  4144. })
  4145. Name (TMD0, Buffer (0x14) {})
  4146. CreateDWordField (TMD0, Zero, PIO0)
  4147. CreateDWordField (TMD0, 0x04, DMA0)
  4148. CreateDWordField (TMD0, 0x08, PIO1)
  4149. CreateDWordField (TMD0, 0x0C, DMA1)
  4150. CreateDWordField (TMD0, 0x10, CHNF)
  4151. OperationRegion (CFG2, PCI_Config, 0x40, 0x20)
  4152. Field (CFG2, DWordAcc, NoLock, Preserve)
  4153. {
  4154. PMPT, 4,
  4155. PSPT, 4,
  4156. PMRI, 6,
  4157. Offset (0x02),
  4158. SMPT, 4,
  4159. SSPT, 4,
  4160. SMRI, 6,
  4161. Offset (0x04),
  4162. PSRI, 4,
  4163. SSRI, 4,
  4164. Offset (0x08),
  4165. PM3E, 1,
  4166. PS3E, 1,
  4167. SM3E, 1,
  4168. SS3E, 1,
  4169. Offset (0x0A),
  4170. PMUT, 2,
  4171. , 2,
  4172. PSUT, 2,
  4173. Offset (0x0B),
  4174. SMUT, 2,
  4175. , 2,
  4176. SSUT, 2,
  4177. Offset (0x0C),
  4178. Offset (0x14),
  4179. PM6E, 1,
  4180. PS6E, 1,
  4181. SM6E, 1,
  4182. SS6E, 1,
  4183. PMCR, 1,
  4184. PSCR, 1,
  4185. SMCR, 1,
  4186. SSCR, 1,
  4187. , 4,
  4188. PMAE, 1,
  4189. PSAE, 1,
  4190. SMAE, 1,
  4191. SSAE, 1
  4192. }
  4193.  
  4194. Name (GMPT, Zero)
  4195. Name (GMUE, Zero)
  4196. Name (GMUT, Zero)
  4197. Name (GMCR, Zero)
  4198. Name (GSPT, Zero)
  4199. Name (GSUE, Zero)
  4200. Name (GSUT, Zero)
  4201. Name (GSCR, Zero)
  4202. Device (CHN0)
  4203. {
  4204. Name (_ADR, Zero)
  4205. Method (_GTM, 0, NotSerialized)
  4206. {
  4207. ShiftLeft (PSCR, One, Local1)
  4208. Or (PMCR, Local1, Local0)
  4209. ShiftLeft (PMAE, 0x02, Local3)
  4210. ShiftLeft (PM6E, One, Local4)
  4211. Or (Local3, Local4, Local3)
  4212. Or (PM3E, Local3, Local1)
  4213. ShiftLeft (PMPT, 0x04, Local3)
  4214. Or (Local1, Local3, Local1)
  4215. ShiftLeft (PSAE, 0x02, Local3)
  4216. ShiftLeft (PS6E, One, Local4)
  4217. Or (Local3, Local4, Local3)
  4218. Or (PS3E, Local3, Local2)
  4219. ShiftLeft (PSPT, 0x04, Local3)
  4220. Or (Local2, Local3, Local2)
  4221. Return (GTM (PMRI, Local1, PMUT, PSRI, Local2, PSUT, Local0))
  4222. }
  4223.  
  4224. Method (_STM, 3, NotSerialized)
  4225. {
  4226. Store (Arg0, Debug)
  4227. Store (Arg0, TMD0)
  4228. ShiftLeft (PMAE, 0x02, Local3)
  4229. ShiftLeft (PM6E, One, Local4)
  4230. Or (Local3, Local4, Local3)
  4231. Or (PM3E, Local3, Local0)
  4232. ShiftLeft (PMPT, 0x04, Local3)
  4233. Or (Local0, Local3, Local0)
  4234. ShiftLeft (PSAE, 0x02, Local3)
  4235. ShiftLeft (PS6E, One, Local4)
  4236. Or (Local3, Local4, Local3)
  4237. Or (PS3E, Local3, Local1)
  4238. ShiftLeft (PSPT, 0x04, Local3)
  4239. Or (Local1, Local3, Local1)
  4240. Store (PMRI, GMPT)
  4241. Store (Local0, GMUE)
  4242. Store (PMUT, GMUT)
  4243. Store (PMCR, GMCR)
  4244. Store (PSRI, GSPT)
  4245. Store (Local1, GSUE)
  4246. Store (PSUT, GSUT)
  4247. Store (PSCR, GSCR)
  4248. STM ()
  4249. Store (GMPT, PMRI)
  4250. Store (GMUE, Local0)
  4251. Store (GMUT, PMUT)
  4252. Store (GMCR, PMCR)
  4253. Store (GSUE, Local1)
  4254. Store (GSUT, PSUT)
  4255. Store (GSCR, PSCR)
  4256. If (And (Local0, One))
  4257. {
  4258. Store (One, PM3E)
  4259. }
  4260. Else
  4261. {
  4262. Store (Zero, PM3E)
  4263. }
  4264.  
  4265. If (And (Local0, 0x02))
  4266. {
  4267. Store (One, PM6E)
  4268. }
  4269. Else
  4270. {
  4271. Store (Zero, PM6E)
  4272. }
  4273.  
  4274. If (And (Local0, 0x04))
  4275. {
  4276. Store (One, PMAE)
  4277. }
  4278. Else
  4279. {
  4280. Store (Zero, PMAE)
  4281. }
  4282.  
  4283. If (And (Local1, One))
  4284. {
  4285. Store (One, PS3E)
  4286. }
  4287. Else
  4288. {
  4289. Store (Zero, PS3E)
  4290. }
  4291.  
  4292. If (And (Local1, 0x02))
  4293. {
  4294. Store (One, PS6E)
  4295. }
  4296. Else
  4297. {
  4298. Store (Zero, PS6E)
  4299. }
  4300.  
  4301. If (And (Local1, 0x04))
  4302. {
  4303. Store (One, PSAE)
  4304. }
  4305. Else
  4306. {
  4307. Store (Zero, PSAE)
  4308. }
  4309.  
  4310. Store (GTF (Zero, Arg1), ATA0)
  4311. Store (GTF (One, Arg2), ATA1)
  4312. }
  4313.  
  4314. Device (DRV0)
  4315. {
  4316. Name (_ADR, Zero)
  4317. Method (_GTF, 0, NotSerialized)
  4318. {
  4319. Return (RATA (ATA0))
  4320. }
  4321. }
  4322.  
  4323. Device (DRV1)
  4324. {
  4325. Name (_ADR, One)
  4326. Method (_GTF, 0, NotSerialized)
  4327. {
  4328. Return (RATA (ATA1))
  4329. }
  4330. }
  4331. }
  4332.  
  4333. Device (CHN1)
  4334. {
  4335. Name (_ADR, One)
  4336. Method (_GTM, 0, NotSerialized)
  4337. {
  4338. ShiftLeft (SSCR, One, Local1)
  4339. Or (SMCR, Local1, Local0)
  4340. ShiftLeft (SMAE, 0x02, Local3)
  4341. ShiftLeft (SM6E, One, Local4)
  4342. Or (Local3, Local4, Local3)
  4343. Or (SM3E, Local3, Local1)
  4344. ShiftLeft (SMPT, 0x04, Local3)
  4345. Or (Local1, Local3, Local1)
  4346. ShiftLeft (SSAE, 0x02, Local3)
  4347. ShiftLeft (SS6E, One, Local4)
  4348. Or (Local3, Local4, Local3)
  4349. Or (SS3E, Local3, Local2)
  4350. ShiftLeft (SSPT, 0x04, Local3)
  4351. Or (Local2, Local3, Local2)
  4352. Return (GTM (SMRI, Local1, SMUT, SSRI, Local2, SSUT, Local0))
  4353. }
  4354.  
  4355. Method (_STM, 3, NotSerialized)
  4356. {
  4357. Store (Arg0, Debug)
  4358. Store (Arg0, TMD0)
  4359. ShiftLeft (SMAE, 0x02, Local3)
  4360. ShiftLeft (SM6E, One, Local4)
  4361. Or (Local3, Local4, Local3)
  4362. Or (SM3E, Local3, Local0)
  4363. ShiftLeft (SMPT, 0x04, Local3)
  4364. Or (Local0, Local3, Local0)
  4365. ShiftLeft (SSAE, 0x02, Local3)
  4366. ShiftLeft (SS6E, One, Local4)
  4367. Or (Local3, Local4, Local3)
  4368. Or (SS3E, Local3, Local1)
  4369. ShiftLeft (SSPT, 0x04, Local3)
  4370. Or (Local1, Local3, Local1)
  4371. Store (SMRI, GMPT)
  4372. Store (Local0, GMUE)
  4373. Store (SMUT, GMUT)
  4374. Store (SMCR, GMCR)
  4375. Store (SSRI, GSPT)
  4376. Store (Local1, GSUE)
  4377. Store (SSUT, GSUT)
  4378. Store (SSCR, GSCR)
  4379. STM ()
  4380. Store (GMPT, SMRI)
  4381. Store (GMUE, Local0)
  4382. Store (GMUT, SMUT)
  4383. Store (GMCR, SMCR)
  4384. Store (GSUE, Local1)
  4385. Store (GSUT, SSUT)
  4386. Store (GSCR, SSCR)
  4387. If (And (Local0, One))
  4388. {
  4389. Store (One, SM3E)
  4390. }
  4391. Else
  4392. {
  4393. Store (Zero, SM3E)
  4394. }
  4395.  
  4396. If (And (Local0, 0x02))
  4397. {
  4398. Store (One, SM6E)
  4399. }
  4400. Else
  4401. {
  4402. Store (Zero, SM6E)
  4403. }
  4404.  
  4405. If (And (Local0, 0x04))
  4406. {
  4407. Store (One, SMAE)
  4408. }
  4409. Else
  4410. {
  4411. Store (Zero, SMAE)
  4412. }
  4413.  
  4414. If (And (Local1, One))
  4415. {
  4416. Store (One, SS3E)
  4417. }
  4418. Else
  4419. {
  4420. Store (Zero, SS3E)
  4421. }
  4422.  
  4423. If (And (Local1, 0x02))
  4424. {
  4425. Store (One, SS6E)
  4426. }
  4427. Else
  4428. {
  4429. Store (Zero, SS6E)
  4430. }
  4431.  
  4432. If (And (Local1, 0x04))
  4433. {
  4434. Store (One, SSAE)
  4435. }
  4436. Else
  4437. {
  4438. Store (Zero, SSAE)
  4439. }
  4440.  
  4441. Store (GTF (Zero, Arg1), ATA2)
  4442. Store (GTF (One, Arg2), ATA3)
  4443. }
  4444.  
  4445. Device (DRV0)
  4446. {
  4447. Name (_ADR, Zero)
  4448. Method (_GTF, 0, NotSerialized)
  4449. {
  4450. Return (RATA (ATA2))
  4451. }
  4452. }
  4453.  
  4454. Device (DRV1)
  4455. {
  4456. Name (_ADR, One)
  4457. Method (_GTF, 0, NotSerialized)
  4458. {
  4459. Return (RATA (ATA3))
  4460. }
  4461. }
  4462. }
  4463.  
  4464. Method (GTM, 7, Serialized)
  4465. {
  4466. Store (Ones, PIO0)
  4467. Store (Ones, PIO1)
  4468. Store (Ones, DMA0)
  4469. Store (Ones, DMA1)
  4470. Store (0x10, CHNF)
  4471. If (REGF) {}
  4472. Else
  4473. {
  4474. Return (TMD0)
  4475. }
  4476.  
  4477. If (And (Arg1, 0x20))
  4478. {
  4479. Or (CHNF, 0x02, CHNF)
  4480. }
  4481.  
  4482. Store (Match (DerefOf (Index (TIM0, One)), MEQ, Arg0, MTR,
  4483. Zero, Zero), Local6)
  4484. Store (DerefOf (Index (DerefOf (Index (TIM0, Zero)), Local6)),
  4485. Local7)
  4486. Store (Local7, DMA0)
  4487. Store (Local7, PIO0)
  4488. If (And (Arg4, 0x20))
  4489. {
  4490. Or (CHNF, 0x08, CHNF)
  4491. }
  4492.  
  4493. Store (Match (DerefOf (Index (TIM0, 0x02)), MEQ, Arg3, MTR,
  4494. Zero, Zero), Local6)
  4495. Store (DerefOf (Index (DerefOf (Index (TIM0, Zero)), Local6)),
  4496. Local7)
  4497. Store (Local7, DMA1)
  4498. Store (Local7, PIO1)
  4499. If (And (Arg1, 0x07))
  4500. {
  4501. Store (Arg2, Local5)
  4502. If (And (Arg1, 0x02))
  4503. {
  4504. Add (Local5, 0x02, Local5)
  4505. }
  4506.  
  4507. If (And (Arg1, 0x04))
  4508. {
  4509. Add (Local5, 0x04, Local5)
  4510. }
  4511.  
  4512. Store (DerefOf (Index (DerefOf (Index (TIM0, 0x03)), Local5)),
  4513. DMA0)
  4514. Or (CHNF, One, CHNF)
  4515. }
  4516.  
  4517. If (And (Arg4, 0x07))
  4518. {
  4519. Store (Arg5, Local5)
  4520. If (And (Arg4, 0x02))
  4521. {
  4522. Add (Local5, 0x02, Local5)
  4523. }
  4524.  
  4525. If (And (Arg4, 0x04))
  4526. {
  4527. Add (Local5, 0x04, Local5)
  4528. }
  4529.  
  4530. Store (DerefOf (Index (DerefOf (Index (TIM0, 0x03)), Local5)),
  4531. DMA1)
  4532. Or (CHNF, 0x04, CHNF)
  4533. }
  4534.  
  4535. Store (TMD0, Debug)
  4536. Return (TMD0)
  4537. }
  4538.  
  4539. Method (STM, 0, Serialized)
  4540. {
  4541. If (REGF)
  4542. {
  4543. Store (Zero, GMUE)
  4544. Store (Zero, GMUT)
  4545. Store (Zero, GSUE)
  4546. Store (Zero, GSUT)
  4547. If (And (CHNF, One))
  4548. {
  4549. Store (Match (DerefOf (Index (TIM0, 0x03)), MLE, DMA0, MTR,
  4550. Zero, Zero), Local0)
  4551. If (LGreater (Local0, 0x05))
  4552. {
  4553. Store (0x05, Local0)
  4554. }
  4555.  
  4556. Store (DerefOf (Index (DerefOf (Index (TIM0, 0x04)), Local0)),
  4557. GMUT)
  4558. Or (GMUE, One, GMUE)
  4559. If (LGreater (Local0, 0x02))
  4560. {
  4561. Or (GMUE, 0x02, GMUE)
  4562. }
  4563.  
  4564. If (LGreater (Local0, 0x04))
  4565. {
  4566. And (GMUE, 0xFD, GMUE)
  4567. Or (GMUE, 0x04, GMUE)
  4568. }
  4569. }
  4570. Else
  4571. {
  4572. If (Or (LEqual (PIO0, Ones), LEqual (PIO0, Zero)))
  4573. {
  4574. If (And (LLess (DMA0, Ones), LGreater (DMA0, Zero)))
  4575. {
  4576. Store (DMA0, PIO0)
  4577. Or (GMUE, 0x80, GMUE)
  4578. }
  4579. }
  4580. }
  4581.  
  4582. If (And (CHNF, 0x04))
  4583. {
  4584. Store (Match (DerefOf (Index (TIM0, 0x03)), MLE, DMA1, MTR,
  4585. Zero, Zero), Local0)
  4586. If (LGreater (Local0, 0x05))
  4587. {
  4588. Store (0x05, Local0)
  4589. }
  4590.  
  4591. Store (DerefOf (Index (DerefOf (Index (TIM0, 0x04)), Local0)),
  4592. GSUT)
  4593. Or (GSUE, One, GSUE)
  4594. If (LGreater (Local0, 0x02))
  4595. {
  4596. Or (GSUE, 0x02, GSUE)
  4597. }
  4598.  
  4599. If (LGreater (Local0, 0x04))
  4600. {
  4601. And (GSUE, 0xFD, GSUE)
  4602. Or (GSUE, 0x04, GSUE)
  4603. }
  4604. }
  4605. Else
  4606. {
  4607. If (Or (LEqual (PIO1, Ones), LEqual (PIO1, Zero)))
  4608. {
  4609. If (And (LLess (DMA1, Ones), LGreater (DMA1, Zero)))
  4610. {
  4611. Store (DMA1, PIO1)
  4612. Or (GSUE, 0x80, GSUE)
  4613. }
  4614. }
  4615. }
  4616.  
  4617. If (And (CHNF, 0x02))
  4618. {
  4619. Or (GMUE, 0x20, GMUE)
  4620. }
  4621.  
  4622. If (And (CHNF, 0x08))
  4623. {
  4624. Or (GSUE, 0x20, GSUE)
  4625. }
  4626.  
  4627. And (Match (DerefOf (Index (TIM0, Zero)), MGE, PIO0, MTR,
  4628. Zero, Zero), 0x07, Local0)
  4629. Store (DerefOf (Index (DerefOf (Index (TIM0, One)), Local0)),
  4630. Local1)
  4631. Store (Local1, GMPT)
  4632. If (LLess (Local0, 0x03))
  4633. {
  4634. Or (GMUE, 0x50, GMUE)
  4635. }
  4636.  
  4637. And (Match (DerefOf (Index (TIM0, Zero)), MGE, PIO1, MTR,
  4638. Zero, Zero), 0x07, Local0)
  4639. Store (DerefOf (Index (DerefOf (Index (TIM0, 0x02)), Local0)),
  4640. Local1)
  4641. Store (Local1, GSPT)
  4642. If (LLess (Local0, 0x03))
  4643. {
  4644. Or (GSUE, 0x50, GSUE)
  4645. }
  4646. }
  4647. }
  4648.  
  4649. Name (AT01, Buffer (0x07)
  4650. {
  4651. 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0xEF
  4652. })
  4653. Name (AT02, Buffer (0x07)
  4654. {
  4655. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x90
  4656. })
  4657. Name (AT03, Buffer (0x07)
  4658. {
  4659. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xC6
  4660. })
  4661. Name (AT04, Buffer (0x07)
  4662. {
  4663. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x91
  4664. })
  4665. Name (ATA0, Buffer (0x1D) {})
  4666. Name (ATA1, Buffer (0x1D) {})
  4667. Name (ATA2, Buffer (0x1D) {})
  4668. Name (ATA3, Buffer (0x1D) {})
  4669. Name (ATAB, Buffer (0x1D) {})
  4670. CreateByteField (ATAB, Zero, CMDC)
  4671. Method (GTFB, 3, Serialized)
  4672. {
  4673. Multiply (CMDC, 0x38, Local0)
  4674. Add (Local0, 0x08, Local1)
  4675. CreateField (ATAB, Local1, 0x38, CMDX)
  4676. Multiply (CMDC, 0x07, Local0)
  4677. CreateByteField (ATAB, Add (Local0, 0x02), A001)
  4678. CreateByteField (ATAB, Add (Local0, 0x06), A005)
  4679. Store (Arg0, CMDX)
  4680. Store (Arg1, A001)
  4681. Store (Arg2, A005)
  4682. Increment (CMDC)
  4683. }
  4684.  
  4685. Method (GTF, 2, Serialized)
  4686. {
  4687. Store (Arg1, Debug)
  4688. Store (Zero, CMDC)
  4689. Name (ID49, 0x0C00)
  4690. Name (ID59, Zero)
  4691. Name (ID53, 0x04)
  4692. Name (ID63, 0x0F00)
  4693. Name (ID88, 0x0F00)
  4694. Name (IRDY, One)
  4695. Name (PIOT, Zero)
  4696. Name (DMAT, Zero)
  4697. If (LEqual (SizeOf (Arg1), 0x0200))
  4698. {
  4699. CreateWordField (Arg1, 0x62, IW49)
  4700. Store (IW49, ID49)
  4701. CreateWordField (Arg1, 0x6A, IW53)
  4702. Store (IW53, ID53)
  4703. CreateWordField (Arg1, 0x7E, IW63)
  4704. Store (IW63, ID63)
  4705. CreateWordField (Arg1, 0x76, IW59)
  4706. Store (IW59, ID59)
  4707. CreateWordField (Arg1, 0xB0, IW88)
  4708. Store (IW88, ID88)
  4709. }
  4710.  
  4711. Store (0xA0, Local7)
  4712. If (Arg0)
  4713. {
  4714. Store (0xB0, Local7)
  4715. And (CHNF, 0x08, IRDY)
  4716. If (And (CHNF, 0x10))
  4717. {
  4718. Store (PIO1, PIOT)
  4719. }
  4720. Else
  4721. {
  4722. Store (PIO0, PIOT)
  4723. }
  4724.  
  4725. If (And (CHNF, 0x04))
  4726. {
  4727. If (And (CHNF, 0x10))
  4728. {
  4729. Store (DMA1, DMAT)
  4730. }
  4731. Else
  4732. {
  4733. Store (DMA0, DMAT)
  4734. }
  4735. }
  4736. }
  4737. Else
  4738. {
  4739. And (CHNF, 0x02, IRDY)
  4740. Store (PIO0, PIOT)
  4741. If (And (CHNF, One))
  4742. {
  4743. Store (DMA0, DMAT)
  4744. }
  4745. }
  4746.  
  4747. If (LAnd (LAnd (And (ID53, 0x04), And (ID88, 0xFF00
  4748. )), DMAT))
  4749. {
  4750. Store (Match (DerefOf (Index (TIM0, 0x03)), MLE, DMAT, MTR,
  4751. Zero, Zero), Local1)
  4752. If (LGreater (Local1, 0x05))
  4753. {
  4754. Store (0x05, Local1)
  4755. }
  4756.  
  4757. GTFB (AT01, Or (0x40, Local1), Local7)
  4758. }
  4759. Else
  4760. {
  4761. If (LAnd (And (ID63, 0xFF00), PIOT))
  4762. {
  4763. And (Match (DerefOf (Index (TIM0, Zero)), MGE, PIOT, MTR,
  4764. Zero, Zero), 0x03, Local0)
  4765. Or (0x20, DerefOf (Index (DerefOf (Index (TIM0, 0x07)), Local0
  4766. )), Local1)
  4767. GTFB (AT01, Local1, Local7)
  4768. }
  4769. }
  4770.  
  4771. If (IRDY)
  4772. {
  4773. And (Match (DerefOf (Index (TIM0, Zero)), MGE, PIOT, MTR,
  4774. Zero, Zero), 0x07, Local0)
  4775. Or (0x08, DerefOf (Index (DerefOf (Index (TIM0, 0x06)), Local0
  4776. )), Local1)
  4777. GTFB (AT01, Local1, Local7)
  4778. }
  4779. Else
  4780. {
  4781. If (And (ID49, 0x0400))
  4782. {
  4783. GTFB (AT01, One, Local7)
  4784. }
  4785. }
  4786.  
  4787. If (LAnd (And (ID59, 0x0100), And (ID59, 0xFF)))
  4788. {
  4789. GTFB (AT03, And (ID59, 0xFF), Local7)
  4790. }
  4791.  
  4792. Store (ATAB, Debug)
  4793. Return (ATAB)
  4794. }
  4795.  
  4796. Method (RATA, 1, NotSerialized)
  4797. {
  4798. CreateByteField (Arg0, Zero, CMDN)
  4799. Multiply (CMDN, 0x38, Local0)
  4800. CreateField (Arg0, 0x08, Local0, RETB)
  4801. Store (RETB, Debug)
  4802. Return (Concatenate (RETB, FZTF))
  4803. }
  4804. }
  4805.  
  4806. Device (USB0)
  4807. {
  4808. Name (_ADR, 0x001D0000)
  4809. OperationRegion (BAR0, PCI_Config, 0xC4, One)
  4810. Field (BAR0, ByteAcc, NoLock, Preserve)
  4811. {
  4812. USBW, 2,
  4813. Offset (0x01)
  4814. }
  4815.  
  4816. Method (_S3D, 0, NotSerialized)
  4817. {
  4818. If (LOr (LEqual (OSFL (), One), LEqual (OSFL (), 0x02)))
  4819. {
  4820. Return (0x02)
  4821. }
  4822. Else
  4823. {
  4824. Return (0x03)
  4825. }
  4826. }
  4827.  
  4828. Method (_PSW, 1, NotSerialized)
  4829. {
  4830. If (Arg0)
  4831. {
  4832. Store (0x03, USBW)
  4833. }
  4834. Else
  4835. {
  4836. Store (Zero, USBW)
  4837. }
  4838. }
  4839.  
  4840. Method (_PRW, 0, NotSerialized)
  4841. {
  4842. Return (GPRW (0x03, 0x04))
  4843. }
  4844. }
  4845.  
  4846. Device (USB1)
  4847. {
  4848. Name (_ADR, 0x001D0001)
  4849. OperationRegion (BAR0, PCI_Config, 0xC4, One)
  4850. Field (BAR0, ByteAcc, NoLock, Preserve)
  4851. {
  4852. USBW, 2,
  4853. Offset (0x01)
  4854. }
  4855.  
  4856. Method (_S3D, 0, NotSerialized)
  4857. {
  4858. If (LOr (LEqual (OSFL (), One), LEqual (OSFL (), 0x02)))
  4859. {
  4860. Return (0x02)
  4861. }
  4862. Else
  4863. {
  4864. Return (0x03)
  4865. }
  4866. }
  4867.  
  4868. Method (_PSW, 1, NotSerialized)
  4869. {
  4870. If (Arg0)
  4871. {
  4872. Store (0x03, USBW)
  4873. }
  4874. Else
  4875. {
  4876. Store (Zero, USBW)
  4877. }
  4878. }
  4879.  
  4880. Method (_PRW, 0, NotSerialized)
  4881. {
  4882. Return (GPRW (0x04, 0x04))
  4883. }
  4884. }
  4885.  
  4886. Device (USB2)
  4887. {
  4888. Name (_ADR, 0x001D0002)
  4889. OperationRegion (BAR0, PCI_Config, 0xC4, One)
  4890. Field (BAR0, ByteAcc, NoLock, Preserve)
  4891. {
  4892. USBW, 2,
  4893. Offset (0x01)
  4894. }
  4895.  
  4896. Method (_S3D, 0, NotSerialized)
  4897. {
  4898. If (LOr (LEqual (OSFL (), One), LEqual (OSFL (), 0x02)))
  4899. {
  4900. Return (0x02)
  4901. }
  4902. Else
  4903. {
  4904. Return (0x03)
  4905. }
  4906. }
  4907.  
  4908. Method (_PSW, 1, NotSerialized)
  4909. {
  4910. If (Arg0)
  4911. {
  4912. Store (0x03, USBW)
  4913. }
  4914. Else
  4915. {
  4916. Store (Zero, USBW)
  4917. }
  4918. }
  4919.  
  4920. Method (_PRW, 0, NotSerialized)
  4921. {
  4922. Return (GPRW (0x0C, 0x04))
  4923. }
  4924. }
  4925.  
  4926. Device (USB3)
  4927. {
  4928. Name (_ADR, 0x001D0003)
  4929. OperationRegion (BAR0, PCI_Config, 0xC4, One)
  4930. Field (BAR0, ByteAcc, NoLock, Preserve)
  4931. {
  4932. USBW, 2,
  4933. Offset (0x01)
  4934. }
  4935.  
  4936. Method (_S3D, 0, NotSerialized)
  4937. {
  4938. If (LOr (LEqual (OSFL (), One), LEqual (OSFL (), 0x02)))
  4939. {
  4940. Return (0x02)
  4941. }
  4942. Else
  4943. {
  4944. Return (0x03)
  4945. }
  4946. }
  4947.  
  4948. Method (_PSW, 1, NotSerialized)
  4949. {
  4950. If (Arg0)
  4951. {
  4952. Store (0x03, USBW)
  4953. }
  4954. Else
  4955. {
  4956. Store (Zero, USBW)
  4957. }
  4958. }
  4959.  
  4960. Method (_PRW, 0, NotSerialized)
  4961. {
  4962. Return (GPRW (0x0E, 0x04))
  4963. }
  4964. }
  4965.  
  4966. Device (EUSB)
  4967. {
  4968. Name (_ADR, 0x001D0007)
  4969. Method (_PRW, 0, NotSerialized)
  4970. {
  4971. Return (GPRW (0x0D, 0x04))
  4972. }
  4973. }
  4974.  
  4975. Device (MC97)
  4976. {
  4977. Name (_ADR, 0x001E0003)
  4978. Method (_PRW, 0, NotSerialized)
  4979. {
  4980. Return (GPRW (0x05, 0x04))
  4981. }
  4982. }
  4983.  
  4984. Device (P0P4)
  4985. {
  4986. Name (_ADR, 0x001C0000)
  4987. Method (_PRW, 0, NotSerialized)
  4988. {
  4989. Return (GPRW (0x09, 0x04))
  4990. }
  4991.  
  4992. Method (_PRT, 0, NotSerialized)
  4993. {
  4994. If (PICM)
  4995. {
  4996. Return (AR04)
  4997. }
  4998.  
  4999. Return (PR04)
  5000. }
  5001. }
  5002.  
  5003. Device (P0P5)
  5004. {
  5005. Name (_ADR, 0x001C0001)
  5006. Method (_PRW, 0, NotSerialized)
  5007. {
  5008. Return (GPRW (0x09, 0x04))
  5009. }
  5010.  
  5011. Method (_PRT, 0, NotSerialized)
  5012. {
  5013. If (PICM)
  5014. {
  5015. Return (AR05)
  5016. }
  5017.  
  5018. Return (PR05)
  5019. }
  5020. }
  5021.  
  5022. Device (P0P6)
  5023. {
  5024. Name (_ADR, 0x001C0002)
  5025. Method (_PRW, 0, NotSerialized)
  5026. {
  5027. Return (GPRW (0x09, 0x04))
  5028. }
  5029. }
  5030.  
  5031. Device (P0P7)
  5032. {
  5033. Name (_ADR, 0x001C0003)
  5034. Method (_PRW, 0, NotSerialized)
  5035. {
  5036. Return (GPRW (0x09, 0x04))
  5037. }
  5038. }
  5039.  
  5040. Device (P0P8)
  5041. {
  5042. Name (_ADR, 0x001C0004)
  5043. Method (_PRW, 0, NotSerialized)
  5044. {
  5045. Return (GPRW (0x09, 0x04))
  5046. }
  5047. }
  5048.  
  5049. Device (P0P9)
  5050. {
  5051. Name (_ADR, 0x001C0005)
  5052. Method (_PRW, 0, NotSerialized)
  5053. {
  5054. Return (GPRW (0x09, 0x04))
  5055. }
  5056. }
  5057. }
  5058.  
  5059. Scope (\_GPE)
  5060. {
  5061. Method (_L09, 0, NotSerialized)
  5062. {
  5063. Notify (\_SB.PCI0.P0P2, 0x02)
  5064. Notify (\_SB.PCI0.P0P3, 0x02)
  5065. Notify (\_SB.PCI0.P0P4, 0x02)
  5066. Notify (\_SB.PCI0.P0P5, 0x02)
  5067. Notify (\_SB.PCI0.P0P6, 0x02)
  5068. Notify (\_SB.PCI0.P0P7, 0x02)
  5069. Notify (\_SB.PCI0.P0P8, 0x02)
  5070. Notify (\_SB.PCI0.P0P9, 0x02)
  5071. Notify (\_SB.PWRB, 0x02)
  5072. }
  5073.  
  5074. Method (_L0B, 0, NotSerialized)
  5075. {
  5076. Notify (\_SB.PCI0.P0P1, 0x02)
  5077. Notify (\_SB.PWRB, 0x02)
  5078. }
  5079.  
  5080. Method (_L08, 0, NotSerialized)
  5081. {
  5082. \_SB.PCI0.SBRG.SIOH ()
  5083. }
  5084.  
  5085. Method (_L1D, 0, NotSerialized)
  5086. {
  5087. \_SB.PCI0.SBRG.SIOH ()
  5088. }
  5089.  
  5090. Method (_L03, 0, NotSerialized)
  5091. {
  5092. Notify (\_SB.PCI0.USB0, 0x02)
  5093. Notify (\_SB.PWRB, 0x02)
  5094. }
  5095.  
  5096. Method (_L04, 0, NotSerialized)
  5097. {
  5098. Notify (\_SB.PCI0.USB1, 0x02)
  5099. Notify (\_SB.PWRB, 0x02)
  5100. }
  5101.  
  5102. Method (_L0C, 0, NotSerialized)
  5103. {
  5104. Notify (\_SB.PCI0.USB2, 0x02)
  5105. Notify (\_SB.PWRB, 0x02)
  5106. }
  5107.  
  5108. Method (_L0E, 0, NotSerialized)
  5109. {
  5110. Notify (\_SB.PCI0.USB3, 0x02)
  5111. Notify (\_SB.PWRB, 0x02)
  5112. }
  5113.  
  5114. Method (_L0D, 0, NotSerialized)
  5115. {
  5116. Notify (\_SB.PCI0.EUSB, 0x02)
  5117. Notify (\_SB.PWRB, 0x02)
  5118. }
  5119.  
  5120. Method (_L05, 0, NotSerialized)
  5121. {
  5122. Notify (\_SB.PCI0.MC97, 0x02)
  5123. Notify (\_SB.PWRB, 0x02)
  5124. }
  5125. }
  5126.  
  5127. Device (PWRB)
  5128. {
  5129. Name (_HID, EisaId ("PNP0C0C"))
  5130. Name (_UID, 0xAA)
  5131. Name (_STA, 0x0B)
  5132. }
  5133. }
  5134.  
  5135. Scope (_SB.PCI0.SBRG.ASOC)
  5136. {
  5137. Name (G0T3, Package (0x07)
  5138. {
  5139. 0x00070005,
  5140. "New CPU Installed",
  5141. One,
  5142. Zero,
  5143. Zero,
  5144. One,
  5145. 0x02
  5146. })
  5147. Name (GRP0, Package (0x01)
  5148. {
  5149. G0T3
  5150. })
  5151. Method (GIT0, 1, NotSerialized)
  5152. {
  5153. Name (T_0, Zero)
  5154. Store (And (Arg0, 0xFFFF), T_0)
  5155. If (LEqual (T_0, 0x05))
  5156. {
  5157. Store (GNVS (0x15B2), ASB1)
  5158. }
  5159. Else
  5160. {
  5161. Store (Zero, ASB0)
  5162. }
  5163. }
  5164.  
  5165. Method (SIT0, 3, NotSerialized)
  5166. {
  5167. If (And (Arg2, 0xFFFF))
  5168. {
  5169. Name (T_0, Zero)
  5170. Store (And (Arg0, 0xFFFF), T_0)
  5171. If (LEqual (T_0, 0x05))
  5172. {
  5173. SNVS (0x15B2, Arg1)
  5174. Store (0x03, ASB0)
  5175. }
  5176. Else
  5177. {
  5178. Store (Zero, ASB0)
  5179. }
  5180. }
  5181. Else
  5182. {
  5183. Store (0x03, ASB0)
  5184. }
  5185. }
  5186. }
  5187.  
  5188. Scope (_SB.PCI0.SBRG.ASOC)
  5189. {
  5190. Name (G3T0, Package (0x07)
  5191. {
  5192. 0x03010011,
  5193. "CPU Frequency",
  5194. Zero,
  5195. Zero,
  5196. 0x4E20,
  5197. 0x64,
  5198. 0x0259
  5199. })
  5200. Name (G3DS, Package (0x07)
  5201. {
  5202. 0x030600F0,
  5203. "Device Select",
  5204. 0x40000000,
  5205. Zero,
  5206. Zero,
  5207. Zero,
  5208. Zero
  5209. })
  5210. Name (GRP3, Package (0x02)
  5211. {
  5212. G3T0,
  5213. G3DS
  5214. })
  5215. Name (GODS, Zero)
  5216. Name (IDEX, Zero)
  5217. Name (FSBB, 0xFFFF)
  5218. Name (PEBD, 0xFFFF)
  5219. Name (FSBS, 0xFFFF)
  5220. Name (MN60, 0xFFFF)
  5221. Name (CPUM, 0xFF)
  5222. Name (PCEM, 0xFF)
  5223. Method (GIT3, 1, NotSerialized)
  5224. {
  5225. Name (T_0, Zero)
  5226. Store (And (Arg0, 0xFFFF), T_0)
  5227. If (LEqual (T_0, 0x11))
  5228. {
  5229. If (LEqual (FSBB, 0xFFFF))
  5230. {
  5231. If (LNotEqual (GNVS (0x34A0), One))
  5232. {
  5233. If (LEqual (GNVS (0x34A0), Zero))
  5234. {
  5235. Subtract (GNVS (0xA2C0), 0xC8, ASB1)
  5236. }
  5237. Else
  5238. {
  5239. If (LEqual (GNVS (0x34A0), 0x03))
  5240. {
  5241. If (LOr (LEqual (GNVS (0x4404), Zero), LEqual (GNVS (0x4404), 0x06)))
  5242. {
  5243. Multiply (Add (FSBS, 0xC8), 0x69, Local0)
  5244. Divide (Local0, 0x64, Local5, Local0)
  5245. Subtract (Local0, 0xC8, ASB1)
  5246. }
  5247.  
  5248. If (LEqual (GNVS (0x4404), One))
  5249. {
  5250. Multiply (Add (FSBS, 0xC8), 0x6E, Local0)
  5251. Divide (Local0, 0x64, Local5, Local0)
  5252. Subtract (Local0, 0xC8, ASB1)
  5253. }
  5254.  
  5255. If (LEqual (GNVS (0x4404), 0x02))
  5256. {
  5257. Multiply (Add (FSBS, 0xC8), 0x73, Local0)
  5258. Divide (Local0, 0x64, Local5, Local0)
  5259. Subtract (Local0, 0xC8, ASB1)
  5260. }
  5261.  
  5262. If (LEqual (GNVS (0x4404), 0x03))
  5263. {
  5264. Multiply (Add (FSBS, 0xC8), 0x78, Local0)
  5265. Divide (Local0, 0x64, Local5, Local0)
  5266. Subtract (Local0, 0xC8, ASB1)
  5267. }
  5268. }
  5269. }
  5270. }
  5271. Else
  5272. {
  5273. Store (DerefOf (Index (G3T0, 0x03)), ASB1)
  5274. }
  5275. }
  5276. Else
  5277. {
  5278. Store (FSBB, ASB1)
  5279. }
  5280. }
  5281. Else
  5282. {
  5283. If (LEqual (T_0, 0xF0)) {}
  5284. Else
  5285. {
  5286. Store (Zero, ASB0)
  5287. }
  5288. }
  5289. }
  5290.  
  5291. Method (SIT3, 3, NotSerialized)
  5292. {
  5293. Name (T_0, Zero)
  5294. Store (And (Arg0, 0xFFFF), T_0)
  5295. If (LEqual (T_0, 0x11))
  5296. {
  5297. Store (Arg1, FSBB)
  5298. Add (Arg1, 0xC8, Local2)
  5299. If (LEqual (GNVS (0x251E), One))
  5300. {
  5301. Store (RBLK (0xD2, Zero, 0x0B), RTLR)
  5302. CreateByteField (RTLR, 0x02, BR02)
  5303. CreateByteField (RTLR, 0x03, BR03)
  5304. CreateByteField (RTLR, 0x04, BR04)
  5305. CreateByteField (RTLR, 0x05, BR05)
  5306. CreateByteField (RTLR, 0x0A, BR0A)
  5307. Multiply (Arg1, 0x02, Local0)
  5308. CreateByteField (RTLB, Local0, MN02)
  5309. Increment (Local0)
  5310. CreateByteField (RTLB, Local0, MN04)
  5311. And (MN04, 0xF0, CPUM)
  5312. And (MN04, 0x0F, PCEM)
  5313. Store (MN02, BR02)
  5314. Store (MN04, BR04)
  5315. If (LAnd (LEqual (BR02, 0x45), LEqual (BR04, 0x80)))
  5316. {
  5317. Store (BR03, Index (PEBB, Zero))
  5318. Store (PCEM, Index (PEBB, One))
  5319. Store (0x51, BR03)
  5320. Or (BR04, 0x06, BR04)
  5321. Store (0x88, PEBD)
  5322. Or (BR0A, 0x04, BR0A)
  5323. Or (BR0A, 0x03, BR0A)
  5324. WBLK (0xD2, Zero, 0x0B, RTLR)
  5325. }
  5326. Else
  5327. {
  5328. If (LAnd (LEqual (BR02, 0x44), LEqual (BR04, 0x40)))
  5329. {
  5330. Store (BR03, Index (PEBB, Zero))
  5331. Store (PCEM, Index (PEBB, One))
  5332. Store (0x50, BR03)
  5333. Or (BR04, 0x08, BR04)
  5334. Store (0x77, PEBD)
  5335. Or (BR0A, 0x04, BR0A)
  5336. Or (BR0A, 0x03, BR0A)
  5337. WBLK (0xD2, Zero, 0x0B, RTLR)
  5338. }
  5339. Else
  5340. {
  5341. Or (BR0A, 0x04, BR0A)
  5342. Or (BR0A, 0x03, BR0A)
  5343. WBLK (0xD2, Zero, 0x0B, RTLR)
  5344. If (LNotEqual (PEBD, 0xFFFF))
  5345. {
  5346. Store (DerefOf (Index (PEBB, Zero)), BR03)
  5347. Store (DerefOf (Index (PEBB, One)), BR04)
  5348. WBLK (0xD2, Zero, 0x0B, RTLR)
  5349. }
  5350. }
  5351. }
  5352. }
  5353. Else
  5354. {
  5355. Store (RBLK (0xD2, Zero, 0x09), CLKR)
  5356. CreateByteField (CLKR, One, CB01)
  5357. CreateWordField (CLKR, 0x02, CBMN)
  5358. CreateByteField (CLKR, 0x02, CBM)
  5359. CreateByteField (CLKR, 0x03, CBN)
  5360. CreateByteField (CLKR, 0x04, CB04)
  5361. CreateByteField (CLKR, 0x05, CB05)
  5362. Multiply (Arg1, 0x03, Local0)
  5363. CreateWordField (MNBF, Local0, MNVL)
  5364. Increment (Local0)
  5365. CreateWordField (MNBF, Increment (Local0), NVL0)
  5366. And (NVL0, One, NVL0)
  5367. ShiftLeft (NVL0, 0x07, MN60)
  5368. Store (RBLK (0xD2, 0x3C, 0x09), CLKB)
  5369. CreateWordField (CLKB, Zero, CB60)
  5370. And (CB60, 0x7F, CB60)
  5371. Or (CB60, MN60, CB60)
  5372. WBLK (0xD2, 0x3C, 0x09, CLKB)
  5373. Store (MNVL, CBMN)
  5374. If (LAnd (LEqual (CBM, 0x4A), LEqual (CBN, 0x24)))
  5375. {
  5376. Store (CB04, Index (PEBB, Zero))
  5377. Store (CB05, Index (PEBB, One))
  5378. Store (0x86, CB04)
  5379. Store (0x19, CB05)
  5380. Store (0x88, PEBD)
  5381. Or (CB01, 0x40, CB01)
  5382. Or (CB01, 0x80, CB01)
  5383. WBLK (0xD2, Zero, 0x09, CLKR)
  5384. }
  5385. Else
  5386. {
  5387. If (LAnd (LEqual (CBM, 0x8A), LEqual (CBN, 0x23)))
  5388. {
  5389. Store (CB04, Index (PEBB, Zero))
  5390. Store (CB05, Index (PEBB, One))
  5391. Store (0x46, CB04)
  5392. Store (0x19, CB05)
  5393. Store (0x77, PEBD)
  5394. Or (CB01, 0x40, CB01)
  5395. Or (CB01, 0x80, CB01)
  5396. WBLK (0xD2, Zero, 0x09, CLKR)
  5397. }
  5398. Else
  5399. {
  5400. Or (CB01, 0x40, CB01)
  5401. Or (CB01, 0x80, CB01)
  5402. WBLK (0xD2, Zero, 0x09, CLKR)
  5403. If (LNotEqual (PEBD, 0xFFFF))
  5404. {
  5405. Store (DerefOf (Index (PEBB, Zero)), CB04)
  5406. Store (DerefOf (Index (PEBB, One)), CB05)
  5407. WBLK (0xD2, Zero, 0x09, CLKR)
  5408. }
  5409. }
  5410. }
  5411. }
  5412. }
  5413. Else
  5414. {
  5415. If (LEqual (T_0, 0xF0))
  5416. {
  5417. Store (Arg1, GODS)
  5418. }
  5419. Else
  5420. {
  5421. Store (Zero, ASB0)
  5422. }
  5423. }
  5424. }
  5425.  
  5426. Method (GWS3, 1, NotSerialized)
  5427. {
  5428. If (LEqual (Arg0, 0x04))
  5429. {
  5430. Store (0xFFFF, FSBB)
  5431. }
  5432. }
  5433.  
  5434. Name (CLKR, Buffer (0x0A)
  5435. {
  5436. /* 0000 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  5437. /* 0008 */ 0x00, 0x00
  5438. })
  5439. Name (CLKB, Buffer (0x0A)
  5440. {
  5441. /* 0000 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  5442. /* 0008 */ 0x00, 0x00
  5443. })
  5444. Name (PEBB, Buffer (0x02)
  5445. {
  5446. 0x00, 0x00
  5447. })
  5448. Name (RTLR, Buffer (0x0C)
  5449. {
  5450. /* 0000 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  5451. /* 0008 */ 0x00, 0x00, 0x00, 0x00
  5452. })
  5453. Name (MNBF, Buffer (0x04B3)
  5454. {
  5455. /* 0000 */ 0xC9, 0x12, 0x00, 0xC8, 0x10, 0x00, 0x86, 0x0C,
  5456. /* 0008 */ 0x01, 0x0A, 0x15, 0x01, 0x4A, 0x15, 0x00, 0x4A,
  5457. /* 0010 */ 0x15, 0x01, 0xC6, 0x0C, 0x01, 0x48, 0x11, 0x00,
  5458. /* 0018 */ 0x89, 0x13, 0x00, 0x47, 0x0F, 0x00, 0xCA, 0x15,
  5459. /* 0020 */ 0x01, 0x47, 0x0F, 0x01, 0xC9, 0x13, 0x01, 0xC8,
  5460. /* 0028 */ 0x11, 0x00, 0x46, 0x0D, 0x01, 0x4A, 0x16, 0x01,
  5461. /* 0030 */ 0x8A, 0x16, 0x00, 0x8A, 0x16, 0x01, 0x86, 0x0D,
  5462. /* 0038 */ 0x01, 0x48, 0x12, 0x00, 0x89, 0x14, 0x01, 0x07,
  5463. /* 0040 */ 0x10, 0x01, 0x0A, 0x17, 0x01, 0x47, 0x10, 0x00,
  5464. /* 0048 */ 0x09, 0x15, 0x00, 0xC8, 0x12, 0x00, 0x06, 0x0E,
  5465. /* 0050 */ 0x01, 0x8A, 0x17, 0x01, 0xCA, 0x17, 0x00, 0xCA,
  5466. /* 0058 */ 0x17, 0x01, 0x46, 0x0E, 0x01, 0x48, 0x13, 0x00,
  5467. /* 0060 */ 0xC9, 0x15, 0x00, 0x07, 0x11, 0x00, 0x4A, 0x18,
  5468. /* 0068 */ 0x01, 0x07, 0x11, 0x01, 0x09, 0x16, 0x01, 0xC8,
  5469. /* 0070 */ 0x13, 0x00, 0xC6, 0x0E, 0x01, 0xCA, 0x18, 0x01,
  5470. /* 0078 */ 0x0A, 0x19, 0x00, 0x0A, 0x19, 0x01, 0x06, 0x0F,
  5471. /* 0080 */ 0x01, 0x48, 0x14, 0x00, 0xC9, 0x16, 0x01, 0xC7,
  5472. /* 0088 */ 0x11, 0x01, 0x8A, 0x19, 0x01, 0x07, 0x12, 0x00,
  5473. /* 0090 */ 0x49, 0x17, 0x00, 0xC8, 0x14, 0x00, 0x86, 0x0F,
  5474. /* 0098 */ 0x01, 0x0A, 0x1A, 0x01, 0x4A, 0x1A, 0x00, 0x4A,
  5475. /* 00A0 */ 0x1A, 0x01, 0xC6, 0x0F, 0x01, 0x48, 0x15, 0x00,
  5476. /* 00A8 */ 0x09, 0x18, 0x00, 0xC7, 0x12, 0x00, 0xCA, 0x1A,
  5477. /* 00B0 */ 0x01, 0xC7, 0x12, 0x01, 0x49, 0x18, 0x01, 0xC8,
  5478. /* 00B8 */ 0x15, 0x00, 0x46, 0x10, 0x01, 0x4A, 0x1B, 0x01,
  5479. /* 00C0 */ 0x8A, 0x1B, 0x00, 0x8A, 0x1B, 0x01, 0x86, 0x10,
  5480. /* 00C8 */ 0x01, 0x48, 0x16, 0x00, 0x09, 0x19, 0x01, 0x87,
  5481. /* 00D0 */ 0x13, 0x01, 0x0A, 0x1C, 0x01, 0xC7, 0x13, 0x00,
  5482. /* 00D8 */ 0x89, 0x19, 0x00, 0xC8, 0x16, 0x00, 0x06, 0x11,
  5483. /* 00E0 */ 0x01, 0x8A, 0x1C, 0x01, 0xCA, 0x1C, 0x00, 0xCA,
  5484. /* 00E8 */ 0x1C, 0x01, 0x46, 0x11, 0x01, 0x48, 0x17, 0x00,
  5485. /* 00F0 */ 0x49, 0x1A, 0x00, 0x87, 0x14, 0x00, 0x4A, 0x1D,
  5486. /* 00F8 */ 0x01, 0x87, 0x14, 0x01, 0x89, 0x1A, 0x01, 0xC8,
  5487. /* 0100 */ 0x17, 0x00, 0xC6, 0x11, 0x01, 0xCA, 0x1D, 0x01,
  5488. /* 0108 */ 0x0A, 0x1E, 0x00, 0x0A, 0x1E, 0x01, 0x06, 0x12,
  5489. /* 0110 */ 0x01, 0x48, 0x18, 0x00, 0x49, 0x1B, 0x01, 0x47,
  5490. /* 0118 */ 0x15, 0x01, 0x8A, 0x1E, 0x01, 0x87, 0x15, 0x00,
  5491. /* 0120 */ 0xC9, 0x1B, 0x00, 0xC8, 0x18, 0x00, 0x86, 0x12,
  5492. /* 0128 */ 0x01, 0x0A, 0x1F, 0x01, 0x4A, 0x1F, 0x00, 0x4A,
  5493. /* 0130 */ 0x1F, 0x01, 0xC6, 0x12, 0x01, 0x48, 0x19, 0x00,
  5494. /* 0138 */ 0x89, 0x1C, 0x00, 0x47, 0x16, 0x00, 0xCA, 0x1F,
  5495. /* 0140 */ 0x01, 0x47, 0x16, 0x01, 0xC9, 0x1C, 0x01, 0xC8,
  5496. /* 0148 */ 0x19, 0x00, 0x46, 0x13, 0x01, 0x4A, 0x20, 0x01,
  5497. /* 0150 */ 0x8A, 0x20, 0x00, 0x8A, 0x20, 0x01, 0x86, 0x13,
  5498. /* 0158 */ 0x01, 0x48, 0x1A, 0x00, 0x89, 0x1D, 0x01, 0x07,
  5499. /* 0160 */ 0x17, 0x01, 0x0A, 0x21, 0x01, 0x47, 0x17, 0x00,
  5500. /* 0168 */ 0x09, 0x1E, 0x00, 0xC8, 0x1A, 0x00, 0x06, 0x14,
  5501. /* 0170 */ 0x01, 0x8A, 0x21, 0x01, 0xCA, 0x21, 0x00, 0xCA,
  5502. /* 0178 */ 0x21, 0x01, 0x46, 0x14, 0x01, 0x48, 0x1B, 0x00,
  5503. /* 0180 */ 0xC9, 0x1E, 0x00, 0x07, 0x18, 0x00, 0x4A, 0x22,
  5504. /* 0188 */ 0x01, 0x07, 0x18, 0x01, 0x09, 0x1F, 0x01, 0xC8,
  5505. /* 0190 */ 0x1B, 0x00, 0xC6, 0x14, 0x01, 0xCA, 0x22, 0x01,
  5506. /* 0198 */ 0x0A, 0x23, 0x00, 0x0A, 0x23, 0x01, 0x06, 0x15,
  5507. /* 01A0 */ 0x01, 0x48, 0x1C, 0x00, 0xC9, 0x1F, 0x01, 0xC7,
  5508. /* 01A8 */ 0x18, 0x01, 0x8A, 0x23, 0x01, 0x07, 0x19, 0x00,
  5509. /* 01B0 */ 0x49, 0x20, 0x00, 0xC8, 0x1C, 0x00, 0x86, 0x15,
  5510. /* 01B8 */ 0x01, 0x0A, 0x24, 0x01, 0x4A, 0x24, 0x00, 0x4A,
  5511. /* 01C0 */ 0x24, 0x01, 0xC6, 0x15, 0x01, 0x48, 0x1D, 0x00,
  5512. /* 01C8 */ 0x09, 0x21, 0x00, 0xC7, 0x19, 0x00, 0xCA, 0x24,
  5513. /* 01D0 */ 0x01, 0xC7, 0x19, 0x01, 0x49, 0x21, 0x01, 0xC8,
  5514. /* 01D8 */ 0x1D, 0x00, 0x46, 0x16, 0x01, 0x4A, 0x25, 0x01,
  5515. /* 01E0 */ 0x8A, 0x25, 0x00, 0x8A, 0x25, 0x01, 0x86, 0x16,
  5516. /* 01E8 */ 0x01, 0x48, 0x1E, 0x00, 0x09, 0x22, 0x01, 0x87,
  5517. /* 01F0 */ 0x1A, 0x01, 0x0A, 0x26, 0x01, 0xC7, 0x1A, 0x00,
  5518. /* 01F8 */ 0x89, 0x22, 0x00, 0xC8, 0x1E, 0x00, 0x06, 0x17,
  5519. /* 0200 */ 0x01, 0x8A, 0x26, 0x01, 0xCA, 0x26, 0x00, 0xCA,
  5520. /* 0208 */ 0x26, 0x01, 0x46, 0x17, 0x01, 0x48, 0x1F, 0x00,
  5521. /* 0210 */ 0x49, 0x23, 0x00, 0x87, 0x1B, 0x00, 0x4A, 0x27,
  5522. /* 0218 */ 0x01, 0x87, 0x1B, 0x01, 0x89, 0x23, 0x01, 0xC8,
  5523. /* 0220 */ 0x1F, 0x00, 0xC6, 0x17, 0x01, 0xCA, 0x27, 0x01,
  5524. /* 0228 */ 0x0A, 0x28, 0x00, 0x0A, 0x28, 0x01, 0x06, 0x18,
  5525. /* 0230 */ 0x01, 0x48, 0x20, 0x00, 0x49, 0x24, 0x01, 0x47,
  5526. /* 0238 */ 0x1C, 0x01, 0x8A, 0x28, 0x01, 0x87, 0x1C, 0x00,
  5527. /* 0240 */ 0xC9, 0x24, 0x00, 0xC8, 0x20, 0x00, 0x86, 0x18,
  5528. /* 0248 */ 0x01, 0x0A, 0x29, 0x01, 0x4A, 0x29, 0x00, 0x4A,
  5529. /* 0250 */ 0x29, 0x01, 0xC6, 0x18, 0x01, 0x48, 0x21, 0x00,
  5530. /* 0258 */ 0x89, 0x25, 0x00, 0x47, 0x1D, 0x00, 0xCA, 0x29,
  5531. /* 0260 */ 0x01, 0x47, 0x1D, 0x01, 0xC9, 0x25, 0x01, 0xC8,
  5532. /* 0268 */ 0x21, 0x00, 0x46, 0x19, 0x01, 0x4A, 0x2A, 0x01,
  5533. /* 0270 */ 0x8A, 0x2A, 0x00, 0x8A, 0x2A, 0x01, 0x86, 0x19,
  5534. /* 0278 */ 0x01, 0x48, 0x22, 0x00, 0x89, 0x26, 0x01, 0x07,
  5535. /* 0280 */ 0x1E, 0x01, 0x0A, 0x2B, 0x01, 0x47, 0x1E, 0x00,
  5536. /* 0288 */ 0x09, 0x27, 0x00, 0xC8, 0x22, 0x00, 0x06, 0x1A,
  5537. /* 0290 */ 0x01, 0x8A, 0x2B, 0x01, 0xCA, 0x2B, 0x00, 0xCA,
  5538. /* 0298 */ 0x2B, 0x01, 0x46, 0x1A, 0x01, 0x48, 0x23, 0x00,
  5539. /* 02A0 */ 0xC9, 0x27, 0x00, 0x07, 0x1F, 0x00, 0x4A, 0x2C,
  5540. /* 02A8 */ 0x01, 0x07, 0x1F, 0x01, 0x09, 0x28, 0x01, 0xC8,
  5541. /* 02B0 */ 0x23, 0x00, 0xC6, 0x1A, 0x01, 0xCA, 0x2C, 0x01,
  5542. /* 02B8 */ 0x0A, 0x2D, 0x00, 0x0A, 0x2D, 0x01, 0x06, 0x1B,
  5543. /* 02C0 */ 0x01, 0x48, 0x24, 0x00, 0xC9, 0x28, 0x01, 0xC7,
  5544. /* 02C8 */ 0x1F, 0x01, 0x8A, 0x2D, 0x01, 0x07, 0x20, 0x00,
  5545. /* 02D0 */ 0x49, 0x29, 0x00, 0xC8, 0x24, 0x00, 0x86, 0x1B,
  5546. /* 02D8 */ 0x01, 0x0A, 0x2E, 0x01, 0x4A, 0x2E, 0x00, 0x4A,
  5547. /* 02E0 */ 0x2E, 0x01, 0xC6, 0x1B, 0x01, 0x48, 0x25, 0x00,
  5548. /* 02E8 */ 0x09, 0x2A, 0x00, 0xC7, 0x20, 0x00, 0xCA, 0x2E,
  5549. /* 02F0 */ 0x01, 0xC7, 0x20, 0x01, 0x49, 0x2A, 0x01, 0xC8,
  5550. /* 02F8 */ 0x25, 0x00, 0x46, 0x1C, 0x01, 0x4A, 0x2F, 0x01,
  5551. /* 0300 */ 0x8A, 0x2F, 0x00, 0x8A, 0x2F, 0x01, 0x86, 0x1C,
  5552. /* 0308 */ 0x01, 0x48, 0x26, 0x00, 0x09, 0x2B, 0x01, 0x87,
  5553. /* 0310 */ 0x21, 0x01, 0x0A, 0x30, 0x01, 0xC7, 0x21, 0x00,
  5554. /* 0318 */ 0x89, 0x2B, 0x00, 0xC8, 0x26, 0x00, 0x06, 0x1D,
  5555. /* 0320 */ 0x01, 0x8A, 0x30, 0x01, 0xCA, 0x30, 0x00, 0xCA,
  5556. /* 0328 */ 0x30, 0x01, 0x46, 0x1D, 0x01, 0x48, 0x27, 0x00,
  5557. /* 0330 */ 0x49, 0x2C, 0x00, 0x87, 0x22, 0x00, 0x4A, 0x31,
  5558. /* 0338 */ 0x01, 0x87, 0x22, 0x01, 0x89, 0x2C, 0x01, 0xC8,
  5559. /* 0340 */ 0x27, 0x00, 0xC6, 0x1D, 0x01, 0xCA, 0x31, 0x01,
  5560. /* 0348 */ 0x0A, 0x32, 0x00, 0x0A, 0x32, 0x01, 0x06, 0x1E,
  5561. /* 0350 */ 0x01, 0x48, 0x28, 0x00, 0x49, 0x2D, 0x01, 0x47,
  5562. /* 0358 */ 0x23, 0x01, 0x8A, 0x32, 0x01, 0x87, 0x23, 0x00,
  5563. /* 0360 */ 0xC9, 0x2D, 0x00, 0xC8, 0x28, 0x00, 0x86, 0x1E,
  5564. /* 0368 */ 0x01, 0x0A, 0x33, 0x01, 0x4A, 0x33, 0x00, 0x4A,
  5565. /* 0370 */ 0x33, 0x01, 0xC6, 0x1E, 0x01, 0x48, 0x29, 0x00,
  5566. /* 0378 */ 0x89, 0x2E, 0x00, 0x47, 0x24, 0x00, 0xCA, 0x33,
  5567. /* 0380 */ 0x01, 0x47, 0x24, 0x01, 0xC9, 0x2E, 0x01, 0xC8,
  5568. /* 0388 */ 0x29, 0x00, 0x46, 0x1F, 0x01, 0x4A, 0x34, 0x01,
  5569. /* 0390 */ 0x8A, 0x34, 0x00, 0x8A, 0x34, 0x01, 0x86, 0x1F,
  5570. /* 0398 */ 0x01, 0x48, 0x2A, 0x00, 0x89, 0x2F, 0x01, 0x07,
  5571. /* 03A0 */ 0x25, 0x01, 0x0A, 0x35, 0x01, 0x47, 0x25, 0x00,
  5572. /* 03A8 */ 0x09, 0x30, 0x00, 0xC8, 0x2A, 0x00, 0x06, 0x20,
  5573. /* 03B0 */ 0x01, 0x8A, 0x35, 0x01, 0xCA, 0x35, 0x00, 0xCA,
  5574. /* 03B8 */ 0x35, 0x01, 0x46, 0x20, 0x01, 0x48, 0x2B, 0x00,
  5575. /* 03C0 */ 0xC9, 0x30, 0x00, 0x07, 0x26, 0x00, 0x4A, 0x36,
  5576. /* 03C8 */ 0x01, 0x07, 0x26, 0x01, 0x09, 0x31, 0x01, 0xC8,
  5577. /* 03D0 */ 0x2B, 0x00, 0xC6, 0x20, 0x01, 0xCA, 0x36, 0x01,
  5578. /* 03D8 */ 0x0A, 0x37, 0x00, 0x0A, 0x37, 0x01, 0x06, 0x21,
  5579. /* 03E0 */ 0x01, 0x48, 0x2C, 0x00, 0xC9, 0x31, 0x01, 0xC7,
  5580. /* 03E8 */ 0x26, 0x01, 0x8A, 0x37, 0x01, 0x07, 0x27, 0x00,
  5581. /* 03F0 */ 0x49, 0x32, 0x00, 0xC8, 0x2C, 0x00, 0x86, 0x21,
  5582. /* 03F8 */ 0x01, 0x0A, 0x38, 0x01, 0x4A, 0x38, 0x00, 0x4A,
  5583. /* 0400 */ 0x38, 0x01, 0xC6, 0x21, 0x01, 0x48, 0x2D, 0x00,
  5584. /* 0408 */ 0x09, 0x33, 0x00, 0xC7, 0x27, 0x00, 0xCA, 0x38,
  5585. /* 0410 */ 0x01, 0xC7, 0x27, 0x01, 0x49, 0x33, 0x01, 0xC8,
  5586. /* 0418 */ 0x2D, 0x00, 0x46, 0x22, 0x01, 0x4A, 0x39, 0x01,
  5587. /* 0420 */ 0x8A, 0x39, 0x00, 0x8A, 0x39, 0x01, 0x86, 0x22,
  5588. /* 0428 */ 0x01, 0x48, 0x2E, 0x00, 0x09, 0x34, 0x01, 0x87,
  5589. /* 0430 */ 0x28, 0x01, 0x0A, 0x3A, 0x01, 0xC7, 0x28, 0x00,
  5590. /* 0438 */ 0x89, 0x34, 0x00, 0xC8, 0x2E, 0x00, 0x06, 0x23,
  5591. /* 0440 */ 0x01, 0x8A, 0x3A, 0x01, 0xCA, 0x3A, 0x00, 0xCA,
  5592. /* 0448 */ 0x3A, 0x01, 0x46, 0x23, 0x01, 0x48, 0x2F, 0x00,
  5593. /* 0450 */ 0x49, 0x35, 0x00, 0x87, 0x29, 0x00, 0x4A, 0x3B,
  5594. /* 0458 */ 0x01, 0x87, 0x29, 0x01, 0x89, 0x35, 0x01, 0xC8,
  5595. /* 0460 */ 0x2F, 0x00, 0xC6, 0x23, 0x01, 0xCA, 0x3B, 0x01,
  5596. /* 0468 */ 0x0A, 0x3C, 0x00, 0x0A, 0x3C, 0x01, 0x06, 0x24,
  5597. /* 0470 */ 0x01, 0x48, 0x30, 0x00, 0x49, 0x36, 0x01, 0x47,
  5598. /* 0478 */ 0x2A, 0x01, 0x8A, 0x3C, 0x01, 0x87, 0x2A, 0x00,
  5599. /* 0480 */ 0xC9, 0x36, 0x00, 0xC8, 0x30, 0x00, 0x86, 0x24,
  5600. /* 0488 */ 0x01, 0x0A, 0x3D, 0x01, 0x4A, 0x3D, 0x00, 0x4A,
  5601. /* 0490 */ 0x3D, 0x01, 0xC6, 0x24, 0x01, 0x48, 0x31, 0x00,
  5602. /* 0498 */ 0x89, 0x37, 0x00, 0x47, 0x2B, 0x00, 0xCA, 0x3D,
  5603. /* 04A0 */ 0x01, 0x47, 0x2B, 0x01, 0xC9, 0x37, 0x01, 0xC8,
  5604. /* 04A8 */ 0x31, 0x00, 0x46, 0x25, 0x01, 0x4A, 0x3E, 0x01,
  5605. /* 04B0 */ 0x8A, 0x3E, 0x00
  5606. })
  5607. Name (RTLB, Buffer (0x0322)
  5608. {
  5609. /* 0000 */ 0x28, 0x00, 0x28, 0x20, 0x28, 0x40, 0x28, 0x60,
  5610. /* 0008 */ 0x28, 0x80, 0x29, 0x00, 0x29, 0x20, 0x29, 0x40,
  5611. /* 0010 */ 0x29, 0x60, 0x29, 0x80, 0x2A, 0x00, 0x2A, 0x20,
  5612. /* 0018 */ 0x2A, 0x40, 0x2A, 0x60, 0x2A, 0x80, 0x2B, 0x00,
  5613. /* 0020 */ 0x2B, 0x20, 0x2B, 0x40, 0x2B, 0x60, 0x2B, 0x80,
  5614. /* 0028 */ 0x2C, 0x00, 0x2C, 0x20, 0x2C, 0x40, 0x2C, 0x60,
  5615. /* 0030 */ 0x2C, 0x80, 0x2D, 0x00, 0x2D, 0x20, 0x2D, 0x40,
  5616. /* 0038 */ 0x2D, 0x60, 0x2D, 0x80, 0x2E, 0x00, 0x2E, 0x20,
  5617. /* 0040 */ 0x2E, 0x40, 0x2E, 0x60, 0x2E, 0x80, 0x2F, 0x00,
  5618. /* 0048 */ 0x2F, 0x20, 0x2F, 0x40, 0x2F, 0x60, 0x2F, 0x80,
  5619. /* 0050 */ 0x30, 0x00, 0x30, 0x20, 0x30, 0x40, 0x30, 0x60,
  5620. /* 0058 */ 0x30, 0x80, 0x31, 0x00, 0x31, 0x20, 0x31, 0x40,
  5621. /* 0060 */ 0x31, 0x60, 0x31, 0x80, 0x32, 0x00, 0x32, 0x20,
  5622. /* 0068 */ 0x32, 0x40, 0x32, 0x60, 0x32, 0x80, 0x33, 0x00,
  5623. /* 0070 */ 0x33, 0x20, 0x33, 0x40, 0x33, 0x60, 0x33, 0x80,
  5624. /* 0078 */ 0x34, 0x00, 0x34, 0x20, 0x34, 0x40, 0x34, 0x60,
  5625. /* 0080 */ 0x34, 0x80, 0x35, 0x00, 0x35, 0x30, 0x35, 0x40,
  5626. /* 0088 */ 0x35, 0x60, 0x35, 0x80, 0x36, 0x00, 0x36, 0x20,
  5627. /* 0090 */ 0x36, 0x40, 0x36, 0x60, 0x36, 0x80, 0x37, 0x00,
  5628. /* 0098 */ 0x37, 0x20, 0x37, 0x40, 0x37, 0x60, 0x37, 0x80,
  5629. /* 00A0 */ 0x38, 0x00, 0x38, 0x20, 0x38, 0x40, 0x38, 0x60,
  5630. /* 00A8 */ 0x38, 0x80, 0x39, 0x00, 0x39, 0x20, 0x39, 0x40,
  5631. /* 00B0 */ 0x39, 0x60, 0x39, 0x80, 0x3A, 0x00, 0x3A, 0x20,
  5632. /* 00B8 */ 0x3A, 0x40, 0x3A, 0x60, 0x3A, 0x80, 0x3B, 0x00,
  5633. /* 00C0 */ 0x3B, 0x20, 0x3B, 0x40, 0x3B, 0x60, 0x3B, 0x80,
  5634. /* 00C8 */ 0x3C, 0x00, 0x3C, 0x20, 0x3C, 0x40, 0x3C, 0x60,
  5635. /* 00D0 */ 0x3C, 0x80, 0x3D, 0x00, 0x3D, 0x20, 0x3D, 0x40,
  5636. /* 00D8 */ 0x3D, 0x60, 0x3D, 0x80, 0x3E, 0x00, 0x3E, 0x20,
  5637. /* 00E0 */ 0x3E, 0x40, 0x3E, 0x60, 0x3E, 0x80, 0x3F, 0x00,
  5638. /* 00E8 */ 0x3F, 0x20, 0x3F, 0x40, 0x3F, 0x60, 0x3F, 0x80,
  5639. /* 00F0 */ 0x40, 0x00, 0x40, 0x20, 0x40, 0x40, 0x40, 0x60,
  5640. /* 00F8 */ 0x40, 0x80, 0x41, 0x00, 0x41, 0x20, 0x41, 0x40,
  5641. /* 0100 */ 0x41, 0x60, 0x41, 0x80, 0x42, 0x00, 0x42, 0x20,
  5642. /* 0108 */ 0x42, 0x40, 0x42, 0x60, 0x42, 0x80, 0x43, 0x00,
  5643. /* 0110 */ 0x43, 0x20, 0x43, 0x40, 0x43, 0x60, 0x43, 0x80,
  5644. /* 0118 */ 0x44, 0x00, 0x44, 0x20, 0x44, 0x40, 0x44, 0x60,
  5645. /* 0120 */ 0x44, 0x80, 0x45, 0x00, 0x45, 0x20, 0x45, 0x40,
  5646. /* 0128 */ 0x45, 0x60, 0x45, 0x80, 0x46, 0x00, 0x46, 0x20,
  5647. /* 0130 */ 0x46, 0x40, 0x46, 0x60, 0x46, 0x80, 0x47, 0x00,
  5648. /* 0138 */ 0x47, 0x20, 0x47, 0x40, 0x47, 0x60, 0x47, 0x80,
  5649. /* 0140 */ 0x48, 0x00, 0x48, 0x20, 0x48, 0x40, 0x48, 0x60,
  5650. /* 0148 */ 0x48, 0x80, 0x49, 0x00, 0x49, 0x20, 0x49, 0x40,
  5651. /* 0150 */ 0x49, 0x60, 0x49, 0x80, 0x4A, 0x00, 0x4A, 0x20,
  5652. /* 0158 */ 0x4A, 0x40, 0x4A, 0x60, 0x4A, 0x80, 0x4B, 0x00,
  5653. /* 0160 */ 0x4B, 0x20, 0x4B, 0x40, 0x4B, 0x60, 0x4B, 0x80,
  5654. /* 0168 */ 0x4C, 0x00, 0x4C, 0x20, 0x4C, 0x40, 0x4C, 0x60,
  5655. /* 0170 */ 0x4C, 0x80, 0x4D, 0x00, 0x4D, 0x20, 0x4D, 0x40,
  5656. /* 0178 */ 0x4D, 0x60, 0x4D, 0x80, 0x4E, 0x00, 0x4E, 0x20,
  5657. /* 0180 */ 0x4E, 0x40, 0x4E, 0x60, 0x4E, 0x80, 0x4F, 0x00,
  5658. /* 0188 */ 0x4F, 0x20, 0x4F, 0x40, 0x4F, 0x60, 0x4F, 0x80,
  5659. /* 0190 */ 0x50, 0x00, 0x50, 0x20, 0x50, 0x40, 0x50, 0x60,
  5660. /* 0198 */ 0x50, 0x80, 0x51, 0x00, 0x51, 0x20, 0x51, 0x40,
  5661. /* 01A0 */ 0x51, 0x60, 0x51, 0x80, 0x52, 0x00, 0x52, 0x20,
  5662. /* 01A8 */ 0x52, 0x40, 0x52, 0x60, 0x52, 0x80, 0x53, 0x00,
  5663. /* 01B0 */ 0x53, 0x20, 0x53, 0x40, 0x53, 0x60, 0x53, 0x80,
  5664. /* 01B8 */ 0x54, 0x00, 0x54, 0x20, 0x54, 0x40, 0x54, 0x60,
  5665. /* 01C0 */ 0x54, 0x80, 0x55, 0x00, 0x55, 0x20, 0x55, 0x40,
  5666. /* 01C8 */ 0x55, 0x60, 0x55, 0x80, 0x56, 0x00, 0x56, 0x20,
  5667. /* 01D0 */ 0x56, 0x40, 0x56, 0x60, 0x56, 0x80, 0x57, 0x00,
  5668. /* 01D8 */ 0x57, 0x20, 0x57, 0x40, 0x57, 0x60, 0x57, 0x80,
  5669. /* 01E0 */ 0x58, 0x00, 0x58, 0x20, 0x58, 0x40, 0x58, 0x60,
  5670. /* 01E8 */ 0x58, 0x80, 0x59, 0x00, 0x59, 0x20, 0x59, 0x40,
  5671. /* 01F0 */ 0x59, 0x60, 0x59, 0x80, 0x5A, 0x00, 0x5A, 0x20,
  5672. /* 01F8 */ 0x5A, 0x40, 0x5A, 0x60, 0x5A, 0x80, 0x5B, 0x00,
  5673. /* 0200 */ 0x5B, 0x20, 0x5B, 0x40, 0x5B, 0x60, 0x5B, 0x80,
  5674. /* 0208 */ 0x5C, 0x00, 0x5C, 0x20, 0x5C, 0x40, 0x5C, 0x60,
  5675. /* 0210 */ 0x5C, 0x80, 0x5D, 0x00, 0x5D, 0x20, 0x5D, 0x40,
  5676. /* 0218 */ 0x5D, 0x60, 0x5D, 0x80, 0x5E, 0x00, 0x5E, 0x20,
  5677. /* 0220 */ 0x5E, 0x40, 0x5E, 0x60, 0x5E, 0x80, 0x5F, 0x00,
  5678. /* 0228 */ 0x5F, 0x20, 0x5F, 0x40, 0x5F, 0x60, 0x5F, 0x80,
  5679. /* 0230 */ 0x60, 0x00, 0x60, 0x20, 0x60, 0x40, 0x60, 0x60,
  5680. /* 0238 */ 0x60, 0x80, 0x61, 0x00, 0x61, 0x20, 0x61, 0x40,
  5681. /* 0240 */ 0x61, 0x60, 0x61, 0x80, 0x62, 0x00, 0x62, 0x20,
  5682. /* 0248 */ 0x62, 0x40, 0x62, 0x60, 0x62, 0x80, 0x63, 0x00,
  5683. /* 0250 */ 0x63, 0x20, 0x63, 0x40, 0x63, 0x60, 0x63, 0x80,
  5684. /* 0258 */ 0x64, 0x00, 0x64, 0x20, 0x64, 0x40, 0x64, 0x60,
  5685. /* 0260 */ 0x64, 0x80, 0x65, 0x00, 0x65, 0x20, 0x65, 0x40,
  5686. /* 0268 */ 0x65, 0x60, 0x65, 0x80, 0x66, 0x00, 0x66, 0x20,
  5687. /* 0270 */ 0x66, 0x40, 0x66, 0x60, 0x66, 0x80, 0x67, 0x00,
  5688. /* 0278 */ 0x67, 0x20, 0x67, 0x40, 0x67, 0x60, 0x67, 0x80,
  5689. /* 0280 */ 0x68, 0x00, 0x68, 0x20, 0x68, 0x40, 0x68, 0x60,
  5690. /* 0288 */ 0x68, 0x80, 0x69, 0x00, 0x69, 0x20, 0x69, 0x40,
  5691. /* 0290 */ 0x69, 0x60, 0x69, 0x80, 0x6A, 0x00, 0x6A, 0x20,
  5692. /* 0298 */ 0x6A, 0x40, 0x6A, 0x60, 0x6A, 0x80, 0x6B, 0x00,
  5693. /* 02A0 */ 0x6B, 0x20, 0x6B, 0x40, 0x6B, 0x60, 0x6B, 0x80,
  5694. /* 02A8 */ 0x6C, 0x00, 0x6C, 0x20, 0x6C, 0x40, 0x6C, 0x60,
  5695. /* 02B0 */ 0x6C, 0x80, 0x6D, 0x00, 0x6D, 0x20, 0x6D, 0x40,
  5696. /* 02B8 */ 0x6D, 0x60, 0x6D, 0x80, 0x6E, 0x00, 0x6E, 0x20,
  5697. /* 02C0 */ 0x6E, 0x40, 0x6E, 0x60, 0x6E, 0x80, 0x6F, 0x00,
  5698. /* 02C8 */ 0x6F, 0x20, 0x6F, 0x40, 0x6F, 0x60, 0x6F, 0x80,
  5699. /* 02D0 */ 0x70, 0x00, 0x70, 0x20, 0x70, 0x40, 0x70, 0x60,
  5700. /* 02D8 */ 0x70, 0x80, 0x71, 0x00, 0x71, 0x20, 0x71, 0x40,
  5701. /* 02E0 */ 0x71, 0x60, 0x71, 0x80, 0x72, 0x00, 0x72, 0x20,
  5702. /* 02E8 */ 0x72, 0x40, 0x72, 0x60, 0x72, 0x80, 0x73, 0x00,
  5703. /* 02F0 */ 0x73, 0x20, 0x73, 0x40, 0x73, 0x60, 0x73, 0x80,
  5704. /* 02F8 */ 0x74, 0x00, 0x74, 0x20, 0x74, 0x40, 0x74, 0x60,
  5705. /* 0300 */ 0x74, 0x80, 0x75, 0x00, 0x75, 0x20, 0x75, 0x40,
  5706. /* 0308 */ 0x75, 0x60, 0x75, 0x80, 0x76, 0x00, 0x76, 0x20,
  5707. /* 0310 */ 0x76, 0x40, 0x76, 0x60, 0x76, 0x80, 0x77, 0x00,
  5708. /* 0318 */ 0x77, 0x20, 0x77, 0x40, 0x77, 0x60, 0x77, 0x80,
  5709. /* 0320 */ 0x78, 0x00
  5710. })
  5711. }
  5712.  
  5713. Scope (_SB.PCI0.SBRG.ASOC)
  5714. {
  5715. Name (G4T0, Package (0x04)
  5716. {
  5717. 0x04070010,
  5718. "CPU Q-FAN Control",
  5719. 0x80000000,
  5720. Zero
  5721. })
  5722. Name (G4T1, Package (0x08)
  5723. {
  5724. 0x04080011,
  5725. "CPU Q-FAN Profile",
  5726. 0x00100001,
  5727. Zero,
  5728. 0x03,
  5729. "Optimal",
  5730. "Silent",
  5731. "Performance"
  5732. })
  5733. Name (GRP4, Package (0x02)
  5734. {
  5735. G4T0,
  5736. G4T1
  5737. })
  5738. Method (GIT4, 1, NotSerialized)
  5739. {
  5740. Name (T_0, Zero)
  5741. Store (And (Arg0, 0xFFFF), T_0)
  5742. If (LEqual (T_0, 0x10))
  5743. {
  5744. Store (GNVS (0x157B), ASB1)
  5745. }
  5746. Else
  5747. {
  5748. If (LEqual (T_0, 0x11))
  5749. {
  5750. Store (GNVS (0x24F4), ASB1)
  5751. }
  5752. Else
  5753. {
  5754. If (LEqual (T_0, 0x17)) {}
  5755. Else
  5756. {
  5757. Store (Zero, ASB0)
  5758. }
  5759. }
  5760. }
  5761. }
  5762.  
  5763. Method (SIT4, 3, NotSerialized)
  5764. {
  5765. Name (T_0, Zero)
  5766. Store (And (Arg0, 0xFFFF), T_0)
  5767. If (LEqual (T_0, 0x10))
  5768. {
  5769. If (LNotEqual (GNVS (0x157B), Arg1))
  5770. {
  5771. If (And (Arg2, One))
  5772. {
  5773. SNVS (0x157B, Arg1)
  5774. }
  5775.  
  5776. Or (ASB0, 0x02, ASB0)
  5777. }
  5778. }
  5779. Else
  5780. {
  5781. If (LEqual (T_0, 0x11))
  5782. {
  5783. If (LNotEqual (GNVS (0x24F4), Arg1))
  5784. {
  5785. If (And (Arg2, One))
  5786. {
  5787. SNVS (0x24F4, Arg1)
  5788. }
  5789.  
  5790. Or (ASB0, 0x02, ASB0)
  5791. }
  5792. }
  5793. Else
  5794. {
  5795. Store (Zero, ASB0)
  5796. }
  5797. }
  5798. }
  5799. }
  5800.  
  5801. Scope (_SB.PCI0.SBRG.ASOC)
  5802. {
  5803. Name (G5T2, Package (0x08)
  5804. {
  5805. 0x05080002,
  5806. "AI Profile",
  5807. Zero,
  5808. Zero,
  5809. 0x03,
  5810. "Race Car",
  5811. "Jet Plane",
  5812. "Rocket"
  5813. })
  5814. Name (GRP5, Package (0x01)
  5815. {
  5816. G5T2
  5817. })
  5818. Name (BUF0, Package (0x02)
  5819. {
  5820. 0x03010011,
  5821. Ones
  5822. })
  5823. Name (BUF1, Package (0x02)
  5824. {
  5825. 0x03010011,
  5826. Ones
  5827. })
  5828. Name (BUF2, Package (0x02)
  5829. {
  5830. 0x03010011,
  5831. Ones
  5832. })
  5833. Method (GIT5, 2, NotSerialized)
  5834. {
  5835. Name (T_0, Zero)
  5836. Store (And (Arg0, 0xFFFF), T_0)
  5837. If (LEqual (T_0, 0x02))
  5838. {
  5839. UDBF (Arg1)
  5840. MVBF (Arg1)
  5841. Store (0x05, ASB1)
  5842. }
  5843. Else
  5844. {
  5845. Store (Zero, ASB0)
  5846. }
  5847. }
  5848.  
  5849. Method (SIT5, 3, NotSerialized)
  5850. {
  5851. Name (T_0, Zero)
  5852. Store (And (Arg0, 0xFFFF), T_0)
  5853. If (LEqual (T_0, Zero))
  5854. {
  5855. Store (0x03, ASB0)
  5856. }
  5857. Else
  5858. {
  5859. Store (Zero, ASB0)
  5860. }
  5861. }
  5862.  
  5863. Method (UDBF, 1, NotSerialized)
  5864. {
  5865. Name (T_0, Zero)
  5866. Store (And (Arg0, 0xFFFF), T_0)
  5867. If (LEqual (T_0, Zero))
  5868. {
  5869. Store (OCFS (One), Index (BUF0, One))
  5870. }
  5871. Else
  5872. {
  5873. If (LEqual (T_0, One))
  5874. {
  5875. Store (OCFS (0x03), Index (BUF1, One))
  5876. }
  5877. Else
  5878. {
  5879. If (LEqual (T_0, 0x02))
  5880. {
  5881. Store (OCFS (0x05), Index (BUF2, One))
  5882. }
  5883. }
  5884. }
  5885. }
  5886.  
  5887. Method (MVBF, 1, NotSerialized)
  5888. {
  5889. Name (T_0, Zero)
  5890. Store (And (Arg0, 0xFFFF), T_0)
  5891. If (LEqual (T_0, Zero))
  5892. {
  5893. Store (Zero, Local0)
  5894. Store (0x08, Local2)
  5895. Store (SizeOf (BUF0), Local3)
  5896. While (LNotEqual (Local0, Local3))
  5897. {
  5898. Add (Local0, One, Local1)
  5899. If (LNotEqual (DerefOf (Index (BUF0, Local1)), Ones))
  5900. {
  5901. STBF (DerefOf (Index (BUF0, Local0)), Local2)
  5902. Add (Local2, 0x04, Local2)
  5903. STBF (DerefOf (Index (BUF0, Local1)), Local2)
  5904. Add (Local2, 0x04, Local2)
  5905. }
  5906.  
  5907. STBF (Ones, Local2)
  5908. Add (Local0, 0x02, Local0)
  5909. }
  5910. }
  5911. Else
  5912. {
  5913. If (LEqual (T_0, One))
  5914. {
  5915. Store (Zero, Local0)
  5916. Store (0x08, Local2)
  5917. Store (SizeOf (BUF1), Local3)
  5918. While (LNotEqual (Local0, Local3))
  5919. {
  5920. Add (Local0, One, Local1)
  5921. If (LNotEqual (DerefOf (Index (BUF1, Local1)), Ones))
  5922. {
  5923. STBF (DerefOf (Index (BUF1, Local0)), Local2)
  5924. Add (Local2, 0x04, Local2)
  5925. STBF (DerefOf (Index (BUF1, Local1)), Local2)
  5926. Add (Local2, 0x04, Local2)
  5927. }
  5928.  
  5929. STBF (Ones, Local2)
  5930. Add (Local0, 0x02, Local0)
  5931. }
  5932. }
  5933. Else
  5934. {
  5935. If (LEqual (T_0, 0x02))
  5936. {
  5937. Store (Zero, Local0)
  5938. Store (0x08, Local2)
  5939. Store (SizeOf (BUF2), Local3)
  5940. While (LNotEqual (Local0, Local3))
  5941. {
  5942. Add (Local0, One, Local1)
  5943. If (LNotEqual (DerefOf (Index (BUF2, Local1)), Ones))
  5944. {
  5945. STBF (DerefOf (Index (BUF2, Local0)), Local2)
  5946. Add (Local2, 0x04, Local2)
  5947. STBF (DerefOf (Index (BUF2, Local1)), Local2)
  5948. Add (Local2, 0x04, Local2)
  5949. }
  5950.  
  5951. STBF (Ones, Local2)
  5952. Add (Local0, 0x02, Local0)
  5953. }
  5954. }
  5955. }
  5956. }
  5957. }
  5958.  
  5959. Method (STBF, 2, NotSerialized)
  5960. {
  5961. Store (Arg0, Local0)
  5962. Store (Arg1, Local1)
  5963. Store (Zero, Local2)
  5964. While (LNotEqual (Local2, 0x20))
  5965. {
  5966. Store (ShiftRight (Local0, Local2), Index (ASBF, Local1))
  5967. Add (Local2, 0x08, Local2)
  5968. Add (Local1, One, Local1)
  5969. }
  5970. }
  5971.  
  5972. Method (OCFS, 1, NotSerialized)
  5973. {
  5974. Store (DerefOf (Index (G3T0, 0x03)), FSBS)
  5975. Add (Arg0, 0x64, Local0)
  5976. Multiply (Add (0xC8, DerefOf (Index (G3T0, 0x03))), Local0,
  5977. Local0)
  5978. Divide (Local0, 0x64, Local5, Local0)
  5979. Subtract (Local0, 0xC8, Local0)
  5980. Return (Local0)
  5981. }
  5982. }
  5983.  
  5984. Scope (_SB.PCI0.SBRG.ASOC)
  5985. {
  5986. Name (G6T1, Package (0x07)
  5987. {
  5988. 0x06020011,
  5989. "Vcore Voltage",
  5990. 0x20000000,
  5991. Zero,
  5992. 0x0352,
  5993. 0x02EE,
  5994. 0x02
  5995. })
  5996. Name (G6T2, Package (0x07)
  5997. {
  5998. 0x06030012,
  5999. "CPU Temperature",
  6000. 0x20000000,
  6001. Zero,
  6002. 0x0258,
  6003. 0x015E,
  6004. 0x02
  6005. })
  6006. Name (G6T3, Package (0x07)
  6007. {
  6008. 0x06040013,
  6009. "CPU FAN Speed",
  6010. 0x20000000,
  6011. Zero,
  6012. 0x0320,
  6013. 0x1900,
  6014. 0x02
  6015. })
  6016. Name (G6T6, Package (0x07)
  6017. {
  6018. 0x06020061,
  6019. "+12V Voltage",
  6020. 0x20000000,
  6021. 0x2EE0,
  6022. 0x27D8,
  6023. 0x0E10,
  6024. 0x02
  6025. })
  6026. Name (G6T7, Package (0x07)
  6027. {
  6028. 0x06020062,
  6029. "+5V Voltage",
  6030. 0x20000000,
  6031. 0x1388,
  6032. 0x1194,
  6033. 0xFFFF,
  6034. 0x02
  6035. })
  6036. Name (G6T8, Package (0x07)
  6037. {
  6038. 0x06020063,
  6039. "+3.3V Voltage",
  6040. 0x20000000,
  6041. 0x0CE4,
  6042. 0x0B9A,
  6043. 0x0294,
  6044. 0x02
  6045. })
  6046. Name (G6T9, Package (0x07)
  6047. {
  6048. 0x06030074,
  6049. "MB Temperature",
  6050. 0x20000000,
  6051. Zero,
  6052. 0x01C2,
  6053. 0x01F4,
  6054. 0x02
  6055. })
  6056. Name (GRP6, Package (0x07)
  6057. {
  6058. G6T1,
  6059. G6T2,
  6060. G6T3,
  6061. G6T6,
  6062. G6T7,
  6063. G6T8,
  6064. G6T9
  6065. })
  6066. Method (GIT6, 1, NotSerialized)
  6067. {
  6068. Name (T_0, Zero)
  6069. Store (And (Arg0, 0xFFFF), T_0)
  6070. If (LEqual (T_0, 0x11))
  6071. {
  6072. Store (0x0600, ASB1)
  6073. }
  6074. Else
  6075. {
  6076. If (LEqual (T_0, 0x12))
  6077. {
  6078. Store (0x0601, ASB1)
  6079. }
  6080. Else
  6081. {
  6082. If (LEqual (T_0, 0x13))
  6083. {
  6084. Store (0x0602, ASB1)
  6085. }
  6086. Else
  6087. {
  6088. If (LEqual (T_0, 0x73))
  6089. {
  6090. Store (0x0603, ASB1)
  6091. }
  6092. Else
  6093. {
  6094. If (LEqual (T_0, 0xC3))
  6095. {
  6096. Store (0x0604, ASB1)
  6097. }
  6098. Else
  6099. {
  6100. If (LEqual (T_0, 0x61))
  6101. {
  6102. Store (0x0605, ASB1)
  6103. }
  6104. Else
  6105. {
  6106. If (LEqual (T_0, 0x62))
  6107. {
  6108. Store (0x0606, ASB1)
  6109. }
  6110. Else
  6111. {
  6112. If (LEqual (T_0, 0x63))
  6113. {
  6114. Store (0x0607, ASB1)
  6115. }
  6116. Else
  6117. {
  6118. If (LEqual (T_0, 0x74))
  6119. {
  6120. Store (0x0608, ASB1)
  6121. }
  6122. Else
  6123. {
  6124. Store (Zero, ASB0)
  6125. }
  6126. }
  6127. }
  6128. }
  6129. }
  6130. }
  6131. }
  6132. }
  6133. }
  6134. }
  6135.  
  6136. Method (SIT6, 3, NotSerialized)
  6137. {
  6138. Name (T_0, Zero)
  6139. Store (And (Arg0, 0xFFFF), T_0)
  6140. If (LEqual (T_0, 0x11))
  6141. {
  6142. Store (0x0600, DBG8)
  6143. }
  6144. Else
  6145. {
  6146. If (LEqual (T_0, 0x12))
  6147. {
  6148. Store (0x0601, DBG8)
  6149. }
  6150. Else
  6151. {
  6152. If (LEqual (T_0, 0x13))
  6153. {
  6154. Store (0x0602, DBG8)
  6155. }
  6156. Else
  6157. {
  6158. If (LEqual (T_0, 0x73))
  6159. {
  6160. Store (0x0603, DBG8)
  6161. }
  6162. Else
  6163. {
  6164. If (LEqual (T_0, 0xC3))
  6165. {
  6166. Store (0x0604, DBG8)
  6167. }
  6168. Else
  6169. {
  6170. If (LEqual (T_0, 0x61))
  6171. {
  6172. Store (0x0605, DBG8)
  6173. }
  6174. Else
  6175. {
  6176. If (LEqual (T_0, 0x62))
  6177. {
  6178. Store (0x0606, DBG8)
  6179. }
  6180. Else
  6181. {
  6182. If (LEqual (T_0, 0x63))
  6183. {
  6184. Store (0x0607, DBG8)
  6185. }
  6186. Else
  6187. {
  6188. If (LEqual (T_0, 0x74))
  6189. {
  6190. Store (0x0608, DBG8)
  6191. }
  6192. Else
  6193. {
  6194. Store (Zero, ASB0)
  6195. }
  6196. }
  6197. }
  6198. }
  6199. }
  6200. }
  6201. }
  6202. }
  6203. }
  6204. }
  6205. }
  6206.  
  6207. OperationRegion (_SB.PCI0.SBRG.PIX0, PCI_Config, 0x60, 0x0C)
  6208. Field (\_SB.PCI0.SBRG.PIX0, ByteAcc, NoLock, Preserve)
  6209. {
  6210. PIRA, 8,
  6211. PIRB, 8,
  6212. PIRC, 8,
  6213. PIRD, 8,
  6214. Offset (0x08),
  6215. PIRE, 8,
  6216. PIRF, 8,
  6217. PIRG, 8,
  6218. PIRH, 8
  6219. }
  6220.  
  6221. Scope (_SB)
  6222. {
  6223. Name (BUFA, ResourceTemplate ()
  6224. {
  6225. IRQ (Level, ActiveLow, Shared, )
  6226. {15}
  6227. })
  6228. CreateWordField (BUFA, One, IRA0)
  6229. Device (LNKA)
  6230. {
  6231. Name (_HID, EisaId ("PNP0C0F"))
  6232. Name (_UID, One)
  6233. Method (_STA, 0, NotSerialized)
  6234. {
  6235. And (PIRA, 0x80, Local0)
  6236. If (Local0)
  6237. {
  6238. Return (0x09)
  6239. }
  6240. Else
  6241. {
  6242. Return (0x0B)
  6243. }
  6244. }
  6245.  
  6246. Method (_PRS, 0, NotSerialized)
  6247. {
  6248. Return (PRSA)
  6249. }
  6250.  
  6251. Method (_DIS, 0, NotSerialized)
  6252. {
  6253. Or (PIRA, 0x80, PIRA)
  6254. }
  6255.  
  6256. Method (_CRS, 0, NotSerialized)
  6257. {
  6258. And (PIRA, 0x0F, Local0)
  6259. ShiftLeft (One, Local0, IRA0)
  6260. Return (BUFA)
  6261. }
  6262.  
  6263. Method (_SRS, 1, NotSerialized)
  6264. {
  6265. CreateWordField (Arg0, One, IRA)
  6266. FindSetRightBit (IRA, Local0)
  6267. Decrement (Local0)
  6268. Store (Local0, PIRA)
  6269. }
  6270. }
  6271.  
  6272. Device (LNKB)
  6273. {
  6274. Name (_HID, EisaId ("PNP0C0F"))
  6275. Name (_UID, 0x02)
  6276. Method (_STA, 0, NotSerialized)
  6277. {
  6278. And (PIRB, 0x80, Local0)
  6279. If (Local0)
  6280. {
  6281. Return (0x09)
  6282. }
  6283. Else
  6284. {
  6285. Return (0x0B)
  6286. }
  6287. }
  6288.  
  6289. Method (_PRS, 0, NotSerialized)
  6290. {
  6291. Return (PRSB)
  6292. }
  6293.  
  6294. Method (_DIS, 0, NotSerialized)
  6295. {
  6296. Or (PIRB, 0x80, PIRB)
  6297. }
  6298.  
  6299. Method (_CRS, 0, NotSerialized)
  6300. {
  6301. And (PIRB, 0x0F, Local0)
  6302. ShiftLeft (One, Local0, IRA0)
  6303. Return (BUFA)
  6304. }
  6305.  
  6306. Method (_SRS, 1, NotSerialized)
  6307. {
  6308. CreateWordField (Arg0, One, IRA)
  6309. FindSetRightBit (IRA, Local0)
  6310. Decrement (Local0)
  6311. Store (Local0, PIRB)
  6312. }
  6313. }
  6314.  
  6315. Device (LNKC)
  6316. {
  6317. Name (_HID, EisaId ("PNP0C0F"))
  6318. Name (_UID, 0x03)
  6319. Method (_STA, 0, NotSerialized)
  6320. {
  6321. And (PIRC, 0x80, Local0)
  6322. If (Local0)
  6323. {
  6324. Return (0x09)
  6325. }
  6326. Else
  6327. {
  6328. Return (0x0B)
  6329. }
  6330. }
  6331.  
  6332. Method (_PRS, 0, NotSerialized)
  6333. {
  6334. Return (PRSC)
  6335. }
  6336.  
  6337. Method (_DIS, 0, NotSerialized)
  6338. {
  6339. Or (PIRC, 0x80, PIRC)
  6340. }
  6341.  
  6342. Method (_CRS, 0, NotSerialized)
  6343. {
  6344. And (PIRC, 0x0F, Local0)
  6345. ShiftLeft (One, Local0, IRA0)
  6346. Return (BUFA)
  6347. }
  6348.  
  6349. Method (_SRS, 1, NotSerialized)
  6350. {
  6351. CreateWordField (Arg0, One, IRA)
  6352. FindSetRightBit (IRA, Local0)
  6353. Decrement (Local0)
  6354. Store (Local0, PIRC)
  6355. }
  6356. }
  6357.  
  6358. Device (LNKD)
  6359. {
  6360. Name (_HID, EisaId ("PNP0C0F"))
  6361. Name (_UID, 0x04)
  6362. Method (_STA, 0, NotSerialized)
  6363. {
  6364. And (PIRD, 0x80, Local0)
  6365. If (Local0)
  6366. {
  6367. Return (0x09)
  6368. }
  6369. Else
  6370. {
  6371. Return (0x0B)
  6372. }
  6373. }
  6374.  
  6375. Method (_PRS, 0, NotSerialized)
  6376. {
  6377. Return (PRSD)
  6378. }
  6379.  
  6380. Method (_DIS, 0, NotSerialized)
  6381. {
  6382. Or (PIRD, 0x80, PIRD)
  6383. }
  6384.  
  6385. Method (_CRS, 0, NotSerialized)
  6386. {
  6387. And (PIRD, 0x0F, Local0)
  6388. ShiftLeft (One, Local0, IRA0)
  6389. Return (BUFA)
  6390. }
  6391.  
  6392. Method (_SRS, 1, NotSerialized)
  6393. {
  6394. CreateWordField (Arg0, One, IRA)
  6395. FindSetRightBit (IRA, Local0)
  6396. Decrement (Local0)
  6397. Store (Local0, PIRD)
  6398. }
  6399. }
  6400.  
  6401. Device (LNKE)
  6402. {
  6403. Name (_HID, EisaId ("PNP0C0F"))
  6404. Name (_UID, 0x05)
  6405. Method (_STA, 0, NotSerialized)
  6406. {
  6407. And (PIRE, 0x80, Local0)
  6408. If (Local0)
  6409. {
  6410. Return (0x09)
  6411. }
  6412. Else
  6413. {
  6414. Return (0x0B)
  6415. }
  6416. }
  6417.  
  6418. Method (_PRS, 0, NotSerialized)
  6419. {
  6420. Return (PRSE)
  6421. }
  6422.  
  6423. Method (_DIS, 0, NotSerialized)
  6424. {
  6425. Or (PIRE, 0x80, PIRE)
  6426. }
  6427.  
  6428. Method (_CRS, 0, NotSerialized)
  6429. {
  6430. And (PIRE, 0x0F, Local0)
  6431. ShiftLeft (One, Local0, IRA0)
  6432. Return (BUFA)
  6433. }
  6434.  
  6435. Method (_SRS, 1, NotSerialized)
  6436. {
  6437. CreateWordField (Arg0, One, IRA)
  6438. FindSetRightBit (IRA, Local0)
  6439. Decrement (Local0)
  6440. Store (Local0, PIRE)
  6441. }
  6442. }
  6443.  
  6444. Device (LNKF)
  6445. {
  6446. Name (_HID, EisaId ("PNP0C0F"))
  6447. Name (_UID, 0x06)
  6448. Method (_STA, 0, NotSerialized)
  6449. {
  6450. And (PIRF, 0x80, Local0)
  6451. If (Local0)
  6452. {
  6453. Return (0x09)
  6454. }
  6455. Else
  6456. {
  6457. Return (0x0B)
  6458. }
  6459. }
  6460.  
  6461. Method (_PRS, 0, NotSerialized)
  6462. {
  6463. Return (PRSF)
  6464. }
  6465.  
  6466. Method (_DIS, 0, NotSerialized)
  6467. {
  6468. Or (PIRF, 0x80, PIRF)
  6469. }
  6470.  
  6471. Method (_CRS, 0, NotSerialized)
  6472. {
  6473. And (PIRF, 0x0F, Local0)
  6474. ShiftLeft (One, Local0, IRA0)
  6475. Return (BUFA)
  6476. }
  6477.  
  6478. Method (_SRS, 1, NotSerialized)
  6479. {
  6480. CreateWordField (Arg0, One, IRA)
  6481. FindSetRightBit (IRA, Local0)
  6482. Decrement (Local0)
  6483. Store (Local0, PIRF)
  6484. }
  6485. }
  6486.  
  6487. Device (LNKG)
  6488. {
  6489. Name (_HID, EisaId ("PNP0C0F"))
  6490. Name (_UID, 0x07)
  6491. Method (_STA, 0, NotSerialized)
  6492. {
  6493. And (PIRG, 0x80, Local0)
  6494. If (Local0)
  6495. {
  6496. Return (0x09)
  6497. }
  6498. Else
  6499. {
  6500. Return (0x0B)
  6501. }
  6502. }
  6503.  
  6504. Method (_PRS, 0, NotSerialized)
  6505. {
  6506. Return (PRSG)
  6507. }
  6508.  
  6509. Method (_DIS, 0, NotSerialized)
  6510. {
  6511. Or (PIRG, 0x80, PIRG)
  6512. }
  6513.  
  6514. Method (_CRS, 0, NotSerialized)
  6515. {
  6516. And (PIRG, 0x0F, Local0)
  6517. ShiftLeft (One, Local0, IRA0)
  6518. Return (BUFA)
  6519. }
  6520.  
  6521. Method (_SRS, 1, NotSerialized)
  6522. {
  6523. CreateWordField (Arg0, One, IRA)
  6524. FindSetRightBit (IRA, Local0)
  6525. Decrement (Local0)
  6526. Store (Local0, PIRG)
  6527. }
  6528. }
  6529.  
  6530. Device (LNKH)
  6531. {
  6532. Name (_HID, EisaId ("PNP0C0F"))
  6533. Name (_UID, 0x08)
  6534. Method (_STA, 0, NotSerialized)
  6535. {
  6536. And (PIRH, 0x80, Local0)
  6537. If (Local0)
  6538. {
  6539. Return (0x09)
  6540. }
  6541. Else
  6542. {
  6543. Return (0x0B)
  6544. }
  6545. }
  6546.  
  6547. Method (_PRS, 0, NotSerialized)
  6548. {
  6549. Return (PRSH)
  6550. }
  6551.  
  6552. Method (_DIS, 0, NotSerialized)
  6553. {
  6554. Or (PIRH, 0x80, PIRH)
  6555. }
  6556.  
  6557. Method (_CRS, 0, NotSerialized)
  6558. {
  6559. And (PIRH, 0x0F, Local0)
  6560. ShiftLeft (One, Local0, IRA0)
  6561. Return (BUFA)
  6562. }
  6563.  
  6564. Method (_SRS, 1, NotSerialized)
  6565. {
  6566. CreateWordField (Arg0, One, IRA)
  6567. FindSetRightBit (IRA, Local0)
  6568. Decrement (Local0)
  6569. Store (Local0, PIRH)
  6570. }
  6571. }
  6572. }
  6573.  
  6574. Scope (_SB)
  6575. {
  6576. Name (XCPD, Zero)
  6577. Name (XNPT, One)
  6578. Name (XCAP, 0x02)
  6579. Name (XDCP, 0x04)
  6580. Name (XDCT, 0x08)
  6581. Name (XDST, 0x0A)
  6582. Name (XLCP, 0x0C)
  6583. Name (XLCT, 0x10)
  6584. Name (XLST, 0x12)
  6585. Name (XSCP, 0x14)
  6586. Name (XSCT, 0x18)
  6587. Name (XSST, 0x1A)
  6588. Name (XRCT, 0x1C)
  6589. Mutex (MUTE, 0x00)
  6590. Method (RBPE, 1, NotSerialized)
  6591. {
  6592. Acquire (MUTE, 0xFFFF)
  6593. Add (Arg0, PCIB, Local0)
  6594. OperationRegion (PCFG, SystemMemory, Local0, One)
  6595. Field (PCFG, ByteAcc, NoLock, Preserve)
  6596. {
  6597. XCFG, 8
  6598. }
  6599.  
  6600. Release (MUTE)
  6601. Return (XCFG)
  6602. }
  6603.  
  6604. Method (RWPE, 1, NotSerialized)
  6605. {
  6606. Acquire (MUTE, 0xFFFF)
  6607. And (Arg0, 0xFFFFFFFE, Arg0)
  6608. Add (Arg0, PCIB, Local0)
  6609. OperationRegion (PCFG, SystemMemory, Local0, 0x02)
  6610. Field (PCFG, WordAcc, NoLock, Preserve)
  6611. {
  6612. XCFG, 16
  6613. }
  6614.  
  6615. Release (MUTE)
  6616. Return (XCFG)
  6617. }
  6618.  
  6619. Method (RDPE, 1, NotSerialized)
  6620. {
  6621. Acquire (MUTE, 0xFFFF)
  6622. And (Arg0, 0xFFFFFFFC, Arg0)
  6623. Add (Arg0, PCIB, Local0)
  6624. OperationRegion (PCFG, SystemMemory, Local0, 0x04)
  6625. Field (PCFG, DWordAcc, NoLock, Preserve)
  6626. {
  6627. XCFG, 32
  6628. }
  6629.  
  6630. Release (MUTE)
  6631. Return (XCFG)
  6632. }
  6633.  
  6634. Method (WBPE, 2, NotSerialized)
  6635. {
  6636. Acquire (MUTE, 0xFFFF)
  6637. Add (Arg0, PCIB, Local0)
  6638. OperationRegion (PCFG, SystemMemory, Local0, One)
  6639. Field (PCFG, ByteAcc, NoLock, Preserve)
  6640. {
  6641. XCFG, 8
  6642. }
  6643.  
  6644. Store (Arg1, XCFG)
  6645. Release (MUTE)
  6646. }
  6647.  
  6648. Method (WWPE, 2, NotSerialized)
  6649. {
  6650. Acquire (MUTE, 0xFFFF)
  6651. And (Arg0, 0xFFFFFFFE, Arg0)
  6652. Add (Arg0, PCIB, Local0)
  6653. OperationRegion (PCFG, SystemMemory, Local0, 0x02)
  6654. Field (PCFG, WordAcc, NoLock, Preserve)
  6655. {
  6656. XCFG, 16
  6657. }
  6658.  
  6659. Store (Arg1, XCFG)
  6660. Release (MUTE)
  6661. }
  6662.  
  6663. Method (WDPE, 2, NotSerialized)
  6664. {
  6665. Acquire (MUTE, 0xFFFF)
  6666. And (Arg0, 0xFFFFFFFC, Arg0)
  6667. Add (Arg0, PCIB, Local0)
  6668. OperationRegion (PCFG, SystemMemory, Local0, 0x04)
  6669. Field (PCFG, DWordAcc, NoLock, Preserve)
  6670. {
  6671. XCFG, 32
  6672. }
  6673.  
  6674. Store (Arg1, XCFG)
  6675. Release (MUTE)
  6676. }
  6677.  
  6678. Method (RWDP, 3, NotSerialized)
  6679. {
  6680. Acquire (MUTE, 0xFFFF)
  6681. And (Arg0, 0xFFFFFFFC, Arg0)
  6682. Add (Arg0, PCIB, Local0)
  6683. OperationRegion (PCFG, SystemMemory, Local0, 0x04)
  6684. Field (PCFG, DWordAcc, NoLock, Preserve)
  6685. {
  6686. XCFG, 32
  6687. }
  6688.  
  6689. And (XCFG, Arg2, Local1)
  6690. Or (Local1, Arg1, XCFG)
  6691. Release (MUTE)
  6692. }
  6693.  
  6694. Method (RPME, 1, NotSerialized)
  6695. {
  6696. Add (Arg0, 0x84, Local0)
  6697. Store (RDPE (Local0), Local1)
  6698. If (LEqual (Local1, Ones))
  6699. {
  6700. Return (Zero)
  6701. }
  6702. Else
  6703. {
  6704. If (LAnd (Local1, 0x00010000))
  6705. {
  6706. WDPE (Local0, And (Local1, 0x00010000))
  6707. Return (One)
  6708. }
  6709.  
  6710. Return (Zero)
  6711. }
  6712. }
  6713. }
  6714.  
  6715. OperationRegion (SMRG, SystemIO, 0x0400, 0x10)
  6716. Field (SMRG, ByteAcc, NoLock, Preserve)
  6717. {
  6718. HSTS, 8,
  6719. SSTS, 8,
  6720. HSTC, 8,
  6721. HCMD, 8,
  6722. HADR, 8,
  6723. HDT0, 8,
  6724. HDT1, 8,
  6725. BLKD, 8,
  6726. SLCT, 8,
  6727. SHCM, 8,
  6728. SLEV, 24,
  6729. AUXC, 8
  6730. }
  6731.  
  6732. Field (SMRG, ByteAcc, NoLock, Preserve)
  6733. {
  6734. Offset (0x05),
  6735. HDTW, 16
  6736. }
  6737.  
  6738. Method (SCMD, 4, Serialized)
  6739. {
  6740. Or (AUXC, 0x02, AUXC)
  6741. Store (0x05, Local0)
  6742. While (Decrement (Local0))
  6743. {
  6744. Store (0xFFFF, Local1)
  6745. While (LAnd (HSTS, Decrement (Local1)))
  6746. {
  6747. Store (0xFE, HSTS)
  6748. Stall (0x0A)
  6749. }
  6750.  
  6751. Store (HSTC, Local2)
  6752. Store (Arg0, HADR)
  6753. Store (Arg1, HCMD)
  6754. Store (Arg2, HDTW)
  6755. Store (Arg3, HSTC)
  6756. Store (0xFFFF, Local1)
  6757. While (Decrement (Local1))
  6758. {
  6759. If (And (HSTS, 0x0C))
  6760. {
  6761. Store (One, Local1)
  6762. }
  6763.  
  6764. If (LEqual (And (HSTS, 0x03), 0x02))
  6765. {
  6766. Return (HDTW)
  6767. }
  6768.  
  6769. Stall (0x0A)
  6770. }
  6771.  
  6772. Store (0x42, HSTC)
  6773. Store (0xFFFF, Local1)
  6774. While (Decrement (Local1))
  6775. {
  6776. If (And (HSTS, 0x10))
  6777. {
  6778. Store (One, Local1)
  6779. }
  6780.  
  6781. Stall (0x0A)
  6782. }
  6783.  
  6784. Store (Zero, HSTC)
  6785. }
  6786.  
  6787. Return (Ones)
  6788. }
  6789.  
  6790. Method (SBYT, 2, NotSerialized)
  6791. {
  6792. SCMD (Arg0, Arg1, Zero, 0x44)
  6793. }
  6794.  
  6795. Method (WBYT, 3, NotSerialized)
  6796. {
  6797. SCMD (Arg0, Arg1, Arg2, 0x48)
  6798. }
  6799.  
  6800. Method (WWRD, 3, NotSerialized)
  6801. {
  6802. SCMD (Arg0, Arg1, Arg2, 0x4C)
  6803. }
  6804.  
  6805. Method (RSBT, 2, NotSerialized)
  6806. {
  6807. Or (Arg0, One, Arg0)
  6808. Return (And (SCMD (Arg0, Arg1, Zero, 0x44), 0xFF))
  6809. }
  6810.  
  6811. Method (RBYT, 2, NotSerialized)
  6812. {
  6813. Or (Arg0, One, Arg0)
  6814. Return (And (SCMD (Arg0, Arg1, Zero, 0x48), 0xFF))
  6815. }
  6816.  
  6817. Method (RWRD, 2, NotSerialized)
  6818. {
  6819. Or (Arg0, One, Arg0)
  6820. Return (SCMD (Arg0, Arg1, Zero, 0x4C))
  6821. }
  6822.  
  6823. Method (RBLK, 3, NotSerialized)
  6824. {
  6825. Or (Arg0, One, Local0)
  6826. SCMD (Local0, Arg1, Arg2, 0x54)
  6827. Store (HSTC, Local0)
  6828. Store (HDT0, Local0)
  6829. Add (Local0, One, Local7)
  6830. Name (RBUF, Buffer (Local7) {})
  6831. Store (Zero, Local1)
  6832. While (Local0)
  6833. {
  6834. Store (BLKD, Index (RBUF, Local1))
  6835. Decrement (Local0)
  6836. Increment (Local1)
  6837. }
  6838.  
  6839. Return (RBUF)
  6840. }
  6841.  
  6842. Method (WBLK, 4, NotSerialized)
  6843. {
  6844. Store (HSTC, Local0)
  6845. Store (Zero, Local0)
  6846. While (LLessEqual (Local0, Arg2))
  6847. {
  6848. Store (DerefOf (Index (Arg3, Local0)), BLKD)
  6849. Increment (Local0)
  6850. }
  6851.  
  6852. Store (HSTC, Local0)
  6853. SCMD (Arg0, Arg1, Arg2, 0x54)
  6854. }
  6855.  
  6856. Scope (_SB.PCI0.SBRG.SIOR)
  6857. {
  6858. Method (HWV0, 0, NotSerialized)
  6859. {
  6860. Return (Multiply (VCOR, 0x08))
  6861. }
  6862.  
  6863. Method (HWV1, 0, NotSerialized)
  6864. {
  6865. Multiply (V12V, 0x08, Local0)
  6866. Return (Local0)
  6867. }
  6868.  
  6869. Method (HWV3, 0, NotSerialized)
  6870. {
  6871. Multiply (V33V, 0x08, Local0)
  6872. Return (Local0)
  6873. }
  6874.  
  6875. Method (HWV5, 0, NotSerialized)
  6876. {
  6877. Multiply (V50V, 0x08, Local0)
  6878. Return (Local0)
  6879. }
  6880.  
  6881. Method (HWT0, 0, NotSerialized)
  6882. {
  6883. Store (MBTE, Local1)
  6884. Multiply (Local1, 0x0A, Local1)
  6885. Return (Local1)
  6886. }
  6887.  
  6888. Method (HWT1, 0, NotSerialized)
  6889. {
  6890. Store (One, BSEL)
  6891. Store (TSR1, Local1)
  6892. Multiply (Local1, 0x0A, Local1)
  6893. Store (TSR2, Local2)
  6894. Multiply (Local2, 0x05, Local2)
  6895. Add (Local1, Local2, Local1)
  6896. Return (Local1)
  6897. }
  6898.  
  6899. Method (HWT2, 0, NotSerialized)
  6900. {
  6901. Store (0x02, BSEL)
  6902. Store (TSR1, Local1)
  6903. Multiply (Local1, 0x0A, Local1)
  6904. Store (TSR2, Local2)
  6905. Multiply (Local2, 0x05, Local2)
  6906. Add (Local1, Local2, Local1)
  6907. Return (Local1)
  6908. }
  6909.  
  6910. Method (HWF0, 0, NotSerialized)
  6911. {
  6912. Store (FAN1, Local0)
  6913. Store (Zero, BSEL)
  6914. And (FD21, 0x20, Local1)
  6915. ShiftRight (Local1, 0x05, Local1)
  6916. Multiply (Local1, 0x04, Local1)
  6917. Add (Local1, FD11, Local1)
  6918. While (LOr (LAnd (LGreater (Local0, 0xE6), LLess (Local1, 0x07)), LAnd (
  6919. LLess (Local0, 0x64), LGreater (Local1, Zero))))
  6920. {
  6921. If (LAnd (LGreater (Local0, 0xE6), LLess (Local1, 0x07)))
  6922. {
  6923. Add (Local1, One, Local1)
  6924. Divide (Local1, 0x04, Local2, Local3)
  6925. Store (Zero, BSEL)
  6926. ShiftLeft (Local3, 0x05, Local3)
  6927. Store (FD21, Local4)
  6928. And (Local4, 0xDF, Local4)
  6929. Or (Local3, Local4, FD21)
  6930. Store (Local2, FD11)
  6931. Sleep (0x012C)
  6932. Store (FAN1, Local0)
  6933. }
  6934. Else
  6935. {
  6936. Subtract (Local1, One, Local1)
  6937. Divide (Local1, 0x04, Local2, Local3)
  6938. Store (Zero, BSEL)
  6939. ShiftLeft (Local3, 0x05, Local3)
  6940. Store (FD21, Local4)
  6941. And (Local4, 0xDF, Local4)
  6942. Or (Local3, Local4, FD21)
  6943. Store (Local2, FD11)
  6944. Sleep (0x012C)
  6945. Store (FAN1, Local0)
  6946. }
  6947. }
  6948.  
  6949. If (LAnd (LEqual (Local0, 0xFF), LEqual (Local1, 0x07)))
  6950. {
  6951. Return (Zero)
  6952. }
  6953.  
  6954. If (LAnd (LEqual (Local0, Zero), LEqual (Local1, Zero)))
  6955. {
  6956. Return (0xFFFF)
  6957. }
  6958.  
  6959. Store (One, Local2)
  6960. While (Local1)
  6961. {
  6962. Multiply (Local2, 0x02, Local2)
  6963. Decrement (Local1)
  6964. }
  6965.  
  6966. Multiply (Local0, Local2, Local0)
  6967. Divide (0x00149970, Local0, Local1, Local0)
  6968. Return (Local0)
  6969. }
  6970.  
  6971. Method (HWF1, 0, NotSerialized)
  6972. {
  6973. Store (FAN2, Local0)
  6974. Store (Zero, BSEL)
  6975. And (FD21, 0x40, Local1)
  6976. ShiftRight (Local1, 0x06, Local1)
  6977. Multiply (Local1, 0x04, Local1)
  6978. Add (Local1, FD12, Local1)
  6979. While (LOr (LAnd (LGreater (Local0, 0xE6), LLess (Local1, 0x07)), LAnd (
  6980. LLess (Local0, 0x64), LGreater (Local1, Zero))))
  6981. {
  6982. If (LAnd (LGreater (Local0, 0xE6), LLess (Local1, 0x07)))
  6983. {
  6984. Add (Local1, One, Local1)
  6985. Divide (Local1, 0x04, Local2, Local3)
  6986. Store (Zero, BSEL)
  6987. ShiftLeft (Local3, 0x06, Local3)
  6988. Store (FD21, Local4)
  6989. And (Local4, 0xBF, Local4)
  6990. Or (Local3, Local4, FD21)
  6991. Store (Local2, FD12)
  6992. Sleep (0x0258)
  6993. Store (FAN2, Local0)
  6994. }
  6995. Else
  6996. {
  6997. Subtract (Local1, One, Local1)
  6998. Divide (Local1, 0x04, Local2, Local3)
  6999. Store (Zero, BSEL)
  7000. ShiftLeft (Local3, 0x06, Local3)
  7001. Store (FD21, Local4)
  7002. And (Local4, 0xBF, Local4)
  7003. Or (Local3, Local4, FD21)
  7004. Store (Local2, FD12)
  7005. Sleep (0x0258)
  7006. Store (FAN2, Local0)
  7007. }
  7008. }
  7009.  
  7010. If (LAnd (LEqual (Local0, 0xFF), LEqual (Local1, 0x07)))
  7011. {
  7012. Return (Zero)
  7013. }
  7014.  
  7015. If (LAnd (LEqual (Local0, Zero), LEqual (Local1, Zero)))
  7016. {
  7017. Return (0xFFFF)
  7018. }
  7019.  
  7020. Store (One, Local2)
  7021. While (Local1)
  7022. {
  7023. Multiply (Local2, 0x02, Local2)
  7024. Decrement (Local1)
  7025. }
  7026.  
  7027. Multiply (Local0, Local2, Local0)
  7028. Divide (0x00149970, Local0, Local1, Local0)
  7029. Return (Local0)
  7030. }
  7031.  
  7032. Method (HWF2, 0, NotSerialized)
  7033. {
  7034. Store (FAN3, Local0)
  7035. Store (Zero, BSEL)
  7036. And (FD21, 0x80, Local1)
  7037. ShiftRight (Local1, 0x07, Local1)
  7038. Multiply (Local1, 0x04, Local1)
  7039. Divide (FD13, 0x40, Local2, Local3)
  7040. Add (Local1, Local3, Local1)
  7041. While (LOr (LAnd (LGreater (Local0, 0xE6), LLess (Local1, 0x07)), LAnd (
  7042. LLess (Local0, 0x64), LGreater (Local1, Zero))))
  7043. {
  7044. If (LAnd (LGreater (Local0, 0xE6), LLess (Local1, 0x07)))
  7045. {
  7046. Add (Local1, One, Local1)
  7047. Divide (Local1, 0x04, Local2, Local3)
  7048. Store (Zero, BSEL)
  7049. ShiftLeft (Local3, 0x07, Local3)
  7050. Store (FD21, Local4)
  7051. And (Local4, 0x7F, Local4)
  7052. Or (Local3, Local4, FD21)
  7053. Store (FD13, Local3)
  7054. And (Local3, 0x3F, Local3)
  7055. Multiply (Local2, 0x40, Local2)
  7056. Add (Local3, Local2, Local2)
  7057. Store (Local2, FD13)
  7058. Sleep (0x012C)
  7059. Store (FAN3, Local0)
  7060. }
  7061. Else
  7062. {
  7063. Subtract (Local1, One, Local1)
  7064. Divide (Local1, 0x04, Local2, Local3)
  7065. Store (Zero, BSEL)
  7066. ShiftLeft (Local3, 0x07, Local3)
  7067. Store (FD21, Local4)
  7068. And (Local4, 0x7F, Local4)
  7069. Or (Local3, Local4, FD21)
  7070. Store (FD13, Local3)
  7071. And (Local3, 0x3F, Local3)
  7072. Multiply (Local2, 0x40, Local2)
  7073. Add (Local3, Local2, Local2)
  7074. Store (Local2, FD13)
  7075. Sleep (0x012C)
  7076. Store (FAN3, Local0)
  7077. }
  7078. }
  7079.  
  7080. If (LAnd (LEqual (Local0, 0xFF), LEqual (Local1, 0x07)))
  7081. {
  7082. Return (Zero)
  7083. }
  7084.  
  7085. If (LAnd (LEqual (Local0, Zero), LEqual (Local1, Zero)))
  7086. {
  7087. Return (0xFFFF)
  7088. }
  7089.  
  7090. Store (One, Local2)
  7091. While (Local1)
  7092. {
  7093. Multiply (Local2, 0x02, Local2)
  7094. Decrement (Local1)
  7095. }
  7096.  
  7097. Multiply (Local0, Local2, Local0)
  7098. Divide (0x00149970, Local0, Local1, Local0)
  7099. Return (Local0)
  7100. }
  7101.  
  7102. OperationRegion (HWRE, SystemIO, IOHW, 0x0A)
  7103. Field (HWRE, ByteAcc, NoLock, Preserve)
  7104. {
  7105. Offset (0x05),
  7106. HIDX, 8,
  7107. HDAT, 8
  7108. }
  7109.  
  7110. IndexField (HIDX, HDAT, ByteAcc, NoLock, Preserve)
  7111. {
  7112. Offset (0x04),
  7113. CHNM, 1,
  7114. CFNM, 1,
  7115. CHNS, 2,
  7116. CFNS, 2,
  7117. Offset (0x05),
  7118. SYST, 8,
  7119. TRGT, 8,
  7120. Offset (0x08),
  7121. SSDN, 8,
  7122. CSDN, 8,
  7123. SSUP, 8,
  7124. CSUP, 8,
  7125. Offset (0x20),
  7126. VCOR, 8,
  7127. V12V, 8,
  7128. Offset (0x23),
  7129. V33V, 8,
  7130. Offset (0x25),
  7131. V50V, 8,
  7132. Offset (0x27),
  7133. MBTE, 8,
  7134. FAN1, 8,
  7135. FAN2, 8,
  7136. FAN3, 8,
  7137. Offset (0x40),
  7138. HWST, 1,
  7139. Offset (0x41),
  7140. Offset (0x47),
  7141. , 4,
  7142. FD11, 2,
  7143. FD12, 2,
  7144. Offset (0x4B),
  7145. FD13, 8,
  7146. Offset (0x4E),
  7147. BSEL, 3,
  7148. Offset (0x4F),
  7149. Offset (0x50),
  7150. TSR1, 8,
  7151. TSR2, 1,
  7152. Offset (0x52),
  7153. Offset (0x5D),
  7154. FD21, 8
  7155. }
  7156. }
  7157.  
  7158. Scope (\)
  7159. {
  7160. Field (RAMW, ByteAcc, NoLock, Preserve)
  7161. {
  7162. Offset (0x20),
  7163. CPUQ, 8,
  7164. CPVL, 16,
  7165. CPVH, 16,
  7166. CPVC, 1
  7167. }
  7168. }
  7169.  
  7170. Scope (_SB.PCI0.SBRG.ASOC)
  7171. {
  7172. Mutex (AMTX, 0x00)
  7173. Name (CORV, Package (0x05)
  7174. {
  7175. 0x06020000,
  7176. "Vcore Voltage",
  7177. 0x0352,
  7178. 0x0640,
  7179. One
  7180. })
  7181. Name (V3VV, Package (0x05)
  7182. {
  7183. 0x06020001,
  7184. " +3.3 Voltage",
  7185. 0x0B9A,
  7186. 0x0E2E,
  7187. One
  7188. })
  7189. Name (V5VV, Package (0x05)
  7190. {
  7191. 0x06020002,
  7192. " +5 Voltage",
  7193. 0x1194,
  7194. 0x157C,
  7195. One
  7196. })
  7197. Name (VV12, Package (0x05)
  7198. {
  7199. 0x06020003,
  7200. " +12 Voltage",
  7201. 0x27D8,
  7202. 0x35E8,
  7203. One
  7204. })
  7205. Name (VPAR, Package (0x04)
  7206. {
  7207. Package (0x03)
  7208. {
  7209. Zero,
  7210. One,
  7211. Zero
  7212. },
  7213.  
  7214. Package (0x03)
  7215. {
  7216. 0x22,
  7217. 0x22,
  7218. Zero
  7219. },
  7220.  
  7221. Package (0x03)
  7222. {
  7223. 0x16,
  7224. 0x0A,
  7225. Zero
  7226. },
  7227.  
  7228. Package (0x03)
  7229. {
  7230. 0x38,
  7231. 0x0A,
  7232. Zero
  7233. }
  7234. })
  7235. Name (VBUF, Package (0x05)
  7236. {
  7237. 0x04,
  7238. CORV,
  7239. V3VV,
  7240. V5VV,
  7241. VV12
  7242. })
  7243. Method (VGET, 1, NotSerialized)
  7244. {
  7245. Store (Zero, Local0)
  7246. If (LEqual (Arg0, Zero))
  7247. {
  7248. Store (^^SIOR.HWV0 (), Local0)
  7249. }
  7250.  
  7251. If (LEqual (Arg0, One))
  7252. {
  7253. Store (^^SIOR.HWV3 (), Local0)
  7254. }
  7255.  
  7256. If (LEqual (Arg0, 0x02))
  7257. {
  7258. Store (^^SIOR.HWV5 (), Local0)
  7259. }
  7260.  
  7261. If (LEqual (Arg0, 0x03))
  7262. {
  7263. Store (^^SIOR.HWV1 (), Local0)
  7264. }
  7265.  
  7266. Return (Local0)
  7267. }
  7268.  
  7269. Name (CPUT, Package (0x05)
  7270. {
  7271. 0x06030000,
  7272. "CPU Temperature",
  7273. 0x0258,
  7274. 0x03B6,
  7275. 0x00010001
  7276. })
  7277. Name (MBTP, Package (0x05)
  7278. {
  7279. 0x06030001,
  7280. "MB Temperature",
  7281. 0x01C2,
  7282. 0x03B6,
  7283. 0x00010001
  7284. })
  7285. Name (TBUF, Package (0x03)
  7286. {
  7287. 0x02,
  7288. CPUT,
  7289. MBTP
  7290. })
  7291. Method (TGET, 1, NotSerialized)
  7292. {
  7293. Store (Zero, Local0)
  7294. If (LEqual (Arg0, Zero))
  7295. {
  7296. Store (^^SIOR.HWT2 (), Local0)
  7297. }
  7298.  
  7299. If (LEqual (Arg0, One))
  7300. {
  7301. Store (^^SIOR.HWT0 (), Local0)
  7302. }
  7303.  
  7304. Return (Local0)
  7305. }
  7306.  
  7307. Name (CPUF, Package (0x05)
  7308. {
  7309. 0x06040000,
  7310. "CPU FAN Speed",
  7311. 0x0258,
  7312. 0x1C20,
  7313. 0x00010001
  7314. })
  7315. Name (FBUF, Package (0x02)
  7316. {
  7317. One,
  7318. CPUF
  7319. })
  7320. Method (FGET, 1, NotSerialized)
  7321. {
  7322. Store (Zero, Local0)
  7323. If (LEqual (Arg0, Zero))
  7324. {
  7325. Store (^^SIOR.HWF1 (), Local0)
  7326. }
  7327.  
  7328. Return (Local0)
  7329. }
  7330.  
  7331. Name (QCFN, Package (0x06)
  7332. {
  7333. 0x04060003,
  7334. "CPU Q-Fan Control",
  7335. Zero,
  7336. One,
  7337. 0x02,
  7338. 0x00010001
  7339. })
  7340. Name (QBUF, Package (0x02)
  7341. {
  7342. One,
  7343. QCFN
  7344. })
  7345. Method (VSIF, 0, Serialized)
  7346. {
  7347. Return (VBUF)
  7348. }
  7349.  
  7350. Method (RVLT, 1, Serialized)
  7351. {
  7352. Acquire (AMTX, 0xFFFF)
  7353. And (Arg0, 0xFFFF, Local0)
  7354. Store (VGET (Local0), Local1)
  7355. Store (DerefOf (Index (DerefOf (Index (VPAR, Local0)), Zero)),
  7356. Local2)
  7357. Store (DerefOf (Index (DerefOf (Index (VPAR, Local0)), One)),
  7358. Local3)
  7359. Store (DerefOf (Index (DerefOf (Index (VPAR, Local0)), 0x02)),
  7360. Local4)
  7361. Multiply (Local1, Add (Local2, Local3), Local5)
  7362. Divide (Local5, Local3, , Local5)
  7363. Add (Local5, Local4, Local5)
  7364. Release (AMTX)
  7365. Return (Local5)
  7366. }
  7367.  
  7368. Method (SVLT, 1, Serialized)
  7369. {
  7370. Acquire (AMTX, 0xFFFF)
  7371. And (DerefOf (Index (Arg0, Zero)), 0xFFFF, Local0)
  7372. Store (DerefOf (Index (VBUF, Zero)), Local1)
  7373. If (LGreaterEqual (Local0, Local1))
  7374. {
  7375. Release (AMTX)
  7376. Return (Zero)
  7377. }
  7378.  
  7379. Increment (Local0)
  7380. Store (DerefOf (Index (Arg0, One)), Index (DerefOf (Index (VBUF,
  7381. Local0)), One))
  7382. Store (DerefOf (Index (Arg0, 0x02)), Index (DerefOf (Index (VBUF,
  7383. Local0)), 0x02))
  7384. Store (DerefOf (Index (Arg0, 0x03)), Index (DerefOf (Index (VBUF,
  7385. Local0)), 0x03))
  7386. Store (DerefOf (Index (Arg0, 0x04)), Index (DerefOf (Index (VBUF,
  7387. Local0)), 0x04))
  7388. Release (AMTX)
  7389. Return (One)
  7390. }
  7391.  
  7392. Method (TSIF, 0, Serialized)
  7393. {
  7394. Return (TBUF)
  7395. }
  7396.  
  7397. Method (RTMP, 1, NotSerialized)
  7398. {
  7399. Acquire (AMTX, 0xFFFF)
  7400. And (Arg0, 0xFFFF, Local0)
  7401. Store (TGET (Local0), Local1)
  7402. Release (AMTX)
  7403. Return (Local1)
  7404. }
  7405.  
  7406. Method (STMP, 1, Serialized)
  7407. {
  7408. Acquire (AMTX, 0xFFFF)
  7409. Store (And (DerefOf (Index (Arg0, Zero)), 0xFFFF), Local0)
  7410. Store (DerefOf (Index (TBUF, Zero)), Local1)
  7411. If (LGreaterEqual (Local0, Local1))
  7412. {
  7413. Release (AMTX)
  7414. Return (Zero)
  7415. }
  7416.  
  7417. Increment (Local0)
  7418. Store (DerefOf (Index (Arg0, One)), Index (DerefOf (Index (TBUF,
  7419. Local0)), One))
  7420. Store (DerefOf (Index (Arg0, 0x02)), Index (DerefOf (Index (TBUF,
  7421. Local0)), 0x02))
  7422. Store (DerefOf (Index (Arg0, 0x03)), Index (DerefOf (Index (TBUF,
  7423. Local0)), 0x03))
  7424. Store (DerefOf (Index (Arg0, 0x04)), Index (DerefOf (Index (TBUF,
  7425. Local0)), 0x04))
  7426. Release (AMTX)
  7427. Return (One)
  7428. }
  7429.  
  7430. Method (FSIF, 0, Serialized)
  7431. {
  7432. Return (FBUF)
  7433. }
  7434.  
  7435. Method (RFAN, 1, Serialized)
  7436. {
  7437. Acquire (AMTX, 0xFFFF)
  7438. And (Arg0, 0xFFFF, Local0)
  7439. Store (FGET (Local0), Local1)
  7440. Release (AMTX)
  7441. Return (Local1)
  7442. }
  7443.  
  7444. Method (SFAN, 1, Serialized)
  7445. {
  7446. Acquire (AMTX, 0xFFFF)
  7447. And (DerefOf (Index (Arg0, Zero)), 0xFFFF, Local0)
  7448. Store (DerefOf (Index (FBUF, Zero)), Local1)
  7449. If (LGreaterEqual (Local0, Local1))
  7450. {
  7451. Release (AMTX)
  7452. Return (Zero)
  7453. }
  7454.  
  7455. Increment (Local0)
  7456. Store (DerefOf (Index (Arg0, One)), Index (DerefOf (Index (FBUF,
  7457. Local0)), One))
  7458. Store (DerefOf (Index (Arg0, 0x02)), Index (DerefOf (Index (FBUF,
  7459. Local0)), 0x02))
  7460. Store (DerefOf (Index (Arg0, 0x03)), Index (DerefOf (Index (FBUF,
  7461. Local0)), 0x03))
  7462. Store (DerefOf (Index (Arg0, 0x04)), Index (DerefOf (Index (FBUF,
  7463. Local0)), 0x04))
  7464. Release (AMTX)
  7465. Return (One)
  7466. }
  7467.  
  7468. Method (QFIF, 0, NotSerialized)
  7469. {
  7470. If (LEqual (CPUQ, Zero))
  7471. {
  7472. And (DerefOf (Index (QCFN, 0x05)), 0xFFFDFFFF, Local0)
  7473. Store (Local0, Index (QCFN, 0x05))
  7474. }
  7475. Else
  7476. {
  7477. Or (DerefOf (Index (QCFN, 0x05)), 0x00020000, Local0)
  7478. Store (Local0, Index (QCFN, 0x05))
  7479. }
  7480.  
  7481. Return (QBUF)
  7482. }
  7483.  
  7484. Method (GCQV, 1, NotSerialized)
  7485. {
  7486. If (LEqual (Arg0, Zero))
  7487. {
  7488. Return (CPVL)
  7489. }
  7490.  
  7491. If (LEqual (Arg0, One))
  7492. {
  7493. Return (CPVH)
  7494. }
  7495.  
  7496. If (LEqual (Arg0, 0x02))
  7497. {
  7498. Return (CPVC)
  7499. }
  7500.  
  7501. Return (Zero)
  7502. }
  7503.  
  7504. Method (QFST, 1, NotSerialized)
  7505. {
  7506. If (LEqual (Arg0, DerefOf (Index (QCFN, Zero))))
  7507. {
  7508. Return (CQST)
  7509. }
  7510.  
  7511. Return (Zero)
  7512. }
  7513. }
  7514.  
  7515. Scope (_SB.PCI0)
  7516. {
  7517. Device (GFX0)
  7518. {
  7519. Name (_ADR, 0x00020000)
  7520. OperationRegion (IGDM, SystemMemory, 0xDFF8E0F4, 0x2000)
  7521. Field (IGDM, AnyAcc, NoLock, Preserve)
  7522. {
  7523. SIGN, 128,
  7524. SIZE, 32,
  7525. OVER, 32,
  7526. SVER, 256,
  7527. VVER, 128,
  7528. GVER, 128,
  7529. MBOX, 32,
  7530. Offset (0xF0),
  7531. IBTT, 4,
  7532. IPSC, 2,
  7533. IPAT, 4,
  7534. IBIA, 3,
  7535. IBLC, 2,
  7536. Offset (0xF2),
  7537. ITVF, 4,
  7538. ITVM, 4,
  7539. IDVM, 1,
  7540. IDVS, 2,
  7541. ISSC, 1,
  7542. Offset (0xF4),
  7543. Offset (0x100),
  7544. DRDY, 32,
  7545. CSTS, 32,
  7546. CEVT, 32,
  7547. Offset (0x120),
  7548. DIDL, 32,
  7549. DDL2, 32,
  7550. DDL3, 32,
  7551. DDL4, 32,
  7552. DDL5, 32,
  7553. DDL6, 32,
  7554. DDL7, 32,
  7555. DDL8, 32,
  7556. CPDL, 32,
  7557. CPL2, 32,
  7558. CPL3, 32,
  7559. CPL4, 32,
  7560. CPL5, 32,
  7561. CPL6, 32,
  7562. CPL7, 32,
  7563. CPL8, 32,
  7564. CADL, 32,
  7565. CAL2, 32,
  7566. CAL3, 32,
  7567. CAL4, 32,
  7568. CAL5, 32,
  7569. CAL6, 32,
  7570. CAL7, 32,
  7571. CAL8, 32,
  7572. NADL, 32,
  7573. NDL2, 32,
  7574. NDL3, 32,
  7575. NDL4, 32,
  7576. NDL5, 32,
  7577. NDL6, 32,
  7578. NDL7, 32,
  7579. NDL8, 32,
  7580. ASLP, 32,
  7581. TIDX, 32,
  7582. CHPD, 32,
  7583. CLID, 32,
  7584. CDCK, 32,
  7585. SXSW, 32,
  7586. EVTS, 32,
  7587. CNOT, 32,
  7588. NRDY, 32,
  7589. Offset (0x200),
  7590. SCIE, 1,
  7591. GEFC, 4,
  7592. GXFC, 3,
  7593. GESF, 8,
  7594. Offset (0x204),
  7595. PARM, 32,
  7596. DSLP, 32,
  7597. Offset (0x300),
  7598. ARDY, 32,
  7599. ASLC, 32,
  7600. TCHE, 32,
  7601. ALSI, 32,
  7602. BCLP, 32,
  7603. PFIT, 32,
  7604. Offset (0x400),
  7605. GVD1, 57344
  7606. }
  7607.  
  7608. OperationRegion (TCOI, SystemIO, TOBS, 0x08)
  7609. Field (TCOI, WordAcc, NoLock, Preserve)
  7610. {
  7611. Offset (0x04),
  7612. , 9,
  7613. SCIS, 1,
  7614. Offset (0x06)
  7615. }
  7616.  
  7617. Name (DBTB, Package (0x15)
  7618. {
  7619. Zero,
  7620. 0x07,
  7621. 0x38,
  7622. 0x01C0,
  7623. 0x0E00,
  7624. 0x3F,
  7625. 0x01C7,
  7626. 0x0E07,
  7627. 0x01F8,
  7628. 0x0E38,
  7629. 0x0FC0,
  7630. Zero,
  7631. Zero,
  7632. Zero,
  7633. Zero,
  7634. Zero,
  7635. 0x7000,
  7636. 0x7007,
  7637. 0x7038,
  7638. 0x71C0,
  7639. 0x7E00
  7640. })
  7641. Method (GSCI, 0, NotSerialized)
  7642. {
  7643. If (LEqual (GEFC, 0x04))
  7644. {
  7645. Store (GBDA (), GXFC)
  7646. }
  7647.  
  7648. If (LEqual (GEFC, 0x06))
  7649. {
  7650. Store (SBCB (), GXFC)
  7651. }
  7652.  
  7653. Store (One, SCIS)
  7654. Store (Zero, GEFC)
  7655. Store (Zero, GSSE)
  7656. Store (Zero, SCIE)
  7657. Return (Zero)
  7658. }
  7659.  
  7660. Method (GBDA, 0, NotSerialized)
  7661. {
  7662. If (LEqual (GESF, Zero))
  7663. {
  7664. Store (0x0279, PARM)
  7665. Store (Zero, GESF)
  7666. Return (SUCC)
  7667. }
  7668.  
  7669. If (LEqual (GESF, One))
  7670. {
  7671. Store (0x20, PARM)
  7672. Store (Zero, GESF)
  7673. Return (SUCC)
  7674. }
  7675.  
  7676. If (LEqual (GESF, 0x04))
  7677. {
  7678. And (PARM, 0xEFFF0000, PARM)
  7679. And (PARM, ShiftLeft (DerefOf (Index (DBTB, IBTT)), 0x10),
  7680. PARM)
  7681. Or (IBTT, PARM, PARM)
  7682. Store (Zero, GESF)
  7683. Return (SUCC)
  7684. }
  7685.  
  7686. If (LEqual (GESF, 0x05))
  7687. {
  7688. Store (IPSC, PARM)
  7689. Or (PARM, ShiftLeft (IPAT, 0x08), PARM)
  7690. Add (PARM, 0x0100, PARM)
  7691. Or (PARM, ShiftLeft (LIDS, 0x10), PARM)
  7692. XOr (PARM, 0x00010000, PARM)
  7693. Or (PARM, ShiftLeft (IBIA, 0x14), PARM)
  7694. Store (Zero, GESF)
  7695. Return (SUCC)
  7696. }
  7697.  
  7698. If (LEqual (GESF, 0x06))
  7699. {
  7700. Store (ITVF, PARM)
  7701. Or (PARM, ShiftLeft (ITVM, 0x04), PARM)
  7702. Store (Zero, GESF)
  7703. Return (SUCC)
  7704. }
  7705.  
  7706. If (LEqual (GESF, 0x07))
  7707. {
  7708. Name (MEMS, 0x0D)
  7709. Store (GIVD, PARM)
  7710. XOr (PARM, One, PARM)
  7711. Or (PARM, ShiftLeft (GMFN, One), PARM)
  7712. Or (PARM, 0x1800, PARM)
  7713. Or (ShiftLeft (CDCT, 0x15), PARM, PARM)
  7714. If (LEqual (IDVM, One))
  7715. {
  7716. Store (0x11, MEMS)
  7717. }
  7718.  
  7719. If (LLess (TASM, M512))
  7720. {
  7721. Or (PARM, ShiftLeft (One, MEMS), PARM)
  7722. }
  7723. Else
  7724. {
  7725. If (LLess (TASM, M1GB))
  7726. {
  7727. If (LLess (IDVS, 0x03))
  7728. {
  7729. Or (PARM, ShiftLeft (IDVS, MEMS), PARM)
  7730. }
  7731. Else
  7732. {
  7733. Or (PARM, ShiftLeft (0x02, MEMS), PARM)
  7734. }
  7735. }
  7736. Else
  7737. {
  7738. Or (PARM, ShiftLeft (IDVS, MEMS), PARM)
  7739. }
  7740. }
  7741.  
  7742. Store (One, GESF)
  7743. Return (SUCC)
  7744. }
  7745.  
  7746. If (LEqual (GESF, 0x0A))
  7747. {
  7748. Store (Zero, PARM)
  7749. If (ISSC)
  7750. {
  7751. Or (PARM, 0x03, PARM)
  7752. }
  7753.  
  7754. Store (Zero, GESF)
  7755. Return (SUCC)
  7756. }
  7757.  
  7758. Store (Zero, GESF)
  7759. Return (CRIT)
  7760. }
  7761.  
  7762. Method (SBCB, 0, NotSerialized)
  7763. {
  7764. If (LEqual (GESF, Zero))
  7765. {
  7766. Store (0x20, PARM)
  7767. Store (Zero, GESF)
  7768. Return (SUCC)
  7769. }
  7770.  
  7771. If (LEqual (GESF, One))
  7772. {
  7773. Store (Zero, GESF)
  7774. Store (Zero, PARM)
  7775. Return (SUCC)
  7776. }
  7777.  
  7778. If (LEqual (GESF, 0x03))
  7779. {
  7780. Store (Zero, GESF)
  7781. Store (Zero, PARM)
  7782. Return (SUCC)
  7783. }
  7784.  
  7785. If (LEqual (GESF, 0x04))
  7786. {
  7787. Store (Zero, GESF)
  7788. Store (Zero, PARM)
  7789. Return (SUCC)
  7790. }
  7791.  
  7792. If (LEqual (GESF, 0x05))
  7793. {
  7794. Store (Zero, GESF)
  7795. Store (Zero, PARM)
  7796. Return (SUCC)
  7797. }
  7798.  
  7799. If (LEqual (GESF, 0x06))
  7800. {
  7801. ShiftRight (PARM, 0x1C, Local0)
  7802. If (LEqual (Local0, Zero))
  7803. {
  7804. And (PARM, 0x0F, ITVF)
  7805. And (PARM, 0xF0, ITVM)
  7806. }
  7807.  
  7808. Store (Zero, GESF)
  7809. Store (Zero, PARM)
  7810. Return (SUCC)
  7811. }
  7812.  
  7813. If (LEqual (GESF, 0x07))
  7814. {
  7815. Store (Zero, GESF)
  7816. Store (Zero, PARM)
  7817. Return (SUCC)
  7818. }
  7819.  
  7820. If (LEqual (GESF, 0x08))
  7821. {
  7822. Store (Zero, GESF)
  7823. Store (Zero, PARM)
  7824. Return (SUCC)
  7825. }
  7826.  
  7827. If (LEqual (GESF, 0x09))
  7828. {
  7829. And (PARM, 0xFF, IBTT)
  7830. Store (Zero, GESF)
  7831. Store (Zero, PARM)
  7832. Return (SUCC)
  7833. }
  7834.  
  7835. If (LEqual (GESF, 0x0A))
  7836. {
  7837. ShiftRight (PARM, 0x1C, Local0)
  7838. If (LEqual (Local0, Zero))
  7839. {
  7840. And (PARM, 0xFF, IPSC)
  7841. Subtract (And (ShiftRight (PARM, 0x08), 0xFF), One, IPAT)
  7842. And (ShiftRight (PARM, 0x12), 0x03, IBLC)
  7843. And (ShiftRight (PARM, 0x14), 0x07, IBIA)
  7844. }
  7845.  
  7846. Store (Zero, GESF)
  7847. Store (Zero, PARM)
  7848. Return (SUCC)
  7849. }
  7850.  
  7851. If (LEqual (GESF, 0x0B))
  7852. {
  7853. If (LEqual (And (ShiftRight (PARM, 0x0B), 0x03), 0x02))
  7854. {
  7855. And (ShiftRight (PARM, 0x0D), 0x0F, Local0)
  7856. And (ShiftRight (PARM, 0x11), 0x0F, Local1)
  7857. If (Local0)
  7858. {
  7859. Store (Zero, IDVM)
  7860. Store (Local0, IDVS)
  7861. }
  7862.  
  7863. If (Local1)
  7864. {
  7865. Store (One, IDVM)
  7866. Store (Local1, IDVS)
  7867. }
  7868. }
  7869.  
  7870. Store (Zero, GESF)
  7871. Store (Zero, PARM)
  7872. Return (SUCC)
  7873. }
  7874.  
  7875. If (LEqual (GESF, 0x10))
  7876. {
  7877. Store (Zero, GESF)
  7878. Store (Zero, PARM)
  7879. Return (SUCC)
  7880. }
  7881.  
  7882. If (LEqual (GESF, 0x11))
  7883. {
  7884. Store (ShiftLeft (LIDS, 0x08), PARM)
  7885. Store (Zero, GESF)
  7886. Return (SUCC)
  7887. }
  7888.  
  7889. If (LEqual (GESF, 0x12))
  7890. {
  7891. If (And (PARM, One))
  7892. {
  7893. If (LEqual (ShiftRight (PARM, One), One))
  7894. {
  7895. Store (One, ISSC)
  7896. }
  7897. Else
  7898. {
  7899. Store (Zero, GESF)
  7900. Return (CRIT)
  7901. }
  7902. }
  7903. Else
  7904. {
  7905. Store (Zero, ISSC)
  7906. }
  7907.  
  7908. Store (Zero, GESF)
  7909. Store (Zero, PARM)
  7910. Return (SUCC)
  7911. }
  7912.  
  7913. If (LEqual (GESF, 0x13))
  7914. {
  7915. Store (Zero, GESF)
  7916. Store (Zero, PARM)
  7917. Return (SUCC)
  7918. }
  7919.  
  7920. Store (Zero, GESF)
  7921. Return (SUCC)
  7922. }
  7923.  
  7924. Scope (^^PCI0)
  7925. {
  7926. OperationRegion (MCHP, PCI_Config, 0x40, 0xC0)
  7927. Field (MCHP, AnyAcc, NoLock, Preserve)
  7928. {
  7929. Offset (0x60),
  7930. TASM, 10,
  7931. Offset (0x62)
  7932. }
  7933. }
  7934.  
  7935. OperationRegion (IGDP, PCI_Config, 0x40, 0xC0)
  7936. Field (IGDP, AnyAcc, NoLock, Preserve)
  7937. {
  7938. Offset (0x12),
  7939. , 1,
  7940. GIVD, 1,
  7941. , 2,
  7942. GUMA, 3,
  7943. Offset (0x14),
  7944. , 4,
  7945. GMFN, 1,
  7946. Offset (0x18),
  7947. Offset (0x8C),
  7948. CDCT, 10,
  7949. Offset (0x8E),
  7950. Offset (0xA8),
  7951. GSSE, 1,
  7952. GSSB, 14,
  7953. GSES, 1,
  7954. Offset (0xBC),
  7955. ASLS, 32
  7956. }
  7957.  
  7958. Name (M512, 0x08)
  7959. Name (M1GB, 0x10)
  7960. Scope (\_GPE)
  7961. {
  7962. Method (_L06, 0, NotSerialized)
  7963. {
  7964. \_SB.PCI0.GFX0.GSCI ()
  7965. }
  7966. }
  7967.  
  7968. Name (OPBS, 0xFFFFFF00)
  7969. Method (OPTS, 1, NotSerialized)
  7970. {
  7971. If (LEqual (Arg0, 0x03))
  7972. {
  7973. Store (ASLS, OPBS)
  7974. }
  7975. }
  7976.  
  7977. Method (OWAK, 1, NotSerialized)
  7978. {
  7979. If (LEqual (Arg0, 0x03))
  7980. {
  7981. Store (OPBS, ASLS)
  7982. Store (One, GSES)
  7983. }
  7984. }
  7985. }
  7986. }
  7987.  
  7988. Scope (_SB)
  7989. {
  7990. Scope (PCI0)
  7991. {
  7992. Name (CRS, ResourceTemplate ()
  7993. {
  7994. WordBusNumber (ResourceProducer, MinFixed, MaxFixed, PosDecode,
  7995. 0x0000, // Granularity
  7996. 0x0000, // Range Minimum
  7997. 0x00FF, // Range Maximum
  7998. 0x0000, // Translation Offset
  7999. 0x0100, // Length
  8000. ,, )
  8001. IO (Decode16,
  8002. 0x0CF8, // Range Minimum
  8003. 0x0CF8, // Range Maximum
  8004. 0x01, // Alignment
  8005. 0x08, // Length
  8006. )
  8007. WordIO (ResourceProducer, MinFixed, MaxFixed, PosDecode, EntireRange,
  8008. 0x0000, // Granularity
  8009. 0x0000, // Range Minimum
  8010. 0x0CF7, // Range Maximum
  8011. 0x0000, // Translation Offset
  8012. 0x0CF8, // Length
  8013. ,, , TypeStatic)
  8014. WordIO (ResourceProducer, MinFixed, MaxFixed, PosDecode, EntireRange,
  8015. 0x0000, // Granularity
  8016. 0x0D00, // Range Minimum
  8017. 0xFFFF, // Range Maximum
  8018. 0x0000, // Translation Offset
  8019. 0xF300, // Length
  8020. ,, , TypeStatic)
  8021. DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
  8022. 0x00000000, // Granularity
  8023. 0x000A0000, // Range Minimum
  8024. 0x000BFFFF, // Range Maximum
  8025. 0x00000000, // Translation Offset
  8026. 0x00020000, // Length
  8027. ,, , AddressRangeMemory, TypeStatic)
  8028. DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
  8029. 0x00000000, // Granularity
  8030. 0x000C0000, // Range Minimum
  8031. 0x000DFFFF, // Range Maximum
  8032. 0x00000000, // Translation Offset
  8033. 0x00020000, // Length
  8034. ,, _Y16, AddressRangeMemory, TypeStatic)
  8035. DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
  8036. 0x00000000, // Granularity
  8037. 0x00000000, // Range Minimum
  8038. 0x00000000, // Range Maximum
  8039. 0x00000000, // Translation Offset
  8040. 0x00000000, // Length
  8041. ,, _Y17, AddressRangeMemory, TypeStatic)
  8042. DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
  8043. 0x00000000, // Granularity
  8044. 0x00000000, // Range Minimum
  8045. 0x00000000, // Range Maximum
  8046. 0x00000000, // Translation Offset
  8047. 0x00000000, // Length
  8048. ,, _Y18, AddressRangeMemory, TypeStatic)
  8049. })
  8050. CreateDWordField (CRS, \_SB.PCI0._Y16._MIN, MIN5)
  8051. CreateDWordField (CRS, \_SB.PCI0._Y16._MAX, MAX5)
  8052. CreateDWordField (CRS, \_SB.PCI0._Y16._LEN, LEN5)
  8053. CreateDWordField (CRS, \_SB.PCI0._Y17._MIN, MIN6)
  8054. CreateDWordField (CRS, \_SB.PCI0._Y17._MAX, MAX6)
  8055. CreateDWordField (CRS, \_SB.PCI0._Y17._LEN, LEN6)
  8056. CreateDWordField (CRS, \_SB.PCI0._Y18._MIN, MIN7)
  8057. CreateDWordField (CRS, \_SB.PCI0._Y18._MAX, MAX7)
  8058. CreateDWordField (CRS, \_SB.PCI0._Y18._LEN, LEN7)
  8059. Method (_CRS, 0, NotSerialized)
  8060. {
  8061. Store (MG1L, Local0)
  8062. If (Local0)
  8063. {
  8064. Store (MG1B, MIN5)
  8065. Store (MG1L, LEN5)
  8066. Add (MIN5, Decrement (Local0), MAX5)
  8067. }
  8068.  
  8069. Store (MG2B, MIN6)
  8070. Store (MG2L, LEN6)
  8071. Store (MG2L, Local0)
  8072. Add (MIN6, Decrement (Local0), MAX6)
  8073. Store (MG3B, MIN7)
  8074. Store (MG3L, LEN7)
  8075. Store (MG3L, Local0)
  8076. Add (MIN7, Decrement (Local0), MAX7)
  8077. Return (CRS)
  8078. }
  8079. }
  8080. }
  8081.  
  8082. Name (WOTB, Zero)
  8083. Name (WSSB, Zero)
  8084. Name (WAXB, Zero)
  8085. Method (_PTS, 1, NotSerialized)
  8086. {
  8087. Store (Arg0, DBG8)
  8088. PTS (Arg0)
  8089. Store (Zero, Index (WAKP, Zero))
  8090. Store (Zero, Index (WAKP, One))
  8091. If (LAnd (LEqual (Arg0, 0x04), LEqual (OSFL (), 0x02)))
  8092. {
  8093. Sleep (0x0BB8)
  8094. }
  8095.  
  8096. Store (ASSB, WSSB)
  8097. Store (AOTB, WOTB)
  8098. Store (AAXB, WAXB)
  8099. Store (Arg0, ASSB)
  8100. Store (OSFL (), AOTB)
  8101. Store (Zero, AAXB)
  8102. }
  8103.  
  8104. Method (_WAK, 1, NotSerialized)
  8105. {
  8106. ShiftLeft (Arg0, 0x04, DBG8)
  8107. WAK (Arg0)
  8108. If (IOWK) {}
  8109. Else
  8110. {
  8111. Notify (\_SB.PWRB, 0x02)
  8112. }
  8113.  
  8114. If (ASSB)
  8115. {
  8116. Store (WSSB, ASSB)
  8117. Store (WOTB, AOTB)
  8118. Store (WAXB, AAXB)
  8119. }
  8120.  
  8121. If (DerefOf (Index (WAKP, Zero)))
  8122. {
  8123. Store (Zero, Index (WAKP, One))
  8124. }
  8125. Else
  8126. {
  8127. Store (Arg0, Index (WAKP, One))
  8128. }
  8129.  
  8130. Return (WAKP)
  8131. }
  8132.  
  8133. OperationRegion (IORK, SystemIO, 0xB3, One)
  8134. Field (IORK, ByteAcc, NoLock, Preserve)
  8135. {
  8136. IOWK, 8
  8137. }
  8138.  
  8139. Name (_S0, Package (0x04)
  8140. {
  8141. Zero,
  8142. Zero,
  8143. Zero,
  8144. Zero
  8145. })
  8146. If (SS1)
  8147. {
  8148. Name (_S1, Package (0x04)
  8149. {
  8150. One,
  8151. Zero,
  8152. Zero,
  8153. Zero
  8154. })
  8155. }
  8156.  
  8157. If (SS3)
  8158. {
  8159. Name (_S3, Package (0x04)
  8160. {
  8161. 0x05,
  8162. Zero,
  8163. Zero,
  8164. Zero
  8165. })
  8166. }
  8167.  
  8168. If (SS4)
  8169. {
  8170. Name (_S4, Package (0x04)
  8171. {
  8172. 0x06,
  8173. Zero,
  8174. Zero,
  8175. Zero
  8176. })
  8177. }
  8178.  
  8179. Name (_S5, Package (0x04)
  8180. {
  8181. 0x07,
  8182. Zero,
  8183. Zero,
  8184. Zero
  8185. })
  8186. Method (PTS, 1, NotSerialized)
  8187. {
  8188. If (Arg0)
  8189. {
  8190. \_SB.PCI0.SBRG.SIOS (Arg0)
  8191. \_SB.PCI0.NPTS (Arg0)
  8192. \_SB.PCI0.SBRG.SPTS (Arg0)
  8193. \_SB.PCI0.GFX0.OPTS (Arg0)
  8194. }
  8195. }
  8196.  
  8197. Method (WAK, 1, NotSerialized)
  8198. {
  8199. \_SB.PCI0.SBRG.SIOW (Arg0)
  8200. \_SB.PCI0.NWAK (Arg0)
  8201. \_SB.PCI0.SBRG.SWAK (Arg0)
  8202. \_SB.PCI0.GFX0.OWAK (Arg0)
  8203. \_SB.PCI0.SBRG.ASOC.GWS3 (Arg0)
  8204. }
  8205. }
  8206.  
  8207.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement