Advertisement
Guest User

ubuntu

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