Advertisement
Guest User

Macbook Air 6,2 DSDT

a guest
Sep 30th, 2013
1,203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 269.27 KB | None | 0 0
  1. /*
  2. * Intel ACPI Component Architecture
  3. * AML Disassembler version 20100528
  4. *
  5. * Disassembly of DSDT, Tue Oct 1 02:31:35 2013
  6. *
  7. *
  8. * Original Table Header:
  9. * Signature "DSDT"
  10. * Length 0x00007B3E (31550)
  11. * Revision 0x03
  12. * Checksum 0xDD
  13. * OEM ID "APPLE "
  14. * OEM Table ID "MacBookA"
  15. * OEM Revision 0x00060001 (393217)
  16. * Compiler ID "INTL"
  17. * Compiler Version 0x20100915 (537921813)
  18. */
  19. DefinitionBlock ("DSDT.aml", "DSDT", 3, "APPLE ", "MacBookA", 0x00060001)
  20. {
  21. External (PDC7)
  22. External (PDC6)
  23. External (PDC5)
  24. External (PDC4)
  25. External (PDC3)
  26. External (PDC2)
  27. External (PDC1)
  28. External (PDC0)
  29. External (HNOT, MethodObj) // 1 Arguments
  30. External (SNXD)
  31. External (IDAB)
  32. External (HDOS, MethodObj) // 0 Arguments
  33. External (\_SB_.PCI0.RMCW, MethodObj) // 0 Arguments
  34. External (\_SB_.PCI0.DTLK, MethodObj) // 0 Arguments
  35. External (\_SB_.PCI0.XHC1)
  36. External (\_SB_.PCI0.TGPE, MethodObj) // 0 Arguments
  37. External (\_SB_.PCI0.RMCR, MethodObj) // 0 Arguments
  38. External (\_SB_.PCI0.DTBP)
  39.  
  40. Name (SP2O, 0x4E)
  41. Name (SP1O, 0x164E)
  42. Name (IO1B, 0x0600)
  43. Name (IO1L, 0x70)
  44. Name (IO2B, 0x0680)
  45. Name (IO2L, 0x20)
  46. Name (IO3B, 0x0290)
  47. Name (IO3L, 0x10)
  48. Name (SP3O, 0x2E)
  49. Name (IO4B, 0x0A20)
  50. Name (IO4L, 0x20)
  51. Name (MCHB, 0xFED10000)
  52. Name (MCHL, 0x4000)
  53. Name (EGPB, 0xFED19000)
  54. Name (EGPL, 0x1000)
  55. Name (DMIB, 0xFED18000)
  56. Name (DMIL, 0x1000)
  57. Name (IFPB, 0xFED14000)
  58. Name (IFPL, 0x1000)
  59. Name (PEBS, 0xE0000000)
  60. Name (PELN, 0x04000000)
  61. Name (TTTB, 0xFED20000)
  62. Name (TTTL, 0x00020000)
  63. Name (SMBS, 0xEFA0)
  64. Name (SMBL, 0x10)
  65. Name (PBLK, 0x0410)
  66. Name (PMLN, 0x80)
  67. Name (LVL2, 0x0414)
  68. Name (LVL3, 0x0415)
  69. Name (LVL4, 0x0416)
  70. Name (SMIP, 0xB2)
  71. Name (GPBS, 0x0800)
  72. Name (GPLN, 0x80)
  73. Name (APCB, 0xFEC00000)
  74. Name (APCL, 0x1000)
  75. Name (PM30, 0x0430)
  76. Name (SRCB, 0xFED1C000)
  77. Name (SRCL, 0x4000)
  78. Name (SUSW, 0xFF)
  79. Name (HPTB, 0xFED00000)
  80. Name (HPTC, 0xFED1F404)
  81. Name (ACPH, 0xDE)
  82. Name (ASSB, 0x00)
  83. Name (AOTB, 0x00)
  84. Name (AAXB, 0x00)
  85. Name (PEHP, 0x01)
  86. Name (SHPC, 0x01)
  87. Name (PEPM, 0x01)
  88. Name (PEER, 0x01)
  89. Name (PECS, 0x01)
  90. Name (ITKE, 0x00)
  91. Name (DSSP, 0x00)
  92. Name (FHPP, 0x01)
  93. Name (FMBL, 0x01)
  94. Name (FDTP, 0x02)
  95. Name (BSH, 0x00)
  96. Name (BEL, 0x01)
  97. Name (BEH, 0x02)
  98. Name (BRH, 0x03)
  99. Name (BTF, 0x04)
  100. Name (BHC, 0x05)
  101. Name (BYB, 0x06)
  102. Name (BPH, 0x07)
  103. Name (BSHS, 0x08)
  104. Name (BELS, 0x09)
  105. Name (BRHS, 0x0A)
  106. Name (BTFS, 0x0B)
  107. Name (BEHS, 0x0C)
  108. Name (BPHS, 0x0D)
  109. Name (BTL, 0x10)
  110. Name (BOF, 0x20)
  111. Name (BEF, 0x21)
  112. Name (BLLE, 0x22)
  113. Name (BLLC, 0x23)
  114. Name (BLCA, 0x24)
  115. Name (TCGM, 0x01)
  116. Name (TRTP, 0x01)
  117. Name (TRTD, 0x02)
  118. Name (TRTI, 0x03)
  119. Name (GCDD, 0x01)
  120. Name (DSTA, 0x0A)
  121. Name (DSLO, 0x0C)
  122. Name (DSLC, 0x0E)
  123. Name (PITS, 0x10)
  124. Name (SBCS, 0x12)
  125. Name (SALS, 0x13)
  126. Name (LSSS, 0x2A)
  127. Name (SOOT, 0x35)
  128. Name (PDBR, 0x4D)
  129. Name (WOWE, 0x00)
  130. Name (TAPD, 0x00)
  131. OperationRegion (GNVS, SystemMemory, 0x82D3EA90, 0x026D)
  132. Field (GNVS, AnyAcc, Lock, Preserve)
  133. {
  134. OSYS, 16,
  135. SMIF, 8,
  136. PRM0, 8,
  137. PRM1, 8,
  138. SCIF, 8,
  139. PRM2, 8,
  140. PRM3, 8,
  141. LCKF, 8,
  142. PRM4, 8,
  143. PRM5, 8,
  144. P80D, 32,
  145. LIDS, 8,
  146. PWRS, 8,
  147. DBGS, 8,
  148. THOF, 8,
  149. ACT1, 8,
  150. ACTT, 8,
  151. PSVT, 8,
  152. TC1V, 8,
  153. TC2V, 8,
  154. TSPV, 8,
  155. CRTT, 8,
  156. DTSE, 8,
  157. DTS1, 8,
  158. DTS2, 8,
  159. DTSF, 8,
  160. Offset (0x25),
  161. REVN, 8,
  162. Offset (0x28),
  163. APIC, 8,
  164. TCNT, 8,
  165. PCP0, 8,
  166. PCP1, 8,
  167. PPCM, 8,
  168. PPMF, 32,
  169. C67L, 8,
  170. NATP, 8,
  171. CMAP, 8,
  172. CMBP, 8,
  173. LPTP, 8,
  174. FDCP, 8,
  175. CMCP, 8,
  176. CIRP, 8,
  177. SMSC, 8,
  178. W381, 8,
  179. SMC1, 8,
  180. EMAE, 8,
  181. EMAP, 16,
  182. EMAL, 16,
  183. Offset (0x42),
  184. MEFE, 8,
  185. DSTS, 8,
  186. Offset (0x46),
  187. TPMP, 8,
  188. TPME, 8,
  189. MORD, 8,
  190. TCGP, 8,
  191. PPRP, 32,
  192. PPRQ, 8,
  193. LPPR, 8,
  194. GTF0, 56,
  195. GTF2, 56,
  196. IDEM, 8,
  197. GTF1, 56,
  198. BDID, 8,
  199. Offset (0x78),
  200. OSCC, 8,
  201. NEXP, 8,
  202. SDGV, 8,
  203. SDDV, 8,
  204. Offset (0x81),
  205. DSEN, 8,
  206. ECON, 8,
  207. GPIC, 8,
  208. CTYP, 8,
  209. L01C, 8,
  210. VFN0, 8,
  211. VFN1, 8,
  212. ATMC, 8,
  213. PTMC, 8,
  214. ATRA, 8,
  215. PTRA, 8,
  216. PNHM, 32,
  217. TBAB, 32,
  218. TBAH, 32,
  219. RTIP, 8,
  220. TSOD, 8,
  221. ATPC, 8,
  222. PTPC, 8,
  223. PFLV, 8,
  224. BREV, 8,
  225. DPBM, 8,
  226. DPCM, 8,
  227. DPDM, 8,
  228. SDID, 8,
  229. BLCP, 8,
  230. BLCC, 8,
  231. Offset (0xA5),
  232. BLCT, 32,
  233. BLCB, 32,
  234. Offset (0xB2),
  235. NHIB, 32,
  236. GVNV, 32,
  237. MM64, 8,
  238. Offset (0x12C),
  239. SARV, 32,
  240. ASLB, 32,
  241. IMON, 8,
  242. IGDS, 8,
  243. CADL, 8,
  244. PADL, 8,
  245. CSTE, 16,
  246. NSTE, 16,
  247. DID9, 32,
  248. DIDA, 32,
  249. DIDB, 32,
  250. IBTT, 8,
  251. IPAT, 8,
  252. IPSC, 8,
  253. IBLC, 8,
  254. IBIA, 8,
  255. ISSC, 8,
  256. IPCF, 8,
  257. IDMS, 8,
  258. IF1E, 8,
  259. HVCO, 8,
  260. NXD1, 32,
  261. NXD2, 32,
  262. NXD3, 32,
  263. NXD4, 32,
  264. NXD5, 32,
  265. NXD6, 32,
  266. NXD7, 32,
  267. NXD8, 32,
  268. GSMI, 8,
  269. PAVP, 8,
  270. GLID, 8,
  271. KSV0, 32,
  272. KSV1, 8,
  273. BBAR, 32,
  274. BLCS, 8,
  275. BRTL, 8,
  276. ALSE, 8,
  277. ALAF, 8,
  278. LLOW, 8,
  279. LHIH, 8,
  280. ALFP, 8,
  281. AUDA, 32,
  282. AUDB, 32,
  283. AUDC, 32,
  284. DIDC, 32,
  285. DIDD, 32,
  286. DIDE, 32,
  287. DIDF, 32,
  288. CADR, 32,
  289. CCNT, 8,
  290. Offset (0x1F4),
  291. SGMD, 8,
  292. SGFL, 8,
  293. PWOK, 8,
  294. HLRS, 8,
  295. PWEN, 8,
  296. PRST, 8,
  297. CPSP, 32,
  298. EECP, 8,
  299. EVCP, 16,
  300. XBAS, 32,
  301. GBAS, 16,
  302. SGGP, 8,
  303. NVGA, 32,
  304. NVHA, 32,
  305. AMDA, 32,
  306. NDID, 8,
  307. DID1, 32,
  308. DID2, 32,
  309. DID3, 32,
  310. DID4, 32,
  311. DID5, 32,
  312. DID6, 32,
  313. DID7, 32,
  314. DID8, 32,
  315. OBS1, 32,
  316. OBS2, 32,
  317. OBS3, 32,
  318. OBS4, 32,
  319. OBS5, 32,
  320. OBS6, 32,
  321. OBS7, 32,
  322. OBS8, 32,
  323. LTRA, 8,
  324. OBFA, 8,
  325. LTRB, 8,
  326. OBFB, 8,
  327. LTRC, 8,
  328. OBFC, 8,
  329. SMSL, 16,
  330. SNSL, 16,
  331. P0UB, 8,
  332. P1UB, 8,
  333. P2UB, 8,
  334. EDPV, 8,
  335. NXDX, 32,
  336. DIDX, 32,
  337. PCSL, 8,
  338. SC7A, 8
  339. }
  340.  
  341. Scope (\_SB)
  342. {
  343. Name (PR00, Package (0x20)
  344. {
  345. Package (0x04)
  346. {
  347. 0x001FFFFF,
  348. 0x00,
  349. LNKF,
  350. 0x00
  351. },
  352.  
  353. Package (0x04)
  354. {
  355. 0x001FFFFF,
  356. 0x01,
  357. LNKD,
  358. 0x00
  359. },
  360.  
  361. Package (0x04)
  362. {
  363. 0x001FFFFF,
  364. 0x02,
  365. LNKC,
  366. 0x00
  367. },
  368.  
  369. Package (0x04)
  370. {
  371. 0x001FFFFF,
  372. 0x03,
  373. LNKA,
  374. 0x00
  375. },
  376.  
  377. Package (0x04)
  378. {
  379. 0x0003FFFF,
  380. 0x00,
  381. LNKA,
  382. 0x00
  383. },
  384.  
  385. Package (0x04)
  386. {
  387. 0x00150004,
  388. 0x00,
  389. LNKF,
  390. 0x00
  391. },
  392.  
  393. Package (0x04)
  394. {
  395. 0x00150000,
  396. 0x00,
  397. LNKA,
  398. 0x00
  399. },
  400.  
  401. Package (0x04)
  402. {
  403. 0x0014FFFF,
  404. 0x00,
  405. LNKA,
  406. 0x00
  407. },
  408.  
  409. Package (0x04)
  410. {
  411. 0x001DFFFF,
  412. 0x00,
  413. LNKG,
  414. 0x00
  415. },
  416.  
  417. Package (0x04)
  418. {
  419. 0x001DFFFF,
  420. 0x01,
  421. LNKD,
  422. 0x00
  423. },
  424.  
  425. Package (0x04)
  426. {
  427. 0x001DFFFF,
  428. 0x02,
  429. LNKA,
  430. 0x00
  431. },
  432.  
  433. Package (0x04)
  434. {
  435. 0x001DFFFF,
  436. 0x03,
  437. LNKC,
  438. 0x00
  439. },
  440.  
  441. Package (0x04)
  442. {
  443. 0x001AFFFF,
  444. 0x00,
  445. LNKH,
  446. 0x00
  447. },
  448.  
  449. Package (0x04)
  450. {
  451. 0x001AFFFF,
  452. 0x01,
  453. LNKF,
  454. 0x00
  455. },
  456.  
  457. Package (0x04)
  458. {
  459. 0x001AFFFF,
  460. 0x02,
  461. LNKC,
  462. 0x00
  463. },
  464.  
  465. Package (0x04)
  466. {
  467. 0x001AFFFF,
  468. 0x03,
  469. LNKD,
  470. 0x00
  471. },
  472.  
  473. Package (0x04)
  474. {
  475. 0x001BFFFF,
  476. 0x00,
  477. LNKG,
  478. 0x00
  479. },
  480.  
  481. Package (0x04)
  482. {
  483. 0x0018FFFF,
  484. 0x00,
  485. LNKE,
  486. 0x00
  487. },
  488.  
  489. Package (0x04)
  490. {
  491. 0x0019FFFF,
  492. 0x00,
  493. LNKE,
  494. 0x00
  495. },
  496.  
  497. Package (0x04)
  498. {
  499. 0x0016FFFF,
  500. 0x00,
  501. LNKA,
  502. 0x00
  503. },
  504.  
  505. Package (0x04)
  506. {
  507. 0x0016FFFF,
  508. 0x01,
  509. LNKD,
  510. 0x00
  511. },
  512.  
  513. Package (0x04)
  514. {
  515. 0x0016FFFF,
  516. 0x02,
  517. LNKC,
  518. 0x00
  519. },
  520.  
  521. Package (0x04)
  522. {
  523. 0x0016FFFF,
  524. 0x03,
  525. LNKB,
  526. 0x00
  527. },
  528.  
  529. Package (0x04)
  530. {
  531. 0x001CFFFF,
  532. 0x00,
  533. LNKA,
  534. 0x00
  535. },
  536.  
  537. Package (0x04)
  538. {
  539. 0x001CFFFF,
  540. 0x01,
  541. LNKB,
  542. 0x00
  543. },
  544.  
  545. Package (0x04)
  546. {
  547. 0x001CFFFF,
  548. 0x02,
  549. LNKC,
  550. 0x00
  551. },
  552.  
  553. Package (0x04)
  554. {
  555. 0x001CFFFF,
  556. 0x03,
  557. LNKD,
  558. 0x00
  559. },
  560.  
  561. Package (0x04)
  562. {
  563. 0x0001FFFF,
  564. 0x00,
  565. LNKA,
  566. 0x00
  567. },
  568.  
  569. Package (0x04)
  570. {
  571. 0x0001FFFF,
  572. 0x01,
  573. LNKB,
  574. 0x00
  575. },
  576.  
  577. Package (0x04)
  578. {
  579. 0x0001FFFF,
  580. 0x02,
  581. LNKC,
  582. 0x00
  583. },
  584.  
  585. Package (0x04)
  586. {
  587. 0x0001FFFF,
  588. 0x03,
  589. LNKD,
  590. 0x00
  591. },
  592.  
  593. Package (0x04)
  594. {
  595. 0x0002FFFF,
  596. 0x00,
  597. LNKA,
  598. 0x00
  599. }
  600. })
  601. Name (AR00, Package (0x20)
  602. {
  603. Package (0x04)
  604. {
  605. 0x001FFFFF,
  606. 0x00,
  607. 0x00,
  608. 0x15
  609. },
  610.  
  611. Package (0x04)
  612. {
  613. 0x001FFFFF,
  614. 0x01,
  615. 0x00,
  616. 0x13
  617. },
  618.  
  619. Package (0x04)
  620. {
  621. 0x001FFFFF,
  622. 0x02,
  623. 0x00,
  624. 0x12
  625. },
  626.  
  627. Package (0x04)
  628. {
  629. 0x001FFFFF,
  630. 0x03,
  631. 0x00,
  632. 0x10
  633. },
  634.  
  635. Package (0x04)
  636. {
  637. 0x0003FFFF,
  638. 0x00,
  639. 0x00,
  640. 0x10
  641. },
  642.  
  643. Package (0x04)
  644. {
  645. 0x0014FFFF,
  646. 0x00,
  647. 0x00,
  648. 0x10
  649. },
  650.  
  651. Package (0x04)
  652. {
  653. 0x00150004,
  654. 0x00,
  655. 0x00,
  656. 0x15
  657. },
  658.  
  659. Package (0x04)
  660. {
  661. 0x00150000,
  662. 0x00,
  663. 0x00,
  664. 0x10
  665. },
  666.  
  667. Package (0x04)
  668. {
  669. 0x001DFFFF,
  670. 0x00,
  671. 0x00,
  672. 0x16
  673. },
  674.  
  675. Package (0x04)
  676. {
  677. 0x001DFFFF,
  678. 0x01,
  679. 0x00,
  680. 0x13
  681. },
  682.  
  683. Package (0x04)
  684. {
  685. 0x001DFFFF,
  686. 0x02,
  687. 0x00,
  688. 0x10
  689. },
  690.  
  691. Package (0x04)
  692. {
  693. 0x001DFFFF,
  694. 0x03,
  695. 0x00,
  696. 0x12
  697. },
  698.  
  699. Package (0x04)
  700. {
  701. 0x001AFFFF,
  702. 0x00,
  703. 0x00,
  704. 0x17
  705. },
  706.  
  707. Package (0x04)
  708. {
  709. 0x001AFFFF,
  710. 0x01,
  711. 0x00,
  712. 0x15
  713. },
  714.  
  715. Package (0x04)
  716. {
  717. 0x001AFFFF,
  718. 0x02,
  719. 0x00,
  720. 0x12
  721. },
  722.  
  723. Package (0x04)
  724. {
  725. 0x001AFFFF,
  726. 0x03,
  727. 0x00,
  728. 0x13
  729. },
  730.  
  731. Package (0x04)
  732. {
  733. 0x001BFFFF,
  734. 0x00,
  735. 0x00,
  736. 0x16
  737. },
  738.  
  739. Package (0x04)
  740. {
  741. 0x0018FFFF,
  742. 0x00,
  743. 0x00,
  744. 0x14
  745. },
  746.  
  747. Package (0x04)
  748. {
  749. 0x0019FFFF,
  750. 0x00,
  751. 0x00,
  752. 0x14
  753. },
  754.  
  755. Package (0x04)
  756. {
  757. 0x0016FFFF,
  758. 0x00,
  759. 0x00,
  760. 0x10
  761. },
  762.  
  763. Package (0x04)
  764. {
  765. 0x0016FFFF,
  766. 0x01,
  767. 0x00,
  768. 0x13
  769. },
  770.  
  771. Package (0x04)
  772. {
  773. 0x0016FFFF,
  774. 0x02,
  775. 0x00,
  776. 0x12
  777. },
  778.  
  779. Package (0x04)
  780. {
  781. 0x0016FFFF,
  782. 0x03,
  783. 0x00,
  784. 0x11
  785. },
  786.  
  787. Package (0x04)
  788. {
  789. 0x001CFFFF,
  790. 0x00,
  791. 0x00,
  792. 0x10
  793. },
  794.  
  795. Package (0x04)
  796. {
  797. 0x001CFFFF,
  798. 0x01,
  799. 0x00,
  800. 0x11
  801. },
  802.  
  803. Package (0x04)
  804. {
  805. 0x001CFFFF,
  806. 0x02,
  807. 0x00,
  808. 0x12
  809. },
  810.  
  811. Package (0x04)
  812. {
  813. 0x001CFFFF,
  814. 0x03,
  815. 0x00,
  816. 0x13
  817. },
  818.  
  819. Package (0x04)
  820. {
  821. 0x0001FFFF,
  822. 0x00,
  823. 0x00,
  824. 0x10
  825. },
  826.  
  827. Package (0x04)
  828. {
  829. 0x0001FFFF,
  830. 0x01,
  831. 0x00,
  832. 0x11
  833. },
  834.  
  835. Package (0x04)
  836. {
  837. 0x0001FFFF,
  838. 0x02,
  839. 0x00,
  840. 0x12
  841. },
  842.  
  843. Package (0x04)
  844. {
  845. 0x0001FFFF,
  846. 0x03,
  847. 0x00,
  848. 0x13
  849. },
  850.  
  851. Package (0x04)
  852. {
  853. 0x0002FFFF,
  854. 0x00,
  855. 0x00,
  856. 0x10
  857. }
  858. })
  859. Name (PR04, Package (0x04)
  860. {
  861. Package (0x04)
  862. {
  863. 0xFFFF,
  864. 0x00,
  865. LNKA,
  866. 0x00
  867. },
  868.  
  869. Package (0x04)
  870. {
  871. 0xFFFF,
  872. 0x01,
  873. LNKB,
  874. 0x00
  875. },
  876.  
  877. Package (0x04)
  878. {
  879. 0xFFFF,
  880. 0x02,
  881. LNKC,
  882. 0x00
  883. },
  884.  
  885. Package (0x04)
  886. {
  887. 0xFFFF,
  888. 0x03,
  889. LNKD,
  890. 0x00
  891. }
  892. })
  893. Name (AR04, Package (0x04)
  894. {
  895. Package (0x04)
  896. {
  897. 0xFFFF,
  898. 0x00,
  899. 0x00,
  900. 0x10
  901. },
  902.  
  903. Package (0x04)
  904. {
  905. 0xFFFF,
  906. 0x01,
  907. 0x00,
  908. 0x11
  909. },
  910.  
  911. Package (0x04)
  912. {
  913. 0xFFFF,
  914. 0x02,
  915. 0x00,
  916. 0x12
  917. },
  918.  
  919. Package (0x04)
  920. {
  921. 0xFFFF,
  922. 0x03,
  923. 0x00,
  924. 0x13
  925. }
  926. })
  927. Name (PR05, Package (0x04)
  928. {
  929. Package (0x04)
  930. {
  931. 0xFFFF,
  932. 0x00,
  933. LNKB,
  934. 0x00
  935. },
  936.  
  937. Package (0x04)
  938. {
  939. 0xFFFF,
  940. 0x01,
  941. LNKC,
  942. 0x00
  943. },
  944.  
  945. Package (0x04)
  946. {
  947. 0xFFFF,
  948. 0x02,
  949. LNKD,
  950. 0x00
  951. },
  952.  
  953. Package (0x04)
  954. {
  955. 0xFFFF,
  956. 0x03,
  957. LNKA,
  958. 0x00
  959. }
  960. })
  961. Name (AR05, Package (0x04)
  962. {
  963. Package (0x04)
  964. {
  965. 0xFFFF,
  966. 0x00,
  967. 0x00,
  968. 0x11
  969. },
  970.  
  971. Package (0x04)
  972. {
  973. 0xFFFF,
  974. 0x01,
  975. 0x00,
  976. 0x12
  977. },
  978.  
  979. Package (0x04)
  980. {
  981. 0xFFFF,
  982. 0x02,
  983. 0x00,
  984. 0x13
  985. },
  986.  
  987. Package (0x04)
  988. {
  989. 0xFFFF,
  990. 0x03,
  991. 0x00,
  992. 0x10
  993. }
  994. })
  995. Name (PR06, Package (0x04)
  996. {
  997. Package (0x04)
  998. {
  999. 0xFFFF,
  1000. 0x00,
  1001. LNKC,
  1002. 0x00
  1003. },
  1004.  
  1005. Package (0x04)
  1006. {
  1007. 0xFFFF,
  1008. 0x01,
  1009. LNKD,
  1010. 0x00
  1011. },
  1012.  
  1013. Package (0x04)
  1014. {
  1015. 0xFFFF,
  1016. 0x02,
  1017. LNKA,
  1018. 0x00
  1019. },
  1020.  
  1021. Package (0x04)
  1022. {
  1023. 0xFFFF,
  1024. 0x03,
  1025. LNKB,
  1026. 0x00
  1027. }
  1028. })
  1029. Name (AR06, Package (0x04)
  1030. {
  1031. Package (0x04)
  1032. {
  1033. 0xFFFF,
  1034. 0x00,
  1035. 0x00,
  1036. 0x12
  1037. },
  1038.  
  1039. Package (0x04)
  1040. {
  1041. 0xFFFF,
  1042. 0x01,
  1043. 0x00,
  1044. 0x13
  1045. },
  1046.  
  1047. Package (0x04)
  1048. {
  1049. 0xFFFF,
  1050. 0x02,
  1051. 0x00,
  1052. 0x10
  1053. },
  1054.  
  1055. Package (0x04)
  1056. {
  1057. 0xFFFF,
  1058. 0x03,
  1059. 0x00,
  1060. 0x11
  1061. }
  1062. })
  1063. Name (PR07, Package (0x04)
  1064. {
  1065. Package (0x04)
  1066. {
  1067. 0xFFFF,
  1068. 0x00,
  1069. LNKD,
  1070. 0x00
  1071. },
  1072.  
  1073. Package (0x04)
  1074. {
  1075. 0xFFFF,
  1076. 0x01,
  1077. LNKA,
  1078. 0x00
  1079. },
  1080.  
  1081. Package (0x04)
  1082. {
  1083. 0xFFFF,
  1084. 0x02,
  1085. LNKB,
  1086. 0x00
  1087. },
  1088.  
  1089. Package (0x04)
  1090. {
  1091. 0xFFFF,
  1092. 0x03,
  1093. LNKC,
  1094. 0x00
  1095. }
  1096. })
  1097. Name (AR07, Package (0x04)
  1098. {
  1099. Package (0x04)
  1100. {
  1101. 0xFFFF,
  1102. 0x00,
  1103. 0x00,
  1104. 0x13
  1105. },
  1106.  
  1107. Package (0x04)
  1108. {
  1109. 0xFFFF,
  1110. 0x01,
  1111. 0x00,
  1112. 0x10
  1113. },
  1114.  
  1115. Package (0x04)
  1116. {
  1117. 0xFFFF,
  1118. 0x02,
  1119. 0x00,
  1120. 0x11
  1121. },
  1122.  
  1123. Package (0x04)
  1124. {
  1125. 0xFFFF,
  1126. 0x03,
  1127. 0x00,
  1128. 0x12
  1129. }
  1130. })
  1131. Name (PR08, Package (0x04)
  1132. {
  1133. Package (0x04)
  1134. {
  1135. 0xFFFF,
  1136. 0x00,
  1137. LNKA,
  1138. 0x00
  1139. },
  1140.  
  1141. Package (0x04)
  1142. {
  1143. 0xFFFF,
  1144. 0x01,
  1145. LNKB,
  1146. 0x00
  1147. },
  1148.  
  1149. Package (0x04)
  1150. {
  1151. 0xFFFF,
  1152. 0x02,
  1153. LNKC,
  1154. 0x00
  1155. },
  1156.  
  1157. Package (0x04)
  1158. {
  1159. 0xFFFF,
  1160. 0x03,
  1161. LNKD,
  1162. 0x00
  1163. }
  1164. })
  1165. Name (AR08, Package (0x04)
  1166. {
  1167. Package (0x04)
  1168. {
  1169. 0xFFFF,
  1170. 0x00,
  1171. 0x00,
  1172. 0x10
  1173. },
  1174.  
  1175. Package (0x04)
  1176. {
  1177. 0xFFFF,
  1178. 0x01,
  1179. 0x00,
  1180. 0x11
  1181. },
  1182.  
  1183. Package (0x04)
  1184. {
  1185. 0xFFFF,
  1186. 0x02,
  1187. 0x00,
  1188. 0x12
  1189. },
  1190.  
  1191. Package (0x04)
  1192. {
  1193. 0xFFFF,
  1194. 0x03,
  1195. 0x00,
  1196. 0x13
  1197. }
  1198. })
  1199. Name (PR09, Package (0x04)
  1200. {
  1201. Package (0x04)
  1202. {
  1203. 0xFFFF,
  1204. 0x00,
  1205. LNKA,
  1206. 0x00
  1207. },
  1208.  
  1209. Package (0x04)
  1210. {
  1211. 0xFFFF,
  1212. 0x01,
  1213. LNKB,
  1214. 0x00
  1215. },
  1216.  
  1217. Package (0x04)
  1218. {
  1219. 0xFFFF,
  1220. 0x02,
  1221. LNKC,
  1222. 0x00
  1223. },
  1224.  
  1225. Package (0x04)
  1226. {
  1227. 0xFFFF,
  1228. 0x03,
  1229. LNKD,
  1230. 0x00
  1231. }
  1232. })
  1233. Name (AR09, Package (0x04)
  1234. {
  1235. Package (0x04)
  1236. {
  1237. 0xFFFF,
  1238. 0x00,
  1239. 0x00,
  1240. 0x10
  1241. },
  1242.  
  1243. Package (0x04)
  1244. {
  1245. 0xFFFF,
  1246. 0x01,
  1247. 0x00,
  1248. 0x11
  1249. },
  1250.  
  1251. Package (0x04)
  1252. {
  1253. 0xFFFF,
  1254. 0x02,
  1255. 0x00,
  1256. 0x12
  1257. },
  1258.  
  1259. Package (0x04)
  1260. {
  1261. 0xFFFF,
  1262. 0x03,
  1263. 0x00,
  1264. 0x13
  1265. }
  1266. })
  1267. Name (PR0E, Package (0x04)
  1268. {
  1269. Package (0x04)
  1270. {
  1271. 0xFFFF,
  1272. 0x00,
  1273. LNKC,
  1274. 0x00
  1275. },
  1276.  
  1277. Package (0x04)
  1278. {
  1279. 0xFFFF,
  1280. 0x01,
  1281. LNKD,
  1282. 0x00
  1283. },
  1284.  
  1285. Package (0x04)
  1286. {
  1287. 0xFFFF,
  1288. 0x02,
  1289. LNKA,
  1290. 0x00
  1291. },
  1292.  
  1293. Package (0x04)
  1294. {
  1295. 0xFFFF,
  1296. 0x03,
  1297. LNKB,
  1298. 0x00
  1299. }
  1300. })
  1301. Name (AR0E, Package (0x04)
  1302. {
  1303. Package (0x04)
  1304. {
  1305. 0xFFFF,
  1306. 0x00,
  1307. 0x00,
  1308. 0x12
  1309. },
  1310.  
  1311. Package (0x04)
  1312. {
  1313. 0xFFFF,
  1314. 0x01,
  1315. 0x00,
  1316. 0x13
  1317. },
  1318.  
  1319. Package (0x04)
  1320. {
  1321. 0xFFFF,
  1322. 0x02,
  1323. 0x00,
  1324. 0x10
  1325. },
  1326.  
  1327. Package (0x04)
  1328. {
  1329. 0xFFFF,
  1330. 0x03,
  1331. 0x00,
  1332. 0x11
  1333. }
  1334. })
  1335. Name (PR0F, Package (0x04)
  1336. {
  1337. Package (0x04)
  1338. {
  1339. 0xFFFF,
  1340. 0x00,
  1341. LNKD,
  1342. 0x00
  1343. },
  1344.  
  1345. Package (0x04)
  1346. {
  1347. 0xFFFF,
  1348. 0x01,
  1349. LNKA,
  1350. 0x00
  1351. },
  1352.  
  1353. Package (0x04)
  1354. {
  1355. 0xFFFF,
  1356. 0x02,
  1357. LNKB,
  1358. 0x00
  1359. },
  1360.  
  1361. Package (0x04)
  1362. {
  1363. 0xFFFF,
  1364. 0x03,
  1365. LNKC,
  1366. 0x00
  1367. }
  1368. })
  1369. Name (AR0F, Package (0x04)
  1370. {
  1371. Package (0x04)
  1372. {
  1373. 0xFFFF,
  1374. 0x00,
  1375. 0x00,
  1376. 0x13
  1377. },
  1378.  
  1379. Package (0x04)
  1380. {
  1381. 0xFFFF,
  1382. 0x01,
  1383. 0x00,
  1384. 0x10
  1385. },
  1386.  
  1387. Package (0x04)
  1388. {
  1389. 0xFFFF,
  1390. 0x02,
  1391. 0x00,
  1392. 0x11
  1393. },
  1394.  
  1395. Package (0x04)
  1396. {
  1397. 0xFFFF,
  1398. 0x03,
  1399. 0x00,
  1400. 0x12
  1401. }
  1402. })
  1403. Name (PR02, Package (0x04)
  1404. {
  1405. Package (0x04)
  1406. {
  1407. 0xFFFF,
  1408. 0x00,
  1409. LNKA,
  1410. 0x00
  1411. },
  1412.  
  1413. Package (0x04)
  1414. {
  1415. 0xFFFF,
  1416. 0x01,
  1417. LNKB,
  1418. 0x00
  1419. },
  1420.  
  1421. Package (0x04)
  1422. {
  1423. 0xFFFF,
  1424. 0x02,
  1425. LNKC,
  1426. 0x00
  1427. },
  1428.  
  1429. Package (0x04)
  1430. {
  1431. 0xFFFF,
  1432. 0x03,
  1433. LNKD,
  1434. 0x00
  1435. }
  1436. })
  1437. Name (AR02, Package (0x04)
  1438. {
  1439. Package (0x04)
  1440. {
  1441. 0xFFFF,
  1442. 0x00,
  1443. 0x00,
  1444. 0x10
  1445. },
  1446.  
  1447. Package (0x04)
  1448. {
  1449. 0xFFFF,
  1450. 0x01,
  1451. 0x00,
  1452. 0x11
  1453. },
  1454.  
  1455. Package (0x04)
  1456. {
  1457. 0xFFFF,
  1458. 0x02,
  1459. 0x00,
  1460. 0x12
  1461. },
  1462.  
  1463. Package (0x04)
  1464. {
  1465. 0xFFFF,
  1466. 0x03,
  1467. 0x00,
  1468. 0x13
  1469. }
  1470. })
  1471. Name (PR0A, Package (0x04)
  1472. {
  1473. Package (0x04)
  1474. {
  1475. 0xFFFF,
  1476. 0x00,
  1477. LNKB,
  1478. 0x00
  1479. },
  1480.  
  1481. Package (0x04)
  1482. {
  1483. 0xFFFF,
  1484. 0x01,
  1485. LNKC,
  1486. 0x00
  1487. },
  1488.  
  1489. Package (0x04)
  1490. {
  1491. 0xFFFF,
  1492. 0x02,
  1493. LNKD,
  1494. 0x00
  1495. },
  1496.  
  1497. Package (0x04)
  1498. {
  1499. 0xFFFF,
  1500. 0x03,
  1501. LNKA,
  1502. 0x00
  1503. }
  1504. })
  1505. Name (AR0A, Package (0x04)
  1506. {
  1507. Package (0x04)
  1508. {
  1509. 0xFFFF,
  1510. 0x00,
  1511. 0x00,
  1512. 0x11
  1513. },
  1514.  
  1515. Package (0x04)
  1516. {
  1517. 0xFFFF,
  1518. 0x01,
  1519. 0x00,
  1520. 0x12
  1521. },
  1522.  
  1523. Package (0x04)
  1524. {
  1525. 0xFFFF,
  1526. 0x02,
  1527. 0x00,
  1528. 0x13
  1529. },
  1530.  
  1531. Package (0x04)
  1532. {
  1533. 0xFFFF,
  1534. 0x03,
  1535. 0x00,
  1536. 0x10
  1537. }
  1538. })
  1539. Name (PR0B, Package (0x04)
  1540. {
  1541. Package (0x04)
  1542. {
  1543. 0xFFFF,
  1544. 0x00,
  1545. LNKC,
  1546. 0x00
  1547. },
  1548.  
  1549. Package (0x04)
  1550. {
  1551. 0xFFFF,
  1552. 0x01,
  1553. LNKD,
  1554. 0x00
  1555. },
  1556.  
  1557. Package (0x04)
  1558. {
  1559. 0xFFFF,
  1560. 0x02,
  1561. LNKA,
  1562. 0x00
  1563. },
  1564.  
  1565. Package (0x04)
  1566. {
  1567. 0xFFFF,
  1568. 0x03,
  1569. LNKB,
  1570. 0x00
  1571. }
  1572. })
  1573. Name (AR0B, Package (0x04)
  1574. {
  1575. Package (0x04)
  1576. {
  1577. 0xFFFF,
  1578. 0x00,
  1579. 0x00,
  1580. 0x12
  1581. },
  1582.  
  1583. Package (0x04)
  1584. {
  1585. 0xFFFF,
  1586. 0x01,
  1587. 0x00,
  1588. 0x13
  1589. },
  1590.  
  1591. Package (0x04)
  1592. {
  1593. 0xFFFF,
  1594. 0x02,
  1595. 0x00,
  1596. 0x10
  1597. },
  1598.  
  1599. Package (0x04)
  1600. {
  1601. 0xFFFF,
  1602. 0x03,
  1603. 0x00,
  1604. 0x11
  1605. }
  1606. })
  1607. Name (PR0C, Package (0x04)
  1608. {
  1609. Package (0x04)
  1610. {
  1611. 0xFFFF,
  1612. 0x00,
  1613. LNKD,
  1614. 0x00
  1615. },
  1616.  
  1617. Package (0x04)
  1618. {
  1619. 0xFFFF,
  1620. 0x01,
  1621. LNKA,
  1622. 0x00
  1623. },
  1624.  
  1625. Package (0x04)
  1626. {
  1627. 0xFFFF,
  1628. 0x02,
  1629. LNKB,
  1630. 0x00
  1631. },
  1632.  
  1633. Package (0x04)
  1634. {
  1635. 0xFFFF,
  1636. 0x03,
  1637. LNKC,
  1638. 0x00
  1639. }
  1640. })
  1641. Name (AR0C, Package (0x04)
  1642. {
  1643. Package (0x04)
  1644. {
  1645. 0xFFFF,
  1646. 0x00,
  1647. 0x00,
  1648. 0x13
  1649. },
  1650.  
  1651. Package (0x04)
  1652. {
  1653. 0xFFFF,
  1654. 0x01,
  1655. 0x00,
  1656. 0x10
  1657. },
  1658.  
  1659. Package (0x04)
  1660. {
  1661. 0xFFFF,
  1662. 0x02,
  1663. 0x00,
  1664. 0x11
  1665. },
  1666.  
  1667. Package (0x04)
  1668. {
  1669. 0xFFFF,
  1670. 0x03,
  1671. 0x00,
  1672. 0x12
  1673. }
  1674. })
  1675. Name (PR01, Package (0x0C)
  1676. {
  1677. Package (0x04)
  1678. {
  1679. 0xFFFF,
  1680. 0x00,
  1681. LNKF,
  1682. 0x00
  1683. },
  1684.  
  1685. Package (0x04)
  1686. {
  1687. 0xFFFF,
  1688. 0x01,
  1689. LNKG,
  1690. 0x00
  1691. },
  1692.  
  1693. Package (0x04)
  1694. {
  1695. 0xFFFF,
  1696. 0x02,
  1697. LNKH,
  1698. 0x00
  1699. },
  1700.  
  1701. Package (0x04)
  1702. {
  1703. 0xFFFF,
  1704. 0x03,
  1705. LNKE,
  1706. 0x00
  1707. },
  1708.  
  1709. Package (0x04)
  1710. {
  1711. 0x0001FFFF,
  1712. 0x00,
  1713. LNKG,
  1714. 0x00
  1715. },
  1716.  
  1717. Package (0x04)
  1718. {
  1719. 0x0001FFFF,
  1720. 0x01,
  1721. LNKF,
  1722. 0x00
  1723. },
  1724.  
  1725. Package (0x04)
  1726. {
  1727. 0x0001FFFF,
  1728. 0x02,
  1729. LNKE,
  1730. 0x00
  1731. },
  1732.  
  1733. Package (0x04)
  1734. {
  1735. 0x0001FFFF,
  1736. 0x03,
  1737. LNKH,
  1738. 0x00
  1739. },
  1740.  
  1741. Package (0x04)
  1742. {
  1743. 0x0005FFFF,
  1744. 0x00,
  1745. LNKC,
  1746. 0x00
  1747. },
  1748.  
  1749. Package (0x04)
  1750. {
  1751. 0x0005FFFF,
  1752. 0x01,
  1753. LNKE,
  1754. 0x00
  1755. },
  1756.  
  1757. Package (0x04)
  1758. {
  1759. 0x0005FFFF,
  1760. 0x02,
  1761. LNKG,
  1762. 0x00
  1763. },
  1764.  
  1765. Package (0x04)
  1766. {
  1767. 0x0005FFFF,
  1768. 0x03,
  1769. LNKF,
  1770. 0x00
  1771. }
  1772. })
  1773. Name (AR01, Package (0x0C)
  1774. {
  1775. Package (0x04)
  1776. {
  1777. 0xFFFF,
  1778. 0x00,
  1779. 0x00,
  1780. 0x15
  1781. },
  1782.  
  1783. Package (0x04)
  1784. {
  1785. 0xFFFF,
  1786. 0x01,
  1787. 0x00,
  1788. 0x16
  1789. },
  1790.  
  1791. Package (0x04)
  1792. {
  1793. 0xFFFF,
  1794. 0x02,
  1795. 0x00,
  1796. 0x17
  1797. },
  1798.  
  1799. Package (0x04)
  1800. {
  1801. 0xFFFF,
  1802. 0x03,
  1803. 0x00,
  1804. 0x14
  1805. },
  1806.  
  1807. Package (0x04)
  1808. {
  1809. 0x0001FFFF,
  1810. 0x00,
  1811. 0x00,
  1812. 0x16
  1813. },
  1814.  
  1815. Package (0x04)
  1816. {
  1817. 0x0001FFFF,
  1818. 0x01,
  1819. 0x00,
  1820. 0x15
  1821. },
  1822.  
  1823. Package (0x04)
  1824. {
  1825. 0x0001FFFF,
  1826. 0x02,
  1827. 0x00,
  1828. 0x14
  1829. },
  1830.  
  1831. Package (0x04)
  1832. {
  1833. 0x0001FFFF,
  1834. 0x03,
  1835. 0x00,
  1836. 0x17
  1837. },
  1838.  
  1839. Package (0x04)
  1840. {
  1841. 0x0005FFFF,
  1842. 0x00,
  1843. 0x00,
  1844. 0x12
  1845. },
  1846.  
  1847. Package (0x04)
  1848. {
  1849. 0x0005FFFF,
  1850. 0x01,
  1851. 0x00,
  1852. 0x14
  1853. },
  1854.  
  1855. Package (0x04)
  1856. {
  1857. 0x0005FFFF,
  1858. 0x02,
  1859. 0x00,
  1860. 0x16
  1861. },
  1862.  
  1863. Package (0x04)
  1864. {
  1865. 0x0005FFFF,
  1866. 0x03,
  1867. 0x00,
  1868. 0x15
  1869. }
  1870. })
  1871. Name (PRSA, ResourceTemplate ()
  1872. {
  1873. IRQ (Level, ActiveLow, Shared, )
  1874. {3,4,5,6,7,10,11,12,14,15}
  1875. })
  1876. Alias (PRSA, PRSB)
  1877. Alias (PRSA, PRSC)
  1878. Alias (PRSA, PRSD)
  1879. Alias (PRSA, PRSE)
  1880. Alias (PRSA, PRSF)
  1881. Alias (PRSA, PRSG)
  1882. Alias (PRSA, PRSH)
  1883. Device (PCI0)
  1884. {
  1885. Name (_HID, EisaId ("PNP0A08"))
  1886. Name (_CID, EisaId ("PNP0A03"))
  1887. Name (_ADR, 0x00)
  1888. Method (^BN00, 0, NotSerialized)
  1889. {
  1890. Return (0x00)
  1891. }
  1892.  
  1893. Method (_BBN, 0, NotSerialized)
  1894. {
  1895. Return (BN00 ())
  1896. }
  1897.  
  1898. Name (_UID, 0x00)
  1899. Method (_PRT, 0, NotSerialized)
  1900. {
  1901. If (PICM)
  1902. {
  1903. Return (AR00 ())
  1904. }
  1905.  
  1906. Return (PR00 ())
  1907. }
  1908.  
  1909. OperationRegion (HBUS, PCI_Config, 0x00, 0x0100)
  1910. Field (HBUS, DWordAcc, NoLock, Preserve)
  1911. {
  1912. Offset (0x40),
  1913. EPEN, 1,
  1914. , 11,
  1915. EPBR, 20,
  1916. Offset (0x48),
  1917. MHEN, 1,
  1918. , 14,
  1919. MHBR, 17,
  1920. Offset (0x50),
  1921. GCLK, 1,
  1922. Offset (0x54),
  1923. D0EN, 1,
  1924. Offset (0x60),
  1925. PXEN, 1,
  1926. PXSZ, 2,
  1927. , 23,
  1928. PXBR, 6,
  1929. Offset (0x68),
  1930. DIEN, 1,
  1931. , 11,
  1932. DIBR, 20,
  1933. Offset (0x70),
  1934. , 20,
  1935. MEBR, 12,
  1936. Offset (0x80),
  1937. , 4,
  1938. PM0H, 2,
  1939. Offset (0x81),
  1940. PM1L, 2,
  1941. , 2,
  1942. PM1H, 2,
  1943. Offset (0x82),
  1944. PM2L, 2,
  1945. , 2,
  1946. PM2H, 2,
  1947. Offset (0x83),
  1948. PM3L, 2,
  1949. , 2,
  1950. PM3H, 2,
  1951. Offset (0x84),
  1952. PM4L, 2,
  1953. , 2,
  1954. PM4H, 2,
  1955. Offset (0x85),
  1956. PM5L, 2,
  1957. , 2,
  1958. PM5H, 2,
  1959. Offset (0x86),
  1960. PM6L, 2,
  1961. , 2,
  1962. PM6H, 2,
  1963. Offset (0x87),
  1964. Offset (0xA8),
  1965. , 20,
  1966. TUUD, 19,
  1967. Offset (0xBC),
  1968. , 20,
  1969. TLUD, 12,
  1970. Offset (0xC8),
  1971. , 7,
  1972. HTSE, 1
  1973. }
  1974.  
  1975. OperationRegion (MCHT, SystemMemory, 0xFED10000, 0x6000)
  1976. Field (MCHT, ByteAcc, NoLock, Preserve)
  1977. {
  1978. Offset (0x5994),
  1979. RPSL, 8,
  1980. Offset (0x5998),
  1981. RP0C, 8,
  1982. RP1C, 8,
  1983. RPNC, 8
  1984. }
  1985.  
  1986. Name (BUF0, ResourceTemplate ()
  1987. {
  1988. WordBusNumber (ResourceProducer, MinFixed, MaxFixed, PosDecode,
  1989. 0x0000, // Granularity
  1990. 0x0000, // Range Minimum
  1991. 0x00FF, // Range Maximum
  1992. 0x0000, // Translation Offset
  1993. 0x0100, // Length
  1994. ,, )
  1995. DWordIO (ResourceProducer, MinFixed, MaxFixed, PosDecode, EntireRange,
  1996. 0x00000000, // Granularity
  1997. 0x00000000, // Range Minimum
  1998. 0x00000CF7, // Range Maximum
  1999. 0x00000000, // Translation Offset
  2000. 0x00000CF8, // Length
  2001. ,, , TypeStatic)
  2002. IO (Decode16,
  2003. 0x0CF8, // Range Minimum
  2004. 0x0CF8, // Range Maximum
  2005. 0x01, // Alignment
  2006. 0x08, // Length
  2007. )
  2008. DWordIO (ResourceProducer, MinFixed, MaxFixed, PosDecode, EntireRange,
  2009. 0x00000000, // Granularity
  2010. 0x00000D00, // Range Minimum
  2011. 0x0000FFFF, // Range Maximum
  2012. 0x00000000, // Translation Offset
  2013. 0x0000F300, // Length
  2014. ,, , TypeStatic)
  2015. DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
  2016. 0x00000000, // Granularity
  2017. 0x000A0000, // Range Minimum
  2018. 0x000BFFFF, // Range Maximum
  2019. 0x00000000, // Translation Offset
  2020. 0x00020000, // Length
  2021. ,, , AddressRangeMemory, TypeStatic)
  2022. DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
  2023. 0x00000000, // Granularity
  2024. 0x000C0000, // Range Minimum
  2025. 0x000C3FFF, // Range Maximum
  2026. 0x00000000, // Translation Offset
  2027. 0x00004000, // Length
  2028. ,, , AddressRangeMemory, TypeStatic)
  2029. DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
  2030. 0x00000000, // Granularity
  2031. 0x000C4000, // Range Minimum
  2032. 0x000C7FFF, // Range Maximum
  2033. 0x00000000, // Translation Offset
  2034. 0x00004000, // Length
  2035. ,, , AddressRangeMemory, TypeStatic)
  2036. DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
  2037. 0x00000000, // Granularity
  2038. 0x000C8000, // Range Minimum
  2039. 0x000CBFFF, // Range Maximum
  2040. 0x00000000, // Translation Offset
  2041. 0x00004000, // Length
  2042. ,, , AddressRangeMemory, TypeStatic)
  2043. DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
  2044. 0x00000000, // Granularity
  2045. 0x000CC000, // Range Minimum
  2046. 0x000CFFFF, // Range Maximum
  2047. 0x00000000, // Translation Offset
  2048. 0x00004000, // Length
  2049. ,, , AddressRangeMemory, TypeStatic)
  2050. DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
  2051. 0x00000000, // Granularity
  2052. 0x000D0000, // Range Minimum
  2053. 0x000D3FFF, // Range Maximum
  2054. 0x00000000, // Translation Offset
  2055. 0x00004000, // Length
  2056. ,, , AddressRangeMemory, TypeStatic)
  2057. DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
  2058. 0x00000000, // Granularity
  2059. 0x000D4000, // Range Minimum
  2060. 0x000D7FFF, // Range Maximum
  2061. 0x00000000, // Translation Offset
  2062. 0x00004000, // Length
  2063. ,, , AddressRangeMemory, TypeStatic)
  2064. DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
  2065. 0x00000000, // Granularity
  2066. 0x000D8000, // Range Minimum
  2067. 0x000DBFFF, // Range Maximum
  2068. 0x00000000, // Translation Offset
  2069. 0x00004000, // Length
  2070. ,, , AddressRangeMemory, TypeStatic)
  2071. DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
  2072. 0x00000000, // Granularity
  2073. 0x000DC000, // Range Minimum
  2074. 0x000DFFFF, // Range Maximum
  2075. 0x00000000, // Translation Offset
  2076. 0x00004000, // Length
  2077. ,, , AddressRangeMemory, TypeStatic)
  2078. DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
  2079. 0x00000000, // Granularity
  2080. 0x000E0000, // Range Minimum
  2081. 0x000E3FFF, // Range Maximum
  2082. 0x00000000, // Translation Offset
  2083. 0x00004000, // Length
  2084. ,, , AddressRangeMemory, TypeStatic)
  2085. DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
  2086. 0x00000000, // Granularity
  2087. 0x000E4000, // Range Minimum
  2088. 0x000E7FFF, // Range Maximum
  2089. 0x00000000, // Translation Offset
  2090. 0x00004000, // Length
  2091. ,, , AddressRangeMemory, TypeStatic)
  2092. DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
  2093. 0x00000000, // Granularity
  2094. 0x000E8000, // Range Minimum
  2095. 0x000EBFFF, // Range Maximum
  2096. 0x00000000, // Translation Offset
  2097. 0x00004000, // Length
  2098. ,, , AddressRangeMemory, TypeStatic)
  2099. DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
  2100. 0x00000000, // Granularity
  2101. 0x000EC000, // Range Minimum
  2102. 0x000EFFFF, // Range Maximum
  2103. 0x00000000, // Translation Offset
  2104. 0x00004000, // Length
  2105. ,, , AddressRangeMemory, TypeStatic)
  2106. DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
  2107. 0x00000000, // Granularity
  2108. 0x000F0000, // Range Minimum
  2109. 0x000FFFFF, // Range Maximum
  2110. 0x00000000, // Translation Offset
  2111. 0x00010000, // Length
  2112. ,, , AddressRangeMemory, TypeStatic)
  2113. DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
  2114. 0x00000000, // Granularity
  2115. 0x00000000, // Range Minimum
  2116. 0xFEAFFFFF, // Range Maximum
  2117. 0x00000000, // Translation Offset
  2118. 0xFEB00000, // Length
  2119. ,, , AddressRangeMemory, TypeStatic)
  2120. DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
  2121. 0x00000000, // Granularity
  2122. 0xFED40000, // Range Minimum
  2123. 0xFED44FFF, // Range Maximum
  2124. 0x00000000, // Translation Offset
  2125. 0x00005000, // Length
  2126. ,, , AddressRangeMemory, TypeStatic)
  2127. })
  2128. Method (_CRS, 0, Serialized)
  2129. {
  2130. If (PM1L)
  2131. {
  2132. CreateDWordField (BUF0, 0x7C, C0LN)
  2133. Store (Zero, C0LN)
  2134. }
  2135.  
  2136. If (LEqual (PM1L, 0x01))
  2137. {
  2138. CreateBitField (BUF0, 0x0358, C0RW)
  2139. Store (Zero, C0RW)
  2140. }
  2141.  
  2142. If (PM1H)
  2143. {
  2144. CreateDWordField (BUF0, 0x96, C4LN)
  2145. Store (Zero, C4LN)
  2146. }
  2147.  
  2148. If (LEqual (PM1H, 0x01))
  2149. {
  2150. CreateBitField (BUF0, 0x0428, C4RW)
  2151. Store (Zero, C4RW)
  2152. }
  2153.  
  2154. If (PM2L)
  2155. {
  2156. CreateDWordField (BUF0, 0xB0, C8LN)
  2157. Store (Zero, C8LN)
  2158. }
  2159.  
  2160. If (LEqual (PM2L, 0x01))
  2161. {
  2162. CreateBitField (BUF0, 0x04F8, C8RW)
  2163. Store (Zero, C8RW)
  2164. }
  2165.  
  2166. If (PM2H)
  2167. {
  2168. CreateDWordField (BUF0, 0xCA, CCLN)
  2169. Store (Zero, CCLN)
  2170. }
  2171.  
  2172. If (LEqual (PM2H, 0x01))
  2173. {
  2174. CreateBitField (BUF0, 0x05C8, CCRW)
  2175. Store (Zero, CCRW)
  2176. }
  2177.  
  2178. If (PM3L)
  2179. {
  2180. CreateDWordField (BUF0, 0xE4, D0LN)
  2181. Store (Zero, D0LN)
  2182. }
  2183.  
  2184. If (LEqual (PM3L, 0x01))
  2185. {
  2186. CreateBitField (BUF0, 0x0698, D0RW)
  2187. Store (Zero, D0RW)
  2188. }
  2189.  
  2190. If (PM3H)
  2191. {
  2192. CreateDWordField (BUF0, 0xFE, D4LN)
  2193. Store (Zero, D4LN)
  2194. }
  2195.  
  2196. If (LEqual (PM3H, 0x01))
  2197. {
  2198. CreateBitField (BUF0, 0x0768, D4RW)
  2199. Store (Zero, D4RW)
  2200. }
  2201.  
  2202. If (PM4L)
  2203. {
  2204. CreateDWordField (BUF0, 0x0118, D8LN)
  2205. Store (Zero, D8LN)
  2206. }
  2207.  
  2208. If (LEqual (PM4L, 0x01))
  2209. {
  2210. CreateBitField (BUF0, 0x0838, D8RW)
  2211. Store (Zero, D8RW)
  2212. }
  2213.  
  2214. If (PM4H)
  2215. {
  2216. CreateDWordField (BUF0, 0x0132, DCLN)
  2217. Store (Zero, DCLN)
  2218. }
  2219.  
  2220. If (LEqual (PM4H, 0x01))
  2221. {
  2222. CreateBitField (BUF0, 0x0908, DCRW)
  2223. Store (Zero, DCRW)
  2224. }
  2225.  
  2226. If (PM5L)
  2227. {
  2228. CreateDWordField (BUF0, 0x014C, E0LN)
  2229. Store (Zero, E0LN)
  2230. }
  2231.  
  2232. If (LEqual (PM5L, 0x01))
  2233. {
  2234. CreateBitField (BUF0, 0x09D8, E0RW)
  2235. Store (Zero, E0RW)
  2236. }
  2237.  
  2238. If (PM5H)
  2239. {
  2240. CreateDWordField (BUF0, 0x0166, E4LN)
  2241. Store (Zero, E4LN)
  2242. }
  2243.  
  2244. If (LEqual (PM5H, 0x01))
  2245. {
  2246. CreateBitField (BUF0, 0x0AA8, E4RW)
  2247. Store (Zero, E4RW)
  2248. }
  2249.  
  2250. If (PM6L)
  2251. {
  2252. CreateDWordField (BUF0, 0x0180, E8LN)
  2253. Store (Zero, E8LN)
  2254. }
  2255.  
  2256. If (LEqual (PM6L, 0x01))
  2257. {
  2258. CreateBitField (BUF0, 0x0B78, E8RW)
  2259. Store (Zero, E8RW)
  2260. }
  2261.  
  2262. If (PM6H)
  2263. {
  2264. CreateDWordField (BUF0, 0x019A, ECLN)
  2265. Store (Zero, ECLN)
  2266. }
  2267.  
  2268. If (LEqual (PM6H, 0x01))
  2269. {
  2270. CreateBitField (BUF0, 0x0C48, ECRW)
  2271. Store (Zero, ECRW)
  2272. }
  2273.  
  2274. If (PM0H)
  2275. {
  2276. CreateDWordField (BUF0, 0x01B4, F0LN)
  2277. Store (Zero, F0LN)
  2278. }
  2279.  
  2280. If (LEqual (PM0H, 0x01))
  2281. {
  2282. CreateBitField (BUF0, 0x0D18, F0RW)
  2283. Store (Zero, F0RW)
  2284. }
  2285.  
  2286. CreateDWordField (BUF0, 0x01C2, M1MN)
  2287. CreateDWordField (BUF0, 0x01C6, M1MX)
  2288. CreateDWordField (BUF0, 0x01CE, M1LN)
  2289. ShiftLeft (TLUD, 0x14, M1MN)
  2290. Add (Subtract (M1MX, M1MN), 0x01, M1LN)
  2291. Return (BUF0)
  2292. }
  2293.  
  2294. Name (GUID, Buffer (0x10)
  2295. {
  2296. /* 0000 */ 0x5B, 0x4D, 0xDB, 0x33, 0xF7, 0x1F, 0x1C, 0x40,
  2297. /* 0008 */ 0x96, 0x57, 0x74, 0x41, 0xC0, 0x3D, 0xD7, 0x66
  2298. })
  2299. Name (SUPP, 0x00)
  2300. Name (CTRL, 0x00)
  2301. Method (_OSC, 4, Serialized)
  2302. {
  2303. Store (Arg3, Local0)
  2304. CreateDWordField (Local0, 0x00, CDW1)
  2305. CreateDWordField (Local0, 0x04, CDW2)
  2306. CreateDWordField (Local0, 0x08, CDW3)
  2307. Store (CDW2, SUPP)
  2308. Store (CDW3, CTRL)
  2309. If (LEqual (0x01, OSDW ()))
  2310. {
  2311. If (LAnd (LEqual (Arg0, GUID), NEXP))
  2312. {
  2313. If (Not (And (CDW1, 0x01)))
  2314. {
  2315. If (And (CTRL, 0x02))
  2316. {
  2317. NHPG ()
  2318. }
  2319.  
  2320. If (And (CTRL, 0x04))
  2321. {
  2322. NPME ()
  2323. }
  2324. }
  2325.  
  2326. If (LNotEqual (Arg1, One))
  2327. {
  2328. Or (CDW1, 0x08, CDW1)
  2329. }
  2330.  
  2331. If (LNotEqual (CDW3, CTRL))
  2332. {
  2333. Or (CDW1, 0x10, CDW1)
  2334. }
  2335.  
  2336. Store (CTRL, CDW3)
  2337. Store (CTRL, OSCC)
  2338. Return (Local0)
  2339. }
  2340. Else
  2341. {
  2342. Or (CDW1, 0x04, CDW1)
  2343. Return (Local0)
  2344. }
  2345. }
  2346. Else
  2347. {
  2348. If (LEqual (Arg0, GUID))
  2349. {
  2350. If (LEqual (\_SB.PCI0.DTBP, 0x01))
  2351. {
  2352. And (CDW3, 0xFFFFFFFB, CDW3)
  2353. }
  2354. }
  2355.  
  2356. Return (Local0)
  2357. }
  2358. }
  2359.  
  2360. Scope (\_SB.PCI0)
  2361. {
  2362. Method (AR00, 0, NotSerialized)
  2363. {
  2364. Return (\_SB.AR00)
  2365. }
  2366.  
  2367. Method (PR00, 0, NotSerialized)
  2368. {
  2369. Return (\_SB.PR00)
  2370. }
  2371.  
  2372. Method (AR01, 0, NotSerialized)
  2373. {
  2374. Return (\_SB.AR01)
  2375. }
  2376.  
  2377. Method (PR01, 0, NotSerialized)
  2378. {
  2379. Return (\_SB.PR01)
  2380. }
  2381.  
  2382. Method (AR02, 0, NotSerialized)
  2383. {
  2384. Return (\_SB.AR02)
  2385. }
  2386.  
  2387. Method (PR02, 0, NotSerialized)
  2388. {
  2389. Return (\_SB.PR02)
  2390. }
  2391.  
  2392. Method (AR04, 0, NotSerialized)
  2393. {
  2394. Return (\_SB.AR04)
  2395. }
  2396.  
  2397. Method (PR04, 0, NotSerialized)
  2398. {
  2399. Return (\_SB.PR04)
  2400. }
  2401.  
  2402. Method (AR05, 0, NotSerialized)
  2403. {
  2404. Return (\_SB.AR05)
  2405. }
  2406.  
  2407. Method (PR05, 0, NotSerialized)
  2408. {
  2409. Return (\_SB.PR05)
  2410. }
  2411.  
  2412. Method (AR06, 0, NotSerialized)
  2413. {
  2414. Return (\_SB.AR06)
  2415. }
  2416.  
  2417. Method (PR06, 0, NotSerialized)
  2418. {
  2419. Return (\_SB.PR06)
  2420. }
  2421.  
  2422. Method (AR07, 0, NotSerialized)
  2423. {
  2424. Return (\_SB.AR07)
  2425. }
  2426.  
  2427. Method (PR07, 0, NotSerialized)
  2428. {
  2429. Return (\_SB.PR07)
  2430. }
  2431.  
  2432. Method (AR08, 0, NotSerialized)
  2433. {
  2434. Return (\_SB.AR08)
  2435. }
  2436.  
  2437. Method (PR08, 0, NotSerialized)
  2438. {
  2439. Return (\_SB.PR08)
  2440. }
  2441.  
  2442. Method (AR09, 0, NotSerialized)
  2443. {
  2444. Return (\_SB.AR09)
  2445. }
  2446.  
  2447. Method (PR09, 0, NotSerialized)
  2448. {
  2449. Return (\_SB.PR09)
  2450. }
  2451.  
  2452. Method (AR0A, 0, NotSerialized)
  2453. {
  2454. Return (\_SB.AR0A)
  2455. }
  2456.  
  2457. Method (PR0A, 0, NotSerialized)
  2458. {
  2459. Return (\_SB.PR0A)
  2460. }
  2461.  
  2462. Method (AR0B, 0, NotSerialized)
  2463. {
  2464. Return (\_SB.AR0B)
  2465. }
  2466.  
  2467. Method (PR0B, 0, NotSerialized)
  2468. {
  2469. Return (\_SB.PR0B)
  2470. }
  2471. }
  2472.  
  2473. Device (MCHC)
  2474. {
  2475. Name (_ADR, 0x00)
  2476. }
  2477.  
  2478. Device (P0P2)
  2479. {
  2480. Name (_ADR, 0x00010000)
  2481. Method (_PRW, 0, NotSerialized)
  2482. {
  2483. If (OSDW ())
  2484. {
  2485. Return (Package (0x02)
  2486. {
  2487. 0x69,
  2488. 0x03
  2489. })
  2490. }
  2491. Else
  2492. {
  2493. Return (Package (0x02)
  2494. {
  2495. 0x69,
  2496. 0x03
  2497. })
  2498. }
  2499. }
  2500.  
  2501. Method (_PRT, 0, NotSerialized)
  2502. {
  2503. If (PICM)
  2504. {
  2505. Return (AR02 ())
  2506. }
  2507.  
  2508. Return (PR02 ())
  2509. }
  2510. }
  2511.  
  2512. Device (IGPU)
  2513. {
  2514. Name (_ADR, 0x00020000)
  2515. OperationRegion (GFXH, PCI_Config, 0x00, 0x40)
  2516. Field (GFXH, ByteAcc, NoLock, Preserve)
  2517. {
  2518. VID0, 16,
  2519. DID0, 16
  2520. }
  2521.  
  2522. Method (_DSM, 4, NotSerialized)
  2523. {
  2524. If (LEqual (Arg0, Buffer (0x10)
  2525. {
  2526. /* 0000 */ 0xC6, 0xB7, 0xB5, 0xA0, 0x18, 0x13, 0x1C, 0x44,
  2527. /* 0008 */ 0xB0, 0xC9, 0xFE, 0x69, 0x5E, 0xAF, 0x94, 0x9B
  2528. }))
  2529. {
  2530. If (LNotEqual (And (VID0, 0xFFFF), 0xFFFF))
  2531. {
  2532. Store (Package (0x02)
  2533. {
  2534. "hda-gfx",
  2535. Buffer (0x0A)
  2536. {
  2537. "onboard-1"
  2538. }
  2539. }, Local0)
  2540. DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
  2541. Return (Local0)
  2542. }
  2543. }
  2544.  
  2545. Return (0x00)
  2546. }
  2547.  
  2548. Method (PCPC, 0, NotSerialized)
  2549. {
  2550. }
  2551.  
  2552. Method (PAPR, 0, NotSerialized)
  2553. {
  2554. Return (0x00)
  2555. }
  2556.  
  2557. Method (_DOS, 1, NotSerialized)
  2558. {
  2559. Store (And (Arg0, 0x07), DSEN)
  2560. If (LEqual (And (Arg0, 0x03), 0x00))
  2561. {
  2562. If (CondRefOf (HDOS))
  2563. {
  2564. HDOS ()
  2565. }
  2566. }
  2567. }
  2568.  
  2569. Method (_DOD, 0, NotSerialized)
  2570. {
  2571. If (CondRefOf (IDAB)) {}
  2572. Else
  2573. {
  2574. Store (0x00, NDID)
  2575. If (LNotEqual (DIDL, Zero))
  2576. {
  2577. Store (SDDL (DIDL), DID1)
  2578. }
  2579.  
  2580. If (LNotEqual (DDL2, Zero))
  2581. {
  2582. Store (SDDL (DDL2), DID2)
  2583. }
  2584.  
  2585. If (LNotEqual (DDL3, Zero))
  2586. {
  2587. Store (SDDL (DDL3), DID3)
  2588. }
  2589.  
  2590. If (LNotEqual (DDL4, Zero))
  2591. {
  2592. Store (SDDL (DDL4), DID4)
  2593. }
  2594.  
  2595. If (LNotEqual (DDL5, Zero))
  2596. {
  2597. Store (SDDL (DDL5), DID5)
  2598. }
  2599.  
  2600. If (LNotEqual (DDL6, Zero))
  2601. {
  2602. Store (SDDL (DDL6), DID6)
  2603. }
  2604.  
  2605. If (LNotEqual (DDL7, Zero))
  2606. {
  2607. Store (SDDL (DDL7), DID7)
  2608. }
  2609.  
  2610. If (LNotEqual (DDL8, Zero))
  2611. {
  2612. Store (SDDL (DDL8), DID8)
  2613. }
  2614. }
  2615.  
  2616. If (LEqual (NDID, 0x01))
  2617. {
  2618. Name (TMP1, Package (0x01)
  2619. {
  2620. 0xFFFFFFFF
  2621. })
  2622. Store (Or (0x00010000, DID1), Index (TMP1, 0x00))
  2623. Return (TMP1)
  2624. }
  2625.  
  2626. If (LEqual (NDID, 0x02))
  2627. {
  2628. Name (TMP2, Package (0x02)
  2629. {
  2630. 0xFFFFFFFF,
  2631. 0xFFFFFFFF
  2632. })
  2633. Store (Or (0x00010000, DID1), Index (TMP2, 0x00))
  2634. Store (Or (0x00010000, DID2), Index (TMP2, 0x01))
  2635. Return (TMP2)
  2636. }
  2637.  
  2638. If (LEqual (NDID, 0x03))
  2639. {
  2640. Name (TMP3, Package (0x03)
  2641. {
  2642. 0xFFFFFFFF,
  2643. 0xFFFFFFFF,
  2644. 0xFFFFFFFF
  2645. })
  2646. Store (Or (0x00010000, DID1), Index (TMP3, 0x00))
  2647. Store (Or (0x00010000, DID2), Index (TMP3, 0x01))
  2648. Store (Or (0x00010000, DID3), Index (TMP3, 0x02))
  2649. Return (TMP3)
  2650. }
  2651.  
  2652. If (LEqual (NDID, 0x04))
  2653. {
  2654. Name (TMP4, Package (0x04)
  2655. {
  2656. 0xFFFFFFFF,
  2657. 0xFFFFFFFF,
  2658. 0xFFFFFFFF,
  2659. 0xFFFFFFFF
  2660. })
  2661. Store (Or (0x00010000, DID1), Index (TMP4, 0x00))
  2662. Store (Or (0x00010000, DID2), Index (TMP4, 0x01))
  2663. Store (Or (0x00010000, DID3), Index (TMP4, 0x02))
  2664. Store (Or (0x00010000, DID4), Index (TMP4, 0x03))
  2665. Return (TMP4)
  2666. }
  2667.  
  2668. If (LEqual (NDID, 0x05))
  2669. {
  2670. Name (TMP5, Package (0x05)
  2671. {
  2672. 0xFFFFFFFF,
  2673. 0xFFFFFFFF,
  2674. 0xFFFFFFFF,
  2675. 0xFFFFFFFF,
  2676. 0xFFFFFFFF
  2677. })
  2678. Store (Or (0x00010000, DID1), Index (TMP5, 0x00))
  2679. Store (Or (0x00010000, DID2), Index (TMP5, 0x01))
  2680. Store (Or (0x00010000, DID3), Index (TMP5, 0x02))
  2681. Store (Or (0x00010000, DID4), Index (TMP5, 0x03))
  2682. Store (Or (0x00010000, DID5), Index (TMP5, 0x04))
  2683. Return (TMP5)
  2684. }
  2685.  
  2686. If (LEqual (NDID, 0x06))
  2687. {
  2688. Name (TMP6, Package (0x06)
  2689. {
  2690. 0xFFFFFFFF,
  2691. 0xFFFFFFFF,
  2692. 0xFFFFFFFF,
  2693. 0xFFFFFFFF,
  2694. 0xFFFFFFFF,
  2695. 0xFFFFFFFF
  2696. })
  2697. Store (Or (0x00010000, DID1), Index (TMP6, 0x00))
  2698. Store (Or (0x00010000, DID2), Index (TMP6, 0x01))
  2699. Store (Or (0x00010000, DID3), Index (TMP6, 0x02))
  2700. Store (Or (0x00010000, DID4), Index (TMP6, 0x03))
  2701. Store (Or (0x00010000, DID5), Index (TMP6, 0x04))
  2702. Store (Or (0x00010000, DID6), Index (TMP6, 0x05))
  2703. Return (TMP6)
  2704. }
  2705.  
  2706. If (LEqual (NDID, 0x07))
  2707. {
  2708. Name (TMP7, Package (0x07)
  2709. {
  2710. 0xFFFFFFFF,
  2711. 0xFFFFFFFF,
  2712. 0xFFFFFFFF,
  2713. 0xFFFFFFFF,
  2714. 0xFFFFFFFF,
  2715. 0xFFFFFFFF,
  2716. 0xFFFFFFFF
  2717. })
  2718. Store (Or (0x00010000, DID1), Index (TMP7, 0x00))
  2719. Store (Or (0x00010000, DID2), Index (TMP7, 0x01))
  2720. Store (Or (0x00010000, DID3), Index (TMP7, 0x02))
  2721. Store (Or (0x00010000, DID4), Index (TMP7, 0x03))
  2722. Store (Or (0x00010000, DID5), Index (TMP7, 0x04))
  2723. Store (Or (0x00010000, DID6), Index (TMP7, 0x05))
  2724. Store (Or (0x00010000, DID7), Index (TMP7, 0x06))
  2725. Return (TMP7)
  2726. }
  2727.  
  2728. If (LEqual (NDID, 0x08))
  2729. {
  2730. Name (TMP8, Package (0x08)
  2731. {
  2732. 0xFFFFFFFF,
  2733. 0xFFFFFFFF,
  2734. 0xFFFFFFFF,
  2735. 0xFFFFFFFF,
  2736. 0xFFFFFFFF,
  2737. 0xFFFFFFFF,
  2738. 0xFFFFFFFF,
  2739. 0xFFFFFFFF
  2740. })
  2741. Store (Or (0x00010000, DID1), Index (TMP8, 0x00))
  2742. Store (Or (0x00010000, DID2), Index (TMP8, 0x01))
  2743. Store (Or (0x00010000, DID3), Index (TMP8, 0x02))
  2744. Store (Or (0x00010000, DID4), Index (TMP8, 0x03))
  2745. Store (Or (0x00010000, DID5), Index (TMP8, 0x04))
  2746. Store (Or (0x00010000, DID6), Index (TMP8, 0x05))
  2747. Store (Or (0x00010000, DID7), Index (TMP8, 0x06))
  2748. Store (Or (0x00010000, DID8), Index (TMP8, 0x07))
  2749. Return (TMP8)
  2750. }
  2751.  
  2752. Return (Package (0x01)
  2753. {
  2754. 0x0400
  2755. })
  2756. }
  2757.  
  2758. Name (EDPV, 0x00)
  2759. Name (DIDX, 0x00)
  2760. Name (NXDX, 0x00)
  2761. Name (BRTN, Package (0x12)
  2762. {
  2763. 0x50,
  2764. 0x2F,
  2765. 0x00,
  2766. 0x07,
  2767. 0x0D,
  2768. 0x14,
  2769. 0x1B,
  2770. 0x21,
  2771. 0x28,
  2772. 0x2F,
  2773. 0x35,
  2774. 0x3C,
  2775. 0x43,
  2776. 0x49,
  2777. 0x50,
  2778. 0x57,
  2779. 0x5D,
  2780. 0x64
  2781. })
  2782. Method (ABCL, 0, NotSerialized)
  2783. {
  2784. Store (DerefOf (Index (BRTN, 0x0F)), Index (BRTN, 0x00))
  2785. Store (DerefOf (Index (BRTN, 0x0A)), Index (BRTN, 0x01))
  2786. Return (BRTN)
  2787. }
  2788.  
  2789. Method (ABCM, 1, NotSerialized)
  2790. {
  2791. If (LAnd (LGreaterEqual (Arg0, 0x00), LLessEqual (Arg0, 0x64)))
  2792. {
  2793. Store (Arg0, BRTL)
  2794. \_SB.PCI0.IGPU.AINT (0x01, Arg0)
  2795. }
  2796.  
  2797. Return (Zero)
  2798. }
  2799.  
  2800. Method (ABQC, 0, NotSerialized)
  2801. {
  2802. Return (BRTL)
  2803. }
  2804.  
  2805. Device (DD01)
  2806. {
  2807. Method (_ADR, 0, Serialized)
  2808. {
  2809. If (LEqual (And (0x0F00, DID1), 0x0302))
  2810. {
  2811. Store (0x01, EDPV)
  2812. Store (NXD1, NXDX)
  2813. Store (DID1, DIDX)
  2814. Return (0x01)
  2815. }
  2816.  
  2817. If (LEqual (DID1, 0x00))
  2818. {
  2819. Return (0x01)
  2820. }
  2821. Else
  2822. {
  2823. Return (And (0xFFFF, DID1))
  2824. }
  2825. }
  2826.  
  2827. Method (_DCS, 0, NotSerialized)
  2828. {
  2829. Return (CDDS (DID1))
  2830. }
  2831.  
  2832. Method (_DGS, 0, NotSerialized)
  2833. {
  2834. If (CondRefOf (SNXD))
  2835. {
  2836. Return (NXD1)
  2837. }
  2838.  
  2839. Return (NDDS (DID1))
  2840. }
  2841.  
  2842. Method (_DSS, 1, NotSerialized)
  2843. {
  2844. If (LEqual (And (Arg0, 0xC0000000), 0xC0000000))
  2845. {
  2846. Store (NSTE, CSTE)
  2847. }
  2848. }
  2849.  
  2850. Method (_BCL, 0, NotSerialized)
  2851. {
  2852. Return (\_SB.PCI0.IGPU.ABCL ())
  2853. }
  2854.  
  2855. Method (_BCM, 1, NotSerialized)
  2856. {
  2857. \_SB.PCI0.IGPU.ABCM (Arg0)
  2858. Return (Zero)
  2859. }
  2860.  
  2861. Method (_BQC, 0, NotSerialized)
  2862. {
  2863. Return (\_SB.PCI0.IGPU.ABQC ())
  2864. }
  2865. }
  2866.  
  2867. Device (DD02)
  2868. {
  2869. Method (_ADR, 0, Serialized)
  2870. {
  2871. If (LEqual (And (0x0F00, DID2), 0x0302))
  2872. {
  2873. Store (0x02, EDPV)
  2874. Store (NXD2, NXDX)
  2875. Store (DID2, DIDX)
  2876. Return (0x02)
  2877. }
  2878.  
  2879. If (LEqual (DID2, 0x00))
  2880. {
  2881. Return (0x02)
  2882. }
  2883. Else
  2884. {
  2885. Return (And (0xFFFF, DID2))
  2886. }
  2887. }
  2888.  
  2889. Method (_DCS, 0, NotSerialized)
  2890. {
  2891. If (LEqual (LIDS, 0x00))
  2892. {
  2893. Return (0x00)
  2894. }
  2895.  
  2896. Return (CDDS (DID2))
  2897. }
  2898.  
  2899. Method (_DGS, 0, NotSerialized)
  2900. {
  2901. If (CondRefOf (SNXD))
  2902. {
  2903. Return (NXD2)
  2904. }
  2905.  
  2906. Return (NDDS (DID2))
  2907. }
  2908.  
  2909. Method (_DSS, 1, NotSerialized)
  2910. {
  2911. If (LEqual (And (Arg0, 0xC0000000), 0xC0000000))
  2912. {
  2913. Store (NSTE, CSTE)
  2914. }
  2915. }
  2916. }
  2917.  
  2918. Device (DD03)
  2919. {
  2920. Method (_ADR, 0, Serialized)
  2921. {
  2922. If (LEqual (And (0x0F00, DID3), 0x0302))
  2923. {
  2924. Store (0x03, EDPV)
  2925. Store (NXD3, NXDX)
  2926. Store (DID3, DIDX)
  2927. Return (0x03)
  2928. }
  2929.  
  2930. If (LEqual (DID3, 0x00))
  2931. {
  2932. Return (0x03)
  2933. }
  2934. Else
  2935. {
  2936. Return (And (0xFFFF, DID3))
  2937. }
  2938. }
  2939.  
  2940. Method (_DCS, 0, NotSerialized)
  2941. {
  2942. If (LEqual (DID3, 0x00))
  2943. {
  2944. Return (0x0B)
  2945. }
  2946. Else
  2947. {
  2948. Return (CDDS (DID3))
  2949. }
  2950. }
  2951.  
  2952. Method (_DGS, 0, NotSerialized)
  2953. {
  2954. If (CondRefOf (SNXD))
  2955. {
  2956. Return (NXD3)
  2957. }
  2958.  
  2959. Return (NDDS (DID3))
  2960. }
  2961.  
  2962. Method (_DSS, 1, NotSerialized)
  2963. {
  2964. If (LEqual (And (Arg0, 0xC0000000), 0xC0000000))
  2965. {
  2966. Store (NSTE, CSTE)
  2967. }
  2968. }
  2969. }
  2970.  
  2971. Device (DD04)
  2972. {
  2973. Method (_ADR, 0, Serialized)
  2974. {
  2975. If (LEqual (And (0x0F00, DID4), 0x0302))
  2976. {
  2977. Store (0x04, EDPV)
  2978. Store (NXD4, NXDX)
  2979. Store (DID4, DIDX)
  2980. Return (0x04)
  2981. }
  2982.  
  2983. If (LEqual (DID4, 0x00))
  2984. {
  2985. Return (0x04)
  2986. }
  2987. Else
  2988. {
  2989. Return (And (0xFFFF, DID4))
  2990. }
  2991. }
  2992.  
  2993. Method (_DCS, 0, NotSerialized)
  2994. {
  2995. If (LEqual (DID4, 0x00))
  2996. {
  2997. Return (0x0B)
  2998. }
  2999. Else
  3000. {
  3001. Return (CDDS (DID4))
  3002. }
  3003. }
  3004.  
  3005. Method (_DGS, 0, NotSerialized)
  3006. {
  3007. If (CondRefOf (SNXD))
  3008. {
  3009. Return (NXD4)
  3010. }
  3011.  
  3012. Return (NDDS (DID4))
  3013. }
  3014.  
  3015. Method (_DSS, 1, NotSerialized)
  3016. {
  3017. If (LEqual (And (Arg0, 0xC0000000), 0xC0000000))
  3018. {
  3019. Store (NSTE, CSTE)
  3020. }
  3021. }
  3022. }
  3023.  
  3024. Device (DD05)
  3025. {
  3026. Method (_ADR, 0, Serialized)
  3027. {
  3028. If (LEqual (And (0x0F00, DID5), 0x0302))
  3029. {
  3030. Store (0x05, EDPV)
  3031. Store (NXD5, NXDX)
  3032. Store (DID5, DIDX)
  3033. Return (0x05)
  3034. }
  3035.  
  3036. If (LEqual (DID5, 0x00))
  3037. {
  3038. Return (0x05)
  3039. }
  3040. Else
  3041. {
  3042. Return (And (0xFFFF, DID5))
  3043. }
  3044. }
  3045.  
  3046. Method (_DCS, 0, NotSerialized)
  3047. {
  3048. If (LEqual (DID5, 0x00))
  3049. {
  3050. Return (0x0B)
  3051. }
  3052. Else
  3053. {
  3054. Return (CDDS (DID5))
  3055. }
  3056. }
  3057.  
  3058. Method (_DGS, 0, NotSerialized)
  3059. {
  3060. If (CondRefOf (SNXD))
  3061. {
  3062. Return (NXD5)
  3063. }
  3064.  
  3065. Return (NDDS (DID5))
  3066. }
  3067.  
  3068. Method (_DSS, 1, NotSerialized)
  3069. {
  3070. If (LEqual (And (Arg0, 0xC0000000), 0xC0000000))
  3071. {
  3072. Store (NSTE, CSTE)
  3073. }
  3074. }
  3075. }
  3076.  
  3077. Device (DD06)
  3078. {
  3079. Method (_ADR, 0, Serialized)
  3080. {
  3081. If (LEqual (And (0x0F00, DID6), 0x0302))
  3082. {
  3083. Store (0x06, EDPV)
  3084. Store (NXD6, NXDX)
  3085. Store (DID6, DIDX)
  3086. Return (0x06)
  3087. }
  3088.  
  3089. If (LEqual (DID6, 0x00))
  3090. {
  3091. Return (0x06)
  3092. }
  3093. Else
  3094. {
  3095. Return (And (0xFFFF, DID6))
  3096. }
  3097. }
  3098.  
  3099. Method (_DCS, 0, NotSerialized)
  3100. {
  3101. If (LEqual (DID6, 0x00))
  3102. {
  3103. Return (0x0B)
  3104. }
  3105. Else
  3106. {
  3107. Return (CDDS (DID6))
  3108. }
  3109. }
  3110.  
  3111. Method (_DGS, 0, NotSerialized)
  3112. {
  3113. If (CondRefOf (SNXD))
  3114. {
  3115. Return (NXD6)
  3116. }
  3117.  
  3118. Return (NDDS (DID6))
  3119. }
  3120.  
  3121. Method (_DSS, 1, NotSerialized)
  3122. {
  3123. If (LEqual (And (Arg0, 0xC0000000), 0xC0000000))
  3124. {
  3125. Store (NSTE, CSTE)
  3126. }
  3127. }
  3128. }
  3129.  
  3130. Device (DD07)
  3131. {
  3132. Method (_ADR, 0, Serialized)
  3133. {
  3134. If (LEqual (And (0x0F00, DID7), 0x0302))
  3135. {
  3136. Store (0x07, EDPV)
  3137. Store (NXD7, NXDX)
  3138. Store (DID7, DIDX)
  3139. Return (0x07)
  3140. }
  3141.  
  3142. If (LEqual (DID7, 0x00))
  3143. {
  3144. Return (0x07)
  3145. }
  3146. Else
  3147. {
  3148. Return (And (0xFFFF, DID7))
  3149. }
  3150. }
  3151.  
  3152. Method (_DCS, 0, NotSerialized)
  3153. {
  3154. If (LEqual (DID7, 0x00))
  3155. {
  3156. Return (0x0B)
  3157. }
  3158. Else
  3159. {
  3160. Return (CDDS (DID7))
  3161. }
  3162. }
  3163.  
  3164. Method (_DGS, 0, NotSerialized)
  3165. {
  3166. If (CondRefOf (SNXD))
  3167. {
  3168. Return (NXD7)
  3169. }
  3170.  
  3171. Return (NDDS (DID7))
  3172. }
  3173.  
  3174. Method (_DSS, 1, NotSerialized)
  3175. {
  3176. If (LEqual (And (Arg0, 0xC0000000), 0xC0000000))
  3177. {
  3178. Store (NSTE, CSTE)
  3179. }
  3180. }
  3181. }
  3182.  
  3183. Device (DD08)
  3184. {
  3185. Method (_ADR, 0, Serialized)
  3186. {
  3187. If (LEqual (And (0x0F00, DID8), 0x0302))
  3188. {
  3189. Store (0x08, EDPV)
  3190. Store (NXD8, NXDX)
  3191. Store (DID8, DIDX)
  3192. Return (0x08)
  3193. }
  3194.  
  3195. If (LEqual (DID8, 0x00))
  3196. {
  3197. Return (0x08)
  3198. }
  3199. Else
  3200. {
  3201. Return (And (0xFFFF, DID8))
  3202. }
  3203. }
  3204.  
  3205. Method (_DCS, 0, NotSerialized)
  3206. {
  3207. If (LEqual (DID8, 0x00))
  3208. {
  3209. Return (0x0B)
  3210. }
  3211. Else
  3212. {
  3213. Return (CDDS (DID8))
  3214. }
  3215. }
  3216.  
  3217. Method (_DGS, 0, NotSerialized)
  3218. {
  3219. If (CondRefOf (SNXD))
  3220. {
  3221. Return (NXD8)
  3222. }
  3223.  
  3224. Return (NDDS (DID8))
  3225. }
  3226.  
  3227. Method (_DSS, 1, NotSerialized)
  3228. {
  3229. If (LEqual (And (Arg0, 0xC0000000), 0xC0000000))
  3230. {
  3231. Store (NSTE, CSTE)
  3232. }
  3233. }
  3234. }
  3235.  
  3236. Device (DD1F)
  3237. {
  3238. Method (_ADR, 0, Serialized)
  3239. {
  3240. If (LEqual (EDPV, 0x00))
  3241. {
  3242. Return (0x1F)
  3243. }
  3244. Else
  3245. {
  3246. Return (And (0xFFFF, DIDX))
  3247. }
  3248. }
  3249.  
  3250. Method (_DCS, 0, NotSerialized)
  3251. {
  3252. If (LEqual (EDPV, 0x00))
  3253. {
  3254. Return (0x00)
  3255. }
  3256. Else
  3257. {
  3258. Return (CDDS (DIDX))
  3259. }
  3260. }
  3261.  
  3262. Method (_DGS, 0, NotSerialized)
  3263. {
  3264. If (CondRefOf (SNXD))
  3265. {
  3266. Return (NXDX)
  3267. }
  3268.  
  3269. Return (NDDS (DIDX))
  3270. }
  3271.  
  3272. Method (_DSS, 1, NotSerialized)
  3273. {
  3274. If (LEqual (And (Arg0, 0xC0000000), 0xC0000000))
  3275. {
  3276. Store (NSTE, CSTE)
  3277. }
  3278. }
  3279. }
  3280.  
  3281. Method (SDDL, 1, NotSerialized)
  3282. {
  3283. Increment (NDID)
  3284. Store (And (Arg0, 0x0F0F), Local0)
  3285. Or (0x80000000, Local0, Local1)
  3286. If (LEqual (DIDL, Local0))
  3287. {
  3288. Return (Local1)
  3289. }
  3290.  
  3291. If (LEqual (DDL2, Local0))
  3292. {
  3293. Return (Local1)
  3294. }
  3295.  
  3296. If (LEqual (DDL3, Local0))
  3297. {
  3298. Return (Local1)
  3299. }
  3300.  
  3301. If (LEqual (DDL4, Local0))
  3302. {
  3303. Return (Local1)
  3304. }
  3305.  
  3306. If (LEqual (DDL5, Local0))
  3307. {
  3308. Return (Local1)
  3309. }
  3310.  
  3311. If (LEqual (DDL6, Local0))
  3312. {
  3313. Return (Local1)
  3314. }
  3315.  
  3316. If (LEqual (DDL7, Local0))
  3317. {
  3318. Return (Local1)
  3319. }
  3320.  
  3321. If (LEqual (DDL8, Local0))
  3322. {
  3323. Return (Local1)
  3324. }
  3325.  
  3326. Return (0x00)
  3327. }
  3328.  
  3329. Method (CDDS, 1, NotSerialized)
  3330. {
  3331. Store (And (Arg0, 0x0F0F), Local0)
  3332. If (LEqual (0x00, Local0))
  3333. {
  3334. Return (0x1D)
  3335. }
  3336.  
  3337. If (LEqual (CADL, Local0))
  3338. {
  3339. Return (0x1F)
  3340. }
  3341.  
  3342. If (LEqual (CAL2, Local0))
  3343. {
  3344. Return (0x1F)
  3345. }
  3346.  
  3347. If (LEqual (CAL3, Local0))
  3348. {
  3349. Return (0x1F)
  3350. }
  3351.  
  3352. If (LEqual (CAL4, Local0))
  3353. {
  3354. Return (0x1F)
  3355. }
  3356.  
  3357. If (LEqual (CAL5, Local0))
  3358. {
  3359. Return (0x1F)
  3360. }
  3361.  
  3362. If (LEqual (CAL6, Local0))
  3363. {
  3364. Return (0x1F)
  3365. }
  3366.  
  3367. If (LEqual (CAL7, Local0))
  3368. {
  3369. Return (0x1F)
  3370. }
  3371.  
  3372. If (LEqual (CAL8, Local0))
  3373. {
  3374. Return (0x1F)
  3375. }
  3376.  
  3377. Return (0x1D)
  3378. }
  3379.  
  3380. Method (NDDS, 1, NotSerialized)
  3381. {
  3382. Store (And (Arg0, 0x0F0F), Local0)
  3383. If (LEqual (0x00, Local0))
  3384. {
  3385. Return (0x00)
  3386. }
  3387.  
  3388. If (LEqual (NADL, Local0))
  3389. {
  3390. Return (0x01)
  3391. }
  3392.  
  3393. If (LEqual (NDL2, Local0))
  3394. {
  3395. Return (0x01)
  3396. }
  3397.  
  3398. If (LEqual (NDL3, Local0))
  3399. {
  3400. Return (0x01)
  3401. }
  3402.  
  3403. If (LEqual (NDL4, Local0))
  3404. {
  3405. Return (0x01)
  3406. }
  3407.  
  3408. If (LEqual (NDL5, Local0))
  3409. {
  3410. Return (0x01)
  3411. }
  3412.  
  3413. If (LEqual (NDL6, Local0))
  3414. {
  3415. Return (0x01)
  3416. }
  3417.  
  3418. If (LEqual (NDL7, Local0))
  3419. {
  3420. Return (0x01)
  3421. }
  3422.  
  3423. If (LEqual (NDL8, Local0))
  3424. {
  3425. Return (0x01)
  3426. }
  3427.  
  3428. Return (0x00)
  3429. }
  3430.  
  3431. Scope (\_SB.PCI0)
  3432. {
  3433. OperationRegion (MCHP, PCI_Config, 0x40, 0xC0)
  3434. Field (MCHP, AnyAcc, NoLock, Preserve)
  3435. {
  3436. Offset (0x14),
  3437. AUDE, 8,
  3438. Offset (0x60),
  3439. TASM, 10,
  3440. Offset (0x62)
  3441. }
  3442. }
  3443.  
  3444. OperationRegion (IGDP, PCI_Config, 0x40, 0xC0)
  3445. Field (IGDP, AnyAcc, NoLock, Preserve)
  3446. {
  3447. Offset (0x12),
  3448. , 1,
  3449. GIVD, 1,
  3450. , 2,
  3451. GUMA, 3,
  3452. Offset (0x14),
  3453. , 4,
  3454. GMFN, 1,
  3455. Offset (0x18),
  3456. Offset (0xA4),
  3457. ASLE, 8,
  3458. Offset (0xA8),
  3459. GSSE, 1,
  3460. GSSB, 14,
  3461. GSES, 1,
  3462. Offset (0xB0),
  3463. , 12,
  3464. CDVL, 1,
  3465. Offset (0xB2),
  3466. Offset (0xB5),
  3467. LBPC, 8,
  3468. Offset (0xBC),
  3469. ASLS, 32
  3470. }
  3471.  
  3472. OperationRegion (IGDM, SystemMemory, ASLB, 0x2000)
  3473. Field (IGDM, AnyAcc, NoLock, Preserve)
  3474. {
  3475. SIGN, 128,
  3476. SIZE, 32,
  3477. OVER, 32,
  3478. SVER, 256,
  3479. VVER, 128,
  3480. GVER, 128,
  3481. MBOX, 32,
  3482. DMOD, 32,
  3483. Offset (0x100),
  3484. DRDY, 32,
  3485. CSTS, 32,
  3486. CEVT, 32,
  3487. Offset (0x120),
  3488. DIDL, 32,
  3489. DDL2, 32,
  3490. DDL3, 32,
  3491. DDL4, 32,
  3492. DDL5, 32,
  3493. DDL6, 32,
  3494. DDL7, 32,
  3495. DDL8, 32,
  3496. CPDL, 32,
  3497. CPL2, 32,
  3498. CPL3, 32,
  3499. CPL4, 32,
  3500. CPL5, 32,
  3501. CPL6, 32,
  3502. CPL7, 32,
  3503. CPL8, 32,
  3504. CADL, 32,
  3505. CAL2, 32,
  3506. CAL3, 32,
  3507. CAL4, 32,
  3508. CAL5, 32,
  3509. CAL6, 32,
  3510. CAL7, 32,
  3511. CAL8, 32,
  3512. NADL, 32,
  3513. NDL2, 32,
  3514. NDL3, 32,
  3515. NDL4, 32,
  3516. NDL5, 32,
  3517. NDL6, 32,
  3518. NDL7, 32,
  3519. NDL8, 32,
  3520. ASLP, 32,
  3521. TIDX, 32,
  3522. CHPD, 32,
  3523. CLID, 32,
  3524. CDCK, 32,
  3525. SXSW, 32,
  3526. EVTS, 32,
  3527. CNOT, 32,
  3528. NRDY, 32,
  3529. Offset (0x200),
  3530. SCIE, 1,
  3531. GEFC, 4,
  3532. GXFC, 3,
  3533. GESF, 8,
  3534. Offset (0x204),
  3535. PARM, 32,
  3536. DSLP, 32,
  3537. Offset (0x300),
  3538. ARDY, 32,
  3539. ASLC, 32,
  3540. TCHE, 32,
  3541. ALSI, 32,
  3542. BCLP, 32,
  3543. PFIT, 32,
  3544. CBLV, 32,
  3545. BCLM, 320,
  3546. CPFM, 32,
  3547. EPFM, 32,
  3548. PLUT, 592,
  3549. PFMB, 32,
  3550. CCDV, 32,
  3551. PCFT, 32,
  3552. Offset (0x400),
  3553. GVD1, 49152,
  3554. PHED, 32,
  3555. BDDC, 2048
  3556. }
  3557.  
  3558. Name (DBTB, Package (0x15)
  3559. {
  3560. 0x00,
  3561. 0x07,
  3562. 0x38,
  3563. 0x01C0,
  3564. 0x0E00,
  3565. 0x3F,
  3566. 0x01C7,
  3567. 0x0E07,
  3568. 0x01F8,
  3569. 0x0E38,
  3570. 0x0FC0,
  3571. 0x00,
  3572. 0x00,
  3573. 0x00,
  3574. 0x00,
  3575. 0x00,
  3576. 0x7000,
  3577. 0x7007,
  3578. 0x7038,
  3579. 0x71C0,
  3580. 0x7E00
  3581. })
  3582. Name (CDCT, Package (0x05)
  3583. {
  3584. Package (0x02)
  3585. {
  3586. 0xE4,
  3587. 0x0140
  3588. },
  3589.  
  3590. Package (0x02)
  3591. {
  3592. 0xDE,
  3593. 0x014D
  3594. },
  3595.  
  3596. Package (0x02)
  3597. {
  3598. 0xDE,
  3599. 0x014D
  3600. },
  3601.  
  3602. Package (0x02)
  3603. {
  3604. 0x00,
  3605. 0x00
  3606. },
  3607.  
  3608. Package (0x02)
  3609. {
  3610. 0xDE,
  3611. 0x014D
  3612. }
  3613. })
  3614. Name (SUCC, 0x01)
  3615. Name (NVLD, 0x02)
  3616. Name (CRIT, 0x04)
  3617. Name (NCRT, 0x06)
  3618. Method (GSCI, 0, Serialized)
  3619. {
  3620. Method (GBDA, 0, Serialized)
  3621. {
  3622. If (LEqual (GESF, 0x00))
  3623. {
  3624. Store (0x00020000, PARM)
  3625. Store (Zero, GESF)
  3626. Return (SUCC)
  3627. }
  3628.  
  3629. If (LEqual (GESF, 0x01))
  3630. {
  3631. Store (0x00200000, PARM)
  3632. Store (Zero, GESF)
  3633. Return (SUCC)
  3634. }
  3635.  
  3636. If (LEqual (GESF, 0x04))
  3637. {
  3638. And (PARM, 0xEFFF0000, PARM)
  3639. And (PARM, ShiftLeft (DerefOf (Index (DBTB, IBTT)), 0x10),
  3640. PARM)
  3641. Or (IBTT, PARM, PARM)
  3642. Store (Zero, GESF)
  3643. Return (SUCC)
  3644. }
  3645.  
  3646. If (LEqual (GESF, 0x05))
  3647. {
  3648. Store (IPSC, PARM)
  3649. Or (PARM, ShiftLeft (IPAT, 0x08), PARM)
  3650. Add (PARM, 0x0100, PARM)
  3651. Or (PARM, ShiftLeft (LIDS, 0x10), PARM)
  3652. Add (PARM, 0x00010000, PARM)
  3653. Or (PARM, ShiftLeft (IBIA, 0x14), PARM)
  3654. Store (Zero, GESF)
  3655. Return (SUCC)
  3656. }
  3657.  
  3658. If (LEqual (GESF, 0x06))
  3659. {
  3660. Store (Zero, GESF)
  3661. Return (SUCC)
  3662. }
  3663.  
  3664. If (LEqual (GESF, 0x07))
  3665. {
  3666. Store (GIVD, PARM)
  3667. XOr (PARM, 0x01, PARM)
  3668. Or (PARM, ShiftLeft (GMFN, 0x01), PARM)
  3669. Or (PARM, ShiftLeft (0x03, 0x0B), PARM)
  3670. Or (PARM, ShiftLeft (IDMS, 0x11), PARM)
  3671. Or (ShiftLeft (DerefOf (Index (DerefOf (Index (CDCT, HVCO)), CDVL
  3672. )), 0x15), PARM, PARM)
  3673. Store (0x01, GESF)
  3674. Return (SUCC)
  3675. }
  3676.  
  3677. If (LEqual (GESF, 0x0A))
  3678. {
  3679. Store (0x00, PARM)
  3680. If (ISSC)
  3681. {
  3682. Or (PARM, 0x03, PARM)
  3683. }
  3684.  
  3685. Store (0x00, GESF)
  3686. Return (SUCC)
  3687. }
  3688.  
  3689. If (LEqual (GESF, 0x0B))
  3690. {
  3691. Store (KSV0, PARM)
  3692. Store (KSV1, GESF)
  3693. Return (SUCC)
  3694. }
  3695.  
  3696. Store (Zero, GESF)
  3697. Return (CRIT)
  3698. }
  3699.  
  3700. Method (SBCB, 0, Serialized)
  3701. {
  3702. If (LEqual (GESF, 0x00))
  3703. {
  3704. Store (0x00, PARM)
  3705. Store (0x00020000, PARM)
  3706. Store (Zero, GESF)
  3707. Return (SUCC)
  3708. }
  3709.  
  3710. If (LEqual (GESF, 0x01))
  3711. {
  3712. Store (0x00, PARM)
  3713. Store (Zero, GESF)
  3714. Store (0x00200000, PARM)
  3715. Return (SUCC)
  3716. }
  3717.  
  3718. If (LEqual (GESF, 0x03))
  3719. {
  3720. Store (Zero, GESF)
  3721. Store (Zero, PARM)
  3722. Return (SUCC)
  3723. }
  3724.  
  3725. If (LEqual (GESF, 0x04))
  3726. {
  3727. Store (Zero, GESF)
  3728. Store (Zero, PARM)
  3729. Return (SUCC)
  3730. }
  3731.  
  3732. If (LEqual (GESF, 0x05))
  3733. {
  3734. Store (Zero, GESF)
  3735. Store (Zero, PARM)
  3736. Return (SUCC)
  3737. }
  3738.  
  3739. If (LEqual (GESF, 0x06))
  3740. {
  3741. Store (Zero, GESF)
  3742. Store (Zero, PARM)
  3743. Return (SUCC)
  3744. }
  3745.  
  3746. If (LEqual (GESF, 0x07))
  3747. {
  3748. If (LEqual (PARM, 0x00))
  3749. {
  3750. Store (CLID, Local0)
  3751. If (And (0x80000000, Local0))
  3752. {
  3753. And (CLID, 0x0F, CLID)
  3754. GLID (CLID)
  3755. }
  3756. }
  3757.  
  3758. Store (Zero, GESF)
  3759. Store (Zero, PARM)
  3760. Return (SUCC)
  3761. }
  3762.  
  3763. If (LEqual (GESF, 0x08))
  3764. {
  3765. Store (Zero, GESF)
  3766. Store (Zero, PARM)
  3767. Return (SUCC)
  3768. }
  3769.  
  3770. If (LEqual (GESF, 0x09))
  3771. {
  3772. And (PARM, 0xFF, IBTT)
  3773. Store (Zero, GESF)
  3774. Store (Zero, PARM)
  3775. Return (SUCC)
  3776. }
  3777.  
  3778. If (LEqual (GESF, 0x0A))
  3779. {
  3780. And (PARM, 0xFF, IPSC)
  3781. If (And (ShiftRight (PARM, 0x08), 0xFF))
  3782. {
  3783. And (ShiftRight (PARM, 0x08), 0xFF, IPAT)
  3784. Decrement (IPAT)
  3785. }
  3786.  
  3787. And (ShiftRight (PARM, 0x14), 0x07, IBIA)
  3788. Store (Zero, GESF)
  3789. Store (Zero, PARM)
  3790. Return (SUCC)
  3791. }
  3792.  
  3793. If (LEqual (GESF, 0x0B))
  3794. {
  3795. And (ShiftRight (PARM, 0x01), 0x01, IF1E)
  3796. If (And (PARM, ShiftLeft (0x0F, 0x0D)))
  3797. {
  3798. And (ShiftRight (PARM, 0x0D), 0x0F, IDMS)
  3799. }
  3800. Else
  3801. {
  3802. And (ShiftRight (PARM, 0x11), 0x0F, IDMS)
  3803. }
  3804.  
  3805. Store (Zero, GESF)
  3806. Store (Zero, PARM)
  3807. Return (SUCC)
  3808. }
  3809.  
  3810. If (LEqual (GESF, 0x10))
  3811. {
  3812. Store (Zero, GESF)
  3813. Store (Zero, PARM)
  3814. Return (SUCC)
  3815. }
  3816.  
  3817. If (LEqual (GESF, 0x11))
  3818. {
  3819. Store (ShiftLeft (LIDS, 0x08), PARM)
  3820. Add (PARM, 0x0100, PARM)
  3821. Store (Zero, GESF)
  3822. Return (SUCC)
  3823. }
  3824.  
  3825. If (LEqual (GESF, 0x12))
  3826. {
  3827. If (And (PARM, 0x01))
  3828. {
  3829. If (LEqual (ShiftRight (PARM, 0x01), 0x01))
  3830. {
  3831. Store (0x01, ISSC)
  3832. }
  3833. Else
  3834. {
  3835. Store (Zero, GESF)
  3836. Return (CRIT)
  3837. }
  3838. }
  3839. Else
  3840. {
  3841. Store (0x00, ISSC)
  3842. }
  3843.  
  3844. Store (Zero, GESF)
  3845. Store (Zero, PARM)
  3846. Return (SUCC)
  3847. }
  3848.  
  3849. If (LEqual (GESF, 0x13))
  3850. {
  3851. Store (Zero, GESF)
  3852. Store (Zero, PARM)
  3853. Return (SUCC)
  3854. }
  3855.  
  3856. If (LEqual (GESF, 0x14))
  3857. {
  3858. And (PARM, 0x0F, PAVP)
  3859. Store (Zero, GESF)
  3860. Store (Zero, PARM)
  3861. Return (SUCC)
  3862. }
  3863.  
  3864. If (LEqual (GESF, 0x15))
  3865. {
  3866. If (LEqual (PARM, 0x01))
  3867. {
  3868. Or (\_SB.PCI0.AUDE, 0x20, \_SB.PCI0.AUDE)
  3869. \_SB.PCI0.HDAU.ASTR ()
  3870. \_SB.PCI0.HDAU.AINI ()
  3871. \_SB.PCI0.HDAU.CXDC ()
  3872. Notify (\_SB.PCI0, 0x00)
  3873. }
  3874.  
  3875. If (LEqual (PARM, 0x00))
  3876. {
  3877. And (\_SB.PCI0.AUDE, 0xDF, \_SB.PCI0.AUDE)
  3878. Notify (\_SB.PCI0, 0x00)
  3879. }
  3880.  
  3881. Store (Zero, GESF)
  3882. Store (Zero, PARM)
  3883. Return (SUCC)
  3884. }
  3885.  
  3886. Store (Zero, GESF)
  3887. Return (SUCC)
  3888. }
  3889.  
  3890. If (LEqual (GEFC, 0x04))
  3891. {
  3892. Store (GBDA (), GXFC)
  3893. }
  3894.  
  3895. If (LEqual (GEFC, 0x06))
  3896. {
  3897. Store (SBCB (), GXFC)
  3898. }
  3899.  
  3900. Store (0x00, GEFC)
  3901. Store (0x01, SCIS)
  3902. Store (0x00, GSSE)
  3903. Store (0x00, SCIE)
  3904. Return (Zero)
  3905. }
  3906.  
  3907. Method (PDRD, 0, NotSerialized)
  3908. {
  3909. If (LNot (DRDY))
  3910. {
  3911. Sleep (ASLP)
  3912. }
  3913.  
  3914. Return (LNot (DRDY))
  3915. }
  3916.  
  3917. Method (PSTS, 0, NotSerialized)
  3918. {
  3919. If (LGreater (CSTS, 0x02))
  3920. {
  3921. Sleep (ASLP)
  3922. }
  3923.  
  3924. Return (LEqual (CSTS, 0x03))
  3925. }
  3926.  
  3927. Method (GNOT, 2, NotSerialized)
  3928. {
  3929. If (PDRD ())
  3930. {
  3931. Return (0x01)
  3932. }
  3933.  
  3934. Store (Arg0, CEVT)
  3935. Store (0x03, CSTS)
  3936. If (LAnd (LEqual (CHPD, 0x00), LEqual (Arg1, 0x00)))
  3937. {
  3938. If (LOr (LGreater (OSYS, 0x07D0), LLess (OSYS, 0x07D6)))
  3939. {
  3940. Notify (\_SB.PCI0, Arg1)
  3941. }
  3942. Else
  3943. {
  3944. Notify (\_SB.PCI0.IGPU, Arg1)
  3945. }
  3946. }
  3947.  
  3948. If (CondRefOf (HNOT))
  3949. {
  3950. HNOT (Arg0)
  3951. }
  3952. Else
  3953. {
  3954. Notify (\_SB.PCI0.IGPU, 0x80)
  3955. }
  3956.  
  3957. Return (0x00)
  3958. }
  3959.  
  3960. Method (GHDS, 1, NotSerialized)
  3961. {
  3962. Store (Arg0, TIDX)
  3963. Return (GNOT (0x01, 0x00))
  3964. }
  3965.  
  3966. Method (GLID, 1, NotSerialized)
  3967. {
  3968. If (LEqual (Arg0, 0x01))
  3969. {
  3970. Store (0x03, CLID)
  3971. }
  3972. Else
  3973. {
  3974. Store (Arg0, CLID)
  3975. }
  3976.  
  3977. Return (GNOT (0x02, 0x00))
  3978. }
  3979.  
  3980. Method (GDCK, 1, NotSerialized)
  3981. {
  3982. Store (Arg0, CDCK)
  3983. Return (GNOT (0x04, 0x00))
  3984. }
  3985.  
  3986. Method (PARD, 0, NotSerialized)
  3987. {
  3988. If (LNot (ARDY))
  3989. {
  3990. Sleep (ASLP)
  3991. }
  3992.  
  3993. Return (LNot (ARDY))
  3994. }
  3995.  
  3996. Method (AINT, 2, NotSerialized)
  3997. {
  3998. If (LNot (And (TCHE, ShiftLeft (0x01, Arg0))))
  3999. {
  4000. Return (0x01)
  4001. }
  4002.  
  4003. If (PARD ())
  4004. {
  4005. Return (0x01)
  4006. }
  4007.  
  4008. If (LEqual (Arg0, 0x02))
  4009. {
  4010. If (CPFM)
  4011. {
  4012. And (CPFM, 0x0F, Local0)
  4013. And (EPFM, 0x0F, Local1)
  4014. If (LEqual (Local0, 0x01))
  4015. {
  4016. If (And (Local1, 0x06))
  4017. {
  4018. Store (0x06, PFIT)
  4019. }
  4020. Else
  4021. {
  4022. If (And (Local1, 0x08))
  4023. {
  4024. Store (0x08, PFIT)
  4025. }
  4026. Else
  4027. {
  4028. Store (0x01, PFIT)
  4029. }
  4030. }
  4031. }
  4032.  
  4033. If (LEqual (Local0, 0x06))
  4034. {
  4035. If (And (Local1, 0x08))
  4036. {
  4037. Store (0x08, PFIT)
  4038. }
  4039. Else
  4040. {
  4041. If (And (Local1, 0x01))
  4042. {
  4043. Store (0x01, PFIT)
  4044. }
  4045. Else
  4046. {
  4047. Store (0x06, PFIT)
  4048. }
  4049. }
  4050. }
  4051.  
  4052. If (LEqual (Local0, 0x08))
  4053. {
  4054. If (And (Local1, 0x01))
  4055. {
  4056. Store (0x01, PFIT)
  4057. }
  4058. Else
  4059. {
  4060. If (And (Local1, 0x06))
  4061. {
  4062. Store (0x06, PFIT)
  4063. }
  4064. Else
  4065. {
  4066. Store (0x08, PFIT)
  4067. }
  4068. }
  4069. }
  4070. }
  4071. Else
  4072. {
  4073. XOr (PFIT, 0x07, PFIT)
  4074. }
  4075.  
  4076. Or (PFIT, 0x80000000, PFIT)
  4077. Store (0x04, ASLC)
  4078. }
  4079. Else
  4080. {
  4081. If (LEqual (Arg0, 0x01))
  4082. {
  4083. Store (Divide (Multiply (Arg1, 0xFF), 0x64, ), BCLP)
  4084. Or (BCLP, 0x80000000, BCLP)
  4085. Store (0x02, ASLC)
  4086. }
  4087. Else
  4088. {
  4089. If (LEqual (Arg0, 0x00))
  4090. {
  4091. Store (Arg1, ALSI)
  4092. Store (0x01, ASLC)
  4093. }
  4094. Else
  4095. {
  4096. Return (0x01)
  4097. }
  4098. }
  4099. }
  4100.  
  4101. Store (0x01, ASLE)
  4102. Return (0x00)
  4103. }
  4104.  
  4105. Method (SCIP, 0, NotSerialized)
  4106. {
  4107. If (LNotEqual (OVER, 0x00))
  4108. {
  4109. Return (LNot (GSMI))
  4110. }
  4111.  
  4112. Return (0x00)
  4113. }
  4114.  
  4115. Device (\_SB.MEM2)
  4116. {
  4117. Name (_HID, EisaId ("PNP0C01"))
  4118. Name (_UID, 0x02)
  4119. Name (CRS, ResourceTemplate ()
  4120. {
  4121. Memory32Fixed (ReadWrite,
  4122. 0x20000000, // Address Base
  4123. 0x00200000, // Address Length
  4124. )
  4125. Memory32Fixed (ReadWrite,
  4126. 0x40000000, // Address Base
  4127. 0x00200000, // Address Length
  4128. )
  4129. })
  4130. Method (_CRS, 0, NotSerialized)
  4131. {
  4132. Return (CRS)
  4133. }
  4134. }
  4135. }
  4136.  
  4137. Device (SBUS)
  4138. {
  4139. Name (_ADR, 0x001F0003)
  4140. OperationRegion (SMBP, PCI_Config, 0x40, 0xC0)
  4141. Field (SMBP, DWordAcc, NoLock, Preserve)
  4142. {
  4143. , 2,
  4144. I2CE, 1
  4145. }
  4146.  
  4147. OperationRegion (SMPB, PCI_Config, 0x20, 0x04)
  4148. Field (SMPB, DWordAcc, NoLock, Preserve)
  4149. {
  4150. , 5,
  4151. SBAR, 11
  4152. }
  4153.  
  4154. OperationRegion (SMBI, SystemIO, ShiftLeft (SBAR, 0x05), 0x10)
  4155. Field (SMBI, ByteAcc, NoLock, Preserve)
  4156. {
  4157. HSTS, 8,
  4158. Offset (0x02),
  4159. HCON, 8,
  4160. HCOM, 8,
  4161. TXSA, 8,
  4162. DAT0, 8,
  4163. DAT1, 8,
  4164. HBDR, 8,
  4165. PECR, 8,
  4166. RXSA, 8,
  4167. SDAT, 16
  4168. }
  4169.  
  4170. Method (SSXB, 2, Serialized)
  4171. {
  4172. If (STRT ())
  4173. {
  4174. Return (0x00)
  4175. }
  4176.  
  4177. Store (0x00, I2CE)
  4178. Store (0xBF, HSTS)
  4179. Store (Arg0, TXSA)
  4180. Store (Arg1, HCOM)
  4181. Store (0x48, HCON)
  4182. If (COMP ())
  4183. {
  4184. Or (HSTS, 0xFF, HSTS)
  4185. Return (0x01)
  4186. }
  4187.  
  4188. Return (0x00)
  4189. }
  4190.  
  4191. Method (SRXB, 1, Serialized)
  4192. {
  4193. If (STRT ())
  4194. {
  4195. Return (0xFFFF)
  4196. }
  4197.  
  4198. Store (0x00, I2CE)
  4199. Store (0xBF, HSTS)
  4200. Store (Or (Arg0, 0x01), TXSA)
  4201. Store (0x44, HCON)
  4202. If (COMP ())
  4203. {
  4204. Or (HSTS, 0xFF, HSTS)
  4205. Return (DAT0)
  4206. }
  4207.  
  4208. Return (0xFFFF)
  4209. }
  4210.  
  4211. Method (SWRB, 3, Serialized)
  4212. {
  4213. If (STRT ())
  4214. {
  4215. Return (0x00)
  4216. }
  4217.  
  4218. Store (0x00, I2CE)
  4219. Store (0xBF, HSTS)
  4220. Store (Arg0, TXSA)
  4221. Store (Arg1, HCOM)
  4222. Store (Arg2, DAT0)
  4223. Store (0x48, HCON)
  4224. If (COMP ())
  4225. {
  4226. Or (HSTS, 0xFF, HSTS)
  4227. Return (0x01)
  4228. }
  4229.  
  4230. Return (0x00)
  4231. }
  4232.  
  4233. Method (SRDB, 2, Serialized)
  4234. {
  4235. If (STRT ())
  4236. {
  4237. Return (0xFFFF)
  4238. }
  4239.  
  4240. Store (0x00, I2CE)
  4241. Store (0xBF, HSTS)
  4242. Store (Or (Arg0, 0x01), TXSA)
  4243. Store (Arg1, HCOM)
  4244. Store (0x48, HCON)
  4245. If (COMP ())
  4246. {
  4247. Or (HSTS, 0xFF, HSTS)
  4248. Return (DAT0)
  4249. }
  4250.  
  4251. Return (0xFFFF)
  4252. }
  4253.  
  4254. Method (SWRW, 3, Serialized)
  4255. {
  4256. If (STRT ())
  4257. {
  4258. Return (0x00)
  4259. }
  4260.  
  4261. Store (0x00, I2CE)
  4262. Store (0xBF, HSTS)
  4263. Store (Arg0, TXSA)
  4264. Store (Arg1, HCOM)
  4265. And (Arg2, 0xFF, DAT1)
  4266. And (ShiftRight (Arg2, 0x08), 0xFF, DAT0)
  4267. Store (0x4C, HCON)
  4268. If (COMP ())
  4269. {
  4270. Or (HSTS, 0xFF, HSTS)
  4271. Return (0x01)
  4272. }
  4273.  
  4274. Return (0x00)
  4275. }
  4276.  
  4277. Method (SRDW, 2, Serialized)
  4278. {
  4279. If (STRT ())
  4280. {
  4281. Return (0xFFFF)
  4282. }
  4283.  
  4284. Store (0x00, I2CE)
  4285. Store (0xBF, HSTS)
  4286. Store (Or (Arg0, 0x01), TXSA)
  4287. Store (Arg1, HCOM)
  4288. Store (0x4C, HCON)
  4289. If (COMP ())
  4290. {
  4291. Or (HSTS, 0xFF, HSTS)
  4292. Return (Or (ShiftLeft (DAT0, 0x08), DAT1))
  4293. }
  4294.  
  4295. Return (0xFFFFFFFF)
  4296. }
  4297.  
  4298. Method (SBLW, 4, Serialized)
  4299. {
  4300. If (STRT ())
  4301. {
  4302. Return (0x00)
  4303. }
  4304.  
  4305. Store (Arg3, I2CE)
  4306. Store (0xBF, HSTS)
  4307. Store (Arg0, TXSA)
  4308. Store (Arg1, HCOM)
  4309. Store (SizeOf (Arg2), DAT0)
  4310. Store (0x00, Local1)
  4311. Store (DerefOf (Index (Arg2, 0x00)), HBDR)
  4312. Store (0x54, HCON)
  4313. While (LGreater (SizeOf (Arg2), Local1))
  4314. {
  4315. Store (0x4E20, Local0)
  4316. While (LAnd (LNot (And (HSTS, 0x80)), Local0))
  4317. {
  4318. Decrement (Local0)
  4319. }
  4320.  
  4321. If (LNot (Local0))
  4322. {
  4323. KILL ()
  4324. Return (0x00)
  4325. }
  4326.  
  4327. Increment (Local1)
  4328. If (LGreater (SizeOf (Arg2), Local1))
  4329. {
  4330. Store (DerefOf (Index (Arg2, Local1)), HBDR)
  4331. Store (0x80, HSTS)
  4332. }
  4333. }
  4334.  
  4335. Store (0x80, HSTS)
  4336. If (COMP ())
  4337. {
  4338. Or (HSTS, 0xFF, HSTS)
  4339. Return (0x01)
  4340. }
  4341.  
  4342. Return (0x00)
  4343. }
  4344.  
  4345. Method (SBLR, 3, Serialized)
  4346. {
  4347. Name (TBUF, Buffer (0x0100) {})
  4348. If (STRT ())
  4349. {
  4350. Return (0x00)
  4351. }
  4352.  
  4353. Store (Arg2, I2CE)
  4354. Store (0xBF, HSTS)
  4355. Store (Or (Arg0, 0x01), TXSA)
  4356. Store (Arg1, HCOM)
  4357. Store (0x54, HCON)
  4358. Store (0x0FA0, Local0)
  4359. While (LAnd (LNot (And (HSTS, 0x80)), Local0))
  4360. {
  4361. Decrement (Local0)
  4362. Stall (0x32)
  4363. }
  4364.  
  4365. If (LNot (Local0))
  4366. {
  4367. KILL ()
  4368. Return (0x00)
  4369. }
  4370.  
  4371. Store (DAT0, Index (TBUF, 0x00))
  4372. Store (0x80, HSTS)
  4373. Store (0x01, Local1)
  4374. While (LLess (Local1, DerefOf (Index (TBUF, 0x00))))
  4375. {
  4376. Store (0x0FA0, Local0)
  4377. While (LAnd (LNot (And (HSTS, 0x80)), Local0))
  4378. {
  4379. Decrement (Local0)
  4380. Stall (0x32)
  4381. }
  4382.  
  4383. If (LNot (Local0))
  4384. {
  4385. KILL ()
  4386. Return (0x00)
  4387. }
  4388.  
  4389. Store (HBDR, Index (TBUF, Local1))
  4390. Store (0x80, HSTS)
  4391. Increment (Local1)
  4392. }
  4393.  
  4394. If (COMP ())
  4395. {
  4396. Or (HSTS, 0xFF, HSTS)
  4397. Return (TBUF)
  4398. }
  4399.  
  4400. Return (0x00)
  4401. }
  4402.  
  4403. Method (STRT, 0, Serialized)
  4404. {
  4405. Store (0xC8, Local0)
  4406. While (Local0)
  4407. {
  4408. If (And (HSTS, 0x40))
  4409. {
  4410. Decrement (Local0)
  4411. Sleep (0x01)
  4412. If (LEqual (Local0, 0x00))
  4413. {
  4414. Return (0x01)
  4415. }
  4416. }
  4417. Else
  4418. {
  4419. Store (0x00, Local0)
  4420. }
  4421. }
  4422.  
  4423. Store (0x0FA0, Local0)
  4424. While (Local0)
  4425. {
  4426. If (And (HSTS, 0x01))
  4427. {
  4428. Decrement (Local0)
  4429. Stall (0x32)
  4430. If (LEqual (Local0, 0x00))
  4431. {
  4432. KILL ()
  4433. }
  4434. }
  4435. Else
  4436. {
  4437. Return (0x00)
  4438. }
  4439. }
  4440.  
  4441. Return (0x01)
  4442. }
  4443.  
  4444. Method (COMP, 0, Serialized)
  4445. {
  4446. Store (0x0FA0, Local0)
  4447. While (Local0)
  4448. {
  4449. If (And (HSTS, 0x02))
  4450. {
  4451. Return (0x01)
  4452. }
  4453. Else
  4454. {
  4455. Decrement (Local0)
  4456. Stall (0x32)
  4457. If (LEqual (Local0, 0x00))
  4458. {
  4459. KILL ()
  4460. }
  4461. }
  4462. }
  4463.  
  4464. Return (0x00)
  4465. }
  4466.  
  4467. Method (KILL, 0, Serialized)
  4468. {
  4469. Or (HCON, 0x02, HCON)
  4470. Or (HSTS, 0xFF, HSTS)
  4471. }
  4472.  
  4473. Device (BUS0)
  4474. {
  4475. Name (_CID, "smbus")
  4476. Name (_ADR, 0x00)
  4477. }
  4478.  
  4479. Device (BUS1)
  4480. {
  4481. Name (_CID, "smbus")
  4482. Name (_ADR, 0x01)
  4483. }
  4484. }
  4485.  
  4486. Device (LPCB)
  4487. {
  4488. Name (_ADR, 0x001F0000)
  4489. Scope (\_SB)
  4490. {
  4491. OperationRegion (\_SB.PCI0.LPCB.LPC1, PCI_Config, 0x40, 0xC0)
  4492. Field (\_SB.PCI0.LPCB.LPC1, AnyAcc, NoLock, Preserve)
  4493. {
  4494. Offset (0x20),
  4495. PARC, 8,
  4496. PBRC, 8,
  4497. PCRC, 8,
  4498. PDRC, 8,
  4499. Offset (0x28),
  4500. PERC, 8,
  4501. PFRC, 8,
  4502. PGRC, 8,
  4503. PHRC, 8
  4504. }
  4505.  
  4506. Device (LNKA)
  4507. {
  4508. Name (_HID, EisaId ("PNP0C0F"))
  4509. Name (_UID, 0x01)
  4510. Method (_DIS, 0, Serialized)
  4511. {
  4512. Or (PARC, 0x80, PARC)
  4513. }
  4514.  
  4515. Name (_PRS, ResourceTemplate ()
  4516. {
  4517. IRQ (Level, ActiveLow, Shared, )
  4518. {1,3,4,5,6,7,10,12,14,15}
  4519. })
  4520. Method (_CRS, 0, Serialized)
  4521. {
  4522. Name (RTLA, ResourceTemplate ()
  4523. {
  4524. IRQ (Level, ActiveLow, Shared, )
  4525. {}
  4526. })
  4527. CreateWordField (RTLA, 0x01, IRQ0)
  4528. Store (Zero, IRQ0)
  4529. ShiftLeft (0x01, And (PARC, 0x0F), IRQ0)
  4530. Return (RTLA)
  4531. }
  4532.  
  4533. Method (_SRS, 1, Serialized)
  4534. {
  4535. CreateWordField (Arg0, 0x01, IRQ0)
  4536. FindSetRightBit (IRQ0, Local0)
  4537. Decrement (Local0)
  4538. Store (Local0, PARC)
  4539. }
  4540.  
  4541. Method (_STA, 0, Serialized)
  4542. {
  4543. If (And (PARC, 0x80))
  4544. {
  4545. Return (0x09)
  4546. }
  4547. Else
  4548. {
  4549. Return (0x0B)
  4550. }
  4551. }
  4552. }
  4553.  
  4554. Device (LNKB)
  4555. {
  4556. Name (_HID, EisaId ("PNP0C0F"))
  4557. Name (_UID, 0x02)
  4558. Method (_DIS, 0, Serialized)
  4559. {
  4560. Or (PBRC, 0x80, PBRC)
  4561. }
  4562.  
  4563. Name (_PRS, ResourceTemplate ()
  4564. {
  4565. IRQ (Level, ActiveLow, Shared, )
  4566. {1,3,4,5,6,7,11,12,14,15}
  4567. })
  4568. Method (_CRS, 0, Serialized)
  4569. {
  4570. Name (RTLB, ResourceTemplate ()
  4571. {
  4572. IRQ (Level, ActiveLow, Shared, )
  4573. {}
  4574. })
  4575. CreateWordField (RTLB, 0x01, IRQ0)
  4576. Store (Zero, IRQ0)
  4577. ShiftLeft (0x01, And (PBRC, 0x0F), IRQ0)
  4578. Return (RTLB)
  4579. }
  4580.  
  4581. Method (_SRS, 1, Serialized)
  4582. {
  4583. CreateWordField (Arg0, 0x01, IRQ0)
  4584. FindSetRightBit (IRQ0, Local0)
  4585. Decrement (Local0)
  4586. Store (Local0, PBRC)
  4587. }
  4588.  
  4589. Method (_STA, 0, Serialized)
  4590. {
  4591. If (And (PBRC, 0x80))
  4592. {
  4593. Return (0x09)
  4594. }
  4595. Else
  4596. {
  4597. Return (0x0B)
  4598. }
  4599. }
  4600. }
  4601.  
  4602. Device (LNKC)
  4603. {
  4604. Name (_HID, EisaId ("PNP0C0F"))
  4605. Name (_UID, 0x03)
  4606. Method (_DIS, 0, Serialized)
  4607. {
  4608. Or (PCRC, 0x80, PCRC)
  4609. }
  4610.  
  4611. Name (_PRS, ResourceTemplate ()
  4612. {
  4613. IRQ (Level, ActiveLow, Shared, )
  4614. {1,3,4,5,6,7,10,12,14,15}
  4615. })
  4616. Method (_CRS, 0, Serialized)
  4617. {
  4618. Name (RTLC, ResourceTemplate ()
  4619. {
  4620. IRQ (Level, ActiveLow, Shared, )
  4621. {}
  4622. })
  4623. CreateWordField (RTLC, 0x01, IRQ0)
  4624. Store (Zero, IRQ0)
  4625. ShiftLeft (0x01, And (PCRC, 0x0F), IRQ0)
  4626. Return (RTLC)
  4627. }
  4628.  
  4629. Method (_SRS, 1, Serialized)
  4630. {
  4631. CreateWordField (Arg0, 0x01, IRQ0)
  4632. FindSetRightBit (IRQ0, Local0)
  4633. Decrement (Local0)
  4634. Store (Local0, PCRC)
  4635. }
  4636.  
  4637. Method (_STA, 0, Serialized)
  4638. {
  4639. If (And (PCRC, 0x80))
  4640. {
  4641. Return (0x09)
  4642. }
  4643. Else
  4644. {
  4645. Return (0x0B)
  4646. }
  4647. }
  4648. }
  4649.  
  4650. Device (LNKD)
  4651. {
  4652. Name (_HID, EisaId ("PNP0C0F"))
  4653. Name (_UID, 0x04)
  4654. Method (_DIS, 0, Serialized)
  4655. {
  4656. Or (PDRC, 0x80, PDRC)
  4657. }
  4658.  
  4659. Name (_PRS, ResourceTemplate ()
  4660. {
  4661. IRQ (Level, ActiveLow, Shared, )
  4662. {1,3,4,5,6,7,11,12,14,15}
  4663. })
  4664. Method (_CRS, 0, Serialized)
  4665. {
  4666. Name (RTLD, ResourceTemplate ()
  4667. {
  4668. IRQ (Level, ActiveLow, Shared, )
  4669. {}
  4670. })
  4671. CreateWordField (RTLD, 0x01, IRQ0)
  4672. Store (Zero, IRQ0)
  4673. ShiftLeft (0x01, And (PDRC, 0x0F), IRQ0)
  4674. Return (RTLD)
  4675. }
  4676.  
  4677. Method (_SRS, 1, Serialized)
  4678. {
  4679. CreateWordField (Arg0, 0x01, IRQ0)
  4680. FindSetRightBit (IRQ0, Local0)
  4681. Decrement (Local0)
  4682. Store (Local0, PDRC)
  4683. }
  4684.  
  4685. Method (_STA, 0, Serialized)
  4686. {
  4687. If (And (PDRC, 0x80))
  4688. {
  4689. Return (0x09)
  4690. }
  4691. Else
  4692. {
  4693. Return (0x0B)
  4694. }
  4695. }
  4696. }
  4697.  
  4698. Device (LNKE)
  4699. {
  4700. Name (_HID, EisaId ("PNP0C0F"))
  4701. Name (_UID, 0x05)
  4702. Method (_DIS, 0, Serialized)
  4703. {
  4704. Or (PERC, 0x80, PERC)
  4705. }
  4706.  
  4707. Name (_PRS, ResourceTemplate ()
  4708. {
  4709. IRQ (Level, ActiveLow, Shared, )
  4710. {1,3,4,5,6,7,10,12,14,15}
  4711. })
  4712. Method (_CRS, 0, Serialized)
  4713. {
  4714. Name (RTLE, ResourceTemplate ()
  4715. {
  4716. IRQ (Level, ActiveLow, Shared, )
  4717. {}
  4718. })
  4719. CreateWordField (RTLE, 0x01, IRQ0)
  4720. Store (Zero, IRQ0)
  4721. ShiftLeft (0x01, And (PERC, 0x0F), IRQ0)
  4722. Return (RTLE)
  4723. }
  4724.  
  4725. Method (_SRS, 1, Serialized)
  4726. {
  4727. CreateWordField (Arg0, 0x01, IRQ0)
  4728. FindSetRightBit (IRQ0, Local0)
  4729. Decrement (Local0)
  4730. Store (Local0, PERC)
  4731. }
  4732.  
  4733. Method (_STA, 0, Serialized)
  4734. {
  4735. If (And (PERC, 0x80))
  4736. {
  4737. Return (0x09)
  4738. }
  4739. Else
  4740. {
  4741. Return (0x0B)
  4742. }
  4743. }
  4744. }
  4745.  
  4746. Device (LNKF)
  4747. {
  4748. Name (_HID, EisaId ("PNP0C0F"))
  4749. Name (_UID, 0x06)
  4750. Method (_DIS, 0, Serialized)
  4751. {
  4752. Or (PFRC, 0x80, PFRC)
  4753. }
  4754.  
  4755. Name (_PRS, ResourceTemplate ()
  4756. {
  4757. IRQ (Level, ActiveLow, Shared, )
  4758. {1,3,4,5,6,7,11,12,14,15}
  4759. })
  4760. Method (_CRS, 0, Serialized)
  4761. {
  4762. Name (RTLF, ResourceTemplate ()
  4763. {
  4764. IRQ (Level, ActiveLow, Shared, )
  4765. {}
  4766. })
  4767. CreateWordField (RTLF, 0x01, IRQ0)
  4768. Store (Zero, IRQ0)
  4769. ShiftLeft (0x01, And (PFRC, 0x0F), IRQ0)
  4770. Return (RTLF)
  4771. }
  4772.  
  4773. Method (_SRS, 1, Serialized)
  4774. {
  4775. CreateWordField (Arg0, 0x01, IRQ0)
  4776. FindSetRightBit (IRQ0, Local0)
  4777. Decrement (Local0)
  4778. Store (Local0, PFRC)
  4779. }
  4780.  
  4781. Method (_STA, 0, Serialized)
  4782. {
  4783. If (And (PFRC, 0x80))
  4784. {
  4785. Return (0x09)
  4786. }
  4787. Else
  4788. {
  4789. Return (0x0B)
  4790. }
  4791. }
  4792. }
  4793.  
  4794. Device (LNKG)
  4795. {
  4796. Name (_HID, EisaId ("PNP0C0F"))
  4797. Name (_UID, 0x07)
  4798. Method (_DIS, 0, Serialized)
  4799. {
  4800. Or (PGRC, 0x80, PGRC)
  4801. }
  4802.  
  4803. Name (_PRS, ResourceTemplate ()
  4804. {
  4805. IRQ (Level, ActiveLow, Shared, )
  4806. {1,3,4,5,6,7,10,12,14,15}
  4807. })
  4808. Method (_CRS, 0, Serialized)
  4809. {
  4810. Name (RTLG, ResourceTemplate ()
  4811. {
  4812. IRQ (Level, ActiveLow, Shared, )
  4813. {}
  4814. })
  4815. CreateWordField (RTLG, 0x01, IRQ0)
  4816. Store (Zero, IRQ0)
  4817. ShiftLeft (0x01, And (PGRC, 0x0F), IRQ0)
  4818. Return (RTLG)
  4819. }
  4820.  
  4821. Method (_SRS, 1, Serialized)
  4822. {
  4823. CreateWordField (Arg0, 0x01, IRQ0)
  4824. FindSetRightBit (IRQ0, Local0)
  4825. Decrement (Local0)
  4826. Store (Local0, PGRC)
  4827. }
  4828.  
  4829. Method (_STA, 0, Serialized)
  4830. {
  4831. If (And (PGRC, 0x80))
  4832. {
  4833. Return (0x09)
  4834. }
  4835. Else
  4836. {
  4837. Return (0x0B)
  4838. }
  4839. }
  4840. }
  4841.  
  4842. Device (LNKH)
  4843. {
  4844. Name (_HID, EisaId ("PNP0C0F"))
  4845. Name (_UID, 0x08)
  4846. Method (_DIS, 0, Serialized)
  4847. {
  4848. Or (PHRC, 0x80, PHRC)
  4849. }
  4850.  
  4851. Name (_PRS, ResourceTemplate ()
  4852. {
  4853. IRQ (Level, ActiveLow, Shared, )
  4854. {1,3,4,5,6,7,11,12,14,15}
  4855. })
  4856. Method (_CRS, 0, Serialized)
  4857. {
  4858. Name (RTLH, ResourceTemplate ()
  4859. {
  4860. IRQ (Level, ActiveLow, Shared, )
  4861. {}
  4862. })
  4863. CreateWordField (RTLH, 0x01, IRQ0)
  4864. Store (Zero, IRQ0)
  4865. ShiftLeft (0x01, And (PHRC, 0x0F), IRQ0)
  4866. Return (RTLH)
  4867. }
  4868.  
  4869. Method (_SRS, 1, Serialized)
  4870. {
  4871. CreateWordField (Arg0, 0x01, IRQ0)
  4872. FindSetRightBit (IRQ0, Local0)
  4873. Decrement (Local0)
  4874. Store (Local0, PHRC)
  4875. }
  4876.  
  4877. Method (_STA, 0, Serialized)
  4878. {
  4879. If (And (PHRC, 0x80))
  4880. {
  4881. Return (0x09)
  4882. }
  4883. Else
  4884. {
  4885. Return (0x0B)
  4886. }
  4887. }
  4888. }
  4889. }
  4890.  
  4891. OperationRegion (LPC0, PCI_Config, 0x40, 0xC0)
  4892. Field (LPC0, AnyAcc, NoLock, Preserve)
  4893. {
  4894. Offset (0x40),
  4895. IOD0, 8,
  4896. IOD1, 8,
  4897. Offset (0xB0),
  4898. RAEN, 1,
  4899. , 13,
  4900. RCBA, 18
  4901. }
  4902.  
  4903. Device (DMAC)
  4904. {
  4905. Name (_HID, EisaId ("PNP0200"))
  4906. Name (_CRS, ResourceTemplate ()
  4907. {
  4908. IO (Decode16,
  4909. 0x0000, // Range Minimum
  4910. 0x0000, // Range Maximum
  4911. 0x01, // Alignment
  4912. 0x20, // Length
  4913. )
  4914. IO (Decode16,
  4915. 0x0081, // Range Minimum
  4916. 0x0081, // Range Maximum
  4917. 0x01, // Alignment
  4918. 0x11, // Length
  4919. )
  4920. IO (Decode16,
  4921. 0x0093, // Range Minimum
  4922. 0x0093, // Range Maximum
  4923. 0x01, // Alignment
  4924. 0x0D, // Length
  4925. )
  4926. IO (Decode16,
  4927. 0x00C0, // Range Minimum
  4928. 0x00C0, // Range Maximum
  4929. 0x01, // Alignment
  4930. 0x20, // Length
  4931. )
  4932. DMA (Compatibility, NotBusMaster, Transfer8_16, )
  4933. {4}
  4934. })
  4935. }
  4936.  
  4937. Device (FWHD)
  4938. {
  4939. Name (_HID, EisaId ("INT0800"))
  4940. Name (_CRS, ResourceTemplate ()
  4941. {
  4942. Memory32Fixed (ReadOnly,
  4943. 0xFF000000, // Address Base
  4944. 0x01000000, // Address Length
  4945. )
  4946. })
  4947. }
  4948.  
  4949. Device (HPET)
  4950. {
  4951. Name (_HID, EisaId ("PNP0103"))
  4952. Name (_CID, EisaId ("PNP0C01"))
  4953. Name (BUF0, ResourceTemplate ()
  4954. {
  4955. IRQNoFlags ()
  4956. {0}
  4957. IRQNoFlags ()
  4958. {8}
  4959. Memory32Fixed (ReadWrite,
  4960. 0xFED00000, // Address Base
  4961. 0x00000400, // Address Length
  4962. )
  4963. })
  4964. Method (_STA, 0, NotSerialized)
  4965. {
  4966. If (LGreaterEqual (OSYS, 0x07D1))
  4967. {
  4968. If (HPAE)
  4969. {
  4970. Return (0x0F)
  4971. }
  4972. }
  4973. Else
  4974. {
  4975. If (HPAE)
  4976. {
  4977. Return (0x0B)
  4978. }
  4979. }
  4980.  
  4981. Return (0x00)
  4982. }
  4983.  
  4984. Method (_CRS, 0, Serialized)
  4985. {
  4986. If (HPAE)
  4987. {
  4988. CreateDWordField (BUF0, 0x0A, HPT0)
  4989. If (LEqual (HPAS, 0x01))
  4990. {
  4991. Store (0xFED01000, HPT0)
  4992. }
  4993.  
  4994. If (LEqual (HPAS, 0x02))
  4995. {
  4996. Store (0xFED02000, HPT0)
  4997. }
  4998.  
  4999. If (LEqual (HPAS, 0x03))
  5000. {
  5001. Store (0xFED03000, HPT0)
  5002. }
  5003. }
  5004.  
  5005. Return (BUF0)
  5006. }
  5007. }
  5008.  
  5009. Device (IPIC)
  5010. {
  5011. Name (_HID, EisaId ("PNP0000"))
  5012. Name (_CRS, ResourceTemplate ()
  5013. {
  5014. IO (Decode16,
  5015. 0x0020, // Range Minimum
  5016. 0x0020, // Range Maximum
  5017. 0x01, // Alignment
  5018. 0x02, // Length
  5019. )
  5020. IO (Decode16,
  5021. 0x0024, // Range Minimum
  5022. 0x0024, // Range Maximum
  5023. 0x01, // Alignment
  5024. 0x02, // Length
  5025. )
  5026. IO (Decode16,
  5027. 0x0028, // Range Minimum
  5028. 0x0028, // Range Maximum
  5029. 0x01, // Alignment
  5030. 0x02, // Length
  5031. )
  5032. IO (Decode16,
  5033. 0x002C, // Range Minimum
  5034. 0x002C, // Range Maximum
  5035. 0x01, // Alignment
  5036. 0x02, // Length
  5037. )
  5038. IO (Decode16,
  5039. 0x0030, // Range Minimum
  5040. 0x0030, // Range Maximum
  5041. 0x01, // Alignment
  5042. 0x02, // Length
  5043. )
  5044. IO (Decode16,
  5045. 0x0034, // Range Minimum
  5046. 0x0034, // Range Maximum
  5047. 0x01, // Alignment
  5048. 0x02, // Length
  5049. )
  5050. IO (Decode16,
  5051. 0x0038, // Range Minimum
  5052. 0x0038, // Range Maximum
  5053. 0x01, // Alignment
  5054. 0x02, // Length
  5055. )
  5056. IO (Decode16,
  5057. 0x003C, // Range Minimum
  5058. 0x003C, // Range Maximum
  5059. 0x01, // Alignment
  5060. 0x02, // Length
  5061. )
  5062. IO (Decode16,
  5063. 0x00A0, // Range Minimum
  5064. 0x00A0, // Range Maximum
  5065. 0x01, // Alignment
  5066. 0x02, // Length
  5067. )
  5068. IO (Decode16,
  5069. 0x00A4, // Range Minimum
  5070. 0x00A4, // Range Maximum
  5071. 0x01, // Alignment
  5072. 0x02, // Length
  5073. )
  5074. IO (Decode16,
  5075. 0x00A8, // Range Minimum
  5076. 0x00A8, // Range Maximum
  5077. 0x01, // Alignment
  5078. 0x02, // Length
  5079. )
  5080. IO (Decode16,
  5081. 0x00AC, // Range Minimum
  5082. 0x00AC, // Range Maximum
  5083. 0x01, // Alignment
  5084. 0x02, // Length
  5085. )
  5086. IO (Decode16,
  5087. 0x00B0, // Range Minimum
  5088. 0x00B0, // Range Maximum
  5089. 0x01, // Alignment
  5090. 0x02, // Length
  5091. )
  5092. IO (Decode16,
  5093. 0x00B4, // Range Minimum
  5094. 0x00B4, // Range Maximum
  5095. 0x01, // Alignment
  5096. 0x02, // Length
  5097. )
  5098. IO (Decode16,
  5099. 0x00B8, // Range Minimum
  5100. 0x00B8, // Range Maximum
  5101. 0x01, // Alignment
  5102. 0x02, // Length
  5103. )
  5104. IO (Decode16,
  5105. 0x00BC, // Range Minimum
  5106. 0x00BC, // Range Maximum
  5107. 0x01, // Alignment
  5108. 0x02, // Length
  5109. )
  5110. IO (Decode16,
  5111. 0x04D0, // Range Minimum
  5112. 0x04D0, // Range Maximum
  5113. 0x01, // Alignment
  5114. 0x02, // Length
  5115. )
  5116. IRQNoFlags ()
  5117. {2}
  5118. })
  5119. }
  5120.  
  5121. Device (MATH)
  5122. {
  5123. Name (_HID, EisaId ("PNP0C04"))
  5124. Name (_CRS, ResourceTemplate ()
  5125. {
  5126. IO (Decode16,
  5127. 0x00F0, // Range Minimum
  5128. 0x00F0, // Range Maximum
  5129. 0x01, // Alignment
  5130. 0x01, // Length
  5131. )
  5132. IRQNoFlags ()
  5133. {13}
  5134. })
  5135. }
  5136.  
  5137. Device (LDRC)
  5138. {
  5139. Name (_HID, EisaId ("PNP0C02"))
  5140. Name (_UID, 0x02)
  5141. Name (_CRS, ResourceTemplate ()
  5142. {
  5143. IO (Decode16,
  5144. 0x002E, // Range Minimum
  5145. 0x002E, // Range Maximum
  5146. 0x01, // Alignment
  5147. 0x02, // Length
  5148. )
  5149. IO (Decode16,
  5150. 0x004E, // Range Minimum
  5151. 0x004E, // Range Maximum
  5152. 0x01, // Alignment
  5153. 0x02, // Length
  5154. )
  5155. IO (Decode16,
  5156. 0x0061, // Range Minimum
  5157. 0x0061, // Range Maximum
  5158. 0x01, // Alignment
  5159. 0x01, // Length
  5160. )
  5161. IO (Decode16,
  5162. 0x0063, // Range Minimum
  5163. 0x0063, // Range Maximum
  5164. 0x01, // Alignment
  5165. 0x01, // Length
  5166. )
  5167. IO (Decode16,
  5168. 0x0065, // Range Minimum
  5169. 0x0065, // Range Maximum
  5170. 0x01, // Alignment
  5171. 0x01, // Length
  5172. )
  5173. IO (Decode16,
  5174. 0x0067, // Range Minimum
  5175. 0x0067, // Range Maximum
  5176. 0x01, // Alignment
  5177. 0x01, // Length
  5178. )
  5179. IO (Decode16,
  5180. 0x0080, // Range Minimum
  5181. 0x0080, // Range Maximum
  5182. 0x01, // Alignment
  5183. 0x01, // Length
  5184. )
  5185. IO (Decode16,
  5186. 0x0092, // Range Minimum
  5187. 0x0092, // Range Maximum
  5188. 0x01, // Alignment
  5189. 0x01, // Length
  5190. )
  5191. IO (Decode16,
  5192. 0x00B2, // Range Minimum
  5193. 0x00B2, // Range Maximum
  5194. 0x01, // Alignment
  5195. 0x02, // Length
  5196. )
  5197. IO (Decode16,
  5198. 0xFFFF, // Range Minimum
  5199. 0xFFFF, // Range Maximum
  5200. 0x01, // Alignment
  5201. 0x01, // Length
  5202. )
  5203. IO (Decode16,
  5204. 0x0400, // Range Minimum
  5205. 0x0400, // Range Maximum
  5206. 0x01, // Alignment
  5207. 0x80, // Length
  5208. )
  5209. IO (Decode16,
  5210. 0x0800, // Range Minimum
  5211. 0x0800, // Range Maximum
  5212. 0x01, // Alignment
  5213. 0x80, // Length
  5214. )
  5215. })
  5216. }
  5217.  
  5218. Device (RTC)
  5219. {
  5220. Name (_HID, EisaId ("PNP0B00"))
  5221. Name (_CRS, ResourceTemplate ()
  5222. {
  5223. IO (Decode16,
  5224. 0x0070, // Range Minimum
  5225. 0x0070, // Range Maximum
  5226. 0x01, // Alignment
  5227. 0x08, // Length
  5228. )
  5229. })
  5230. OperationRegion (CMS0, SystemCMOS, 0x00, 0x40)
  5231. Field (CMS0, ByteAcc, NoLock, Preserve)
  5232. {
  5233. Offset (0x38),
  5234. ISTB, 1,
  5235. Offset (0x39)
  5236. }
  5237. }
  5238.  
  5239. Device (TIMR)
  5240. {
  5241. Name (_HID, EisaId ("PNP0100"))
  5242. Name (_CRS, ResourceTemplate ()
  5243. {
  5244. IO (Decode16,
  5245. 0x0040, // Range Minimum
  5246. 0x0040, // Range Maximum
  5247. 0x01, // Alignment
  5248. 0x04, // Length
  5249. )
  5250. IO (Decode16,
  5251. 0x0050, // Range Minimum
  5252. 0x0050, // Range Maximum
  5253. 0x10, // Alignment
  5254. 0x04, // Length
  5255. )
  5256. })
  5257. }
  5258.  
  5259. Device (SMC)
  5260. {
  5261. Name (_HID, EisaId ("APP0001"))
  5262. Name (_CID, "smc-huronriver")
  5263. Name (_STA, 0x0B)
  5264. Name (_CRS, ResourceTemplate ()
  5265. {
  5266. IO (Decode16,
  5267. 0x0300, // Range Minimum
  5268. 0x0300, // Range Maximum
  5269. 0x01, // Alignment
  5270. 0x20, // Length
  5271. )
  5272. Memory32Fixed (ReadWrite,
  5273. 0xFEF00000, // Address Base
  5274. 0x00010000, // Address Length
  5275. )
  5276. IRQNoFlags ()
  5277. {6}
  5278. })
  5279. }
  5280.  
  5281. Device (ALS0)
  5282. {
  5283. Name (_HID, "ACPI0008")
  5284. Name (_CID, "smc-als")
  5285. Name (BUFF, Buffer (0x02) {})
  5286. CreateByteField (BUFF, 0x00, OB0)
  5287. CreateByteField (BUFF, 0x01, OB1)
  5288. CreateWordField (BUFF, 0x00, ALSI)
  5289. Method (_STA, 0, NotSerialized)
  5290. {
  5291. If (LGreaterEqual (OSYS, 0x07D9))
  5292. {
  5293. Return (0x0F)
  5294. }
  5295. Else
  5296. {
  5297. Return (0x00)
  5298. }
  5299. }
  5300.  
  5301. Method (_ALI, 0, NotSerialized)
  5302. {
  5303. Store (\_SB.PCI0.LPCB.EC.ALB0, OB0)
  5304. Store (\_SB.PCI0.LPCB.EC.ALB1, OB1)
  5305. Store (ALSI, Local0)
  5306. Return (Local0)
  5307. }
  5308.  
  5309. Name (_ALR, Package (0x05)
  5310. {
  5311. Package (0x02)
  5312. {
  5313. 0x0A,
  5314. 0x00
  5315. },
  5316.  
  5317. Package (0x02)
  5318. {
  5319. 0x14,
  5320. 0x0A
  5321. },
  5322.  
  5323. Package (0x02)
  5324. {
  5325. 0x32,
  5326. 0x50
  5327. },
  5328.  
  5329. Package (0x02)
  5330. {
  5331. 0x5A,
  5332. 0x012C
  5333. },
  5334.  
  5335. Package (0x02)
  5336. {
  5337. 0x64,
  5338. 0x03E8
  5339. }
  5340. })
  5341. }
  5342.  
  5343. Device (EC)
  5344. {
  5345. Name (_HID, EisaId ("PNP0C09"))
  5346. Name (_UID, 0x00)
  5347. Name (_CRS, ResourceTemplate ()
  5348. {
  5349. IO (Decode16,
  5350. 0x0062, // Range Minimum
  5351. 0x0062, // Range Maximum
  5352. 0x00, // Alignment
  5353. 0x01, // Length
  5354. )
  5355. IO (Decode16,
  5356. 0x0066, // Range Minimum
  5357. 0x0066, // Range Maximum
  5358. 0x00, // Alignment
  5359. 0x01, // Length
  5360. )
  5361. })
  5362. Name (_GPE, 0x4E)
  5363. Method (_PRW, 0, NotSerialized)
  5364. {
  5365. If (OSDW ())
  5366. {
  5367. Return (Package (0x02)
  5368. {
  5369. 0x70,
  5370. 0x04
  5371. })
  5372. }
  5373. Else
  5374. {
  5375. Return (Package (0x02)
  5376. {
  5377. 0x70,
  5378. 0x03
  5379. })
  5380. }
  5381. }
  5382.  
  5383. Name (ECOK, 0x00)
  5384. OperationRegion (ECOR, EmbeddedControl, 0x00, 0xFF)
  5385. Field (ECOR, ByteAcc, Lock, Preserve)
  5386. {
  5387. ECVS, 8,
  5388. Offset (0x02),
  5389. Offset (0x03),
  5390. G3HT, 1,
  5391. Offset (0x04),
  5392. WBCB, 1,
  5393. DSLP, 1,
  5394. Offset (0x05),
  5395. Offset (0x06),
  5396. WKRS, 8,
  5397. Offset (0x10),
  5398. ECSS, 8,
  5399. PLIM, 8,
  5400. ALB0, 8,
  5401. ALB1, 8,
  5402. WTLB, 8,
  5403. WTMB, 8,
  5404. Offset (0x20),
  5405. SPTR, 8,
  5406. SSTS, 8,
  5407. SADR, 8,
  5408. SCMD, 8,
  5409. SBFR, 256,
  5410. SCNT, 8,
  5411. SAAD, 8,
  5412. SAD0, 8,
  5413. SAD1, 8,
  5414. SMUX, 8,
  5415. Offset (0x60),
  5416. ELSW, 1,
  5417. EACP, 1,
  5418. ECDI, 1,
  5419. ENMI, 1,
  5420. Offset (0x61),
  5421. EMHP, 1,
  5422. Offset (0x62),
  5423. Offset (0x63),
  5424. Offset (0x64),
  5425. SWLO, 1,
  5426. SWLC, 1,
  5427. SWAI, 1,
  5428. SWAR, 1,
  5429. SWCI, 1,
  5430. SWCE, 1,
  5431. SWMI, 1,
  5432. SWMR, 1,
  5433. SWPB, 1,
  5434. SWGP, 1,
  5435. SWPM, 1,
  5436. SWWT, 1,
  5437. SWLB, 1,
  5438. Offset (0x66),
  5439. Offset (0x67),
  5440. Offset (0x68),
  5441. EWLO, 1,
  5442. EWLC, 1,
  5443. EWAI, 1,
  5444. EWAR, 1,
  5445. EWCI, 1,
  5446. EWCE, 1,
  5447. EWMI, 1,
  5448. EWMR, 1,
  5449. EWPB, 1,
  5450. EWGP, 1,
  5451. EWPM, 1,
  5452. ENWT, 1,
  5453. EWLB, 1,
  5454. Offset (0x6A),
  5455. Offset (0x6B),
  5456. Offset (0x6C),
  5457. LWLO, 1,
  5458. LWLC, 1,
  5459. LWAI, 1,
  5460. LWAR, 1,
  5461. LWCI, 1,
  5462. LWCE, 1,
  5463. LWMI, 1,
  5464. LWMR, 1,
  5465. LWPB, 1,
  5466. LWGP, 1,
  5467. LWPM, 1,
  5468. LWWT, 1,
  5469. LWLB, 1,
  5470. Offset (0x6E),
  5471. Offset (0x6F),
  5472. Offset (0x70)
  5473. }
  5474.  
  5475. Field (ECOR, ByteAcc, Lock, Preserve)
  5476. {
  5477. Offset (0x03),
  5478. G3AD, 1,
  5479. BLOD, 1,
  5480. S4WE, 1,
  5481. APWC, 1,
  5482. Offset (0x04),
  5483. Offset (0x6C),
  5484. LWE0, 8,
  5485. LWE1, 8,
  5486. LWE2, 8,
  5487. LWE3, 8
  5488. }
  5489.  
  5490. Field (ECOR, ByteAcc, Lock, Preserve)
  5491. {
  5492. Offset (0x24),
  5493. SBDW, 16,
  5494. Offset (0x46),
  5495. SADW, 16
  5496. }
  5497.  
  5498. Method (WAKE, 0, NotSerialized)
  5499. {
  5500. If (ECOK)
  5501. {
  5502. Return (WKRS)
  5503. }
  5504. Else
  5505. {
  5506. Return (0x00)
  5507. }
  5508. }
  5509.  
  5510. Device (SMB0)
  5511. {
  5512. Name (_HID, "ACPI0001")
  5513. Name (_EC, 0x2010)
  5514. Mutex (SMTX, 0x00)
  5515. Method (_STA, 0, NotSerialized)
  5516. {
  5517. If (OSDW ())
  5518. {
  5519. Return (0x0F)
  5520. }
  5521. Else
  5522. {
  5523. Return (0x00)
  5524. }
  5525. }
  5526.  
  5527. Device (SBS0)
  5528. {
  5529. Name (_HID, "ACPI0002")
  5530. Name (_SBS, 0x01)
  5531. }
  5532.  
  5533. Method (SBPC, 1, NotSerialized)
  5534. {
  5535. Store (Arg0, Local0)
  5536. While (Local0)
  5537. {
  5538. If (LEqual (SPTR, 0x00))
  5539. {
  5540. Return (And (SSTS, 0x1F))
  5541. }
  5542.  
  5543. Sleep (0x01)
  5544. Decrement (Local0)
  5545. }
  5546.  
  5547. Return (0x18)
  5548. }
  5549.  
  5550. Method (SBRW, 3, NotSerialized)
  5551. {
  5552. Store (One, Local0)
  5553. If (LNot (Acquire (\_SB.PCI0.LPCB.EC.SMB0.SMTX, 0xFFFF)))
  5554. {
  5555. If (LEqual (SPTR, 0x00))
  5556. {
  5557. Store (ShiftLeft (Arg0, 0x01), SADR)
  5558. Store (Arg1, SCMD)
  5559. Store (0x09, SPTR)
  5560. Store (SBPC (0x03E8), Local0)
  5561. If (LNot (Local0))
  5562. {
  5563. Store (SBDW, Arg2)
  5564. }
  5565. }
  5566.  
  5567. Release (\_SB.PCI0.LPCB.EC.SMB0.SMTX)
  5568. }
  5569.  
  5570. Return (Local0)
  5571. }
  5572.  
  5573. Method (SBRB, 3, NotSerialized)
  5574. {
  5575. Store (One, Local0)
  5576. Store (Buffer (0x01)
  5577. {
  5578. 0x00
  5579. }, Local1)
  5580. If (LNot (Acquire (\_SB.PCI0.LPCB.EC.SMB0.SMTX, 0xFFFF)))
  5581. {
  5582. If (LEqual (SPTR, 0x00))
  5583. {
  5584. Store (ShiftLeft (Arg0, 0x01), SADR)
  5585. Store (Arg1, SCMD)
  5586. Store (0x0B, SPTR)
  5587. Store (SBPC (0x03E8), Local0)
  5588. If (LNot (Local0))
  5589. {
  5590. Store (SBFR, Arg2)
  5591. }
  5592. }
  5593.  
  5594. Release (\_SB.PCI0.LPCB.EC.SMB0.SMTX)
  5595. }
  5596.  
  5597. Return (Local0)
  5598. }
  5599. }
  5600.  
  5601. Method (_Q10, 0, NotSerialized)
  5602. {
  5603. If (OSDW ())
  5604. {
  5605. Notify (\_SB.PCI0.LPCB.EC.SMB0, 0x80)
  5606. }
  5607. Else
  5608. {
  5609. If (And (SSTS, 0x40))
  5610. {
  5611. If (LNot (Acquire (\_SB.PCI0.LPCB.EC.SMB0.SMTX, 0xFFFF)))
  5612. {
  5613. Store (ShiftRight (SAAD, 0x01), Local0)
  5614. If (LEqual (Local0, 0x0A))
  5615. {
  5616. \_SB.BAT0.BNOT (SADW)
  5617. }
  5618.  
  5619. Store (0x00, SSTS)
  5620. Release (\_SB.PCI0.LPCB.EC.SMB0.SMTX)
  5621. }
  5622. }
  5623. }
  5624. }
  5625.  
  5626. Method (_Q20, 0, NotSerialized)
  5627. {
  5628. Store (ELSW, LIDS)
  5629. Store (ELSW, \_SB.PCI0.IGPU.CLID)
  5630. Notify (\_SB.LID0, 0x80)
  5631. }
  5632.  
  5633. Method (_Q21, 0, NotSerialized)
  5634. {
  5635. If (EACP)
  5636. {
  5637. Store (0x01, PWRS)
  5638. }
  5639. Else
  5640. {
  5641. Store (0x00, PWRS)
  5642. }
  5643.  
  5644. Notify (\_SB.ADP1, 0x80)
  5645. PNOT ()
  5646. }
  5647.  
  5648. Method (_Q40, 0, NotSerialized)
  5649. {
  5650. Notify (\_SB.PCI0.LPCB.ALS0, 0x80)
  5651. }
  5652.  
  5653. Method (_Q5A, 0, NotSerialized)
  5654. {
  5655. Notify (\_SB.SLPB, 0x80)
  5656. }
  5657.  
  5658. Method (_Q80, 0, NotSerialized)
  5659. {
  5660. Notify (\_PR.CPU0, 0x80)
  5661. Notify (\_PR.CPU1, 0x80)
  5662. Notify (\_PR.CPU2, 0x80)
  5663. Notify (\_PR.CPU3, 0x80)
  5664. Notify (\_PR.CPU4, 0x80)
  5665. Notify (\_PR.CPU5, 0x80)
  5666. Notify (\_PR.CPU6, 0x80)
  5667. Notify (\_PR.CPU7, 0x80)
  5668. Store (IGPS, Local0)
  5669. Subtract (RP0C, Local0, Local0)
  5670. Store (Local0, RPSL)
  5671. }
  5672.  
  5673. Method (_REG, 2, NotSerialized)
  5674. {
  5675. If (LOr (LEqual (Arg0, 0x03), LGreaterEqual (OSYS, 0x07D6)))
  5676. {
  5677. Store (Arg1, ECOK)
  5678. If (LEqual (Arg1, 0x01))
  5679. {
  5680. Store (0x00, ECSS)
  5681. Store (ELSW, LIDS)
  5682. Store (ELSW, \_SB.PCI0.IGPU.CLID)
  5683. Notify (\_SB.LID0, 0x80)
  5684. Store (EACP, PWRS)
  5685. Notify (\_SB.ADP1, 0x80)
  5686. }
  5687. }
  5688. }
  5689. }
  5690.  
  5691. Scope (\_SB)
  5692. {
  5693. Device (BAT0)
  5694. {
  5695. Name (_HID, EisaId ("PNP0C0A"))
  5696. Name (_UID, 0x00)
  5697. Name (_PCL, Package (0x01)
  5698. {
  5699. \_SB
  5700. })
  5701. Name (BSSW, 0xFFFF)
  5702. Name (PBIF, Package (0x0D)
  5703. {
  5704. 0x00,
  5705. 0xFFFFFFFF,
  5706. 0xFFFFFFFF,
  5707. 0x01,
  5708. 0xFFFFFFFF,
  5709. 0xFA,
  5710. 0x64,
  5711. 0x0A,
  5712. 0x0A,
  5713. " ",
  5714. " ",
  5715. " ",
  5716. " "
  5717. })
  5718. Name (PBST, Package (0x04)
  5719. {
  5720. 0x00,
  5721. 0xFFFFFFFF,
  5722. 0xFFFFFFFF,
  5723. 0xFFFFFFFF
  5724. })
  5725. Method (_STA, 0, NotSerialized)
  5726. {
  5727. If (OSDW ())
  5728. {
  5729. Return (0x00)
  5730. }
  5731.  
  5732. If (\_SB.PCI0.LPCB.EC.ECOK)
  5733. {
  5734. UBSS ()
  5735. If (And (BSSW, 0x01))
  5736. {
  5737. Return (0x1F)
  5738. }
  5739. Else
  5740. {
  5741. Return (0x0F)
  5742. }
  5743. }
  5744. Else
  5745. {
  5746. Return (0x0F)
  5747. }
  5748. }
  5749.  
  5750. Method (_BST, 0, NotSerialized)
  5751. {
  5752. If (And (BSSW, 0x01))
  5753. {
  5754. UBST ()
  5755. }
  5756. Else
  5757. {
  5758. Store (0x00, Index (PBST, 0x00))
  5759. Store (0xFFFFFFFF, Index (PBST, 0x01))
  5760. Store (0xFFFFFFFF, Index (PBST, 0x02))
  5761. }
  5762.  
  5763. Return (PBST)
  5764. }
  5765.  
  5766. Method (_BIF, 0, NotSerialized)
  5767. {
  5768. If (And (BSSW, 0x01))
  5769. {
  5770. UBIF ()
  5771. }
  5772.  
  5773. Return (PBIF)
  5774. }
  5775.  
  5776. Method (BNOT, 1, NotSerialized)
  5777. {
  5778. Store (BSSW, Local0)
  5779. Store (Arg0, BSSW)
  5780. Notify (\_SB.BAT0, 0x80)
  5781. If (And (XOr (Local0, Arg0), 0x01))
  5782. {
  5783. Notify (\_SB.BAT0, 0x81)
  5784. }
  5785. }
  5786.  
  5787. Method (UBSS, 0, NotSerialized)
  5788. {
  5789. \_SB.PCI0.LPCB.EC.SMB0.SBRW (0x0A, 0x01, RefOf (BSSW))
  5790. }
  5791.  
  5792. Method (UBIF, 0, NotSerialized)
  5793. {
  5794. \_SB.PCI0.LPCB.EC.SMB0.SBRW (0x0B, 0x18, RefOf (Local0))
  5795. Multiply (Local0, 0x0A, Index (PBIF, 0x01))
  5796. \_SB.PCI0.LPCB.EC.SMB0.SBRW (0x0B, 0x10, RefOf (Local0))
  5797. Multiply (Local0, 0x0A, Index (PBIF, 0x02))
  5798. \_SB.PCI0.LPCB.EC.SMB0.SBRW (0x0B, 0x19, RefOf (Local0))
  5799. Store (Local0, Index (PBIF, 0x04))
  5800. \_SB.PCI0.LPCB.EC.SMB0.SBRB (0x0B, 0x21, RefOf (Local0))
  5801. Store (Local0, Index (PBIF, 0x09))
  5802. Store (Buffer (0x01)
  5803. {
  5804. 0x00
  5805. }, Index (PBIF, 0x0A))
  5806. \_SB.PCI0.LPCB.EC.SMB0.SBRB (0x0B, 0x22, RefOf (Local0))
  5807. Store (Local0, Index (PBIF, 0x0B))
  5808. \_SB.PCI0.LPCB.EC.SMB0.SBRB (0x0B, 0x20, RefOf (Local0))
  5809. Store (Local0, Index (PBIF, 0x0C))
  5810. }
  5811.  
  5812. Method (UBST, 0, NotSerialized)
  5813. {
  5814. \_SB.PCI0.LPCB.EC.SMB0.SBRW (0x0B, 0x09, RefOf (Local2))
  5815. Store (Local2, Index (PBST, 0x03))
  5816. \_SB.PCI0.LPCB.EC.SMB0.SBRW (0x0B, 0x0A, RefOf (Local0))
  5817. If (And (Local0, 0x8000))
  5818. {
  5819. Not (Local0, Local0)
  5820. And (Increment (Local0), 0xFFFF, Local0)
  5821. }
  5822.  
  5823. Multiply (Local0, Local2, Local0)
  5824. Divide (Local0, 0x03E8, , Index (PBST, 0x01))
  5825. \_SB.PCI0.LPCB.EC.SMB0.SBRW (0x0B, 0x0F, RefOf (Local0))
  5826. Multiply (Local0, 0x0A, Index (PBST, 0x02))
  5827. Store (0x00, Local1)
  5828. If (PWRS)
  5829. {
  5830. \_SB.PCI0.LPCB.EC.SMB0.SBRW (0x0B, 0x16, RefOf (Local0))
  5831. If (LNot (And (Local0, 0x40)))
  5832. {
  5833. Store (0x02, Local1)
  5834. }
  5835. }
  5836. Else
  5837. {
  5838. Store (0x01, Local1)
  5839. }
  5840.  
  5841. Store (Local1, Index (PBST, 0x00))
  5842. }
  5843. }
  5844. }
  5845. }
  5846.  
  5847. Device (HDEF)
  5848. {
  5849. Name (_ADR, 0x001B0000)
  5850. Method (_PRW, 0, NotSerialized)
  5851. {
  5852. If (OSDW ())
  5853. {
  5854. Return (Package (0x02)
  5855. {
  5856. 0x69,
  5857. 0x03
  5858. })
  5859. }
  5860. Else
  5861. {
  5862. Return (Package (0x02)
  5863. {
  5864. 0x69,
  5865. 0x03
  5866. })
  5867. }
  5868. }
  5869.  
  5870. Method (_PS0, 0, Serialized)
  5871. {
  5872. Store (0x01, GD51)
  5873. Sleep (0x0F)
  5874. }
  5875.  
  5876. Method (_PS3, 0, Serialized)
  5877. {
  5878. Store (0x00, GP51)
  5879. Store (0x00, GD51)
  5880. Sleep (0x14)
  5881. }
  5882. }
  5883.  
  5884. Device (RP01)
  5885. {
  5886. Name (_ADR, 0x001C0000)
  5887. Method (_PRW, 0, NotSerialized)
  5888. {
  5889. If (OSDW ())
  5890. {
  5891. Return (Package (0x02)
  5892. {
  5893. 0x69,
  5894. 0x03
  5895. })
  5896. }
  5897. Else
  5898. {
  5899. Return (Package (0x02)
  5900. {
  5901. 0x69,
  5902. 0x03
  5903. })
  5904. }
  5905. }
  5906.  
  5907. Method (_PRT, 0, NotSerialized)
  5908. {
  5909. If (PICM)
  5910. {
  5911. Return (AR04 ())
  5912. }
  5913.  
  5914. Return (PR04 ())
  5915. }
  5916.  
  5917. Method (_DSM, 4, NotSerialized)
  5918. {
  5919. If (LEqual (Arg0, Buffer (0x10)
  5920. {
  5921. /* 0000 */ 0xC6, 0xB7, 0xB5, 0xA0, 0x18, 0x13, 0x1C, 0x44,
  5922. /* 0008 */ 0xB0, 0xC9, 0xFE, 0x69, 0x5E, 0xAF, 0x94, 0x9B
  5923. }))
  5924. {
  5925. Store (Package (0x02)
  5926. {
  5927. "reg-ltrovr",
  5928. Buffer (0x08)
  5929. {
  5930. /* 0000 */ 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
  5931. }
  5932. }, Local0)
  5933. DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
  5934. Return (Local0)
  5935. }
  5936.  
  5937. Return (0x00)
  5938. }
  5939. }
  5940.  
  5941. Device (RP02)
  5942. {
  5943. Name (_ADR, 0x001C0001)
  5944. Method (_PRW, 0, NotSerialized)
  5945. {
  5946. If (OSDW ())
  5947. {
  5948. Return (Package (0x02)
  5949. {
  5950. 0x69,
  5951. 0x03
  5952. })
  5953. }
  5954. Else
  5955. {
  5956. Return (Package (0x02)
  5957. {
  5958. 0x69,
  5959. 0x03
  5960. })
  5961. }
  5962. }
  5963.  
  5964. Method (_PRT, 0, NotSerialized)
  5965. {
  5966. If (PICM)
  5967. {
  5968. Return (AR05 ())
  5969. }
  5970.  
  5971. Return (PR05 ())
  5972. }
  5973.  
  5974. Method (_DSM, 4, NotSerialized)
  5975. {
  5976. If (LEqual (Arg0, Buffer (0x10)
  5977. {
  5978. /* 0000 */ 0xC6, 0xB7, 0xB5, 0xA0, 0x18, 0x13, 0x1C, 0x44,
  5979. /* 0008 */ 0xB0, 0xC9, 0xFE, 0x69, 0x5E, 0xAF, 0x94, 0x9B
  5980. }))
  5981. {
  5982. Store (Package (0x02)
  5983. {
  5984. "reg-ltrovr",
  5985. Buffer (0x08)
  5986. {
  5987. /* 0000 */ 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
  5988. }
  5989. }, Local0)
  5990. DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
  5991. Return (Local0)
  5992. }
  5993.  
  5994. Return (0x00)
  5995. }
  5996. }
  5997.  
  5998. Device (RP03)
  5999. {
  6000. Name (_ADR, 0x001C0002)
  6001. Method (_PRW, 0, NotSerialized)
  6002. {
  6003. If (OSDW ())
  6004. {
  6005. Return (Package (0x02)
  6006. {
  6007. 0x69,
  6008. 0x03
  6009. })
  6010. }
  6011. Else
  6012. {
  6013. Return (Package (0x02)
  6014. {
  6015. 0x69,
  6016. 0x03
  6017. })
  6018. }
  6019. }
  6020.  
  6021. Method (_PRT, 0, NotSerialized)
  6022. {
  6023. If (PICM)
  6024. {
  6025. Return (AR06 ())
  6026. }
  6027.  
  6028. Return (PR06 ())
  6029. }
  6030.  
  6031. Method (_DSM, 4, NotSerialized)
  6032. {
  6033. If (LEqual (Arg0, Buffer (0x10)
  6034. {
  6035. /* 0000 */ 0xC6, 0xB7, 0xB5, 0xA0, 0x18, 0x13, 0x1C, 0x44,
  6036. /* 0008 */ 0xB0, 0xC9, 0xFE, 0x69, 0x5E, 0xAF, 0x94, 0x9B
  6037. }))
  6038. {
  6039. Store (Package (0x02)
  6040. {
  6041. "reg-ltrovr",
  6042. Buffer (0x08)
  6043. {
  6044. /* 0000 */ 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
  6045. }
  6046. }, Local0)
  6047. DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
  6048. Return (Local0)
  6049. }
  6050.  
  6051. Return (0x00)
  6052. }
  6053. }
  6054.  
  6055. Device (RP05)
  6056. {
  6057. Name (_ADR, 0x001C0004)
  6058. Method (_PRW, 0, NotSerialized)
  6059. {
  6060. If (OSDW ())
  6061. {
  6062. Return (Package (0x02)
  6063. {
  6064. 0x69,
  6065. 0x03
  6066. })
  6067. }
  6068. Else
  6069. {
  6070. Return (Package (0x02)
  6071. {
  6072. 0x69,
  6073. 0x03
  6074. })
  6075. }
  6076. }
  6077.  
  6078. Method (_PRT, 0, NotSerialized)
  6079. {
  6080. If (PICM)
  6081. {
  6082. Return (AR08 ())
  6083. }
  6084.  
  6085. Return (PR08 ())
  6086. }
  6087.  
  6088. Method (_DSM, 4, NotSerialized)
  6089. {
  6090. If (LEqual (Arg0, Buffer (0x10)
  6091. {
  6092. /* 0000 */ 0xC6, 0xB7, 0xB5, 0xA0, 0x18, 0x13, 0x1C, 0x44,
  6093. /* 0008 */ 0xB0, 0xC9, 0xFE, 0x69, 0x5E, 0xAF, 0x94, 0x9B
  6094. }))
  6095. {
  6096. Store (Package (0x02)
  6097. {
  6098. "reg-ltrovr",
  6099. Buffer (0x08)
  6100. {
  6101. /* 0000 */ 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
  6102. }
  6103. }, Local0)
  6104. DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
  6105. Return (Local0)
  6106. }
  6107.  
  6108. Return (0x00)
  6109. }
  6110. }
  6111.  
  6112. Device (RP06)
  6113. {
  6114. Name (_ADR, 0x001C0005)
  6115. Method (_PRW, 0, NotSerialized)
  6116. {
  6117. If (OSDW ())
  6118. {
  6119. Return (Package (0x02)
  6120. {
  6121. 0x69,
  6122. 0x03
  6123. })
  6124. }
  6125. Else
  6126. {
  6127. Return (Package (0x02)
  6128. {
  6129. 0x69,
  6130. 0x03
  6131. })
  6132. }
  6133. }
  6134.  
  6135. Method (_PRT, 0, NotSerialized)
  6136. {
  6137. If (PICM)
  6138. {
  6139. Return (AR09 ())
  6140. }
  6141.  
  6142. Return (PR09 ())
  6143. }
  6144.  
  6145. Method (_DSM, 4, NotSerialized)
  6146. {
  6147. If (LEqual (Arg0, Buffer (0x10)
  6148. {
  6149. /* 0000 */ 0xC6, 0xB7, 0xB5, 0xA0, 0x18, 0x13, 0x1C, 0x44,
  6150. /* 0008 */ 0xB0, 0xC9, 0xFE, 0x69, 0x5E, 0xAF, 0x94, 0x9B
  6151. }))
  6152. {
  6153. Store (Package (0x02)
  6154. {
  6155. "reg-ltrovr",
  6156. Buffer (0x08)
  6157. {
  6158. /* 0000 */ 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
  6159. }
  6160. }, Local0)
  6161. DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
  6162. Return (Local0)
  6163. }
  6164.  
  6165. Return (0x00)
  6166. }
  6167. }
  6168.  
  6169. Scope (\_SB.PCI0.RP03)
  6170. {
  6171. OperationRegion (A1E0, PCI_Config, 0x00, 0x0380)
  6172. Field (A1E0, ByteAcc, NoLock, Preserve)
  6173. {
  6174. Offset (0x04),
  6175. BMIE, 3,
  6176. Offset (0x19),
  6177. SECB, 8,
  6178. SBBN, 8,
  6179. Offset (0x1E),
  6180. , 13,
  6181. MABT, 1,
  6182. Offset (0x4A),
  6183. , 5,
  6184. TPEN, 1,
  6185. Offset (0x50),
  6186. , 4,
  6187. LDIS, 1,
  6188. , 24,
  6189. LACT, 1,
  6190. Offset (0xA4),
  6191. PSTA, 2,
  6192. Offset (0xE2),
  6193. , 2,
  6194. L23E, 1,
  6195. L23D, 1,
  6196. Offset (0x324),
  6197. , 3,
  6198. LEDM, 1
  6199. }
  6200.  
  6201. Method (_BBN, 0, NotSerialized)
  6202. {
  6203. If (LAnd (LEqual (BMIE, 0x00), LEqual (SECB, 0xFF)))
  6204. {
  6205. Return (SNBS)
  6206. }
  6207. Else
  6208. {
  6209. Return (SECB)
  6210. }
  6211. }
  6212.  
  6213. Method (_STA, 0, NotSerialized)
  6214. {
  6215. Return (0x0F)
  6216. }
  6217.  
  6218. Name (BMIS, 0x00)
  6219. Name (SNBS, 0x00)
  6220. Name (SOBS, 0x00)
  6221. Method (APPD, 0, Serialized)
  6222. {
  6223. If (LNot (OSDW ()))
  6224. {
  6225. Return (Zero)
  6226. }
  6227.  
  6228. If (LAnd (LEqual (WOWE, 0x01), LNotEqual (SLTP, 0x00)))
  6229. {
  6230. Return (Zero)
  6231. }
  6232.  
  6233. If (LAnd (LEqual (TAPD, 0x00), LNotEqual (SLTP, 0x00)))
  6234. {
  6235. Return (Zero)
  6236. }
  6237.  
  6238. Store (0x03, \_SB.PCI0.RP03.ARPT.PSTA)
  6239. If (LEqual (SLTP, 0x00))
  6240. {
  6241. Store (0x01, L23E)
  6242. Store (0x00, Local0)
  6243. While (L23E)
  6244. {
  6245. If (LGreater (Local0, 0x04))
  6246. {
  6247. Break
  6248. }
  6249.  
  6250. Sleep (0x01)
  6251. Increment (Local0)
  6252. }
  6253.  
  6254. Store (0x01, LEDM)
  6255. }
  6256.  
  6257. If (LEqual (WOWE, 0x01))
  6258. {
  6259. If (LEqual (GL17, 0x01))
  6260. {
  6261. Store (0x00, GP13)
  6262. Store (0x00, GD13)
  6263. }
  6264. Else
  6265. {
  6266. Store (0x00, GP70)
  6267. Store (0x00, GD70)
  6268. }
  6269.  
  6270. If (LEqual (GD17, 0x00))
  6271. {
  6272. Store (0x01, GD17)
  6273. }
  6274.  
  6275. If (LEqual (GL17, 0x01))
  6276. {
  6277. Store (0x01, GP13)
  6278. }
  6279. Else
  6280. {
  6281. Store (0x01, GP70)
  6282. }
  6283. }
  6284.  
  6285. If (LAnd (LAnd (LNotEqual (BMIE, 0x00), LNotEqual (BMIE,
  6286. BMIS)), LAnd (LAnd (LNotEqual (SECB, 0x00), LNotEqual (SECB, SNBS)),
  6287. LAnd (LNotEqual (SBBN, 0x00), LNotEqual (SBBN, SOBS)))))
  6288. {
  6289. Store (BMIE, BMIS)
  6290. Store (SECB, SNBS)
  6291. Store (SBBN, SOBS)
  6292. }
  6293.  
  6294. Store (0x00, BMIE)
  6295. Store (0xFF, SECB)
  6296. Store (0xFE, SBBN)
  6297. Store (TPEN, Local0)
  6298. Store (0x03, PSTA)
  6299. Store (TPEN, Local0)
  6300. Add (Timer, 0x00989680, Local0)
  6301. While (LLessEqual (Timer, Local0))
  6302. {
  6303. If (LEqual (LACT, 0x00))
  6304. {
  6305. Break
  6306. }
  6307.  
  6308. Sleep (0x0A)
  6309. }
  6310.  
  6311. If (LEqual (WOWE, 0x01))
  6312. {
  6313. Return (Zero)
  6314. }
  6315.  
  6316. If (LEqual (TAPD, 0x01))
  6317. {
  6318. Store (0x00, \_SB.PCI0.LPCB.EC.APWC)
  6319. Sleep (0x0107)
  6320. }
  6321.  
  6322. Return (Zero)
  6323. }
  6324.  
  6325. Method (APPU, 0, Serialized)
  6326. {
  6327. If (LNot (OSDW ()))
  6328. {
  6329. Store (0x00, WOWE)
  6330. Return (Zero)
  6331. }
  6332.  
  6333. If (LAnd (LEqual (WOWE, 0x01), LNotEqual (SLTP, 0x00)))
  6334. {
  6335. Store (0x00, WOWE)
  6336. Return (Zero)
  6337. }
  6338.  
  6339. If (LAnd (LEqual (TAPD, 0x00), LNotEqual (SLTP, 0x00)))
  6340. {
  6341. Store (0x00, WOWE)
  6342. Return (Zero)
  6343. }
  6344.  
  6345. Store (0x00, PSTA)
  6346. If (LNotEqual (SECB, 0xFF))
  6347. {
  6348. Return (Zero)
  6349. }
  6350.  
  6351. Store (SOBS, SBBN)
  6352. Store (SNBS, SECB)
  6353. If (LEqual (SLTP, 0x00))
  6354. {
  6355. If (LOr (LEqual (TAPD, 0x00), LEqual (WOWE, 0x01)))
  6356. {
  6357. Store (0x00, GD94)
  6358. Store (0x00, GP94)
  6359. Sleep (0x32)
  6360. Store (0x01, GP94)
  6361. Store (0x01, GD94)
  6362. }
  6363.  
  6364. Store (0x01, L23D)
  6365. Store (0x00, Local0)
  6366. While (L23D)
  6367. {
  6368. If (LGreater (Local0, 0x04))
  6369. {
  6370. Break
  6371. }
  6372.  
  6373. Sleep (0x01)
  6374. Increment (Local0)
  6375. }
  6376.  
  6377. Store (0x00, LEDM)
  6378. If (LOr (LEqual (TAPD, 0x00), LEqual (WOWE, 0x01)))
  6379. {
  6380. Add (Timer, 0x00989680, Local2)
  6381. While (LLessEqual (Timer, Local2))
  6382. {
  6383. If (LAnd (LEqual (LACT, 0x01), LNotEqual (\_SB.PCI0.RP03.ARPT.AVND, 0xFFFF)))
  6384. {
  6385. Break
  6386. }
  6387.  
  6388. Sleep (0x0A)
  6389. }
  6390.  
  6391. Store (0x00, WOWE)
  6392. Return (Zero)
  6393. }
  6394. }
  6395.  
  6396. Store (0x00, WOWE)
  6397. If (LEqual (\_SB.PCI0.LPCB.EC.APWC, 0x01))
  6398. {
  6399. Add (Timer, 0x00989680, Local2)
  6400. While (LLessEqual (Timer, Local2))
  6401. {
  6402. If (LEqual (LACT, 0x01))
  6403. {
  6404. Break
  6405. }
  6406.  
  6407. Sleep (0x0A)
  6408. }
  6409.  
  6410. Return (Zero)
  6411. }
  6412.  
  6413. Store (0x00, Local0)
  6414. While (0x01)
  6415. {
  6416. Store (0x01, \_SB.PCI0.LPCB.EC.APWC)
  6417. Sleep (0xAA)
  6418. Store (0x00, Local1)
  6419. Add (Timer, 0x00989680, Local2)
  6420. While (LLessEqual (Timer, Local2))
  6421. {
  6422. If (LAnd (LEqual (LACT, 0x01), LNotEqual (\_SB.PCI0.RP03.ARPT.AVND, 0xFFFF)))
  6423. {
  6424. Store (0x01, Local1)
  6425. Break
  6426. }
  6427.  
  6428. Sleep (0x0A)
  6429. }
  6430.  
  6431. If (LEqual (Local1, 0x01))
  6432. {
  6433. Store (0x01, MABT)
  6434. Break
  6435. }
  6436.  
  6437. If (LEqual (Local0, 0x04))
  6438. {
  6439. Break
  6440. }
  6441.  
  6442. Increment (Local0)
  6443. Store (0x00, \_SB.PCI0.LPCB.EC.APWC)
  6444. Sleep (0x0107)
  6445. }
  6446.  
  6447. Return (Zero)
  6448. }
  6449.  
  6450. Method (ALPR, 1, NotSerialized)
  6451. {
  6452. If (LEqual (Arg0, 0x01))
  6453. {
  6454. APPD ()
  6455. }
  6456. Else
  6457. {
  6458. APPU ()
  6459. }
  6460. }
  6461.  
  6462. Method (_PS0, 0, Serialized)
  6463. {
  6464. ALPR (0x00)
  6465. }
  6466.  
  6467. Method (_PS3, 0, Serialized)
  6468. {
  6469. ALPR (0x01)
  6470. }
  6471.  
  6472. Device (ARPT)
  6473. {
  6474. Name (_ADR, 0x00)
  6475. Name (_GPE, 0x5B)
  6476. OperationRegion (ARE2, PCI_Config, 0x00, 0xFF)
  6477. Field (ARE2, ByteAcc, NoLock, Preserve)
  6478. {
  6479. AVND, 16,
  6480. ADID, 16,
  6481. Offset (0x44),
  6482. PSTA, 2
  6483. }
  6484.  
  6485. Method (_STA, 0, NotSerialized)
  6486. {
  6487. Return (0x0F)
  6488. }
  6489.  
  6490. Method (_PRW, 0, NotSerialized)
  6491. {
  6492. If (OSDW ())
  6493. {
  6494. Return (Package (0x02)
  6495. {
  6496. 0x69,
  6497. 0x04
  6498. })
  6499. }
  6500. Else
  6501. {
  6502. Return (Package (0x02)
  6503. {
  6504. 0x69,
  6505. 0x04
  6506. })
  6507. }
  6508. }
  6509.  
  6510. Method (PRW0, 0, NotSerialized)
  6511. {
  6512. Return (Package (0x01)
  6513. {
  6514. 0x5B
  6515. })
  6516. }
  6517.  
  6518. Method (_RMV, 0, NotSerialized)
  6519. {
  6520. Return (0x00)
  6521. }
  6522.  
  6523. Method (WWEN, 1, NotSerialized)
  6524. {
  6525. If (LNotEqual (Arg0, 0x00))
  6526. {
  6527. Store (Arg0, WOWE)
  6528. }
  6529. }
  6530.  
  6531. Method (PDEN, 1, NotSerialized)
  6532. {
  6533. Store (Arg0, TAPD)
  6534. }
  6535. }
  6536. }
  6537.  
  6538. Scope (\_SB.PCI0.RP02)
  6539. {
  6540. OperationRegion (A1E0, PCI_Config, 0x00, 0x0380)
  6541. Field (A1E0, ByteAcc, NoLock, Preserve)
  6542. {
  6543. Offset (0x04),
  6544. BMIE, 3,
  6545. Offset (0x19),
  6546. SECB, 8,
  6547. SBBN, 8,
  6548. Offset (0x1E),
  6549. , 13,
  6550. MABT, 1,
  6551. Offset (0x4A),
  6552. , 5,
  6553. TPEN, 1,
  6554. Offset (0x50),
  6555. ASPM, 2,
  6556. , 2,
  6557. LDIS, 1,
  6558. Offset (0x52),
  6559. , 13,
  6560. LACT, 1,
  6561. Offset (0xA4),
  6562. PSTA, 2,
  6563. Offset (0xE2),
  6564. , 2,
  6565. L23E, 1,
  6566. L23D, 1,
  6567. Offset (0x324),
  6568. , 3,
  6569. LEDM, 1
  6570. }
  6571.  
  6572. Device (CMRA)
  6573. {
  6574. Name (_ADR, 0x00)
  6575. OperationRegion (ARE3, PCI_Config, 0x00, 0xFF)
  6576. Field (ARE3, ByteAcc, NoLock, Preserve)
  6577. {
  6578. AVND, 16,
  6579. ADID, 16,
  6580. Offset (0x4C),
  6581. PSTA, 2
  6582. }
  6583.  
  6584. Name (S2PM, 0x02)
  6585. Method (CMPE, 1, Serialized)
  6586. {
  6587. If (LLessEqual (Arg0, 0x01))
  6588. {
  6589. If (LEqual (Arg0, 0x01))
  6590. {
  6591. Store (0x01, GD45)
  6592. Store (S2PM, \_SB.PCI0.RP02.ASPM)
  6593. Store (0x00, \_SB.PCI0.RP02.PSTA)
  6594. While (LNotEqual (\_SB.PCI0.RP02.PSTA, 0x00))
  6595. {
  6596. Sleep (0x01)
  6597. }
  6598.  
  6599. Add (Timer, 0x00989680, Local0)
  6600. While (LLessEqual (Timer, Local0))
  6601. {
  6602. If (LEqual (LACT, 0x01))
  6603. {
  6604. Break
  6605. }
  6606.  
  6607. Sleep (0x0A)
  6608. }
  6609.  
  6610. Store (0x01, L23D)
  6611. Sleep (0x01)
  6612. Store (0x00, Local0)
  6613. While (L23D)
  6614. {
  6615. If (LGreater (Local0, 0x04))
  6616. {
  6617. Break
  6618. }
  6619.  
  6620. Sleep (0x01)
  6621. Increment (Local0)
  6622. }
  6623.  
  6624. Store (0x00, LEDM)
  6625. }
  6626. Else
  6627. {
  6628. Store (0x03, \_SB.PCI0.RP02.CMRA.PSTA)
  6629. While (LNotEqual (\_SB.PCI0.RP02.CMRA.PSTA, 0x03))
  6630. {
  6631. Sleep (0x01)
  6632. }
  6633.  
  6634. If (LEqual (SLTP, 0x00))
  6635. {
  6636. Store (0x01, L23E)
  6637. Sleep (0x01)
  6638. Store (0x00, Local0)
  6639. While (L23E)
  6640. {
  6641. If (LGreater (Local0, 0x04))
  6642. {
  6643. Break
  6644. }
  6645.  
  6646. Sleep (0x01)
  6647. Increment (Local0)
  6648. }
  6649.  
  6650. Store (0x01, LEDM)
  6651. }
  6652.  
  6653. Store (0x03, \_SB.PCI0.RP02.PSTA)
  6654. While (LNotEqual (\_SB.PCI0.RP02.PSTA, 0x03))
  6655. {
  6656. Sleep (0x01)
  6657. }
  6658.  
  6659. Store (\_SB.PCI0.RP02.ASPM, S2PM)
  6660. Store (0x00, \_SB.PCI0.RP02.ASPM)
  6661. Store (0x00, GP45)
  6662. Store (0x00, GD45)
  6663. }
  6664. }
  6665.  
  6666. Return (Zero)
  6667. }
  6668. }
  6669.  
  6670. Method (_BBN, 0, NotSerialized)
  6671. {
  6672. Return (SECB)
  6673. }
  6674.  
  6675. Method (_STA, 0, NotSerialized)
  6676. {
  6677. Return (0x0F)
  6678. }
  6679. }
  6680.  
  6681. Scope (\_SB.PCI0.RP06)
  6682. {
  6683. OperationRegion (A1E0, PCI_Config, 0x00, 0x0380)
  6684. Field (A1E0, ByteAcc, NoLock, Preserve)
  6685. {
  6686. Offset (0x04),
  6687. BMIE, 3,
  6688. Offset (0x19),
  6689. SECB, 8,
  6690. SBBN, 8,
  6691. Offset (0x1E),
  6692. , 13,
  6693. MABT, 1,
  6694. Offset (0x4A),
  6695. , 5,
  6696. TPEN, 1,
  6697. Offset (0x50),
  6698. ASPM, 2,
  6699. , 2,
  6700. LDIS, 1,
  6701. LRTN, 1,
  6702. Offset (0x52),
  6703. LSPD, 4,
  6704. , 7,
  6705. LTRN, 1,
  6706. , 1,
  6707. LACT, 1,
  6708. Offset (0xA4),
  6709. PSTA, 2,
  6710. Offset (0xE2),
  6711. , 2,
  6712. L23E, 1,
  6713. L23D, 1,
  6714. Offset (0x324),
  6715. , 3,
  6716. LEDM, 1
  6717. }
  6718.  
  6719. Method (_PS0, 0, Serialized)
  6720. {
  6721. If (OSDW ())
  6722. {
  6723. Store (0x01, GD56)
  6724. Store (0x00, PSTA)
  6725. While (LNotEqual (PSTA, 0x00))
  6726. {
  6727. Sleep (0x01)
  6728. }
  6729.  
  6730. Sleep (0x46)
  6731. Store (0x01, L23D)
  6732. Sleep (0x01)
  6733. Store (0x00, Local0)
  6734. While (L23D)
  6735. {
  6736. If (LGreater (Local0, 0x04))
  6737. {
  6738. Break
  6739. }
  6740.  
  6741. Sleep (0x01)
  6742. Increment (Local0)
  6743. }
  6744.  
  6745. Store (0x00, LEDM)
  6746. Add (Timer, 0x00989680, Local0)
  6747. While (LLessEqual (Timer, Local0))
  6748. {
  6749. If (LAnd (LEqual (LACT, 0x01), LNotEqual (\_SB.PCI0.RP06.SSD0.SVID, 0xFFFF)))
  6750. {
  6751. Store (0x00, Local1)
  6752. While (LNotEqual (LSPD, 0x02))
  6753. {
  6754. Store (0x01, LRTN)
  6755. Store (0x00, Local2)
  6756. While (LOr (LNotEqual (LACT, 0x01), LEqual (LTRN, 0x01)))
  6757. {
  6758. If (LGreater (Local2, 0x01F4))
  6759. {
  6760. Break
  6761. }
  6762.  
  6763. Increment (Local2)
  6764. Sleep (0x01)
  6765. }
  6766.  
  6767. If (LEqual (Local1, 0x05))
  6768. {
  6769. Break
  6770. }
  6771.  
  6772. Increment (Local1)
  6773. }
  6774.  
  6775. Break
  6776. }
  6777.  
  6778. Sleep (0x0A)
  6779. }
  6780. }
  6781. }
  6782.  
  6783. Method (_PS3, 0, Serialized)
  6784. {
  6785. If (OSDW ())
  6786. {
  6787. If (LEqual (SLTP, 0x00))
  6788. {
  6789. Store (0x01, L23E)
  6790. Sleep (0x01)
  6791. Store (0x00, Local0)
  6792. While (L23E)
  6793. {
  6794. If (LGreater (Local0, 0x04))
  6795. {
  6796. Break
  6797. }
  6798.  
  6799. Sleep (0x01)
  6800. Increment (Local0)
  6801. }
  6802.  
  6803. Store (0x01, LEDM)
  6804. }
  6805.  
  6806. Store (0x03, PSTA)
  6807. While (LNotEqual (PSTA, 0x03))
  6808. {
  6809. Sleep (0x01)
  6810. }
  6811.  
  6812. Store (0x00, GP56)
  6813. Store (0x00, GD56)
  6814. Sleep (0x32)
  6815. }
  6816. }
  6817.  
  6818. Device (SSD0)
  6819. {
  6820. Name (_ADR, 0x00)
  6821. Method (_RMV, 0, NotSerialized)
  6822. {
  6823. Return (0x00)
  6824. }
  6825.  
  6826. OperationRegion (SSE1, PCI_Config, 0x00, 0x10)
  6827. Field (SSE1, ByteAcc, NoLock, Preserve)
  6828. {
  6829. SVID, 16
  6830. }
  6831.  
  6832. Method (_DSM, 4, NotSerialized)
  6833. {
  6834. Store (Package (0x04)
  6835. {
  6836. "use-msi",
  6837. 0x01,
  6838. "sata-express-power-off",
  6839. 0x01
  6840. }, Local0)
  6841. DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
  6842. Return (Local0)
  6843. }
  6844. }
  6845. }
  6846.  
  6847. Device (SDMA)
  6848. {
  6849. Name (_ADR, 0x00150000)
  6850. Name (_UID, 0x01)
  6851. Name (RBUF, ResourceTemplate ()
  6852. {
  6853. Interrupt (ResourceConsumer, Level, ActiveLow, Shared, ,, )
  6854. {
  6855. 0x00000015,
  6856. }
  6857. })
  6858. Method (_CRS, 0, NotSerialized)
  6859. {
  6860. Return (RBUF)
  6861. }
  6862.  
  6863. Method (_STA, 0, NotSerialized)
  6864. {
  6865. If (OSDW ())
  6866. {
  6867. Return (0x0F)
  6868. }
  6869. Else
  6870. {
  6871. Return (0x0B)
  6872. }
  6873. }
  6874. }
  6875.  
  6876. Device (SPI1)
  6877. {
  6878. Name (_ADR, 0x00150004)
  6879. Name (_CID, "INT33C1")
  6880. Name (_DDN, "Intel(R) Low Power Subsystem SPI Host Controller - 9C66")
  6881. Name (_UID, 0x02)
  6882. Name (RBUF, ResourceTemplate ()
  6883. {
  6884. Interrupt (ResourceConsumer, Level, ActiveLow, Shared, ,, )
  6885. {
  6886. 0x00000015,
  6887. }
  6888. })
  6889. Method (_CRS, 0, NotSerialized)
  6890. {
  6891. Return (RBUF)
  6892. }
  6893.  
  6894. Method (_STA, 0, NotSerialized)
  6895. {
  6896. If (OSDW ())
  6897. {
  6898. Return (0x0F)
  6899. }
  6900. Else
  6901. {
  6902. Return (0x0B)
  6903. }
  6904. }
  6905.  
  6906. Method (_DSM, 4, NotSerialized)
  6907. {
  6908. If (LEqual (Arg0, Buffer (0x10)
  6909. {
  6910. /* 0000 */ 0xC6, 0xB7, 0xB5, 0xA0, 0x18, 0x13, 0x1C, 0x44,
  6911. /* 0008 */ 0xB0, 0xC9, 0xFE, 0x69, 0x5E, 0xAF, 0x94, 0x9B
  6912. }))
  6913. {
  6914. Store (Package (0x08)
  6915. {
  6916. "spi-pin-cs",
  6917. Buffer (0x08)
  6918. {
  6919. /* 0000 */ 0x57, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
  6920. },
  6921.  
  6922. "spi-pin-clk",
  6923. Buffer (0x08)
  6924. {
  6925. /* 0000 */ 0x58, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
  6926. },
  6927.  
  6928. "spi-pin-mosi",
  6929. Buffer (0x08)
  6930. {
  6931. /* 0000 */ 0x5A, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
  6932. },
  6933.  
  6934. "spi-pin-miso",
  6935. Buffer (0x08)
  6936. {
  6937. /* 0000 */ 0x59, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
  6938. }
  6939. }, Local0)
  6940. DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
  6941. Return (Local0)
  6942. }
  6943.  
  6944. Return (0x00)
  6945. }
  6946.  
  6947. Method (ISOL, 1, Serialized)
  6948. {
  6949. If (LLessEqual (Arg0, 0x01))
  6950. {
  6951. If (LEqual (Arg0, 0x01))
  6952. {
  6953. Store (0x01, GP87)
  6954. Store (0x00, GP88)
  6955. Store (0x00, GP89)
  6956. Store (0x00, GP90)
  6957. Store (0x00, GD87)
  6958. Store (0x00, GD88)
  6959. Store (0x01, GD89)
  6960. Store (0x00, GD90)
  6961. Store (0x01, GU87)
  6962. Store (0x01, GU88)
  6963. Store (0x01, GU89)
  6964. Store (0x01, GU90)
  6965. Store (GP87, Local0)
  6966. }
  6967. Else
  6968. {
  6969. Store (0x00, GU87)
  6970. Store (0x00, GU88)
  6971. Store (0x00, GU89)
  6972. Store (0x00, GU90)
  6973. Store (0x00, GP87)
  6974. Store (0x00, GP88)
  6975. Store (0x00, GP89)
  6976. Store (0x00, GP90)
  6977. Store (0x00, GD87)
  6978. Store (0x00, GD88)
  6979. Store (0x00, GD89)
  6980. Store (0x00, GD90)
  6981. Store (GU87, Local0)
  6982. }
  6983.  
  6984. Return (0x00)
  6985. }
  6986.  
  6987. Return (0xFFFFFFFF)
  6988. }
  6989.  
  6990. Device (SPIT)
  6991. {
  6992. Name (_HID, EisaId ("APP000D"))
  6993. Name (_CID, "apple-spi-topcase")
  6994. Name (_GPE, 0x1C)
  6995. Name (_UID, 0x01)
  6996. Method (_PRW, 0, NotSerialized)
  6997. {
  6998. If (OSDW ())
  6999. {
  7000. Return (Package (0x02)
  7001. {
  7002. 0x1C,
  7003. 0x03
  7004. })
  7005. }
  7006.  
  7007. Return (Package (0x02)
  7008. {
  7009. 0x1C,
  7010. 0x03
  7011. })
  7012. }
  7013.  
  7014. Method (_STA, 0, NotSerialized)
  7015. {
  7016. If (OSDW ())
  7017. {
  7018. Return (0x0F)
  7019. }
  7020. Else
  7021. {
  7022. Return (0x0B)
  7023. }
  7024. }
  7025.  
  7026. Method (UIEN, 1, Serialized)
  7027. {
  7028. If (LLessEqual (Arg0, 0x01))
  7029. {
  7030. If (LEqual (Arg0, 0x01))
  7031. {
  7032. Store (0x01, GD26)
  7033. }
  7034. Else
  7035. {
  7036. Store (0x00, GP26)
  7037. Store (0x00, GD26)
  7038. }
  7039. }
  7040. }
  7041.  
  7042. Method (UIST, 0, Serialized)
  7043. {
  7044. Store (GD26, Local0)
  7045. If (LEqual (Local0, 0x01))
  7046. {
  7047. Return (GL26)
  7048. }
  7049. Else
  7050. {
  7051. Return (GP26)
  7052. }
  7053. }
  7054.  
  7055. Method (SIEN, 1, Serialized)
  7056. {
  7057. If (LLessEqual (Arg0, 0x01))
  7058. {
  7059. If (LEqual (Arg0, 0x01))
  7060. {
  7061. Store (0x01, GP13)
  7062. Store (0x00, GD13)
  7063. }
  7064. Else
  7065. {
  7066. Store (0x01, GD13)
  7067. }
  7068. }
  7069. }
  7070.  
  7071. Method (SIST, 0, Serialized)
  7072. {
  7073. Store (GD13, Local0)
  7074. If (LEqual (Local0, 0x01))
  7075. {
  7076. Return (GL13)
  7077. }
  7078. Else
  7079. {
  7080. Return (GP13)
  7081. }
  7082. }
  7083. }
  7084. }
  7085. }
  7086.  
  7087. Device (ADP1)
  7088. {
  7089. Name (_HID, "ACPI0003")
  7090. Method (_PRW, 0, NotSerialized)
  7091. {
  7092. If (OSDW ())
  7093. {
  7094. Return (Package (0x02)
  7095. {
  7096. 0x70,
  7097. 0x04
  7098. })
  7099. }
  7100. Else
  7101. {
  7102. Return (Package (0x02)
  7103. {
  7104. 0x70,
  7105. 0x03
  7106. })
  7107. }
  7108. }
  7109.  
  7110. Name (WK00, 0x01)
  7111. Method (SWAK, 1, NotSerialized)
  7112. {
  7113. And (Arg0, 0x03, WK00)
  7114. If (LNot (WK00))
  7115. {
  7116. Store (0x01, WK00)
  7117. }
  7118. }
  7119.  
  7120. Method (_PSR, 0, NotSerialized)
  7121. {
  7122. Return (PWRS)
  7123. }
  7124.  
  7125. Method (_PCL, 0, NotSerialized)
  7126. {
  7127. Return (\_SB)
  7128. }
  7129.  
  7130. Method (_PSW, 1, NotSerialized)
  7131. {
  7132. If (OSDW ())
  7133. {
  7134. If (\_SB.PCI0.LPCB.EC.ECOK)
  7135. {
  7136. If (Arg0)
  7137. {
  7138. If (And (WK00, 0x01))
  7139. {
  7140. Store (0x01, \_SB.PCI0.LPCB.EC.EWAI)
  7141. }
  7142.  
  7143. If (And (WK00, 0x02))
  7144. {
  7145. Store (0x01, \_SB.PCI0.LPCB.EC.EWAR)
  7146. }
  7147. }
  7148. Else
  7149. {
  7150. Store (0x00, \_SB.PCI0.LPCB.EC.EWAI)
  7151. Store (0x00, \_SB.PCI0.LPCB.EC.EWAR)
  7152. }
  7153. }
  7154. }
  7155. }
  7156. }
  7157.  
  7158. Device (LID0)
  7159. {
  7160. Name (_HID, EisaId ("PNP0C0D"))
  7161. Method (_PRW, 0, NotSerialized)
  7162. {
  7163. If (OSDW ())
  7164. {
  7165. Return (Package (0x02)
  7166. {
  7167. 0x70,
  7168. 0x04
  7169. })
  7170. }
  7171. Else
  7172. {
  7173. Return (Package (0x02)
  7174. {
  7175. 0x70,
  7176. 0x03
  7177. })
  7178. }
  7179. }
  7180.  
  7181. Method (_LID, 0, NotSerialized)
  7182. {
  7183. Return (LIDS)
  7184. }
  7185.  
  7186. Method (_PSW, 1, NotSerialized)
  7187. {
  7188. If (\_SB.PCI0.LPCB.EC.ECOK)
  7189. {
  7190. If (Arg0)
  7191. {
  7192. Store (0x01, \_SB.PCI0.LPCB.EC.EWLO)
  7193. }
  7194. Else
  7195. {
  7196. Store (0x00, \_SB.PCI0.LPCB.EC.EWLO)
  7197. }
  7198. }
  7199. }
  7200. }
  7201.  
  7202. Device (PWRB)
  7203. {
  7204. Name (_HID, EisaId ("PNP0C0C"))
  7205. }
  7206. }
  7207.  
  7208. Scope (\_PR)
  7209. {
  7210. Processor (CPU0, 0x01, 0x00000410, 0x06) {}
  7211. Processor (CPU1, 0x02, 0x00000410, 0x06) {}
  7212. Processor (CPU2, 0x03, 0x00000410, 0x06) {}
  7213. Processor (CPU3, 0x04, 0x00000410, 0x06) {}
  7214. Processor (CPU4, 0x05, 0x00000410, 0x06) {}
  7215. Processor (CPU5, 0x06, 0x00000410, 0x06) {}
  7216. Processor (CPU6, 0x07, 0x00000410, 0x06) {}
  7217. Processor (CPU7, 0x08, 0x00000410, 0x06) {}
  7218. }
  7219.  
  7220. Mutex (MUTX, 0x00)
  7221. Name (SLTP, 0x00)
  7222. OperationRegion (PRT0, SystemIO, 0x80, 0x04)
  7223. Field (PRT0, DWordAcc, Lock, Preserve)
  7224. {
  7225. P80H, 32
  7226. }
  7227.  
  7228. OperationRegion (PLMT, SystemIO, 0x0310, 0x0A)
  7229. Field (PLMT, WordAcc, Lock, Preserve)
  7230. {
  7231. CPLT, 8,
  7232. IGPS, 8,
  7233. MPLT, 8,
  7234. CFIL, 8,
  7235. EGPS, 8
  7236. }
  7237.  
  7238. OperationRegion (S0BA, SystemMemory, 0xE00A8084, 0x04)
  7239. Field (S0BA, DWordAcc, Lock, Preserve)
  7240. {
  7241. S0D3, 2
  7242. }
  7243.  
  7244. OperationRegion (S4BA, SystemMemory, 0xE00AC084, 0x04)
  7245. Field (S4BA, DWordAcc, Lock, Preserve)
  7246. {
  7247. S4D3, 2
  7248. }
  7249.  
  7250. OperationRegion (TCOI, SystemIO, 0x0460, 0x08)
  7251. Field (TCOI, WordAcc, NoLock, Preserve)
  7252. {
  7253. Offset (0x04),
  7254. , 9,
  7255. SCIS, 1,
  7256. Offset (0x06)
  7257. }
  7258.  
  7259. Method (P8XH, 2, Serialized)
  7260. {
  7261. If (LEqual (Arg0, 0x00))
  7262. {
  7263. Store (Or (And (P80D, 0xFFFFFF00), Arg1), P80D)
  7264. }
  7265.  
  7266. If (LEqual (Arg0, 0x01))
  7267. {
  7268. Store (Or (And (P80D, 0xFFFF00FF), ShiftLeft (Arg1, 0x08)
  7269. ), P80D)
  7270. }
  7271.  
  7272. If (LEqual (Arg0, 0x02))
  7273. {
  7274. Store (Or (And (P80D, 0xFF00FFFF), ShiftLeft (Arg1, 0x10)
  7275. ), P80D)
  7276. }
  7277.  
  7278. If (LEqual (Arg0, 0x03))
  7279. {
  7280. Store (Or (And (P80D, 0x00FFFFFF), ShiftLeft (Arg1, 0x18)
  7281. ), P80D)
  7282. }
  7283.  
  7284. Store (P80D, P80H)
  7285. }
  7286.  
  7287. OperationRegion (SPRT, SystemIO, 0xB2, 0x02)
  7288. Field (SPRT, ByteAcc, Lock, Preserve)
  7289. {
  7290. SSMP, 8,
  7291. SSMY, 8
  7292. }
  7293.  
  7294. Method (\_PIC, 1, NotSerialized)
  7295. {
  7296. Store (Arg0, GPIC)
  7297. Store (Arg0, PICM)
  7298. }
  7299.  
  7300. Method (GETB, 3, Serialized)
  7301. {
  7302. Multiply (Arg0, 0x08, Local0)
  7303. Multiply (Arg1, 0x08, Local1)
  7304. CreateField (Arg2, Local0, Local1, TBF3)
  7305. Return (TBF3)
  7306. }
  7307.  
  7308. Method (PNOT, 0, Serialized)
  7309. {
  7310. If (LGreater (TCNT, 0x01))
  7311. {
  7312. If (And (PDC0, 0x08))
  7313. {
  7314. Notify (\_PR.CPU0, 0x80)
  7315. If (And (PDC0, 0x10))
  7316. {
  7317. Notify (\_PR.CPU0, 0x81)
  7318. }
  7319. }
  7320.  
  7321. If (And (PDC1, 0x08))
  7322. {
  7323. Notify (\_PR.CPU1, 0x80)
  7324. If (And (PDC1, 0x10))
  7325. {
  7326. Notify (\_PR.CPU1, 0x81)
  7327. }
  7328. }
  7329.  
  7330. If (And (PDC2, 0x08))
  7331. {
  7332. Notify (\_PR.CPU2, 0x80)
  7333. If (And (PDC2, 0x10))
  7334. {
  7335. Notify (\_PR.CPU2, 0x81)
  7336. }
  7337. }
  7338.  
  7339. If (And (PDC3, 0x08))
  7340. {
  7341. Notify (\_PR.CPU3, 0x80)
  7342. If (And (PDC3, 0x10))
  7343. {
  7344. Notify (\_PR.CPU3, 0x81)
  7345. }
  7346. }
  7347.  
  7348. If (And (PDC4, 0x08))
  7349. {
  7350. Notify (\_PR.CPU4, 0x80)
  7351. If (And (PDC4, 0x10))
  7352. {
  7353. Notify (\_PR.CPU4, 0x81)
  7354. }
  7355. }
  7356.  
  7357. If (And (PDC5, 0x08))
  7358. {
  7359. Notify (\_PR.CPU5, 0x80)
  7360. If (And (PDC5, 0x10))
  7361. {
  7362. Notify (\_PR.CPU5, 0x81)
  7363. }
  7364. }
  7365.  
  7366. If (And (PDC6, 0x08))
  7367. {
  7368. Notify (\_PR.CPU6, 0x80)
  7369. If (And (PDC6, 0x10))
  7370. {
  7371. Notify (\_PR.CPU6, 0x81)
  7372. }
  7373. }
  7374.  
  7375. If (And (PDC7, 0x08))
  7376. {
  7377. Notify (\_PR.CPU7, 0x80)
  7378. If (And (PDC7, 0x10))
  7379. {
  7380. Notify (\_PR.CPU7, 0x81)
  7381. }
  7382. }
  7383. }
  7384. Else
  7385. {
  7386. Notify (\_PR.CPU0, 0x80)
  7387. Notify (\_PR.CPU0, 0x81)
  7388. }
  7389. }
  7390.  
  7391. Method (DSPI, 0, Serialized)
  7392. {
  7393. If (LNot (OSDW ()))
  7394. {
  7395. Store (0x03, S0D3)
  7396. Store (IOSR, Local0)
  7397. And (Local0, 0x01, Local1)
  7398. While (LNotEqual (Local1, 0x00))
  7399. {
  7400. Store (IOSR, Local0)
  7401. And (Local0, 0x01, Local1)
  7402. }
  7403.  
  7404. Store (0xCE00AA07, IOIR)
  7405. Store (0x0600, IOSR)
  7406. Store (0xF000, IONR)
  7407. Store (IOSR, Local0)
  7408. Or (Local0, 0x01, Local0)
  7409. Store (Local0, IOSR)
  7410. Store (IOSR, Local0)
  7411. And (Local0, 0x01, Local1)
  7412. While (LNotEqual (Local1, 0x00))
  7413. {
  7414. Store (IOSR, Local0)
  7415. And (Local0, 0x01, Local1)
  7416. }
  7417.  
  7418. And (Local0, 0x06, Local1)
  7419. If (LEqual (Local1, 0x00))
  7420. {
  7421. Store (IODR, Local3)
  7422. }
  7423.  
  7424. Or (Local3, 0x0100, Local3)
  7425. Store (0x0700, IOSR)
  7426. Store (Local3, IODR)
  7427. Store (0xF000, IONR)
  7428. Store (IOSR, Local0)
  7429. Or (Local0, 0x01, Local0)
  7430. Store (Local0, IOSR)
  7431. Store (IOSR, Local0)
  7432. And (Local0, 0x01, Local1)
  7433. While (LNotEqual (Local1, 0x00))
  7434. {
  7435. Store (IOSR, Local0)
  7436. And (Local0, 0x01, Local1)
  7437. }
  7438.  
  7439. And (Local0, 0x06, Local1)
  7440. If (LEqual (Local1, 0x00)) {}
  7441. Store (0x03, S4D3)
  7442. Store (IOSR, Local0)
  7443. And (Local0, 0x01, Local1)
  7444. While (LNotEqual (Local1, 0x00))
  7445. {
  7446. Store (IOSR, Local0)
  7447. And (Local0, 0x01, Local1)
  7448. }
  7449.  
  7450. Store (0xCE00AB07, IOIR)
  7451. Store (0x0600, IOSR)
  7452. Store (0xF000, IONR)
  7453. Store (IOSR, Local0)
  7454. Or (Local0, 0x01, Local0)
  7455. Store (Local0, IOSR)
  7456. Store (IOSR, Local0)
  7457. And (Local0, 0x01, Local1)
  7458. While (LNotEqual (Local1, 0x00))
  7459. {
  7460. Store (IOSR, Local0)
  7461. And (Local0, 0x01, Local1)
  7462. }
  7463.  
  7464. And (Local0, 0x06, Local1)
  7465. If (LEqual (Local1, 0x00))
  7466. {
  7467. Store (IODR, Local3)
  7468. }
  7469.  
  7470. Or (Local3, 0x0100, Local3)
  7471. Store (0x0700, IOSR)
  7472. Store (Local3, IODR)
  7473. Store (0xF000, IONR)
  7474. Store (IOSR, Local0)
  7475. Or (Local0, 0x01, Local0)
  7476. Store (Local0, IOSR)
  7477. Store (IOSR, Local0)
  7478. And (Local0, 0x01, Local1)
  7479. While (LNotEqual (Local1, 0x00))
  7480. {
  7481. Store (IOSR, Local0)
  7482. And (Local0, 0x01, Local1)
  7483. }
  7484.  
  7485. And (Local0, 0x06, Local1)
  7486. If (LEqual (Local1, 0x00)) {}
  7487. }
  7488. }
  7489.  
  7490. Method (TRAP, 2, Serialized)
  7491. {
  7492. Store (Arg1, SMIF)
  7493. If (LEqual (Arg0, \TRTP))
  7494. {
  7495. Store (0x00, TRP0)
  7496. }
  7497.  
  7498. If (LEqual (Arg0, \TRTD))
  7499. {
  7500. Store (Arg1, DTSF)
  7501. Store (0x00, TRPD)
  7502. Return (DTSF)
  7503. }
  7504.  
  7505. If (LEqual (Arg0, \TRTI))
  7506. {
  7507. Store (0x00, TRPH)
  7508. }
  7509.  
  7510. Return (SMIF)
  7511. }
  7512.  
  7513. Scope (\_SB)
  7514. {
  7515. Method (_INI, 0, NotSerialized)
  7516. {
  7517. PINI ()
  7518. DSPI ()
  7519. }
  7520.  
  7521. Method (LPS0, 0, NotSerialized)
  7522. {
  7523. Return (0x01)
  7524. }
  7525.  
  7526. Device (PNLF)
  7527. {
  7528. Name (_ADR, 0x00)
  7529. Name (_HID, EisaId ("APP0002"))
  7530. Name (_CID, "backlight")
  7531. Name (_UID, 0x0F)
  7532. Name (_STA, 0x0B)
  7533. }
  7534.  
  7535. Device (SLPB)
  7536. {
  7537. Name (_HID, EisaId ("PNP0C0E"))
  7538. Name (_STA, 0x0B)
  7539. }
  7540. }
  7541.  
  7542. Scope (\_SB.PCI0)
  7543. {
  7544. Method (_INI, 0, NotSerialized)
  7545. {
  7546. \_SB.PCI0.RMCR ()
  7547. Store (0x07DC, OSYS)
  7548. If (CondRefOf (\_OSI, Local0))
  7549. {
  7550. If (_OSI ("Darwin"))
  7551. {
  7552. Store (0x2710, OSYS)
  7553. }
  7554.  
  7555. If (\_OSI ("Linux"))
  7556. {
  7557. Store (0x03E8, OSYS)
  7558. }
  7559.  
  7560. If (\_OSI ("Windows 2009"))
  7561. {
  7562. Store (0x07D9, OSYS)
  7563. }
  7564.  
  7565. If (\_OSI ("Windows 2012"))
  7566. {
  7567. Store (0x07DC, OSYS)
  7568. }
  7569. }
  7570. }
  7571.  
  7572. Method (NHPG, 0, Serialized)
  7573. {
  7574. }
  7575.  
  7576. Method (NPME, 0, Serialized)
  7577. {
  7578. }
  7579. }
  7580.  
  7581. Scope (\)
  7582. {
  7583. Name (PICM, 0x00)
  7584. Method (OSDW, 0, NotSerialized)
  7585. {
  7586. If (LEqual (OSYS, 0x2710))
  7587. {
  7588. Return (0x01)
  7589. }
  7590. Else
  7591. {
  7592. Return (0x00)
  7593. }
  7594. }
  7595.  
  7596. Method (PINI, 0, NotSerialized)
  7597. {
  7598. Store (0x07DC, OSYS)
  7599. If (CondRefOf (_OSI, Local0))
  7600. {
  7601. If (_OSI ("Darwin"))
  7602. {
  7603. Store (0x2710, OSYS)
  7604. }
  7605. Else
  7606. {
  7607. If (_OSI ("Linux"))
  7608. {
  7609. Store (0x03E8, OSYS)
  7610. }
  7611. Else
  7612. {
  7613. If (_OSI ("Windows 2009"))
  7614. {
  7615. Store (0x07D9, OSYS)
  7616. }
  7617. Else
  7618. {
  7619. If (_OSI ("Windows 2012"))
  7620. {
  7621. Store (0x07DC, OSYS)
  7622. }
  7623. }
  7624. }
  7625. }
  7626. }
  7627. Else
  7628. {
  7629. Store (0x07DC, OSYS)
  7630. }
  7631. }
  7632. }
  7633.  
  7634. Scope (\_SB.PCI0)
  7635. {
  7636. Device (PDRC)
  7637. {
  7638. Name (_HID, EisaId ("PNP0C02"))
  7639. Name (_UID, 0x01)
  7640. Name (BUF0, ResourceTemplate ()
  7641. {
  7642. Memory32Fixed (ReadWrite,
  7643. 0x00000000, // Address Base
  7644. 0x00004000, // Address Length
  7645. )
  7646. Memory32Fixed (ReadWrite,
  7647. 0x00000000, // Address Base
  7648. 0x00008000, // Address Length
  7649. )
  7650. Memory32Fixed (ReadWrite,
  7651. 0x00000000, // Address Base
  7652. 0x00001000, // Address Length
  7653. )
  7654. Memory32Fixed (ReadWrite,
  7655. 0x00000000, // Address Base
  7656. 0x00001000, // Address Length
  7657. )
  7658. Memory32Fixed (ReadWrite,
  7659. 0x00000000, // Address Base
  7660. 0x00000000, // Address Length
  7661. )
  7662. Memory32Fixed (ReadWrite,
  7663. 0xFED20000, // Address Base
  7664. 0x00020000, // Address Length
  7665. )
  7666. Memory32Fixed (ReadOnly,
  7667. 0xFED90000, // Address Base
  7668. 0x00004000, // Address Length
  7669. )
  7670. Memory32Fixed (ReadWrite,
  7671. 0xFED45000, // Address Base
  7672. 0x0004B000, // Address Length
  7673. )
  7674. Memory32Fixed (ReadOnly,
  7675. 0xFF000000, // Address Base
  7676. 0x01000000, // Address Length
  7677. )
  7678. Memory32Fixed (ReadOnly,
  7679. 0xFEE00000, // Address Base
  7680. 0x00100000, // Address Length
  7681. )
  7682. Memory32Fixed (ReadWrite,
  7683. 0x00000000, // Address Base
  7684. 0x00001000, // Address Length
  7685. )
  7686. })
  7687. Method (_CRS, 0, Serialized)
  7688. {
  7689. CreateDWordField (BUF0, 0x04, RBR0)
  7690. ShiftLeft (\_SB.PCI0.LPCB.RCBA, 0x0E, RBR0)
  7691. CreateDWordField (BUF0, 0x7C, TBR0)
  7692. Store (TBAB, TBR0)
  7693. CreateDWordField (BUF0, 0x80, TBLN)
  7694. If (LEqual (TBAB, 0x00))
  7695. {
  7696. Store (0x00, TBLN)
  7697. }
  7698.  
  7699. CreateDWordField (BUF0, 0x10, MBR0)
  7700. ShiftLeft (\_SB.PCI0.MHBR, 0x0F, MBR0)
  7701. CreateDWordField (BUF0, 0x1C, DBR0)
  7702. ShiftLeft (\_SB.PCI0.DIBR, 0x0C, DBR0)
  7703. CreateDWordField (BUF0, 0x28, EBR0)
  7704. ShiftLeft (\_SB.PCI0.EPBR, 0x0C, EBR0)
  7705. CreateDWordField (BUF0, 0x34, XBR0)
  7706. ShiftLeft (\_SB.PCI0.PXBR, 0x1A, XBR0)
  7707. CreateDWordField (BUF0, 0x38, XSZ0)
  7708. ShiftRight (0x10000000, \_SB.PCI0.PXSZ, XSZ0)
  7709. Return (BUF0)
  7710. }
  7711. }
  7712. }
  7713.  
  7714. Scope (\)
  7715. {
  7716. OperationRegion (IO_T, SystemIO, 0x0800, 0x10)
  7717. Field (IO_T, ByteAcc, NoLock, Preserve)
  7718. {
  7719. TRPI, 16,
  7720. Offset (0x04),
  7721. Offset (0x06),
  7722. Offset (0x08),
  7723. TRP0, 8,
  7724. Offset (0x0A),
  7725. Offset (0x0B),
  7726. Offset (0x0C),
  7727. Offset (0x0D),
  7728. Offset (0x0E),
  7729. Offset (0x0F),
  7730. Offset (0x10)
  7731. }
  7732.  
  7733. OperationRegion (IO_D, SystemIO, 0x0810, 0x04)
  7734. Field (IO_D, ByteAcc, NoLock, Preserve)
  7735. {
  7736. TRPD, 8
  7737. }
  7738.  
  7739. OperationRegion (IO_H, SystemIO, 0x1000, 0x04)
  7740. Field (IO_H, ByteAcc, NoLock, Preserve)
  7741. {
  7742. TRPH, 8
  7743. }
  7744.  
  7745. OperationRegion (RCRB, SystemMemory, \SRCB, 0x4000)
  7746. Field (RCRB, DWordAcc, Lock, Preserve)
  7747. {
  7748. Offset (0x1000),
  7749. Offset (0x2330),
  7750. IOIR, 32,
  7751. IODR, 32,
  7752. IOSR, 16,
  7753. IONR, 16,
  7754. Offset (0x3000),
  7755. Offset (0x3404),
  7756. HPAS, 2,
  7757. , 5,
  7758. HPAE, 1,
  7759. Offset (0x3418),
  7760. , 1,
  7761. , 1,
  7762. SATD, 1,
  7763. SMBD, 1,
  7764. HDAD, 1,
  7765. , 2,
  7766. UH6D, 1,
  7767. UH1D, 1,
  7768. UH2D, 1,
  7769. UH3D, 1,
  7770. UH4D, 1,
  7771. UH5D, 1,
  7772. Offset (0x341A),
  7773. RP1D, 1,
  7774. RP2D, 1,
  7775. RP3D, 1,
  7776. RP4D, 1,
  7777. RP5D, 1,
  7778. RP6D, 1,
  7779. RP7D, 1,
  7780. RP8D, 1,
  7781. , 4,
  7782. UH7D, 1
  7783. }
  7784. }
  7785.  
  7786. Scope (\_GPE)
  7787. {
  7788. Method (_L67, 0, NotSerialized)
  7789. {
  7790. Store (0x20, \_SB.PCI0.SBUS.HSTS)
  7791. }
  7792.  
  7793. Method (_L66, 0, NotSerialized)
  7794. {
  7795. If (LAnd (\_SB.PCI0.IGPU.GSSE, LNot (GSMI)))
  7796. {
  7797. \_SB.PCI0.IGPU.GSCI ()
  7798. }
  7799. Else
  7800. {
  7801. Store (0x00, \_SB.PCI0.IGPU.GEFC)
  7802. Store (0x01, SCIS)
  7803. Store (0x00, \_SB.PCI0.IGPU.GSSE)
  7804. Store (0x00, \_SB.PCI0.IGPU.SCIE)
  7805. }
  7806. }
  7807.  
  7808. Method (_L69, 0, NotSerialized)
  7809. {
  7810. Notify (\_SB.PCI0.P0P2, 0x02)
  7811. Notify (\_SB.PCI0.RP01, 0x02)
  7812. Notify (\_SB.PCI0.RP02, 0x02)
  7813. Notify (\_SB.PCI0.RP03, 0x02)
  7814. Notify (\_SB.PCI0.RP05, 0x02)
  7815. Notify (\_SB.PCI0.RP06, 0x02)
  7816. \_SB.PCI0.TGPE ()
  7817. Notify (\_SB.PCI0.RP03.ARPT, 0x02)
  7818. }
  7819.  
  7820. Method (_L6D, 0, NotSerialized)
  7821. {
  7822. Notify (\_SB.PWRB, 0x02)
  7823. Notify (\_SB.PCI0.XHC1, 0x02)
  7824. If (OSDW ())
  7825. {
  7826. Notify (\_SB.PCI0.HDEF, 0x02)
  7827. }
  7828. }
  7829. }
  7830.  
  7831. Method (DTGP, 5, NotSerialized)
  7832. {
  7833. If (LEqual (Arg0, Buffer (0x10)
  7834. {
  7835. /* 0000 */ 0xC6, 0xB7, 0xB5, 0xA0, 0x18, 0x13, 0x1C, 0x44,
  7836. /* 0008 */ 0xB0, 0xC9, 0xFE, 0x69, 0x5E, 0xAF, 0x94, 0x9B
  7837. }))
  7838. {
  7839. If (LEqual (Arg1, One))
  7840. {
  7841. If (LEqual (Arg2, Zero))
  7842. {
  7843. Store (Buffer (0x01)
  7844. {
  7845. 0x03
  7846. }, Arg4)
  7847. Return (One)
  7848. }
  7849.  
  7850. If (LEqual (Arg2, One))
  7851. {
  7852. Return (One)
  7853. }
  7854. }
  7855. }
  7856.  
  7857. Store (Buffer (0x01)
  7858. {
  7859. 0x00
  7860. }, Arg4)
  7861. Return (Zero)
  7862. }
  7863.  
  7864. Name (_S0, Package (0x03)
  7865. {
  7866. 0x00,
  7867. 0x00,
  7868. 0x00
  7869. })
  7870. Name (_S4, Package (0x03)
  7871. {
  7872. 0x06,
  7873. 0x06,
  7874. 0x00
  7875. })
  7876. Name (_S5, Package (0x03)
  7877. {
  7878. 0x07,
  7879. 0x07,
  7880. 0x00
  7881. })
  7882. Method (_TTS, 1, NotSerialized)
  7883. {
  7884. Store (Arg0, SLTP)
  7885. }
  7886.  
  7887. Method (_PTS, 1, NotSerialized)
  7888. {
  7889. Store (0x00, P80D)
  7890. P8XH (0x00, Arg0)
  7891. Store (Arg0, \_SB.PCI0.LPCB.EC.ECSS)
  7892. If (LNot (OSDW ()))
  7893. {
  7894. If (LOr (LEqual (Arg0, 0x04), LEqual (Arg0, 0x05)))
  7895. {
  7896. Store (0x01, GD12)
  7897. Sleep (0x64)
  7898. Sleep (0x64)
  7899. Store (0x0A, Local0)
  7900. While (LGreater (Local0, 0x00))
  7901. {
  7902. Decrement (Local0)
  7903. Sleep (0x64)
  7904. If (LEqual (GP12, 0x00))
  7905. {
  7906. Break
  7907. }
  7908. }
  7909.  
  7910. Store (0x00, GP47)
  7911. Store (0x00, GD47)
  7912. Sleep (0xFA)
  7913. }
  7914. }
  7915.  
  7916. If (LAnd (LNot (OSDW ()), LGreaterEqual (Arg0, 0x04)))
  7917. {
  7918. Store (0x00, \_SB.PCI0.LPCB.EC.EWLO)
  7919. }
  7920. }
  7921.  
  7922. Method (_WAK, 1, NotSerialized)
  7923. {
  7924. P8XH (0x00, 0x00)
  7925. Store (0x00, \_SB.PCI0.LPCB.EC.ECSS)
  7926. If (OSDW ()) {}
  7927. Store (\_SB.PCI0.LPCB.EC.ELSW, LIDS)
  7928. Store (\_SB.PCI0.LPCB.EC.ELSW, \_SB.PCI0.IGPU.CLID)
  7929. Store (\_SB.PCI0.LPCB.EC.EACP, PWRS)
  7930. If (LNot (OSDW ()))
  7931. {
  7932. Store (0x00, \_SB.PCI0.LPCB.EC.LWE0)
  7933. Store (0x00, \_SB.PCI0.LPCB.EC.LWE1)
  7934. Store (0x00, \_SB.PCI0.LPCB.EC.LWE2)
  7935. Store (0x00, \_SB.PCI0.LPCB.EC.LWE3)
  7936. If (LEqual (Arg0, 0x03))
  7937. {
  7938. \_SB.PCI0.DTLK ()
  7939. }
  7940.  
  7941. If (LEqual (Arg0, 0x04))
  7942. {
  7943. \_SB.PCI0.RMCW ()
  7944. }
  7945. }
  7946.  
  7947. PNOT ()
  7948. DSPI ()
  7949. Return (Package (0x02)
  7950. {
  7951. 0x00,
  7952. 0x00
  7953. })
  7954. }
  7955.  
  7956. Scope (\)
  7957. {
  7958. OperationRegion (GPIO, SystemIO, \GPBS, 0x0400)
  7959. Field (GPIO, ByteAcc, NoLock, Preserve)
  7960. {
  7961. Offset (0x18),
  7962. GB00, 8,
  7963. GB01, 8,
  7964. GB02, 8,
  7965. GB03, 8,
  7966. Offset (0x100),
  7967. GU00, 1,
  7968. , 1,
  7969. GD00, 1,
  7970. GI00, 1,
  7971. , 27,
  7972. GP00, 1,
  7973. Offset (0x108),
  7974. GU01, 1,
  7975. , 1,
  7976. GD01, 1,
  7977. GI01, 1,
  7978. , 27,
  7979. GP01, 1,
  7980. Offset (0x110),
  7981. GU02, 1,
  7982. , 1,
  7983. GD02, 1,
  7984. GI02, 1,
  7985. , 27,
  7986. GP02, 1,
  7987. Offset (0x118),
  7988. GU03, 1,
  7989. , 1,
  7990. GD03, 1,
  7991. GI03, 1,
  7992. , 27,
  7993. GP03, 1,
  7994. Offset (0x120),
  7995. GU04, 1,
  7996. , 1,
  7997. GD04, 1,
  7998. GI04, 1,
  7999. , 27,
  8000. GP04, 1,
  8001. Offset (0x128),
  8002. GU05, 1,
  8003. , 1,
  8004. GD05, 1,
  8005. GI05, 1,
  8006. , 27,
  8007. GP05, 1,
  8008. Offset (0x130),
  8009. GU06, 1,
  8010. , 1,
  8011. GD06, 1,
  8012. GI06, 1,
  8013. , 27,
  8014. GP06, 1,
  8015. Offset (0x138),
  8016. GU07, 1,
  8017. , 1,
  8018. GD07, 1,
  8019. GI07, 1,
  8020. , 27,
  8021. GP07, 1,
  8022. Offset (0x140),
  8023. GU08, 1,
  8024. , 1,
  8025. GD08, 1,
  8026. GI08, 1,
  8027. , 27,
  8028. GP08, 1,
  8029. Offset (0x148),
  8030. GU09, 1,
  8031. , 1,
  8032. GD09, 1,
  8033. GI09, 1,
  8034. , 27,
  8035. GP09, 1,
  8036. Offset (0x150),
  8037. GU10, 1,
  8038. , 1,
  8039. GD10, 1,
  8040. GI10, 1,
  8041. , 27,
  8042. GP10, 1,
  8043. Offset (0x158),
  8044. GU11, 1,
  8045. , 1,
  8046. GD11, 1,
  8047. GI11, 1,
  8048. , 27,
  8049. GP11, 1,
  8050. Offset (0x160),
  8051. GU12, 1,
  8052. , 1,
  8053. GD12, 1,
  8054. GI12, 1,
  8055. , 26,
  8056. GL12, 1,
  8057. GP12, 1,
  8058. Offset (0x168),
  8059. GU13, 1,
  8060. , 1,
  8061. GD13, 1,
  8062. GI13, 1,
  8063. , 26,
  8064. GL13, 1,
  8065. GP13, 1,
  8066. Offset (0x170),
  8067. GU14, 1,
  8068. , 1,
  8069. GD14, 1,
  8070. GI14, 1,
  8071. , 27,
  8072. GP14, 1,
  8073. Offset (0x178),
  8074. GU15, 1,
  8075. , 1,
  8076. GD15, 1,
  8077. GI15, 1,
  8078. , 27,
  8079. GP15, 1,
  8080. Offset (0x180),
  8081. GU16, 1,
  8082. , 1,
  8083. GD16, 1,
  8084. GI16, 1,
  8085. , 27,
  8086. GP16, 1,
  8087. Offset (0x188),
  8088. GU17, 1,
  8089. , 1,
  8090. GD17, 1,
  8091. GI17, 1,
  8092. , 26,
  8093. GL17, 1,
  8094. GP17, 1,
  8095. Offset (0x190),
  8096. GU18, 1,
  8097. , 1,
  8098. GD18, 1,
  8099. GI18, 1,
  8100. , 27,
  8101. GP18, 1,
  8102. Offset (0x198),
  8103. GU19, 1,
  8104. , 1,
  8105. GD19, 1,
  8106. GI19, 1,
  8107. , 27,
  8108. GP19, 1,
  8109. Offset (0x1A0),
  8110. GU20, 1,
  8111. , 1,
  8112. GD20, 1,
  8113. GI20, 1,
  8114. , 27,
  8115. GP20, 1,
  8116. Offset (0x1A8),
  8117. GU21, 1,
  8118. , 1,
  8119. GD21, 1,
  8120. GI21, 1,
  8121. , 27,
  8122. GP21, 1,
  8123. Offset (0x1B0),
  8124. GU22, 1,
  8125. , 1,
  8126. GD22, 1,
  8127. GI22, 1,
  8128. , 27,
  8129. GP22, 1,
  8130. Offset (0x1B8),
  8131. GU23, 1,
  8132. , 1,
  8133. GD23, 1,
  8134. GI23, 1,
  8135. , 27,
  8136. GP23, 1,
  8137. Offset (0x1C0),
  8138. GU24, 1,
  8139. , 1,
  8140. GD24, 1,
  8141. GI24, 1,
  8142. , 27,
  8143. GP24, 1,
  8144. Offset (0x1C8),
  8145. GU25, 1,
  8146. , 1,
  8147. GD25, 1,
  8148. GI25, 1,
  8149. , 27,
  8150. GP25, 1,
  8151. Offset (0x1D0),
  8152. GU26, 1,
  8153. , 1,
  8154. GD26, 1,
  8155. GI26, 1,
  8156. , 26,
  8157. GL26, 1,
  8158. GP26, 1,
  8159. Offset (0x1D8),
  8160. GU27, 1,
  8161. , 1,
  8162. GD27, 1,
  8163. GI27, 1,
  8164. , 27,
  8165. GP27, 1,
  8166. Offset (0x1E0),
  8167. GU28, 1,
  8168. , 1,
  8169. GD28, 1,
  8170. GI28, 1,
  8171. , 27,
  8172. GP28, 1,
  8173. Offset (0x1E8),
  8174. GU29, 1,
  8175. , 1,
  8176. GD29, 1,
  8177. GI29, 1,
  8178. , 27,
  8179. GP29, 1,
  8180. Offset (0x1F0),
  8181. GU30, 1,
  8182. , 1,
  8183. GD30, 1,
  8184. GI30, 1,
  8185. , 27,
  8186. GP30, 1,
  8187. Offset (0x1F8),
  8188. GU31, 1,
  8189. , 1,
  8190. GD31, 1,
  8191. GI31, 1,
  8192. , 27,
  8193. GP31, 1,
  8194. Offset (0x200),
  8195. GU32, 1,
  8196. , 1,
  8197. GD32, 1,
  8198. GI32, 1,
  8199. , 27,
  8200. GP32, 1,
  8201. Offset (0x208),
  8202. GU33, 1,
  8203. , 1,
  8204. GD33, 1,
  8205. GI33, 1,
  8206. , 27,
  8207. GP33, 1,
  8208. Offset (0x210),
  8209. GU34, 1,
  8210. , 1,
  8211. GD34, 1,
  8212. GI34, 1,
  8213. , 27,
  8214. GP34, 1,
  8215. Offset (0x218),
  8216. GU35, 1,
  8217. , 1,
  8218. GD35, 1,
  8219. GI35, 1,
  8220. , 27,
  8221. GP35, 1,
  8222. Offset (0x220),
  8223. GU36, 1,
  8224. , 1,
  8225. GD36, 1,
  8226. GI36, 1,
  8227. , 27,
  8228. GP36, 1,
  8229. Offset (0x228),
  8230. GU37, 1,
  8231. , 1,
  8232. GD37, 1,
  8233. GI37, 1,
  8234. , 27,
  8235. GP37, 1,
  8236. Offset (0x230),
  8237. GU38, 1,
  8238. , 1,
  8239. GD38, 1,
  8240. GI38, 1,
  8241. , 27,
  8242. GP38, 1,
  8243. Offset (0x238),
  8244. GU39, 1,
  8245. , 1,
  8246. GD39, 1,
  8247. GI39, 1,
  8248. , 27,
  8249. GP39, 1,
  8250. Offset (0x240),
  8251. GU40, 1,
  8252. , 1,
  8253. GD40, 1,
  8254. GI40, 1,
  8255. , 27,
  8256. GP40, 1,
  8257. Offset (0x248),
  8258. GU41, 1,
  8259. , 1,
  8260. GD41, 1,
  8261. GI41, 1,
  8262. , 27,
  8263. GP41, 1,
  8264. Offset (0x250),
  8265. GU42, 1,
  8266. , 1,
  8267. GD42, 1,
  8268. GI42, 1,
  8269. , 27,
  8270. GP42, 1,
  8271. Offset (0x258),
  8272. GU43, 1,
  8273. , 1,
  8274. GD43, 1,
  8275. GI43, 1,
  8276. , 27,
  8277. GP43, 1,
  8278. Offset (0x260),
  8279. GU44, 1,
  8280. , 1,
  8281. GD44, 1,
  8282. GI44, 1,
  8283. , 27,
  8284. GP44, 1,
  8285. Offset (0x268),
  8286. GU45, 1,
  8287. , 1,
  8288. GD45, 1,
  8289. GI45, 1,
  8290. , 27,
  8291. GP45, 1,
  8292. Offset (0x270),
  8293. GU46, 1,
  8294. , 1,
  8295. GD46, 1,
  8296. GI46, 1,
  8297. , 27,
  8298. GP46, 1,
  8299. Offset (0x278),
  8300. GU47, 1,
  8301. , 1,
  8302. GD47, 1,
  8303. GI47, 1,
  8304. , 27,
  8305. GP47, 1,
  8306. Offset (0x280),
  8307. GU48, 1,
  8308. , 1,
  8309. GD48, 1,
  8310. GI48, 1,
  8311. , 27,
  8312. GP48, 1,
  8313. Offset (0x288),
  8314. GU49, 1,
  8315. , 1,
  8316. GD49, 1,
  8317. GI49, 1,
  8318. , 27,
  8319. GP49, 1,
  8320. Offset (0x290),
  8321. GU50, 1,
  8322. , 1,
  8323. GD50, 1,
  8324. GI50, 1,
  8325. , 27,
  8326. GP50, 1,
  8327. Offset (0x298),
  8328. GU51, 1,
  8329. , 1,
  8330. GD51, 1,
  8331. GI51, 1,
  8332. , 27,
  8333. GP51, 1,
  8334. Offset (0x2A0),
  8335. GU52, 1,
  8336. , 1,
  8337. GD52, 1,
  8338. GI52, 1,
  8339. , 27,
  8340. GP52, 1,
  8341. Offset (0x2A8),
  8342. GU53, 1,
  8343. , 1,
  8344. GD53, 1,
  8345. GI53, 1,
  8346. , 27,
  8347. GP53, 1,
  8348. Offset (0x2B0),
  8349. GU54, 1,
  8350. , 1,
  8351. GD54, 1,
  8352. GI54, 1,
  8353. , 27,
  8354. GP54, 1,
  8355. Offset (0x2B8),
  8356. GU55, 1,
  8357. , 1,
  8358. GD55, 1,
  8359. GI55, 1,
  8360. , 27,
  8361. GP55, 1,
  8362. Offset (0x2C0),
  8363. GU56, 1,
  8364. , 1,
  8365. GD56, 1,
  8366. GI56, 1,
  8367. , 27,
  8368. GP56, 1,
  8369. Offset (0x2C8),
  8370. GU57, 1,
  8371. , 1,
  8372. GD57, 1,
  8373. GI57, 1,
  8374. , 27,
  8375. GP57, 1,
  8376. Offset (0x2D0),
  8377. GU58, 1,
  8378. , 1,
  8379. GD58, 1,
  8380. GI58, 1,
  8381. , 27,
  8382. GP58, 1,
  8383. Offset (0x2D8),
  8384. GU59, 1,
  8385. , 1,
  8386. GD59, 1,
  8387. GI59, 1,
  8388. , 27,
  8389. GP59, 1,
  8390. Offset (0x2E0),
  8391. GU60, 1,
  8392. , 1,
  8393. GD60, 1,
  8394. GI60, 1,
  8395. , 27,
  8396. GP60, 1,
  8397. Offset (0x2E8),
  8398. GU61, 1,
  8399. , 1,
  8400. GD61, 1,
  8401. GI61, 1,
  8402. , 27,
  8403. GP61, 1,
  8404. Offset (0x2F0),
  8405. GU62, 1,
  8406. , 1,
  8407. GD62, 1,
  8408. GI62, 1,
  8409. , 27,
  8410. GP62, 1,
  8411. Offset (0x2F8),
  8412. GU63, 1,
  8413. , 1,
  8414. GD63, 1,
  8415. GI63, 1,
  8416. , 27,
  8417. GP63, 1,
  8418. Offset (0x300),
  8419. GU64, 1,
  8420. , 1,
  8421. GD64, 1,
  8422. GI64, 1,
  8423. , 27,
  8424. GP64, 1,
  8425. Offset (0x308),
  8426. GU65, 1,
  8427. , 1,
  8428. GD65, 1,
  8429. GI65, 1,
  8430. , 27,
  8431. GP65, 1,
  8432. Offset (0x310),
  8433. GU66, 1,
  8434. , 1,
  8435. GD66, 1,
  8436. GI66, 1,
  8437. , 27,
  8438. GP66, 1,
  8439. Offset (0x318),
  8440. GU67, 1,
  8441. , 1,
  8442. GD67, 1,
  8443. GI67, 1,
  8444. , 27,
  8445. GP67, 1,
  8446. Offset (0x320),
  8447. GU68, 1,
  8448. , 1,
  8449. GD68, 1,
  8450. GI68, 1,
  8451. , 27,
  8452. GP68, 1,
  8453. Offset (0x328),
  8454. GU69, 1,
  8455. , 1,
  8456. GD69, 1,
  8457. GI69, 1,
  8458. , 27,
  8459. GP69, 1,
  8460. Offset (0x330),
  8461. GU70, 1,
  8462. , 1,
  8463. GD70, 1,
  8464. GI70, 1,
  8465. , 26,
  8466. GL70, 1,
  8467. GP70, 1,
  8468. Offset (0x338),
  8469. GU71, 1,
  8470. , 1,
  8471. GD71, 1,
  8472. GI71, 1,
  8473. , 27,
  8474. GP71, 1,
  8475. Offset (0x340),
  8476. GU72, 1,
  8477. , 1,
  8478. GD72, 1,
  8479. GI72, 1,
  8480. , 27,
  8481. GP72, 1,
  8482. Offset (0x348),
  8483. GU73, 1,
  8484. , 1,
  8485. GD73, 1,
  8486. GI73, 1,
  8487. , 27,
  8488. GP73, 1,
  8489. Offset (0x350),
  8490. GU74, 1,
  8491. , 1,
  8492. GD74, 1,
  8493. GI74, 1,
  8494. , 27,
  8495. GP74, 1,
  8496. Offset (0x358),
  8497. GU75, 1,
  8498. , 1,
  8499. GD75, 1,
  8500. GI75, 1,
  8501. , 27,
  8502. GP75, 1,
  8503. Offset (0x360),
  8504. GU76, 1,
  8505. , 1,
  8506. GD76, 1,
  8507. GI76, 1,
  8508. , 27,
  8509. GP76, 1,
  8510. Offset (0x368),
  8511. GU77, 1,
  8512. , 1,
  8513. GD77, 1,
  8514. GI77, 1,
  8515. , 26,
  8516. GL77, 1,
  8517. GP77, 1,
  8518. Offset (0x370),
  8519. GU78, 1,
  8520. , 1,
  8521. GD78, 1,
  8522. GI78, 1,
  8523. , 27,
  8524. GP78, 1,
  8525. Offset (0x378),
  8526. GU79, 1,
  8527. , 1,
  8528. GD79, 1,
  8529. GI79, 1,
  8530. , 27,
  8531. GP79, 1,
  8532. Offset (0x380),
  8533. GU80, 1,
  8534. , 1,
  8535. GD80, 1,
  8536. GI80, 1,
  8537. , 27,
  8538. GP80, 1,
  8539. Offset (0x388),
  8540. GU81, 1,
  8541. , 1,
  8542. GD81, 1,
  8543. GI81, 1,
  8544. , 27,
  8545. GP81, 1,
  8546. Offset (0x390),
  8547. GU82, 1,
  8548. , 1,
  8549. GD82, 1,
  8550. GI82, 1,
  8551. , 27,
  8552. GP82, 1,
  8553. Offset (0x398),
  8554. GU83, 1,
  8555. , 1,
  8556. GD83, 1,
  8557. GI83, 1,
  8558. , 27,
  8559. GP83, 1,
  8560. Offset (0x3A0),
  8561. GU84, 1,
  8562. , 1,
  8563. GD84, 1,
  8564. GI84, 1,
  8565. , 27,
  8566. GP84, 1,
  8567. Offset (0x3A8),
  8568. GU85, 1,
  8569. , 1,
  8570. GD85, 1,
  8571. GI85, 1,
  8572. , 27,
  8573. GP85, 1,
  8574. Offset (0x3B0),
  8575. GU86, 1,
  8576. , 1,
  8577. GD86, 1,
  8578. GI86, 1,
  8579. , 27,
  8580. GP86, 1,
  8581. Offset (0x3B8),
  8582. GU87, 1,
  8583. , 1,
  8584. GD87, 1,
  8585. GI87, 1,
  8586. , 27,
  8587. GP87, 1,
  8588. Offset (0x3C0),
  8589. GU88, 1,
  8590. , 1,
  8591. GD88, 1,
  8592. GI88, 1,
  8593. , 27,
  8594. GP88, 1,
  8595. Offset (0x3C8),
  8596. GU89, 1,
  8597. , 1,
  8598. GD89, 1,
  8599. GI89, 1,
  8600. , 27,
  8601. GP89, 1,
  8602. Offset (0x3D0),
  8603. GU90, 1,
  8604. , 1,
  8605. GD90, 1,
  8606. GI90, 1,
  8607. , 27,
  8608. GP90, 1,
  8609. Offset (0x3D8),
  8610. GU91, 1,
  8611. , 1,
  8612. GD91, 1,
  8613. GI91, 1,
  8614. , 27,
  8615. GP91, 1,
  8616. Offset (0x3E0),
  8617. GU92, 1,
  8618. , 1,
  8619. GD92, 1,
  8620. GI92, 1,
  8621. , 27,
  8622. GP92, 1,
  8623. Offset (0x3E8),
  8624. GU93, 1,
  8625. , 1,
  8626. GD93, 1,
  8627. GI93, 1,
  8628. , 27,
  8629. GP93, 1,
  8630. Offset (0x3F0),
  8631. GU94, 1,
  8632. , 1,
  8633. GD94, 1,
  8634. GI94, 1,
  8635. , 27,
  8636. GP94, 1,
  8637. Offset (0x3F8)
  8638. }
  8639. }
  8640.  
  8641. Scope (\_SB.PCI0)
  8642. {
  8643. Device (HDAU)
  8644. {
  8645. Name (_ADR, 0x00030000)
  8646. OperationRegion (HDAH, PCI_Config, 0x00, 0x40)
  8647. Field (HDAH, ByteAcc, NoLock, Preserve)
  8648. {
  8649. VID0, 16,
  8650. DID0, 16,
  8651. Offset (0x10),
  8652. ABAR, 32
  8653. }
  8654.  
  8655. Method (_STA, 0, NotSerialized)
  8656. {
  8657. If (LNotEqual (VID0, 0xFFFF))
  8658. {
  8659. Return (0x0F)
  8660. }
  8661.  
  8662. Return (0x00)
  8663. }
  8664.  
  8665. Method (_DSM, 4, NotSerialized)
  8666. {
  8667. If (LEqual (Arg0, Buffer (0x10)
  8668. {
  8669. /* 0000 */ 0xC6, 0xB7, 0xB5, 0xA0, 0x18, 0x13, 0x1C, 0x44,
  8670. /* 0008 */ 0xB0, 0xC9, 0xFE, 0x69, 0x5E, 0xAF, 0x94, 0x9B
  8671. }))
  8672. {
  8673. If (LNotEqual (And (VID0, 0xFFFF), 0xFFFF))
  8674. {
  8675. Store (Package (0x02)
  8676. {
  8677. "hda-gfx",
  8678. Buffer (0x0A)
  8679. {
  8680. "onboard-1"
  8681. }
  8682. }, Local0)
  8683. DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
  8684. Return (Local0)
  8685. }
  8686. }
  8687.  
  8688. Return (0x80000002)
  8689. }
  8690.  
  8691. Method (ASTR, 0, Serialized)
  8692. {
  8693. If (LAnd (LNotEqual (ABAR, 0xFFFFFFFF), LNotEqual (And (ABAR,
  8694. 0xFFFFC000), 0x00)))
  8695. {
  8696. And (ABAR, 0xFFFFFFF0, BBAR)
  8697. Add (BBAR, 0x1000, BBAR)
  8698. OperationRegion (RPCY, SystemMemory, BBAR, 0x25)
  8699. Field (RPCY, DWordAcc, NoLock, Preserve)
  8700. {
  8701. Offset (0x0C),
  8702. EM4W, 32,
  8703. EMWA, 32,
  8704. Offset (0x1C),
  8705. ADWA, 32
  8706. }
  8707.  
  8708. Store (AUDA, EMWA)
  8709. Store (AUDB, ADWA)
  8710. Store (AUDC, EM4W)
  8711. }
  8712. }
  8713.  
  8714. Method (VSTR, 1, Serialized)
  8715. {
  8716. Name (CONT, 0x03E8)
  8717. Name (ADDR, 0x80000000)
  8718. Store (Arg0, ADDR)
  8719. OperationRegion (CCDC, SystemMemory, ADDR, 0x04)
  8720. Field (CCDC, ByteAcc, NoLock, Preserve)
  8721. {
  8722. CDEC, 32
  8723. }
  8724.  
  8725. If (LAnd (LNotEqual (ABAR, 0xFFFFFFFF), LNotEqual (And (ABAR,
  8726. 0xFFFFC000), 0x00)))
  8727. {
  8728. If (LNotEqual (CDEC, 0x00))
  8729. {
  8730. And (ABAR, 0xFFFFFFF0, BBAR)
  8731. OperationRegion (IPCV, SystemMemory, BBAR, 0x70)
  8732. Field (IPCV, DWordAcc, NoLock, Preserve)
  8733. {
  8734. Offset (0x60),
  8735. AVIC, 32,
  8736. Offset (0x68),
  8737. AIRS, 16
  8738. }
  8739.  
  8740. Store (0x03E8, CONT)
  8741. While (LAnd (LEqual (And (AIRS, 0x01), 0x01), LNotEqual (
  8742. CONT, 0x00)))
  8743. {
  8744. Stall (0x01)
  8745. Decrement (CONT)
  8746. }
  8747.  
  8748. Or (AIRS, 0x02, AIRS)
  8749. Store (CDEC, AVIC)
  8750. Or (AIRS, 0x01, AIRS)
  8751. Store (0x03E8, CONT)
  8752. While (LAnd (LEqual (And (AIRS, 0x01), 0x01), LNotEqual (
  8753. CONT, 0x00)))
  8754. {
  8755. Stall (0x01)
  8756. Decrement (CONT)
  8757. }
  8758. }
  8759. }
  8760. }
  8761.  
  8762. Method (CXDC, 0, Serialized)
  8763. {
  8764. Name (IDDX, 0x80000000)
  8765. If (LAnd (LNotEqual (CADR, 0x00), LNotEqual (CCNT, 0x00)))
  8766. {
  8767. Store (CADR, IDDX)
  8768. While (LLess (IDDX, Add (CADR, Multiply (CCNT, 0x04))))
  8769. {
  8770. VSTR (IDDX)
  8771. Add (IDDX, 0x04, IDDX)
  8772. }
  8773. }
  8774. }
  8775.  
  8776. Method (AINI, 0, Serialized)
  8777. {
  8778. Name (CONT, 0x03E8)
  8779. If (LAnd (LNotEqual (ABAR, 0xFFFFFFFF), LNotEqual (And (ABAR,
  8780. 0xFFFFC000), 0x00)))
  8781. {
  8782. And (ABAR, 0xFFFFFFF0, BBAR)
  8783. OperationRegion (IPCV, SystemMemory, BBAR, 0x70)
  8784. Field (IPCV, DWordAcc, NoLock, Preserve)
  8785. {
  8786. GCAP, 16,
  8787. Offset (0x08),
  8788. GCTL, 32,
  8789. Offset (0x0E),
  8790. SSTS, 8,
  8791. Offset (0x60),
  8792. AVIC, 32,
  8793. Offset (0x68),
  8794. AIRS, 16
  8795. }
  8796.  
  8797. Or (GCTL, 0x01, GCTL)
  8798. Store (0x03E8, CONT)
  8799. While (LAnd (LEqual (And (GCTL, 0x01), 0x01), LNotEqual (
  8800. CONT, 0x00)))
  8801. {
  8802. Stall (0x01)
  8803. Decrement (CONT)
  8804. }
  8805.  
  8806. And (GCAP, 0xFFFF, GCAP)
  8807. Or (SSTS, 0x0F, SSTS)
  8808. And (GCTL, 0xFFFFFFFE, GCTL)
  8809. Store (0x03E8, CONT)
  8810. While (LAnd (LEqual (And (GCTL, 0x01), 0x01), LNotEqual (
  8811. CONT, 0x00)))
  8812. {
  8813. Stall (0x01)
  8814. Decrement (CONT)
  8815. }
  8816.  
  8817. Or (GCTL, 0x01, GCTL)
  8818. Store (0x03E8, CONT)
  8819. While (LAnd (LEqual (And (GCTL, 0x01), 0x01), LNotEqual (
  8820. CONT, 0x00)))
  8821. {
  8822. Stall (0x01)
  8823. Decrement (CONT)
  8824. }
  8825. }
  8826. }
  8827. }
  8828. }
  8829. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement