Advertisement
Guest User

Incredible MrT

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