Guest User

Untitled

a guest
Apr 12th, 2023
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 372.24 KB | Software | 0 0
  1. /*
  2. * Intel ACPI Component Architecture
  3. * AML/ASL+ Disassembler version 20230331 (32-bit version)
  4. * Copyright (c) 2000 - 2023 Intel Corporation
  5. *
  6. * Disassembling to symbolic ASL+ operators
  7. *
  8. * Disassembly of dsdt.dat, Wed Apr 12 11:42:03 2023
  9. *
  10. * Original Table Header:
  11. * Signature "DSDT"
  12. * Length 0x0000B83C (47164)
  13. * Revision 0x02
  14. * Checksum 0x9E
  15. * OEM ID "ALASKA"
  16. * OEM Table ID "A M I "
  17. * OEM Revision 0x01072009 (17244169)
  18. * Compiler ID "INTL"
  19. * Compiler Version 0x20120913 (538052883)
  20. */
  21. DefinitionBlock ("", "DSDT", 2, "ALASKA", "A M I ", 0x01072009)
  22. {
  23. /*
  24. * iASL Warning: There were 6 external control methods found during
  25. * disassembly, but only 0 were resolved (6 unresolved). Additional
  26. * ACPI tables may be required to properly disassemble the code. This
  27. * resulting disassembler output file may not compile because the
  28. * disassembler did not know how many arguments to assign to the
  29. * unresolved methods. Note: SSDTs can be dynamically loaded at
  30. * runtime and may or may not be available via the host OS.
  31. *
  32. * To specify the tables needed to resolve external control method
  33. * references, the -e option can be used to specify the filenames.
  34. * Example iASL invocations:
  35. * iasl -e ssdt1.aml ssdt2.aml ssdt3.aml -d dsdt.aml
  36. * iasl -e dsdt.aml ssdt2.aml -d ssdt1.aml
  37. * iasl -e ssdt*.aml -d dsdt.aml
  38. *
  39. * In addition, the -fe option can be used to specify a file containing
  40. * control method external declarations with the associated method
  41. * argument counts. Each line of the file must be of the form:
  42. * External (<method pathname>, MethodObj, <argument count>)
  43. * Invocation:
  44. * iasl -fe refs.txt -d dsdt.aml
  45. *
  46. * The following methods were unresolved and many not compile properly
  47. * because the disassembler had to guess at the number of arguments
  48. * required for each:
  49. */
  50. External (_SB_.PCI0.GPP0.PEGP, UnknownObj)
  51. External (_SB_.PCI0.GPP0.PEGP.DSTA, UnknownObj)
  52. External (_SB_.PCI0.GPP0.PEGP.INIA, IntObj)
  53. External (_SB_.PCI0.GPP0.PEGP.NLIM, UnknownObj)
  54. External (_SB_.PCI0.GPP0.PEGP.TGPU, UnknownObj)
  55. External (_SB_.UBTC, UnknownObj)
  56. External (_SB_.UBTC.CCI0, UnknownObj)
  57. External (_SB_.UBTC.CCI1, UnknownObj)
  58. External (_SB_.UBTC.CCI2, UnknownObj)
  59. External (_SB_.UBTC.CCI3, UnknownObj)
  60. External (_SB_.UBTC.MGI0, UnknownObj)
  61. External (_SB_.UBTC.MGI1, UnknownObj)
  62. External (_SB_.UBTC.MGI2, UnknownObj)
  63. External (_SB_.UBTC.MGI3, UnknownObj)
  64. External (_SB_.UBTC.MGI4, UnknownObj)
  65. External (_SB_.UBTC.MGI5, UnknownObj)
  66. External (_SB_.UBTC.MGI6, UnknownObj)
  67. External (_SB_.UBTC.MGI7, UnknownObj)
  68. External (_SB_.UBTC.MGI8, UnknownObj)
  69. External (_SB_.UBTC.MGI9, UnknownObj)
  70. External (_SB_.UBTC.MGIA, UnknownObj)
  71. External (_SB_.UBTC.MGIB, UnknownObj)
  72. External (_SB_.UBTC.MGIC, UnknownObj)
  73. External (_SB_.UBTC.MGID, UnknownObj)
  74. External (_SB_.UBTC.MGIE, UnknownObj)
  75. External (_SB_.UBTC.MGIF, UnknownObj)
  76. External (AFN4, MethodObj) // Warning: Unknown method, guessing 1 arguments
  77. External (AFN7, MethodObj) // Warning: Unknown method, guessing 1 arguments
  78. External (ALIB, MethodObj) // Warning: Unknown method, guessing 2 arguments
  79. External (APTS, MethodObj) // Warning: Unknown method, guessing 1 arguments
  80. External (AWAK, MethodObj) // Warning: Unknown method, guessing 1 arguments
  81. External (M009, IntObj)
  82. External (M010, MethodObj) // Warning: Unknown method, guessing 2 arguments
  83. External (M900, IntObj)
  84. External (UBTC, UnknownObj)
  85.  
  86. Name (PEBL, 0x08000000)
  87. Name (NBTS, 0x5000)
  88. Name (CPVD, One)
  89. Name (SMBB, 0x0B20)
  90. Name (SMBL, 0x20)
  91. Name (SMB0, 0x0B00)
  92. Name (SMBM, 0x10)
  93. Name (PMBS, 0x0800)
  94. Name (PMLN, 0xA0)
  95. Name (SMIO, 0xB2)
  96. Name (APCB, 0xFEC00000)
  97. Name (APCL, 0x1000)
  98. Name (HPTB, 0xFED00000)
  99. Name (WDTB, Zero)
  100. Name (WDTL, Zero)
  101. Name (GIOB, 0xFED81500)
  102. Name (IOMB, 0xFED80D00)
  103. Name (SSMB, 0xFED80200)
  104. Name (CAFS, 0xBB)
  105. Name (UTDB, Zero)
  106. Name (ASSB, Zero)
  107. Name (AOTB, Zero)
  108. Name (AAXB, Zero)
  109. Name (PEHP, One)
  110. Name (SHPC, Zero)
  111. Name (PEPM, One)
  112. Name (PEER, One)
  113. Name (PECS, One)
  114. Name (ITKE, Zero)
  115. Name (PEBS, 0xF0000000)
  116. Name (PELN, 0x08000000)
  117. Name (CSMI, 0x61)
  118. Name (SMIA, 0xB2)
  119. Name (SMIB, 0xB3)
  120. Name (OFST, 0x35)
  121. Name (TRST, 0x02)
  122. Name (TCMF, Zero)
  123. Name (TMF1, Zero)
  124. Name (TMF2, Zero)
  125. Name (TMF3, Zero)
  126. Name (TTPF, Zero)
  127. Name (DTPT, Zero)
  128. Name (TTDP, One)
  129. Name (TPMB, 0xAC3BF000)
  130. Name (TPBS, 0x4000)
  131. Name (TPMC, 0xAC3C3000)
  132. Name (TPCS, 0x4000)
  133. Name (TPMM, 0xFD310510)
  134. Name (FTPM, 0xFD310510)
  135. Name (PPIM, 0xAC5D0F98)
  136. Name (PPIL, 0x1C)
  137. Name (AMDT, One)
  138. Name (TPMF, One)
  139. Name (PPIV, One)
  140. Name (MBEC, Zero)
  141. Name (NBTP, 0xFEC00000)
  142. Name (MBLF, 0x0A)
  143. Method (_PIC, 1, NotSerialized) // _PIC: Interrupt Model
  144. {
  145. If (Arg0)
  146. {
  147. \_SB.DSPI ()
  148. \_SB.PCI0.NAPE ()
  149. }
  150.  
  151. PXXX (Arg0)
  152. }
  153.  
  154. OperationRegion (DEB0, SystemIO, 0x80, 0x04)
  155. Field (DEB0, DWordAcc, NoLock, Preserve)
  156. {
  157. DBG8, 32
  158. }
  159.  
  160. Name (PICM, Zero)
  161. Method (PXXX, 1, NotSerialized)
  162. {
  163. If (Arg0)
  164. {
  165. DBGX = 0xAA
  166. }
  167. Else
  168. {
  169. DBGX = 0xAC
  170. }
  171.  
  172. PICM = Arg0
  173. }
  174.  
  175. Name (OSVR, Ones)
  176. Method (OSFL, 0, NotSerialized)
  177. {
  178. If ((OSVR != Ones))
  179. {
  180. Return (OSVR) /* \OSVR */
  181. }
  182.  
  183. If ((PICM == Zero))
  184. {
  185. DBGX = 0xAC
  186. }
  187.  
  188. OSVR = 0x03
  189. If (CondRefOf (\_OSI, Local0))
  190. {
  191. If (_OSI ("Windows 2001"))
  192. {
  193. OSVR = 0x04
  194. }
  195.  
  196. If (_OSI ("Windows 2001.1"))
  197. {
  198. OSVR = 0x05
  199. }
  200.  
  201. If (_OSI ("FreeBSD"))
  202. {
  203. OSVR = 0x06
  204. }
  205.  
  206. If (_OSI ("HP-UX"))
  207. {
  208. OSVR = 0x07
  209. }
  210.  
  211. If (_OSI ("OpenVMS"))
  212. {
  213. OSVR = 0x08
  214. }
  215.  
  216. If (_OSI ("Windows 2001 SP1"))
  217. {
  218. OSVR = 0x09
  219. }
  220.  
  221. If (_OSI ("Windows 2001 SP2"))
  222. {
  223. OSVR = 0x0A
  224. }
  225.  
  226. If (_OSI ("Windows 2001 SP3"))
  227. {
  228. OSVR = 0x0B
  229. }
  230.  
  231. If (_OSI ("Windows 2006"))
  232. {
  233. OSVR = 0x0C
  234. }
  235.  
  236. If (_OSI ("Windows 2006 SP1"))
  237. {
  238. OSVR = 0x0D
  239. }
  240.  
  241. If (_OSI ("Windows 2009"))
  242. {
  243. OSVR = 0x0E
  244. }
  245.  
  246. If (_OSI ("Windows 2012"))
  247. {
  248. OSVR = 0x0F
  249. }
  250.  
  251. If (_OSI ("Windows 2013"))
  252. {
  253. OSVR = 0x10
  254. }
  255. }
  256. Else
  257. {
  258. If (MCTH (_OS, "Microsoft Windows NT"))
  259. {
  260. OSVR = Zero
  261. }
  262.  
  263. If (MCTH (_OS, "Microsoft Windows"))
  264. {
  265. OSVR = One
  266. }
  267.  
  268. If (MCTH (_OS, "Microsoft WindowsME: Millennium Edition"))
  269. {
  270. OSVR = 0x02
  271. }
  272.  
  273. If (MCTH (_OS, "Linux"))
  274. {
  275. OSVR = 0x03
  276. }
  277.  
  278. If (MCTH (_OS, "FreeBSD"))
  279. {
  280. OSVR = 0x06
  281. }
  282.  
  283. If (MCTH (_OS, "HP-UX"))
  284. {
  285. OSVR = 0x07
  286. }
  287.  
  288. If (MCTH (_OS, "OpenVMS"))
  289. {
  290. OSVR = 0x08
  291. }
  292. }
  293.  
  294. Return (OSVR) /* \OSVR */
  295. }
  296.  
  297. Method (MCTH, 2, NotSerialized)
  298. {
  299. If ((SizeOf (Arg0) < SizeOf (Arg1)))
  300. {
  301. Return (Zero)
  302. }
  303.  
  304. Local0 = (SizeOf (Arg0) + One)
  305. Name (BUF0, Buffer (Local0){})
  306. Name (BUF1, Buffer (Local0){})
  307. BUF0 = Arg0
  308. BUF1 = Arg1
  309. While (Local0)
  310. {
  311. Local0--
  312. If ((DerefOf (BUF0 [Local0]) != DerefOf (BUF1 [Local0]
  313. )))
  314. {
  315. Return (Zero)
  316. }
  317. }
  318.  
  319. Return (One)
  320. }
  321.  
  322. Name (PRWP, Package (0x02)
  323. {
  324. Zero,
  325. Zero
  326. })
  327. Method (GPRW, 2, NotSerialized)
  328. {
  329. PRWP [Zero] = Arg0
  330. Local0 = (SS1 << One)
  331. Local0 |= (SS2 << 0x02)
  332. Local0 |= (SS3 << 0x03)
  333. Local0 |= (SS4 << 0x04)
  334. If (((One << Arg1) & Local0))
  335. {
  336. PRWP [One] = Arg1
  337. }
  338. Else
  339. {
  340. Local0 >>= One
  341. If (((OSFL () == One) || (OSFL () == 0x02)))
  342. {
  343. FindSetLeftBit (Local0, PRWP [One])
  344. }
  345. Else
  346. {
  347. FindSetRightBit (Local0, PRWP [One])
  348. }
  349. }
  350.  
  351. Return (PRWP) /* \PRWP */
  352. }
  353.  
  354. Name (WAKP, Package (0x02)
  355. {
  356. Zero,
  357. Zero
  358. })
  359. Method (UPWP, 1, NotSerialized)
  360. {
  361. If (DerefOf (WAKP [Zero]))
  362. {
  363. WAKP [One] = Zero
  364. }
  365. Else
  366. {
  367. WAKP [One] = Arg0
  368. }
  369. }
  370.  
  371. OperationRegion (DEB3, SystemIO, 0x80, One)
  372. Field (DEB3, ByteAcc, NoLock, Preserve)
  373. {
  374. DBGX, 8
  375. }
  376.  
  377. OperationRegion (DEB1, SystemIO, 0x90, 0x02)
  378. Field (DEB1, WordAcc, NoLock, Preserve)
  379. {
  380. DBG9, 16
  381. }
  382.  
  383. Name (SS1, Zero)
  384. Name (SS2, Zero)
  385. Name (SS3, One)
  386. Name (SS4, One)
  387. Name (IOST, 0xFFFF)
  388. Name (TOPM, 0x00000000)
  389. Name (ROMS, 0xFFE00000)
  390. Name (VGAF, One)
  391. OperationRegion (DEB2, SystemIO, 0x80, 0x04)
  392. Field (DEB2, DWordAcc, NoLock, Preserve)
  393. {
  394. P80H, 32
  395. }
  396.  
  397. Name (OSTY, Ones)
  398. OperationRegion (ACMS, SystemIO, 0x72, 0x02)
  399. Field (ACMS, ByteAcc, NoLock, Preserve)
  400. {
  401. ACMX, 8,
  402. ACMA, 8
  403. }
  404.  
  405. IndexField (ACMX, ACMA, ByteAcc, NoLock, Preserve)
  406. {
  407. Offset (0xB9),
  408. IMEN, 8
  409. }
  410.  
  411. OperationRegion (PSMI, SystemIO, SMIO, 0x02)
  412. Field (PSMI, ByteAcc, NoLock, Preserve)
  413. {
  414. APMC, 8,
  415. APMD, 8
  416. }
  417.  
  418. OperationRegion (PMRG, SystemIO, 0x0CD6, 0x02)
  419. Field (PMRG, ByteAcc, NoLock, Preserve)
  420. {
  421. PMRI, 8,
  422. PMRD, 8
  423. }
  424.  
  425. IndexField (PMRI, PMRD, ByteAcc, NoLock, Preserve)
  426. {
  427. , 6,
  428. HPEN, 1,
  429. Offset (0x60),
  430. P1EB, 16,
  431. Offset (0xF0),
  432. , 3,
  433. RSTU, 1
  434. }
  435.  
  436. OperationRegion (GSMG, SystemMemory, 0xFED81500, 0x03FF)
  437. Field (GSMG, AnyAcc, NoLock, Preserve)
  438. {
  439. Offset (0x5C),
  440. Offset (0x5E),
  441. GS23, 1,
  442. , 5,
  443. GV23, 1,
  444. GE23, 1,
  445. Offset (0xA0),
  446. Offset (0xA2),
  447. GS40, 1,
  448. , 5,
  449. GV40, 1,
  450. GE40, 1
  451. }
  452.  
  453. OperationRegion (GSMM, SystemMemory, 0xFED80000, 0x1000)
  454. Field (GSMM, AnyAcc, NoLock, Preserve)
  455. {
  456. Offset (0x288),
  457. , 1,
  458. CLPS, 1,
  459. Offset (0x296),
  460. , 7,
  461. TMSE, 1,
  462. Offset (0x2B0),
  463. , 2,
  464. SLPS, 2,
  465. Offset (0x3BB),
  466. , 6,
  467. PWDE, 1
  468. }
  469.  
  470. OperationRegion (P1E0, SystemIO, P1EB, 0x04)
  471. Field (P1E0, ByteAcc, NoLock, Preserve)
  472. {
  473. Offset (0x01),
  474. , 6,
  475. PEWS, 1,
  476. WSTA, 1,
  477. Offset (0x03),
  478. , 6,
  479. PEWD, 1
  480. }
  481.  
  482. OperationRegion (IOCC, SystemIO, PMBS, 0x80)
  483. Field (IOCC, ByteAcc, NoLock, Preserve)
  484. {
  485. Offset (0x01),
  486. , 2,
  487. RTCS, 1
  488. }
  489.  
  490. Method (SPTS, 1, NotSerialized)
  491. {
  492. P80H = Arg0
  493. If ((Arg0 == 0x03))
  494. {
  495. RSTU = Zero
  496. }
  497.  
  498. CLPS = One
  499. SLPS = One
  500. PEWS = PEWS /* \PEWS */
  501. If ((Arg0 == 0x03))
  502. {
  503. SLPS = One
  504. }
  505.  
  506. If ((Arg0 == 0x04))
  507. {
  508. SLPS = One
  509. RSTU = One
  510. }
  511.  
  512. If ((Arg0 == 0x05))
  513. {
  514. PWDE = One
  515. }
  516. }
  517.  
  518. Method (SWAK, 1, NotSerialized)
  519. {
  520. If ((Arg0 == 0x03))
  521. {
  522. RSTU = One
  523. }
  524.  
  525. PEWS = PEWS /* \PEWS */
  526. PEWD = Zero
  527. If (PICM)
  528. {
  529. \_SB.DSPI ()
  530. }
  531.  
  532. If (TMSE)
  533. {
  534. TMSE = Zero
  535. }
  536.  
  537. If ((Arg0 == 0x03))
  538. {
  539. Notify (\_SB.PWRB, 0x02) // Device Wake
  540. }
  541.  
  542. If ((Arg0 == 0x04))
  543. {
  544. Notify (\_SB.PWRB, 0x02) // Device Wake
  545. }
  546. }
  547.  
  548. Scope (_GPE)
  549. {
  550. }
  551.  
  552. Scope (_SB)
  553. {
  554. Name (PRSA, ResourceTemplate ()
  555. {
  556. IRQ (Level, ActiveLow, Shared, )
  557. {4,5,7,10,11,14,15}
  558. })
  559. Alias (PRSA, PRSB)
  560. Alias (PRSA, PRSC)
  561. Alias (PRSA, PRSD)
  562. Alias (PRSA, PRSE)
  563. Alias (PRSA, PRSF)
  564. Alias (PRSA, PRSG)
  565. Alias (PRSA, PRSH)
  566. Name (PD10, Package (0x04)
  567. {
  568. Package (0x04)
  569. {
  570. 0xFFFF,
  571. Zero,
  572. LNKA,
  573. Zero
  574. },
  575.  
  576. Package (0x04)
  577. {
  578. 0xFFFF,
  579. One,
  580. LNKB,
  581. Zero
  582. },
  583.  
  584. Package (0x04)
  585. {
  586. 0xFFFF,
  587. 0x02,
  588. LNKC,
  589. Zero
  590. },
  591.  
  592. Package (0x04)
  593. {
  594. 0xFFFF,
  595. 0x03,
  596. LNKD,
  597. Zero
  598. }
  599. })
  600. Name (AR10, Package (0x04)
  601. {
  602. Package (0x04)
  603. {
  604. 0xFFFF,
  605. Zero,
  606. Zero,
  607. 0x18
  608. },
  609.  
  610. Package (0x04)
  611. {
  612. 0xFFFF,
  613. One,
  614. Zero,
  615. 0x19
  616. },
  617.  
  618. Package (0x04)
  619. {
  620. 0xFFFF,
  621. 0x02,
  622. Zero,
  623. 0x1A
  624. },
  625.  
  626. Package (0x04)
  627. {
  628. 0xFFFF,
  629. 0x03,
  630. Zero,
  631. 0x1B
  632. }
  633. })
  634. Name (PD14, Package (0x04)
  635. {
  636. Package (0x04)
  637. {
  638. 0xFFFF,
  639. Zero,
  640. LNKE,
  641. Zero
  642. },
  643.  
  644. Package (0x04)
  645. {
  646. 0xFFFF,
  647. One,
  648. LNKF,
  649. Zero
  650. },
  651.  
  652. Package (0x04)
  653. {
  654. 0xFFFF,
  655. 0x02,
  656. LNKG,
  657. Zero
  658. },
  659.  
  660. Package (0x04)
  661. {
  662. 0xFFFF,
  663. 0x03,
  664. LNKH,
  665. Zero
  666. }
  667. })
  668. Name (AR14, Package (0x04)
  669. {
  670. Package (0x04)
  671. {
  672. 0xFFFF,
  673. Zero,
  674. Zero,
  675. 0x1C
  676. },
  677.  
  678. Package (0x04)
  679. {
  680. 0xFFFF,
  681. One,
  682. Zero,
  683. 0x1D
  684. },
  685.  
  686. Package (0x04)
  687. {
  688. 0xFFFF,
  689. 0x02,
  690. Zero,
  691. 0x1E
  692. },
  693.  
  694. Package (0x04)
  695. {
  696. 0xFFFF,
  697. 0x03,
  698. Zero,
  699. 0x1F
  700. }
  701. })
  702. Name (PD18, Package (0x04)
  703. {
  704. Package (0x04)
  705. {
  706. 0xFFFF,
  707. Zero,
  708. LNKA,
  709. Zero
  710. },
  711.  
  712. Package (0x04)
  713. {
  714. 0xFFFF,
  715. One,
  716. LNKB,
  717. Zero
  718. },
  719.  
  720. Package (0x04)
  721. {
  722. 0xFFFF,
  723. 0x02,
  724. LNKC,
  725. Zero
  726. },
  727.  
  728. Package (0x04)
  729. {
  730. 0xFFFF,
  731. 0x03,
  732. LNKD,
  733. Zero
  734. }
  735. })
  736. Name (AR18, Package (0x04)
  737. {
  738. Package (0x04)
  739. {
  740. 0xFFFF,
  741. Zero,
  742. Zero,
  743. 0x20
  744. },
  745.  
  746. Package (0x04)
  747. {
  748. 0xFFFF,
  749. One,
  750. Zero,
  751. 0x21
  752. },
  753.  
  754. Package (0x04)
  755. {
  756. 0xFFFF,
  757. 0x02,
  758. Zero,
  759. 0x22
  760. },
  761.  
  762. Package (0x04)
  763. {
  764. 0xFFFF,
  765. 0x03,
  766. Zero,
  767. 0x23
  768. }
  769. })
  770. Name (PD1C, Package (0x04)
  771. {
  772. Package (0x04)
  773. {
  774. 0xFFFF,
  775. Zero,
  776. LNKE,
  777. Zero
  778. },
  779.  
  780. Package (0x04)
  781. {
  782. 0xFFFF,
  783. One,
  784. LNKF,
  785. Zero
  786. },
  787.  
  788. Package (0x04)
  789. {
  790. 0xFFFF,
  791. 0x02,
  792. LNKG,
  793. Zero
  794. },
  795.  
  796. Package (0x04)
  797. {
  798. 0xFFFF,
  799. 0x03,
  800. LNKH,
  801. Zero
  802. }
  803. })
  804. Name (AR1C, Package (0x04)
  805. {
  806. Package (0x04)
  807. {
  808. 0xFFFF,
  809. Zero,
  810. Zero,
  811. 0x24
  812. },
  813.  
  814. Package (0x04)
  815. {
  816. 0xFFFF,
  817. One,
  818. Zero,
  819. 0x25
  820. },
  821.  
  822. Package (0x04)
  823. {
  824. 0xFFFF,
  825. 0x02,
  826. Zero,
  827. 0x26
  828. },
  829.  
  830. Package (0x04)
  831. {
  832. 0xFFFF,
  833. 0x03,
  834. Zero,
  835. 0x27
  836. }
  837. })
  838. Name (PD24, Package (0x04)
  839. {
  840. Package (0x04)
  841. {
  842. 0xFFFF,
  843. Zero,
  844. LNKE,
  845. Zero
  846. },
  847.  
  848. Package (0x04)
  849. {
  850. 0xFFFF,
  851. One,
  852. LNKF,
  853. Zero
  854. },
  855.  
  856. Package (0x04)
  857. {
  858. 0xFFFF,
  859. 0x02,
  860. LNKG,
  861. Zero
  862. },
  863.  
  864. Package (0x04)
  865. {
  866. 0xFFFF,
  867. 0x03,
  868. LNKH,
  869. Zero
  870. }
  871. })
  872. Name (AR24, Package (0x04)
  873. {
  874. Package (0x04)
  875. {
  876. 0xFFFF,
  877. Zero,
  878. Zero,
  879. 0x2C
  880. },
  881.  
  882. Package (0x04)
  883. {
  884. 0xFFFF,
  885. One,
  886. Zero,
  887. 0x2D
  888. },
  889.  
  890. Package (0x04)
  891. {
  892. 0xFFFF,
  893. 0x02,
  894. Zero,
  895. 0x2E
  896. },
  897.  
  898. Package (0x04)
  899. {
  900. 0xFFFF,
  901. 0x03,
  902. Zero,
  903. 0x2F
  904. }
  905. })
  906. Name (PD28, Package (0x04)
  907. {
  908. Package (0x04)
  909. {
  910. 0xFFFF,
  911. Zero,
  912. LNKA,
  913. Zero
  914. },
  915.  
  916. Package (0x04)
  917. {
  918. 0xFFFF,
  919. One,
  920. LNKB,
  921. Zero
  922. },
  923.  
  924. Package (0x04)
  925. {
  926. 0xFFFF,
  927. 0x02,
  928. LNKC,
  929. Zero
  930. },
  931.  
  932. Package (0x04)
  933. {
  934. 0xFFFF,
  935. 0x03,
  936. LNKD,
  937. Zero
  938. }
  939. })
  940. Name (AR28, Package (0x04)
  941. {
  942. Package (0x04)
  943. {
  944. 0xFFFF,
  945. Zero,
  946. Zero,
  947. 0x30
  948. },
  949.  
  950. Package (0x04)
  951. {
  952. 0xFFFF,
  953. One,
  954. Zero,
  955. 0x31
  956. },
  957.  
  958. Package (0x04)
  959. {
  960. 0xFFFF,
  961. 0x02,
  962. Zero,
  963. 0x32
  964. },
  965.  
  966. Package (0x04)
  967. {
  968. 0xFFFF,
  969. 0x03,
  970. Zero,
  971. 0x33
  972. }
  973. })
  974. Name (PD38, Package (0x04)
  975. {
  976. Package (0x04)
  977. {
  978. 0xFFFF,
  979. Zero,
  980. LNKG,
  981. Zero
  982. },
  983.  
  984. Package (0x04)
  985. {
  986. 0xFFFF,
  987. One,
  988. LNKH,
  989. Zero
  990. },
  991.  
  992. Package (0x04)
  993. {
  994. 0xFFFF,
  995. 0x02,
  996. LNKE,
  997. Zero
  998. },
  999.  
  1000. Package (0x04)
  1001. {
  1002. 0xFFFF,
  1003. 0x03,
  1004. LNKF,
  1005. Zero
  1006. }
  1007. })
  1008. Name (AR38, Package (0x04)
  1009. {
  1010. Package (0x04)
  1011. {
  1012. 0xFFFF,
  1013. Zero,
  1014. Zero,
  1015. 0x26
  1016. },
  1017.  
  1018. Package (0x04)
  1019. {
  1020. 0xFFFF,
  1021. One,
  1022. Zero,
  1023. 0x27
  1024. },
  1025.  
  1026. Package (0x04)
  1027. {
  1028. 0xFFFF,
  1029. 0x02,
  1030. Zero,
  1031. 0x24
  1032. },
  1033.  
  1034. Package (0x04)
  1035. {
  1036. 0xFFFF,
  1037. 0x03,
  1038. Zero,
  1039. 0x25
  1040. }
  1041. })
  1042. Name (PD39, Package (0x04)
  1043. {
  1044. Package (0x04)
  1045. {
  1046. 0xFFFF,
  1047. Zero,
  1048. LNKC,
  1049. Zero
  1050. },
  1051.  
  1052. Package (0x04)
  1053. {
  1054. 0xFFFF,
  1055. One,
  1056. LNKD,
  1057. Zero
  1058. },
  1059.  
  1060. Package (0x04)
  1061. {
  1062. 0xFFFF,
  1063. 0x02,
  1064. LNKA,
  1065. Zero
  1066. },
  1067.  
  1068. Package (0x04)
  1069. {
  1070. 0xFFFF,
  1071. 0x03,
  1072. LNKB,
  1073. Zero
  1074. }
  1075. })
  1076. Name (AR39, Package (0x04)
  1077. {
  1078. Package (0x04)
  1079. {
  1080. 0xFFFF,
  1081. Zero,
  1082. Zero,
  1083. 0x22
  1084. },
  1085.  
  1086. Package (0x04)
  1087. {
  1088. 0xFFFF,
  1089. One,
  1090. Zero,
  1091. 0x23
  1092. },
  1093.  
  1094. Package (0x04)
  1095. {
  1096. 0xFFFF,
  1097. 0x02,
  1098. Zero,
  1099. 0x20
  1100. },
  1101.  
  1102. Package (0x04)
  1103. {
  1104. 0xFFFF,
  1105. 0x03,
  1106. Zero,
  1107. 0x21
  1108. }
  1109. })
  1110. Name (PD3A, Package (0x04)
  1111. {
  1112. Package (0x04)
  1113. {
  1114. 0xFFFF,
  1115. Zero,
  1116. LNKG,
  1117. Zero
  1118. },
  1119.  
  1120. Package (0x04)
  1121. {
  1122. 0xFFFF,
  1123. One,
  1124. LNKH,
  1125. Zero
  1126. },
  1127.  
  1128. Package (0x04)
  1129. {
  1130. 0xFFFF,
  1131. 0x02,
  1132. LNKE,
  1133. Zero
  1134. },
  1135.  
  1136. Package (0x04)
  1137. {
  1138. 0xFFFF,
  1139. 0x03,
  1140. LNKF,
  1141. Zero
  1142. }
  1143. })
  1144. Name (AR3A, Package (0x04)
  1145. {
  1146. Package (0x04)
  1147. {
  1148. 0xFFFF,
  1149. Zero,
  1150. Zero,
  1151. 0x1E
  1152. },
  1153.  
  1154. Package (0x04)
  1155. {
  1156. 0xFFFF,
  1157. One,
  1158. Zero,
  1159. 0x1F
  1160. },
  1161.  
  1162. Package (0x04)
  1163. {
  1164. 0xFFFF,
  1165. 0x02,
  1166. Zero,
  1167. 0x1C
  1168. },
  1169.  
  1170. Package (0x04)
  1171. {
  1172. 0xFFFF,
  1173. 0x03,
  1174. Zero,
  1175. 0x1D
  1176. }
  1177. })
  1178. Name (PD00, Package (0x0E)
  1179. {
  1180. Package (0x04)
  1181. {
  1182. 0x0001FFFF,
  1183. Zero,
  1184. LNKA,
  1185. Zero
  1186. },
  1187.  
  1188. Package (0x04)
  1189. {
  1190. 0x0001FFFF,
  1191. One,
  1192. LNKB,
  1193. Zero
  1194. },
  1195.  
  1196. Package (0x04)
  1197. {
  1198. 0x0001FFFF,
  1199. 0x02,
  1200. LNKC,
  1201. Zero
  1202. },
  1203.  
  1204. Package (0x04)
  1205. {
  1206. 0x0002FFFF,
  1207. Zero,
  1208. LNKE,
  1209. Zero
  1210. },
  1211.  
  1212. Package (0x04)
  1213. {
  1214. 0x0002FFFF,
  1215. One,
  1216. LNKF,
  1217. Zero
  1218. },
  1219.  
  1220. Package (0x04)
  1221. {
  1222. 0x0002FFFF,
  1223. 0x02,
  1224. LNKG,
  1225. Zero
  1226. },
  1227.  
  1228. Package (0x04)
  1229. {
  1230. 0x0002FFFF,
  1231. 0x03,
  1232. LNKH,
  1233. Zero
  1234. },
  1235.  
  1236. Package (0x04)
  1237. {
  1238. 0x0008FFFF,
  1239. Zero,
  1240. LNKA,
  1241. Zero
  1242. },
  1243.  
  1244. Package (0x04)
  1245. {
  1246. 0x0008FFFF,
  1247. One,
  1248. LNKB,
  1249. Zero
  1250. },
  1251.  
  1252. Package (0x04)
  1253. {
  1254. 0x0008FFFF,
  1255. 0x02,
  1256. LNKC,
  1257. Zero
  1258. },
  1259.  
  1260. Package (0x04)
  1261. {
  1262. 0x0014FFFF,
  1263. Zero,
  1264. LNKA,
  1265. Zero
  1266. },
  1267.  
  1268. Package (0x04)
  1269. {
  1270. 0x0014FFFF,
  1271. One,
  1272. LNKB,
  1273. Zero
  1274. },
  1275.  
  1276. Package (0x04)
  1277. {
  1278. 0x0014FFFF,
  1279. 0x02,
  1280. LNKC,
  1281. Zero
  1282. },
  1283.  
  1284. Package (0x04)
  1285. {
  1286. 0x0014FFFF,
  1287. 0x03,
  1288. LNKD,
  1289. Zero
  1290. }
  1291. })
  1292. Name (AR00, Package (0x0E)
  1293. {
  1294. Package (0x04)
  1295. {
  1296. 0x0001FFFF,
  1297. Zero,
  1298. Zero,
  1299. 0x28
  1300. },
  1301.  
  1302. Package (0x04)
  1303. {
  1304. 0x0001FFFF,
  1305. One,
  1306. Zero,
  1307. 0x29
  1308. },
  1309.  
  1310. Package (0x04)
  1311. {
  1312. 0x0001FFFF,
  1313. 0x02,
  1314. Zero,
  1315. 0x2A
  1316. },
  1317.  
  1318. Package (0x04)
  1319. {
  1320. 0x0002FFFF,
  1321. Zero,
  1322. Zero,
  1323. 0x24
  1324. },
  1325.  
  1326. Package (0x04)
  1327. {
  1328. 0x0002FFFF,
  1329. One,
  1330. Zero,
  1331. 0x25
  1332. },
  1333.  
  1334. Package (0x04)
  1335. {
  1336. 0x0002FFFF,
  1337. 0x02,
  1338. Zero,
  1339. 0x26
  1340. },
  1341.  
  1342. Package (0x04)
  1343. {
  1344. 0x0002FFFF,
  1345. 0x03,
  1346. Zero,
  1347. 0x27
  1348. },
  1349.  
  1350. Package (0x04)
  1351. {
  1352. 0x0008FFFF,
  1353. Zero,
  1354. Zero,
  1355. 0x20
  1356. },
  1357.  
  1358. Package (0x04)
  1359. {
  1360. 0x0008FFFF,
  1361. One,
  1362. Zero,
  1363. 0x21
  1364. },
  1365.  
  1366. Package (0x04)
  1367. {
  1368. 0x0008FFFF,
  1369. 0x02,
  1370. Zero,
  1371. 0x22
  1372. },
  1373.  
  1374. Package (0x04)
  1375. {
  1376. 0x0014FFFF,
  1377. Zero,
  1378. Zero,
  1379. 0x10
  1380. },
  1381.  
  1382. Package (0x04)
  1383. {
  1384. 0x0014FFFF,
  1385. One,
  1386. Zero,
  1387. 0x11
  1388. },
  1389.  
  1390. Package (0x04)
  1391. {
  1392. 0x0014FFFF,
  1393. 0x02,
  1394. Zero,
  1395. 0x12
  1396. },
  1397.  
  1398. Package (0x04)
  1399. {
  1400. 0x0014FFFF,
  1401. 0x03,
  1402. Zero,
  1403. 0x13
  1404. }
  1405. })
  1406. Name (PD20, Package (0x04)
  1407. {
  1408. Package (0x04)
  1409. {
  1410. 0xFFFF,
  1411. Zero,
  1412. LNKA,
  1413. Zero
  1414. },
  1415.  
  1416. Package (0x04)
  1417. {
  1418. 0xFFFF,
  1419. One,
  1420. LNKB,
  1421. Zero
  1422. },
  1423.  
  1424. Package (0x04)
  1425. {
  1426. 0xFFFF,
  1427. 0x02,
  1428. LNKC,
  1429. Zero
  1430. },
  1431.  
  1432. Package (0x04)
  1433. {
  1434. 0xFFFF,
  1435. 0x03,
  1436. LNKD,
  1437. Zero
  1438. }
  1439. })
  1440. Name (AR20, Package (0x04)
  1441. {
  1442. Package (0x04)
  1443. {
  1444. 0xFFFF,
  1445. Zero,
  1446. Zero,
  1447. 0x28
  1448. },
  1449.  
  1450. Package (0x04)
  1451. {
  1452. 0xFFFF,
  1453. One,
  1454. Zero,
  1455. 0x29
  1456. },
  1457.  
  1458. Package (0x04)
  1459. {
  1460. 0xFFFF,
  1461. 0x02,
  1462. Zero,
  1463. 0x2A
  1464. },
  1465.  
  1466. Package (0x04)
  1467. {
  1468. 0xFFFF,
  1469. 0x03,
  1470. Zero,
  1471. 0x2B
  1472. }
  1473. })
  1474. }
  1475.  
  1476. Scope (_SB)
  1477. {
  1478. Device (PCI0)
  1479. {
  1480. Name (_HID, EisaId ("PNP0A08") /* PCI Express Bus */) // _HID: Hardware ID
  1481. Name (_CID, EisaId ("PNP0A03") /* PCI Bus */) // _CID: Compatible ID
  1482. Name (_ADR, Zero) // _ADR: Address
  1483. Method (^BN00, 0, NotSerialized)
  1484. {
  1485. Return (Zero)
  1486. }
  1487.  
  1488. Method (_BBN, 0, NotSerialized) // _BBN: BIOS Bus Number
  1489. {
  1490. Return (BN00 ())
  1491. }
  1492.  
  1493. Name (_UID, Zero) // _UID: Unique ID
  1494. Method (_PRT, 0, NotSerialized) // _PRT: PCI Routing Table
  1495. {
  1496. If (PICM)
  1497. {
  1498. Return (AR00) /* \_SB_.AR00 */
  1499. }
  1500.  
  1501. Return (PD00) /* \_SB_.PD00 */
  1502. }
  1503.  
  1504. Device (AMDN)
  1505. {
  1506. Name (_HID, EisaId ("PNP0C01") /* System Board */) // _HID: Hardware ID
  1507. Name (_UID, 0xC8) // _UID: Unique ID
  1508. Name (_STA, 0x0F) // _STA: Status
  1509. Name (NPTR, ResourceTemplate ()
  1510. {
  1511. Memory32Fixed (ReadWrite,
  1512. 0x00000000, // Address Base
  1513. 0x00000000, // Address Length
  1514. _Y00)
  1515. })
  1516. Method (_CRS, 0, NotSerialized) // _CRS: Current Resource Settings
  1517. {
  1518. CreateDWordField (NPTR, \_SB.PCI0.AMDN._Y00._LEN, PL) // _LEN: Length
  1519. CreateDWordField (NPTR, \_SB.PCI0.AMDN._Y00._BAS, PB) // _BAS: Base Address
  1520. PB = PEBS /* \PEBS */
  1521. PL = PEBL /* \PEBL */
  1522. Return (NPTR) /* \_SB_.PCI0.AMDN.NPTR */
  1523. }
  1524. }
  1525.  
  1526. Method (NPTS, 1, NotSerialized)
  1527. {
  1528. APTS (Arg0)
  1529. }
  1530.  
  1531. Method (NWAK, 1, NotSerialized)
  1532. {
  1533. AWAK (Arg0)
  1534. }
  1535.  
  1536. Name (CPRB, One)
  1537. Name (LVGA, 0x01)
  1538. Name (STAV, 0x0F)
  1539. Name (BRB, 0x0000)
  1540. Name (BRL, 0x0100)
  1541. Name (IOB, 0x1000)
  1542. Name (IOL, 0xF000)
  1543. Name (MBB, 0xB0000000)
  1544. Name (MBL, 0x50000000)
  1545. Name (MAB, 0x0000000000000000)
  1546. Name (MAL, 0x0000000000000000)
  1547. Name (MAM, 0x0000000000000000)
  1548. Name (CRS1, ResourceTemplate ()
  1549. {
  1550. WordBusNumber (ResourceProducer, MinFixed, MaxFixed, PosDecode,
  1551. 0x0000, // Granularity
  1552. 0x0000, // Range Minimum
  1553. 0x007F, // Range Maximum
  1554. 0x0000, // Translation Offset
  1555. 0x0080, // Length
  1556. ,, _Y01)
  1557. IO (Decode16,
  1558. 0x0CF8, // Range Minimum
  1559. 0x0CF8, // Range Maximum
  1560. 0x01, // Alignment
  1561. 0x08, // Length
  1562. )
  1563. WordIO (ResourceProducer, MinFixed, MaxFixed, PosDecode, EntireRange,
  1564. 0x0000, // Granularity
  1565. 0x0000, // Range Minimum
  1566. 0x03AF, // Range Maximum
  1567. 0x0000, // Translation Offset
  1568. 0x03B0, // Length
  1569. ,, , TypeStatic, DenseTranslation)
  1570. WordIO (ResourceProducer, MinFixed, MaxFixed, PosDecode, EntireRange,
  1571. 0x0000, // Granularity
  1572. 0x03E0, // Range Minimum
  1573. 0x0CF7, // Range Maximum
  1574. 0x0000, // Translation Offset
  1575. 0x0918, // Length
  1576. ,, , TypeStatic, DenseTranslation)
  1577. WordIO (ResourceProducer, MinFixed, MaxFixed, PosDecode, EntireRange,
  1578. 0x0000, // Granularity
  1579. 0x0000, // Range Minimum
  1580. 0x0000, // Range Maximum
  1581. 0x0000, // Translation Offset
  1582. 0x0000, // Length
  1583. ,, _Y03, TypeStatic, DenseTranslation)
  1584. WordIO (ResourceProducer, MinFixed, MaxFixed, PosDecode, EntireRange,
  1585. 0x0000, // Granularity
  1586. 0x0D00, // Range Minimum
  1587. 0x0FFF, // Range Maximum
  1588. 0x0000, // Translation Offset
  1589. 0x0300, // Length
  1590. ,, _Y02, TypeStatic, DenseTranslation)
  1591. DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
  1592. 0x00000000, // Granularity
  1593. 0x00000000, // Range Minimum
  1594. 0x00000000, // Range Maximum
  1595. 0x00000000, // Translation Offset
  1596. 0x00000000, // Length
  1597. ,, _Y04, AddressRangeMemory, TypeStatic)
  1598. DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, NonCacheable, ReadWrite,
  1599. 0x00000000, // Granularity
  1600. 0x000C0000, // Range Minimum
  1601. 0x000DFFFF, // Range Maximum
  1602. 0x00000000, // Translation Offset
  1603. 0x00020000, // Length
  1604. ,, , AddressRangeMemory, TypeStatic)
  1605. DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
  1606. 0x00000000, // Granularity
  1607. 0x02000000, // Range Minimum
  1608. 0xFFDFFFFF, // Range Maximum
  1609. 0x00000000, // Translation Offset
  1610. 0xFDE00000, // Length
  1611. ,, _Y05, AddressRangeMemory, TypeStatic)
  1612. DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
  1613. 0x00000000, // Granularity
  1614. 0x02000000, // Range Minimum
  1615. 0xFFDFFFFF, // Range Maximum
  1616. 0x00000000, // Translation Offset
  1617. 0xFDE00000, // Length
  1618. ,, _Y06, AddressRangeMemory, TypeStatic)
  1619. QWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
  1620. 0x0000000000000000, // Granularity
  1621. 0x0000000000000000, // Range Minimum
  1622. 0x0000000000000000, // Range Maximum
  1623. 0x0000000000000000, // Translation Offset
  1624. 0x0000000000000000, // Length
  1625. ,, _Y07, AddressRangeMemory, TypeStatic)
  1626. })
  1627. Name (CRS2, ResourceTemplate ()
  1628. {
  1629. WordBusNumber (ResourceProducer, MinFixed, MaxFixed, PosDecode,
  1630. 0x0000, // Granularity
  1631. 0x0080, // Range Minimum
  1632. 0x00FF, // Range Maximum
  1633. 0x0000, // Translation Offset
  1634. 0x0080, // Length
  1635. ,, _Y08)
  1636. WordIO (ResourceProducer, MinFixed, MaxFixed, PosDecode, EntireRange,
  1637. 0x0000, // Granularity
  1638. 0x0000, // Range Minimum
  1639. 0x0000, // Range Maximum
  1640. 0x0000, // Translation Offset
  1641. 0x0000, // Length
  1642. ,, _Y0A, TypeStatic, DenseTranslation)
  1643. WordIO (ResourceProducer, MinFixed, MaxFixed, PosDecode, EntireRange,
  1644. 0x0000, // Granularity
  1645. 0x0000, // Range Minimum
  1646. 0x0000, // Range Maximum
  1647. 0x0000, // Translation Offset
  1648. 0x0000, // Length
  1649. ,, _Y09, TypeStatic, DenseTranslation)
  1650. DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
  1651. 0x00000000, // Granularity
  1652. 0x00000000, // Range Minimum
  1653. 0x00000000, // Range Maximum
  1654. 0x00000000, // Translation Offset
  1655. 0x00000000, // Length
  1656. ,, _Y0B, AddressRangeMemory, TypeStatic)
  1657. DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
  1658. 0x00000000, // Granularity
  1659. 0x80000000, // Range Minimum
  1660. 0xFFFFFFFF, // Range Maximum
  1661. 0x00000000, // Translation Offset
  1662. 0x80000000, // Length
  1663. ,, _Y0C, AddressRangeMemory, TypeStatic)
  1664. DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
  1665. 0x00000000, // Granularity
  1666. 0x80000000, // Range Minimum
  1667. 0xFFFFFFFF, // Range Maximum
  1668. 0x00000000, // Translation Offset
  1669. 0x80000000, // Length
  1670. ,, _Y0D, AddressRangeMemory, TypeStatic)
  1671. QWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
  1672. 0x0000000000000000, // Granularity
  1673. 0x0000000000000000, // Range Minimum
  1674. 0x0000000000000000, // Range Maximum
  1675. 0x0000000000000000, // Translation Offset
  1676. 0x0000000000000000, // Length
  1677. ,, _Y0E, AddressRangeMemory, TypeStatic)
  1678. })
  1679. Method (_STA, 0, NotSerialized) // _STA: Status
  1680. {
  1681. Return (STAV) /* \_SB_.PCI0.STAV */
  1682. }
  1683.  
  1684. Method (_CRS, 0, Serialized) // _CRS: Current Resource Settings
  1685. {
  1686. DBG8 = 0x25
  1687. If (CPRB)
  1688. {
  1689. CreateWordField (CRS1, \_SB.PCI0._Y01._MIN, MIN0) // _MIN: Minimum Base Address
  1690. CreateWordField (CRS1, \_SB.PCI0._Y01._MAX, MAX0) // _MAX: Maximum Base Address
  1691. CreateWordField (CRS1, \_SB.PCI0._Y01._LEN, LEN0) // _LEN: Length
  1692. MIN0 = BRB /* \_SB_.PCI0.BRB_ */
  1693. LEN0 = BRL /* \_SB_.PCI0.BRL_ */
  1694. Local0 = LEN0 /* \_SB_.PCI0._CRS.LEN0 */
  1695. MAX0 = (MIN0 + Local0--)
  1696. CreateWordField (CRS1, \_SB.PCI0._Y02._MIN, MIN1) // _MIN: Minimum Base Address
  1697. CreateWordField (CRS1, \_SB.PCI0._Y02._MAX, MAX1) // _MAX: Maximum Base Address
  1698. CreateWordField (CRS1, \_SB.PCI0._Y02._LEN, LEN1) // _LEN: Length
  1699. If ((IOB == 0x1000))
  1700. {
  1701. Local0 = IOL /* \_SB_.PCI0.IOL_ */
  1702. MAX1 = (IOB + Local0--)
  1703. Local0 = (MAX1 - MIN1) /* \_SB_.PCI0._CRS.MIN1 */
  1704. LEN1 = (Local0 + One)
  1705. }
  1706. Else
  1707. {
  1708. MIN1 = IOB /* \_SB_.PCI0.IOB_ */
  1709. LEN1 = IOL /* \_SB_.PCI0.IOL_ */
  1710. Local0 = LEN1 /* \_SB_.PCI0._CRS.LEN1 */
  1711. MAX1 = (MIN1 + Local0--)
  1712. }
  1713.  
  1714. If (((LVGA == One) || (LVGA == 0x55)))
  1715. {
  1716. If (VGAF)
  1717. {
  1718. CreateWordField (CRS1, \_SB.PCI0._Y03._MIN, IMN1) // _MIN: Minimum Base Address
  1719. CreateWordField (CRS1, \_SB.PCI0._Y03._MAX, IMX1) // _MAX: Maximum Base Address
  1720. CreateWordField (CRS1, \_SB.PCI0._Y03._LEN, ILN1) // _LEN: Length
  1721. IMN1 = 0x03B0
  1722. IMX1 = 0x03DF
  1723. ILN1 = 0x30
  1724. CreateDWordField (CRS1, \_SB.PCI0._Y04._MIN, VMN1) // _MIN: Minimum Base Address
  1725. CreateDWordField (CRS1, \_SB.PCI0._Y04._MAX, VMX1) // _MAX: Maximum Base Address
  1726. CreateDWordField (CRS1, \_SB.PCI0._Y04._LEN, VLN1) // _LEN: Length
  1727. VMN1 = 0x000A0000
  1728. VMX1 = 0x000BFFFF
  1729. VLN1 = 0x00020000
  1730. VGAF = Zero
  1731. }
  1732. }
  1733.  
  1734. CreateDWordField (CRS1, \_SB.PCI0._Y05._MIN, MIN3) // _MIN: Minimum Base Address
  1735. CreateDWordField (CRS1, \_SB.PCI0._Y05._MAX, MAX3) // _MAX: Maximum Base Address
  1736. CreateDWordField (CRS1, \_SB.PCI0._Y05._LEN, LEN3) // _LEN: Length
  1737. CreateDWordField (CRS1, \_SB.PCI0._Y06._MIN, MIN7) // _MIN: Minimum Base Address
  1738. CreateDWordField (CRS1, \_SB.PCI0._Y06._MAX, MAX7) // _MAX: Maximum Base Address
  1739. CreateDWordField (CRS1, \_SB.PCI0._Y06._LEN, LEN7) // _LEN: Length
  1740. Local0 = (MBB + MBL) /* \_SB_.PCI0.MBL_ */
  1741. If ((Local0 < NBTP))
  1742. {
  1743. MIN3 = MBB /* \_SB_.PCI0.MBB_ */
  1744. LEN3 = MBL /* \_SB_.PCI0.MBL_ */
  1745. Local0 = LEN3 /* \_SB_.PCI0._CRS.LEN3 */
  1746. MAX3 = (MIN3 + Local0--)
  1747. MIN7 = Zero
  1748. MAX7 = Zero
  1749. LEN7 = Zero
  1750. }
  1751. Else
  1752. {
  1753. MIN3 = MBB /* \_SB_.PCI0.MBB_ */
  1754. LEN3 = (NBTP - MBB)
  1755. Local0 = LEN3 /* \_SB_.PCI0._CRS.LEN3 */
  1756. MAX3 = (MIN3 + Local0--)
  1757. MIN7 = 0xFEE00000
  1758. Local0 = (0xFEE00000 - NBTP)
  1759. LEN7 = (MBL - Local0)
  1760. LEN7 = (LEN7 - LEN3)
  1761. Local0 = LEN7 /* \_SB_.PCI0._CRS.LEN7 */
  1762. MAX7 = (MIN7 + Local0--)
  1763. }
  1764.  
  1765. If (MAL)
  1766. {
  1767. CreateQWordField (CRS1, \_SB.PCI0._Y07._MIN, MN8) // _MIN: Minimum Base Address
  1768. CreateQWordField (CRS1, \_SB.PCI0._Y07._MAX, MX8) // _MAX: Maximum Base Address
  1769. CreateQWordField (CRS1, \_SB.PCI0._Y07._LEN, LN8) // _LEN: Length
  1770. MN8 = MAB /* \_SB_.PCI0.MAB_ */
  1771. LN8 = MAL /* \_SB_.PCI0.MAL_ */
  1772. MX8 = MAM /* \_SB_.PCI0.MAM_ */
  1773. }
  1774.  
  1775. DBG8 = 0x24
  1776. Return (CRS1) /* \_SB_.PCI0.CRS1 */
  1777. }
  1778. Else
  1779. {
  1780. CreateWordField (CRS2, \_SB.PCI0._Y08._MIN, MIN2) // _MIN: Minimum Base Address
  1781. CreateWordField (CRS2, \_SB.PCI0._Y08._MAX, MAX2) // _MAX: Maximum Base Address
  1782. CreateWordField (CRS2, \_SB.PCI0._Y08._LEN, LEN2) // _LEN: Length
  1783. MIN2 = BRB /* \_SB_.PCI0.BRB_ */
  1784. LEN2 = BRL /* \_SB_.PCI0.BRL_ */
  1785. Local1 = LEN2 /* \_SB_.PCI0._CRS.LEN2 */
  1786. MAX2 = (MIN2 + Local1--)
  1787. CreateWordField (CRS2, \_SB.PCI0._Y09._MIN, MIN4) // _MIN: Minimum Base Address
  1788. CreateWordField (CRS2, \_SB.PCI0._Y09._MAX, MAX4) // _MAX: Maximum Base Address
  1789. CreateWordField (CRS2, \_SB.PCI0._Y09._LEN, LEN4) // _LEN: Length
  1790. MIN4 = IOB /* \_SB_.PCI0.IOB_ */
  1791. LEN4 = IOL /* \_SB_.PCI0.IOL_ */
  1792. Local1 = LEN4 /* \_SB_.PCI0._CRS.LEN4 */
  1793. MAX4 = (MIN4 + Local1--)
  1794. If (LVGA)
  1795. {
  1796. CreateWordField (CRS2, \_SB.PCI0._Y0A._MIN, IMN2) // _MIN: Minimum Base Address
  1797. CreateWordField (CRS2, \_SB.PCI0._Y0A._MAX, IMX2) // _MAX: Maximum Base Address
  1798. CreateWordField (CRS2, \_SB.PCI0._Y0A._LEN, ILN2) // _LEN: Length
  1799. IMN2 = 0x03B0
  1800. IMX2 = 0x03DF
  1801. ILN2 = 0x30
  1802. CreateDWordField (CRS2, \_SB.PCI0._Y0B._MIN, VMN2) // _MIN: Minimum Base Address
  1803. CreateDWordField (CRS2, \_SB.PCI0._Y0B._MAX, VMX2) // _MAX: Maximum Base Address
  1804. CreateDWordField (CRS2, \_SB.PCI0._Y0B._LEN, VLN2) // _LEN: Length
  1805. VMN2 = 0x000A0000
  1806. VMX2 = 0x000BFFFF
  1807. VLN2 = 0x00020000
  1808. }
  1809.  
  1810. CreateDWordField (CRS2, \_SB.PCI0._Y0C._MIN, MIN5) // _MIN: Minimum Base Address
  1811. CreateDWordField (CRS2, \_SB.PCI0._Y0C._MAX, MAX5) // _MAX: Maximum Base Address
  1812. CreateDWordField (CRS2, \_SB.PCI0._Y0C._LEN, LEN5) // _LEN: Length
  1813. MIN5 = MBB /* \_SB_.PCI0.MBB_ */
  1814. LEN5 = (NBTP - MBB)
  1815. Local1 = LEN5 /* \_SB_.PCI0._CRS.LEN5 */
  1816. MAX5 = (MIN5 + Local1--)
  1817. CreateDWordField (CRS2, \_SB.PCI0._Y0D._MIN, MIN6) // _MIN: Minimum Base Address
  1818. CreateDWordField (CRS2, \_SB.PCI0._Y0D._MAX, MAX6) // _MAX: Maximum Base Address
  1819. CreateDWordField (CRS2, \_SB.PCI0._Y0D._LEN, LEN6) // _LEN: Length
  1820. MIN6 = (NBTP + NBTS) /* \NBTS */
  1821. LEN6 = (MBL - NBTS)
  1822. LEN6 = (LEN6 - LEN5)
  1823. Local0 = LEN6 /* \_SB_.PCI0._CRS.LEN6 */
  1824. MAX6 = (MIN6 + Local0--)
  1825. If (MAL)
  1826. {
  1827. CreateQWordField (CRS2, \_SB.PCI0._Y0E._MIN, MN9) // _MIN: Minimum Base Address
  1828. CreateQWordField (CRS2, \_SB.PCI0._Y0E._MAX, MX9) // _MAX: Maximum Base Address
  1829. CreateQWordField (CRS2, \_SB.PCI0._Y0E._LEN, LN9) // _LEN: Length
  1830. MN9 = MAB /* \_SB_.PCI0.MAB_ */
  1831. LN9 = MAL /* \_SB_.PCI0.MAL_ */
  1832. MX9 = MAM /* \_SB_.PCI0.MAM_ */
  1833. }
  1834.  
  1835. DBG8 = 0x23
  1836. Return (CRS2) /* \_SB_.PCI0.CRS2 */
  1837. }
  1838. }
  1839.  
  1840. Method (_OSC, 4, Serialized) // _OSC: Operating System Capabilities
  1841. {
  1842. Name (SUPP, Zero)
  1843. Name (CTRL, Zero)
  1844. CreateDWordField (Arg3, Zero, CDW1)
  1845. CreateDWordField (Arg3, 0x04, CDW2)
  1846. CreateDWordField (Arg3, 0x08, CDW3)
  1847. If ((Arg0 == ToUUID ("33db4d5b-1ff7-401c-9657-7441c03dd766") /* PCI Host Bridge Device */))
  1848. {
  1849. SUPP = CDW2 /* \_SB_.PCI0._OSC.CDW2 */
  1850. CTRL = CDW3 /* \_SB_.PCI0._OSC.CDW3 */
  1851. If (((SUPP & 0x16) != 0x16))
  1852. {
  1853. CTRL &= 0x1E
  1854. }
  1855.  
  1856. If (!PEHP)
  1857. {
  1858. CTRL &= 0x1E
  1859. }
  1860.  
  1861. If (!SHPC)
  1862. {
  1863. CTRL &= 0x1D
  1864. }
  1865.  
  1866. If (!PEPM)
  1867. {
  1868. CTRL &= 0x1B
  1869. }
  1870.  
  1871. If (!PEER)
  1872. {
  1873. CTRL &= 0x15
  1874. }
  1875.  
  1876. If (!PECS)
  1877. {
  1878. CTRL &= 0x0F
  1879. }
  1880.  
  1881. If ((Arg1 != One))
  1882. {
  1883. CDW1 |= 0x08
  1884. }
  1885.  
  1886. If ((CDW3 != CTRL))
  1887. {
  1888. CDW1 |= 0x10
  1889. }
  1890.  
  1891. CDW3 = CTRL /* \_SB_.PCI0._OSC.CTRL */
  1892. Return (Arg3)
  1893. }
  1894. Else
  1895. {
  1896. CDW1 |= 0x04
  1897. Return (Arg3)
  1898. }
  1899. }
  1900.  
  1901. Mutex (NAPM, 0x00)
  1902. Method (NAPE, 0, NotSerialized)
  1903. {
  1904. Acquire (NAPM, 0xFFFF)
  1905. DBG8 = 0x11
  1906. Local0 = (PEBS + 0xB8)
  1907. OperationRegion (VARM, SystemMemory, Local0, 0x08)
  1908. Field (VARM, DWordAcc, NoLock, Preserve)
  1909. {
  1910. NAPX, 32,
  1911. NAPD, 32
  1912. }
  1913.  
  1914. Local1 = NAPX /* \_SB_.PCI0.NAPE.NAPX */
  1915. NAPX = 0x14300000
  1916. Local0 = NAPD /* \_SB_.PCI0.NAPE.NAPD */
  1917. Local0 &= 0xFFFFFFEF
  1918. NAPD = Local0
  1919. NAPX = Local1
  1920. DBG8 = 0x12
  1921. Release (NAPM)
  1922. }
  1923.  
  1924. Device (IOMA)
  1925. {
  1926. Name (_ADR, 0x02) // _ADR: Address
  1927. Name (_HID, EisaId ("PNP0C02") /* PNP Motherboard Resources */) // _HID: Hardware ID
  1928. Name (_UID, 0x15) // _UID: Unique ID
  1929. Name (_CRS, ResourceTemplate () // _CRS: Current Resource Settings
  1930. {
  1931. Memory32Fixed (ReadOnly,
  1932. 0xFEB80000, // Address Base
  1933. 0x00080000, // Address Length
  1934. )
  1935. })
  1936. }
  1937.  
  1938. Device (D003)
  1939. {
  1940. Name (_ADR, Zero) // _ADR: Address
  1941. }
  1942.  
  1943. Device (GPP0)
  1944. {
  1945. Name (_ADR, 0x00010001) // _ADR: Address
  1946. Method (_PRW, 0, NotSerialized) // _PRW: Power Resources for Wake
  1947. {
  1948. Return (GPRW (0x08, 0x04))
  1949. }
  1950.  
  1951. Device (HDAU)
  1952. {
  1953. Name (_ADR, One) // _ADR: Address
  1954. Method (_RMV, 0, NotSerialized) // _RMV: Removal Status
  1955. {
  1956. Return (Zero)
  1957. }
  1958. }
  1959.  
  1960. Device (NXHC)
  1961. {
  1962. Name (_ADR, 0x02) // _ADR: Address
  1963. Method (_RMV, 0, NotSerialized) // _RMV: Removal Status
  1964. {
  1965. Return (Zero)
  1966. }
  1967.  
  1968. Device (NHUB)
  1969. {
  1970. Name (_ADR, Zero) // _ADR: Address
  1971. Device (SS01)
  1972. {
  1973. Name (_ADR, One) // _ADR: Address
  1974. Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities
  1975. {
  1976. Name (NUPC, Package (0x04)
  1977. {
  1978. Zero,
  1979. 0xFF,
  1980. Zero,
  1981. Zero
  1982. })
  1983. Return (NUPC) /* \_SB_.PCI0.GPP0.NXHC.NHUB.SS01._UPC.NUPC */
  1984. }
  1985.  
  1986. Method (_PLD, 0, NotSerialized) // _PLD: Physical Location of Device
  1987. {
  1988. Return (NPLD (Zero, One))
  1989. }
  1990. }
  1991.  
  1992. Device (SS02)
  1993. {
  1994. Name (_ADR, 0x02) // _ADR: Address
  1995. Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities
  1996. {
  1997. Name (NUPC, Package (0x04)
  1998. {
  1999. Zero,
  2000. 0xFF,
  2001. Zero,
  2002. Zero
  2003. })
  2004. Return (NUPC) /* \_SB_.PCI0.GPP0.NXHC.NHUB.SS02._UPC.NUPC */
  2005. }
  2006.  
  2007. Method (_PLD, 0, NotSerialized) // _PLD: Physical Location of Device
  2008. {
  2009. Return (NPLD (Zero, 0x02))
  2010. }
  2011. }
  2012.  
  2013. Device (SS03)
  2014. {
  2015. Name (_ADR, 0x03) // _ADR: Address
  2016. Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities
  2017. {
  2018. Name (NUPC, Package (0x04)
  2019. {
  2020. Zero,
  2021. 0xFF,
  2022. Zero,
  2023. Zero
  2024. })
  2025. Return (NUPC) /* \_SB_.PCI0.GPP0.NXHC.NHUB.SS03._UPC.NUPC */
  2026. }
  2027.  
  2028. Method (_PLD, 0, NotSerialized) // _PLD: Physical Location of Device
  2029. {
  2030. Return (NPLD (Zero, 0x03))
  2031. }
  2032. }
  2033.  
  2034. Device (SS04)
  2035. {
  2036. Name (_ADR, 0x04) // _ADR: Address
  2037. Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities
  2038. {
  2039. Name (NUPC, Package (0x04)
  2040. {
  2041. Zero,
  2042. 0xFF,
  2043. Zero,
  2044. Zero
  2045. })
  2046. Return (NUPC) /* \_SB_.PCI0.GPP0.NXHC.NHUB.SS04._UPC.NUPC */
  2047. }
  2048.  
  2049. Method (_PLD, 0, NotSerialized) // _PLD: Physical Location of Device
  2050. {
  2051. Return (NPLD (Zero, 0x04))
  2052. }
  2053. }
  2054.  
  2055. Device (SS05)
  2056. {
  2057. Name (_ADR, 0x05) // _ADR: Address
  2058. Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities
  2059. {
  2060. Name (NUPC, Package (0x04)
  2061. {
  2062. Zero,
  2063. 0xFF,
  2064. Zero,
  2065. Zero
  2066. })
  2067. Return (NUPC) /* \_SB_.PCI0.GPP0.NXHC.NHUB.SS05._UPC.NUPC */
  2068. }
  2069.  
  2070. Method (_PLD, 0, NotSerialized) // _PLD: Physical Location of Device
  2071. {
  2072. Return (NPLD (Zero, 0x05))
  2073. }
  2074. }
  2075.  
  2076. Device (SS06)
  2077. {
  2078. Name (_ADR, 0x06) // _ADR: Address
  2079. Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities
  2080. {
  2081. Name (NUPC, Package (0x04)
  2082. {
  2083. Zero,
  2084. 0xFF,
  2085. Zero,
  2086. Zero
  2087. })
  2088. Return (NUPC) /* \_SB_.PCI0.GPP0.NXHC.NHUB.SS06._UPC.NUPC */
  2089. }
  2090.  
  2091. Method (_PLD, 0, NotSerialized) // _PLD: Physical Location of Device
  2092. {
  2093. Return (NPLD (Zero, 0x06))
  2094. }
  2095. }
  2096. }
  2097.  
  2098. Method (NPLD, 2, Serialized)
  2099. {
  2100. Name (PCKG, Package (0x01)
  2101. {
  2102. Buffer (0x10){}
  2103. })
  2104. CreateField (DerefOf (PCKG [Zero]), Zero, 0x07, REV)
  2105. REV = One
  2106. CreateField (DerefOf (PCKG [Zero]), 0x40, One, VISI)
  2107. VISI = Arg0
  2108. CreateField (DerefOf (PCKG [Zero]), 0x57, 0x08, GPOS)
  2109. GPOS = Arg1
  2110. Return (PCKG) /* \_SB_.PCI0.GPP0.NXHC.NPLD.PCKG */
  2111. }
  2112. }
  2113.  
  2114. Device (USBC)
  2115. {
  2116. Name (_ADR, 0x03) // _ADR: Address
  2117. Method (_RMV, 0, NotSerialized) // _RMV: Removal Status
  2118. {
  2119. Return (Zero)
  2120. }
  2121. }
  2122.  
  2123. Method (MPRW, 0, NotSerialized)
  2124. {
  2125. Return (GPRW (0x08, Zero))
  2126. }
  2127.  
  2128. Method (_PRT, 0, NotSerialized) // _PRT: PCI Routing Table
  2129. {
  2130. If (PICM)
  2131. {
  2132. Return (AR10) /* \_SB_.AR10 */
  2133. }
  2134.  
  2135. Return (PD10) /* \_SB_.PD10 */
  2136. }
  2137.  
  2138. Device (D036)
  2139. {
  2140. Name (_ADR, 0xFF) // _ADR: Address
  2141. }
  2142. }
  2143.  
  2144. Device (GPP1)
  2145. {
  2146. Name (_ADR, 0x00010002) // _ADR: Address
  2147. Method (_PRW, 0, NotSerialized) // _PRW: Power Resources for Wake
  2148. {
  2149. Return (GPRW (0x08, 0x04))
  2150. }
  2151.  
  2152. Device (DEV0)
  2153. {
  2154. Name (_ADR, Zero) // _ADR: Address
  2155. Method (_RMV, 0, NotSerialized) // _RMV: Removal Status
  2156. {
  2157. Return (Zero)
  2158. }
  2159. }
  2160.  
  2161. Device (DEV1)
  2162. {
  2163. Name (_ADR, One) // _ADR: Address
  2164. Method (_RMV, 0, NotSerialized) // _RMV: Removal Status
  2165. {
  2166. Return (Zero)
  2167. }
  2168. }
  2169.  
  2170. Method (MPRW, 0, NotSerialized)
  2171. {
  2172. Return (GPRW (0x08, Zero))
  2173. }
  2174.  
  2175. Method (_PRT, 0, NotSerialized) // _PRT: PCI Routing Table
  2176. {
  2177. If (PICM)
  2178. {
  2179. Return (AR14) /* \_SB_.AR14 */
  2180. }
  2181.  
  2182. Return (PD14) /* \_SB_.PD14 */
  2183. }
  2184.  
  2185. Device (D006)
  2186. {
  2187. Name (_ADR, 0xFF) // _ADR: Address
  2188. }
  2189. }
  2190.  
  2191. Device (GPP2)
  2192. {
  2193. Name (_ADR, 0x00010003) // _ADR: Address
  2194. Method (_PRW, 0, NotSerialized) // _PRW: Power Resources for Wake
  2195. {
  2196. Return (GPRW (0x0D, 0x04))
  2197. }
  2198.  
  2199. Method (MPRW, 0, NotSerialized)
  2200. {
  2201. Return (GPRW (0x0D, Zero))
  2202. }
  2203.  
  2204. Method (_PRT, 0, NotSerialized) // _PRT: PCI Routing Table
  2205. {
  2206. If (PICM)
  2207. {
  2208. Return (AR18) /* \_SB_.AR18 */
  2209. }
  2210.  
  2211. Return (PD18) /* \_SB_.PD18 */
  2212. }
  2213.  
  2214. Device (D008)
  2215. {
  2216. Name (_ADR, 0xFF) // _ADR: Address
  2217. }
  2218. }
  2219.  
  2220. Device (GPP3)
  2221. {
  2222. Name (_ADR, 0x00020001) // _ADR: Address
  2223. Method (_PRW, 0, NotSerialized) // _PRW: Power Resources for Wake
  2224. {
  2225. Return (GPRW (0x0F, 0x04))
  2226. }
  2227.  
  2228. Method (MPRW, 0, NotSerialized)
  2229. {
  2230. Return (GPRW (0x0F, Zero))
  2231. }
  2232.  
  2233. Method (_PRT, 0, NotSerialized) // _PRT: PCI Routing Table
  2234. {
  2235. If (PICM)
  2236. {
  2237. Return (AR1C) /* \_SB_.AR1C */
  2238. }
  2239.  
  2240. Return (PD1C) /* \_SB_.PD1C */
  2241. }
  2242.  
  2243. Device (RTL8)
  2244. {
  2245. Name (_ADR, Zero) // _ADR: Address
  2246. }
  2247.  
  2248. Device (RUSB)
  2249. {
  2250. Name (_ADR, 0x04) // _ADR: Address
  2251. }
  2252. }
  2253.  
  2254. Device (GPP5)
  2255. {
  2256. Name (_ADR, 0x00020003) // _ADR: Address
  2257. Method (_PRW, 0, NotSerialized) // _PRW: Power Resources for Wake
  2258. {
  2259. Return (GPRW (0x08, 0x04))
  2260. }
  2261.  
  2262. Method (MPRW, 0, NotSerialized)
  2263. {
  2264. Return (GPRW (0x08, Zero))
  2265. }
  2266.  
  2267. Method (_PRT, 0, NotSerialized) // _PRT: PCI Routing Table
  2268. {
  2269. If (PICM)
  2270. {
  2271. Return (AR24) /* \_SB_.AR24 */
  2272. }
  2273.  
  2274. Return (PD24) /* \_SB_.PD24 */
  2275. }
  2276.  
  2277. Device (D00B)
  2278. {
  2279. Name (_ADR, 0xFF) // _ADR: Address
  2280. }
  2281. }
  2282.  
  2283. Device (GPP6)
  2284. {
  2285. Name (_ADR, 0x00020004) // _ADR: Address
  2286. Method (_PRT, 0, NotSerialized) // _PRT: PCI Routing Table
  2287. {
  2288. If (PICM)
  2289. {
  2290. Return (AR28) /* \_SB_.AR28 */
  2291. }
  2292.  
  2293. Return (PD28) /* \_SB_.PD28 */
  2294. }
  2295.  
  2296. Device (D00D)
  2297. {
  2298. Name (_ADR, 0xFF) // _ADR: Address
  2299. }
  2300. }
  2301.  
  2302. Device (GP17)
  2303. {
  2304. Name (_ADR, 0x00080001) // _ADR: Address
  2305. Method (_PRW, 0, NotSerialized) // _PRW: Power Resources for Wake
  2306. {
  2307. Return (GPRW (0x19, 0x04))
  2308. }
  2309.  
  2310. Method (MPRW, 0, NotSerialized)
  2311. {
  2312. Return (GPRW (0x19, Zero))
  2313. }
  2314.  
  2315. Method (_PRT, 0, NotSerialized) // _PRT: PCI Routing Table
  2316. {
  2317. If (PICM)
  2318. {
  2319. Return (AR38) /* \_SB_.AR38 */
  2320. }
  2321.  
  2322. Return (PD38) /* \_SB_.PD38 */
  2323. }
  2324.  
  2325. Device (VGA)
  2326. {
  2327. Name (_ADR, Zero) // _ADR: Address
  2328. Name (AF7E, 0x80000001)
  2329. Method (_STA, 0, NotSerialized) // _STA: Status
  2330. {
  2331. Return (0x0F)
  2332. }
  2333.  
  2334. Name (DOSA, Zero)
  2335. Method (_DOS, 1, NotSerialized) // _DOS: Disable Output Switching
  2336. {
  2337. DOSA = Arg0
  2338. }
  2339.  
  2340. Method (_DOD, 0, NotSerialized) // _DOD: Display Output Devices
  2341. {
  2342. Return (Package (0x07)
  2343. {
  2344. 0x00010110,
  2345. 0x00010210,
  2346. 0x00010220,
  2347. 0x00010230,
  2348. 0x00010240,
  2349. 0x00031000,
  2350. 0x00032000
  2351. })
  2352. }
  2353.  
  2354. Device (LCD)
  2355. {
  2356. Name (_ADR, 0x0110) // _ADR: Address
  2357. Name (BCLB, Package (0x34)
  2358. {
  2359. 0x5A,
  2360. 0x3C,
  2361. 0x02,
  2362. 0x04,
  2363. 0x06,
  2364. 0x08,
  2365. 0x0A,
  2366. 0x0C,
  2367. 0x0E,
  2368. 0x10,
  2369. 0x12,
  2370. 0x14,
  2371. 0x16,
  2372. 0x18,
  2373. 0x1A,
  2374. 0x1C,
  2375. 0x1E,
  2376. 0x20,
  2377. 0x22,
  2378. 0x24,
  2379. 0x26,
  2380. 0x28,
  2381. 0x2A,
  2382. 0x2C,
  2383. 0x2E,
  2384. 0x30,
  2385. 0x32,
  2386. 0x34,
  2387. 0x36,
  2388. 0x38,
  2389. 0x3A,
  2390. 0x3C,
  2391. 0x3E,
  2392. 0x40,
  2393. 0x42,
  2394. 0x44,
  2395. 0x46,
  2396. 0x48,
  2397. 0x4A,
  2398. 0x4C,
  2399. 0x4E,
  2400. 0x50,
  2401. 0x52,
  2402. 0x54,
  2403. 0x56,
  2404. 0x58,
  2405. 0x5A,
  2406. 0x5C,
  2407. 0x5E,
  2408. 0x60,
  2409. 0x62,
  2410. 0x64
  2411. })
  2412. Method (_BCL, 0, NotSerialized) // _BCL: Brightness Control Levels
  2413. {
  2414. Return (BCLB) /* \_SB_.PCI0.GP17.VGA_.LCD_.BCLB */
  2415. }
  2416.  
  2417. Method (_BCM, 1, NotSerialized) // _BCM: Brightness Control Method
  2418. {
  2419. If ((AF7E == 0x80000001))
  2420. {
  2421. Divide ((Arg0 * 0xFF), 0x64, Local1, Local0)
  2422. AFN7 (Local0)
  2423. }
  2424. }
  2425. }
  2426. }
  2427.  
  2428. Device (HDAU)
  2429. {
  2430. Name (_ADR, One) // _ADR: Address
  2431. }
  2432.  
  2433. Device (ACP)
  2434. {
  2435. Name (_ADR, 0x05) // _ADR: Address
  2436. }
  2437.  
  2438. Device (AZAL)
  2439. {
  2440. Name (_ADR, 0x06) // _ADR: Address
  2441. }
  2442.  
  2443. Device (MP2C)
  2444. {
  2445. Name (_ADR, 0x07) // _ADR: Address
  2446. }
  2447.  
  2448. Device (XHC0)
  2449. {
  2450. Name (_ADR, 0x03) // _ADR: Address
  2451. Method (_PRW, 0, NotSerialized) // _PRW: Power Resources for Wake
  2452. {
  2453. Return (GPRW (0x19, 0x03))
  2454. }
  2455.  
  2456. Method (MPRW, 0, NotSerialized)
  2457. {
  2458. Return (GPRW (0x19, Zero))
  2459. }
  2460. }
  2461.  
  2462. Device (XHC1)
  2463. {
  2464. Name (_ADR, 0x04) // _ADR: Address
  2465. Method (_PRW, 0, NotSerialized) // _PRW: Power Resources for Wake
  2466. {
  2467. Return (GPRW (0x19, 0x03))
  2468. }
  2469.  
  2470. Method (MPRW, 0, NotSerialized)
  2471. {
  2472. Return (GPRW (0x19, Zero))
  2473. }
  2474. }
  2475.  
  2476. Device (APSP)
  2477. {
  2478. Name (_ADR, 0x02) // _ADR: Address
  2479. Name (_HID, EisaId ("PNP0C02") /* PNP Motherboard Resources */) // _HID: Hardware ID
  2480. Name (PSPA, 0xFD000000)
  2481. Name (LENA, 0x01000000)
  2482. Name (PSPB, 0x00000000)
  2483. Name (LENB, 0x00000000)
  2484. Name (_STA, 0x0F) // _STA: Status
  2485. Name (CRS, ResourceTemplate ()
  2486. {
  2487. Memory32Fixed (ReadWrite,
  2488. 0x00000000, // Address Base
  2489. 0x00000000, // Address Length
  2490. _Y0F)
  2491. Memory32Fixed (ReadWrite,
  2492. 0x00000000, // Address Base
  2493. 0x00000000, // Address Length
  2494. _Y10)
  2495. })
  2496. Method (_CRS, 0, NotSerialized) // _CRS: Current Resource Settings
  2497. {
  2498. CreateDWordField (CRS, \_SB.PCI0.GP17.APSP._Y0F._BAS, ABAS) // _BAS: Base Address
  2499. CreateDWordField (CRS, \_SB.PCI0.GP17.APSP._Y0F._LEN, ALEN) // _LEN: Length
  2500. CreateDWordField (CRS, \_SB.PCI0.GP17.APSP._Y10._BAS, BBAS) // _BAS: Base Address
  2501. CreateDWordField (CRS, \_SB.PCI0.GP17.APSP._Y10._LEN, BLEN) // _LEN: Length
  2502. ABAS = PSPA /* \_SB_.PCI0.GP17.APSP.PSPA */
  2503. ALEN = LENA /* \_SB_.PCI0.GP17.APSP.LENA */
  2504. BBAS = PSPB /* \_SB_.PCI0.GP17.APSP.PSPB */
  2505. BLEN = LENB /* \_SB_.PCI0.GP17.APSP.LENB */
  2506. Return (CRS) /* \_SB_.PCI0.GP17.APSP.CRS_ */
  2507. }
  2508. }
  2509. }
  2510.  
  2511. Device (GP18)
  2512. {
  2513. Name (_ADR, 0x00080002) // _ADR: Address
  2514. Method (_PRW, 0, NotSerialized) // _PRW: Power Resources for Wake
  2515. {
  2516. Return (GPRW (0x08, 0x04))
  2517. }
  2518.  
  2519. Method (_PRT, 0, NotSerialized) // _PRT: PCI Routing Table
  2520. {
  2521. If (PICM)
  2522. {
  2523. Return (AR39) /* \_SB_.AR39 */
  2524. }
  2525.  
  2526. Return (PD39) /* \_SB_.PD39 */
  2527. }
  2528.  
  2529. Device (SATA)
  2530. {
  2531. Name (_ADR, Zero) // _ADR: Address
  2532. }
  2533.  
  2534. Device (SAT1)
  2535. {
  2536. Name (_ADR, One) // _ADR: Address
  2537. }
  2538. }
  2539.  
  2540. Device (GP19)
  2541. {
  2542. Name (_ADR, 0x00080003) // _ADR: Address
  2543. Method (_PRW, 0, NotSerialized) // _PRW: Power Resources for Wake
  2544. {
  2545. Return (GPRW (0x08, 0x04))
  2546. }
  2547.  
  2548. Method (MPRW, 0, NotSerialized)
  2549. {
  2550. Return (GPRW (0x08, Zero))
  2551. }
  2552.  
  2553. Method (_PRT, 0, NotSerialized) // _PRT: PCI Routing Table
  2554. {
  2555. If (PICM)
  2556. {
  2557. Return (AR3A) /* \_SB_.AR3A */
  2558. }
  2559.  
  2560. Return (PD3A) /* \_SB_.PD3A */
  2561. }
  2562.  
  2563. Device (D024)
  2564. {
  2565. Name (_ADR, Zero) // _ADR: Address
  2566. }
  2567.  
  2568. Device (D025)
  2569. {
  2570. Name (_ADR, One) // _ADR: Address
  2571. }
  2572.  
  2573. Device (D026)
  2574. {
  2575. Name (_ADR, 0x02) // _ADR: Address
  2576. }
  2577. }
  2578.  
  2579. Device (D01C)
  2580. {
  2581. Name (_ADR, 0x00140000) // _ADR: Address
  2582. }
  2583.  
  2584. Device (SBRG)
  2585. {
  2586. Name (_ADR, 0x00140003) // _ADR: Address
  2587. Device (PIC)
  2588. {
  2589. Name (_HID, EisaId ("PNP0000") /* 8259-compatible Programmable Interrupt Controller */) // _HID: Hardware ID
  2590. Name (_CRS, ResourceTemplate () // _CRS: Current Resource Settings
  2591. {
  2592. IO (Decode16,
  2593. 0x0020, // Range Minimum
  2594. 0x0020, // Range Maximum
  2595. 0x00, // Alignment
  2596. 0x02, // Length
  2597. )
  2598. IO (Decode16,
  2599. 0x00A0, // Range Minimum
  2600. 0x00A0, // Range Maximum
  2601. 0x00, // Alignment
  2602. 0x02, // Length
  2603. )
  2604. IRQNoFlags ()
  2605. {2}
  2606. })
  2607. }
  2608.  
  2609. Device (DMAD)
  2610. {
  2611. Name (_HID, EisaId ("PNP0200") /* PC-class DMA Controller */) // _HID: Hardware ID
  2612. Name (_CRS, ResourceTemplate () // _CRS: Current Resource Settings
  2613. {
  2614. DMA (Compatibility, BusMaster, Transfer8, )
  2615. {4}
  2616. IO (Decode16,
  2617. 0x0000, // Range Minimum
  2618. 0x0000, // Range Maximum
  2619. 0x00, // Alignment
  2620. 0x10, // Length
  2621. )
  2622. IO (Decode16,
  2623. 0x0081, // Range Minimum
  2624. 0x0081, // Range Maximum
  2625. 0x00, // Alignment
  2626. 0x03, // Length
  2627. )
  2628. IO (Decode16,
  2629. 0x0087, // Range Minimum
  2630. 0x0087, // Range Maximum
  2631. 0x00, // Alignment
  2632. 0x01, // Length
  2633. )
  2634. IO (Decode16,
  2635. 0x0089, // Range Minimum
  2636. 0x0089, // Range Maximum
  2637. 0x00, // Alignment
  2638. 0x03, // Length
  2639. )
  2640. IO (Decode16,
  2641. 0x008F, // Range Minimum
  2642. 0x008F, // Range Maximum
  2643. 0x00, // Alignment
  2644. 0x01, // Length
  2645. )
  2646. IO (Decode16,
  2647. 0x00C0, // Range Minimum
  2648. 0x00C0, // Range Maximum
  2649. 0x00, // Alignment
  2650. 0x20, // Length
  2651. )
  2652. })
  2653. }
  2654.  
  2655. Device (TMR)
  2656. {
  2657. Name (_HID, EisaId ("PNP0100") /* PC-class System Timer */) // _HID: Hardware ID
  2658. Name (_CRS, ResourceTemplate () // _CRS: Current Resource Settings
  2659. {
  2660. IO (Decode16,
  2661. 0x0040, // Range Minimum
  2662. 0x0040, // Range Maximum
  2663. 0x00, // Alignment
  2664. 0x04, // Length
  2665. )
  2666. IRQNoFlags ()
  2667. {0}
  2668. })
  2669. }
  2670.  
  2671. Device (RTC0)
  2672. {
  2673. Name (_HID, EisaId ("PNP0B00") /* AT Real-Time Clock */) // _HID: Hardware ID
  2674. Name (BUF0, ResourceTemplate ()
  2675. {
  2676. IO (Decode16,
  2677. 0x0070, // Range Minimum
  2678. 0x0070, // Range Maximum
  2679. 0x00, // Alignment
  2680. 0x02, // Length
  2681. )
  2682. })
  2683. Name (BUF1, ResourceTemplate ()
  2684. {
  2685. IO (Decode16,
  2686. 0x0070, // Range Minimum
  2687. 0x0070, // Range Maximum
  2688. 0x00, // Alignment
  2689. 0x02, // Length
  2690. )
  2691. IRQNoFlags ()
  2692. {8}
  2693. })
  2694. Method (_CRS, 0, Serialized) // _CRS: Current Resource Settings
  2695. {
  2696. If ((HPEN == One))
  2697. {
  2698. Return (BUF0) /* \_SB_.PCI0.SBRG.RTC0.BUF0 */
  2699. }
  2700.  
  2701. Return (BUF1) /* \_SB_.PCI0.SBRG.RTC0.BUF1 */
  2702. }
  2703. }
  2704.  
  2705. Device (SPKR)
  2706. {
  2707. Name (_HID, EisaId ("PNP0800") /* Microsoft Sound System Compatible Device */) // _HID: Hardware ID
  2708. Name (_CRS, ResourceTemplate () // _CRS: Current Resource Settings
  2709. {
  2710. IO (Decode16,
  2711. 0x0061, // Range Minimum
  2712. 0x0061, // Range Maximum
  2713. 0x00, // Alignment
  2714. 0x01, // Length
  2715. )
  2716. })
  2717. }
  2718.  
  2719. OperationRegion (SMI0, SystemIO, SMIO, One)
  2720. Field (SMI0, ByteAcc, NoLock, Preserve)
  2721. {
  2722. SMIC, 8
  2723. }
  2724.  
  2725. Scope (\_SB)
  2726. {
  2727. Scope (PCI0)
  2728. {
  2729. Device (S900)
  2730. {
  2731. Name (_HID, EisaId ("PNP0C02") /* PNP Motherboard Resources */) // _HID: Hardware ID
  2732. Name (_UID, 0x0700) // _UID: Unique ID
  2733. Name (_STA, 0x0F) // _STA: Status
  2734. Name (CRS, ResourceTemplate ()
  2735. {
  2736. IO (Decode16,
  2737. 0x0010, // Range Minimum
  2738. 0x0010, // Range Maximum
  2739. 0x00, // Alignment
  2740. 0x10, // Length
  2741. )
  2742. IO (Decode16,
  2743. 0x0022, // Range Minimum
  2744. 0x0022, // Range Maximum
  2745. 0x00, // Alignment
  2746. 0x1E, // Length
  2747. )
  2748. IO (Decode16,
  2749. 0x0063, // Range Minimum
  2750. 0x0063, // Range Maximum
  2751. 0x00, // Alignment
  2752. 0x01, // Length
  2753. )
  2754. IO (Decode16,
  2755. 0x0065, // Range Minimum
  2756. 0x0065, // Range Maximum
  2757. 0x00, // Alignment
  2758. 0x01, // Length
  2759. )
  2760. IO (Decode16,
  2761. 0x0067, // Range Minimum
  2762. 0x0067, // Range Maximum
  2763. 0x00, // Alignment
  2764. 0x09, // Length
  2765. )
  2766. IO (Decode16,
  2767. 0x0072, // Range Minimum
  2768. 0x0072, // Range Maximum
  2769. 0x00, // Alignment
  2770. 0x0E, // Length
  2771. )
  2772. IO (Decode16,
  2773. 0x0080, // Range Minimum
  2774. 0x0080, // Range Maximum
  2775. 0x00, // Alignment
  2776. 0x01, // Length
  2777. )
  2778. IO (Decode16,
  2779. 0x0084, // Range Minimum
  2780. 0x0084, // Range Maximum
  2781. 0x00, // Alignment
  2782. 0x03, // Length
  2783. )
  2784. IO (Decode16,
  2785. 0x0088, // Range Minimum
  2786. 0x0088, // Range Maximum
  2787. 0x00, // Alignment
  2788. 0x01, // Length
  2789. )
  2790. IO (Decode16,
  2791. 0x008C, // Range Minimum
  2792. 0x008C, // Range Maximum
  2793. 0x00, // Alignment
  2794. 0x03, // Length
  2795. )
  2796. IO (Decode16,
  2797. 0x0090, // Range Minimum
  2798. 0x0090, // Range Maximum
  2799. 0x00, // Alignment
  2800. 0x10, // Length
  2801. )
  2802. IO (Decode16,
  2803. 0x00A2, // Range Minimum
  2804. 0x00A2, // Range Maximum
  2805. 0x00, // Alignment
  2806. 0x1E, // Length
  2807. )
  2808. IO (Decode16,
  2809. 0x00B1, // Range Minimum
  2810. 0x00B1, // Range Maximum
  2811. 0x00, // Alignment
  2812. 0x01, // Length
  2813. )
  2814. IO (Decode16,
  2815. 0x00E0, // Range Minimum
  2816. 0x00E0, // Range Maximum
  2817. 0x00, // Alignment
  2818. 0x10, // Length
  2819. )
  2820. IO (Decode16,
  2821. 0x04D0, // Range Minimum
  2822. 0x04D0, // Range Maximum
  2823. 0x00, // Alignment
  2824. 0x02, // Length
  2825. )
  2826. IO (Decode16,
  2827. 0x040B, // Range Minimum
  2828. 0x040B, // Range Maximum
  2829. 0x00, // Alignment
  2830. 0x01, // Length
  2831. )
  2832. IO (Decode16,
  2833. 0x04D6, // Range Minimum
  2834. 0x04D6, // Range Maximum
  2835. 0x00, // Alignment
  2836. 0x01, // Length
  2837. )
  2838. IO (Decode16,
  2839. 0x0C00, // Range Minimum
  2840. 0x0C00, // Range Maximum
  2841. 0x00, // Alignment
  2842. 0x02, // Length
  2843. )
  2844. IO (Decode16,
  2845. 0x0C14, // Range Minimum
  2846. 0x0C14, // Range Maximum
  2847. 0x00, // Alignment
  2848. 0x01, // Length
  2849. )
  2850. IO (Decode16,
  2851. 0x0C50, // Range Minimum
  2852. 0x0C50, // Range Maximum
  2853. 0x00, // Alignment
  2854. 0x02, // Length
  2855. )
  2856. IO (Decode16,
  2857. 0x0C52, // Range Minimum
  2858. 0x0C52, // Range Maximum
  2859. 0x00, // Alignment
  2860. 0x01, // Length
  2861. )
  2862. IO (Decode16,
  2863. 0x0C6C, // Range Minimum
  2864. 0x0C6C, // Range Maximum
  2865. 0x00, // Alignment
  2866. 0x01, // Length
  2867. )
  2868. IO (Decode16,
  2869. 0x0C6F, // Range Minimum
  2870. 0x0C6F, // Range Maximum
  2871. 0x00, // Alignment
  2872. 0x01, // Length
  2873. )
  2874. IO (Decode16,
  2875. 0x0CD0, // Range Minimum
  2876. 0x0CD0, // Range Maximum
  2877. 0x00, // Alignment
  2878. 0x02, // Length
  2879. )
  2880. IO (Decode16,
  2881. 0x0CD2, // Range Minimum
  2882. 0x0CD2, // Range Maximum
  2883. 0x00, // Alignment
  2884. 0x02, // Length
  2885. )
  2886. IO (Decode16,
  2887. 0x0CD4, // Range Minimum
  2888. 0x0CD4, // Range Maximum
  2889. 0x00, // Alignment
  2890. 0x02, // Length
  2891. )
  2892. IO (Decode16,
  2893. 0x0CD6, // Range Minimum
  2894. 0x0CD6, // Range Maximum
  2895. 0x00, // Alignment
  2896. 0x02, // Length
  2897. )
  2898. IO (Decode16,
  2899. 0x0CD8, // Range Minimum
  2900. 0x0CD8, // Range Maximum
  2901. 0x00, // Alignment
  2902. 0x08, // Length
  2903. )
  2904. IO (Decode16,
  2905. 0x0000, // Range Minimum
  2906. 0x0000, // Range Maximum
  2907. 0x00, // Alignment
  2908. 0x00, // Length
  2909. _Y11)
  2910. IO (Decode16,
  2911. 0x0000, // Range Minimum
  2912. 0x0000, // Range Maximum
  2913. 0x00, // Alignment
  2914. 0x00, // Length
  2915. _Y13)
  2916. IO (Decode16,
  2917. 0x0000, // Range Minimum
  2918. 0x0000, // Range Maximum
  2919. 0x00, // Alignment
  2920. 0x00, // Length
  2921. _Y12)
  2922. IO (Decode16,
  2923. 0x0900, // Range Minimum
  2924. 0x0900, // Range Maximum
  2925. 0x00, // Alignment
  2926. 0x10, // Length
  2927. )
  2928. IO (Decode16,
  2929. 0x0910, // Range Minimum
  2930. 0x0910, // Range Maximum
  2931. 0x00, // Alignment
  2932. 0x10, // Length
  2933. )
  2934. IO (Decode16,
  2935. 0x0060, // Range Minimum
  2936. 0x0060, // Range Maximum
  2937. 0x00, // Alignment
  2938. 0x00, // Length
  2939. )
  2940. IO (Decode16,
  2941. 0x0064, // Range Minimum
  2942. 0x0064, // Range Maximum
  2943. 0x00, // Alignment
  2944. 0x00, // Length
  2945. )
  2946. Memory32Fixed (ReadWrite,
  2947. 0x00000000, // Address Base
  2948. 0x00000000, // Address Length
  2949. _Y14)
  2950. Memory32Fixed (ReadWrite,
  2951. 0xFEC01000, // Address Base
  2952. 0x00001000, // Address Length
  2953. )
  2954. Memory32Fixed (ReadWrite,
  2955. 0xFEDC0000, // Address Base
  2956. 0x00001000, // Address Length
  2957. )
  2958. Memory32Fixed (ReadWrite,
  2959. 0xFEE00000, // Address Base
  2960. 0x00001000, // Address Length
  2961. )
  2962. Memory32Fixed (ReadWrite,
  2963. 0xFED80000, // Address Base
  2964. 0x00010000, // Address Length
  2965. )
  2966. Memory32Fixed (ReadWrite,
  2967. 0x00000000, // Address Base
  2968. 0x00000000, // Address Length
  2969. _Y15)
  2970. Memory32Fixed (ReadWrite,
  2971. 0x00000000, // Address Base
  2972. 0x00000000, // Address Length
  2973. _Y16)
  2974. Memory32Fixed (ReadWrite,
  2975. 0x00000000, // Address Base
  2976. 0x00000000, // Address Length
  2977. _Y17)
  2978. })
  2979. Method (_CRS, 0, NotSerialized) // _CRS: Current Resource Settings
  2980. {
  2981. CreateWordField (CRS, \_SB.PCI0.S900._Y11._MIN, PBB) // _MIN: Minimum Base Address
  2982. CreateWordField (CRS, \_SB.PCI0.S900._Y11._MAX, PBH) // _MAX: Maximum Base Address
  2983. CreateByteField (CRS, \_SB.PCI0.S900._Y11._LEN, PML) // _LEN: Length
  2984. PBB = PMBS /* \PMBS */
  2985. PBH = PMBS /* \PMBS */
  2986. PML = PMLN /* \PMLN */
  2987. If (SMBB)
  2988. {
  2989. CreateWordField (CRS, \_SB.PCI0.S900._Y12._MIN, SMB1) // _MIN: Minimum Base Address
  2990. CreateWordField (CRS, \_SB.PCI0.S900._Y12._MAX, SMH1) // _MAX: Maximum Base Address
  2991. CreateByteField (CRS, \_SB.PCI0.S900._Y12._LEN, SML1) // _LEN: Length
  2992. SMB1 = SMBB /* \SMBB */
  2993. SMH1 = SMBB /* \SMBB */
  2994. SML1 = SMBL /* \SMBL */
  2995. CreateWordField (CRS, \_SB.PCI0.S900._Y13._MIN, SMBZ) // _MIN: Minimum Base Address
  2996. CreateWordField (CRS, \_SB.PCI0.S900._Y13._MAX, SMH0) // _MAX: Maximum Base Address
  2997. CreateByteField (CRS, \_SB.PCI0.S900._Y13._LEN, SML0) // _LEN: Length
  2998. SMBZ = SMB0 /* \SMB0 */
  2999. SMH0 = SMB0 /* \SMB0 */
  3000. SML0 = SMBM /* \SMBM */
  3001. }
  3002.  
  3003. If (APCB)
  3004. {
  3005. CreateDWordField (CRS, \_SB.PCI0.S900._Y14._BAS, APB) // _BAS: Base Address
  3006. CreateDWordField (CRS, \_SB.PCI0.S900._Y14._LEN, APL) // _LEN: Length
  3007. APB = APCB /* \APCB */
  3008. APL = APCL /* \APCL */
  3009. }
  3010.  
  3011. CreateDWordField (CRS, \_SB.PCI0.S900._Y15._BAS, SPIB) // _BAS: Base Address
  3012. CreateDWordField (CRS, \_SB.PCI0.S900._Y15._LEN, SPIL) // _LEN: Length
  3013. SPIB = 0xFEC10000
  3014. SPIL = 0x1000
  3015. If (WDTB)
  3016. {
  3017. CreateDWordField (CRS, \_SB.PCI0.S900._Y16._BAS, WDTB) // _BAS: Base Address
  3018. CreateDWordField (CRS, \_SB.PCI0.S900._Y16._LEN, WDTL) // _LEN: Length
  3019. WDTB = \WDTB
  3020. WDTL = \WDTL
  3021. }
  3022.  
  3023. CreateDWordField (CRS, \_SB.PCI0.S900._Y17._BAS, ROMB) // _BAS: Base Address
  3024. CreateDWordField (CRS, \_SB.PCI0.S900._Y17._LEN, ROML) // _LEN: Length
  3025. ROMB = 0xFF000000
  3026. ROML = 0x01000000
  3027. Return (CRS) /* \_SB_.PCI0.S900.CRS_ */
  3028. }
  3029. }
  3030. }
  3031. }
  3032.  
  3033. Scope (\_SB)
  3034. {
  3035. Scope (PCI0)
  3036. {
  3037. Scope (SBRG)
  3038. {
  3039. Method (RRIO, 4, NotSerialized)
  3040. {
  3041. Debug = "RRIO"
  3042. }
  3043.  
  3044. Method (RDMA, 3, NotSerialized)
  3045. {
  3046. Debug = "rDMA"
  3047. }
  3048. }
  3049. }
  3050. }
  3051. }
  3052.  
  3053. Device (D01F)
  3054. {
  3055. Name (_ADR, 0x00140006) // _ADR: Address
  3056. }
  3057.  
  3058. Device (GPP4)
  3059. {
  3060. Name (_ADR, 0x00020002) // _ADR: Address
  3061. Method (MPRW, 0, NotSerialized)
  3062. {
  3063. Return (GPRW (0x0E, Zero))
  3064. }
  3065.  
  3066. Method (_PRT, 0, NotSerialized) // _PRT: PCI Routing Table
  3067. {
  3068. If (PICM)
  3069. {
  3070. Return (AR20) /* \_SB_.AR20 */
  3071. }
  3072.  
  3073. Return (PD20) /* \_SB_.PD20 */
  3074. }
  3075.  
  3076. Device (WLAN)
  3077. {
  3078. Name (_ADR, Zero) // _ADR: Address
  3079. }
  3080. }
  3081. }
  3082. }
  3083.  
  3084. Scope (_GPE)
  3085. {
  3086. Method (_L08, 0, NotSerialized) // _Lxx: Level-Triggered GPE, xx=0x00-0xFF
  3087. {
  3088. Notify (\_SB.PCI0.GPP0, 0x02) // Device Wake
  3089. Notify (\_SB.PCI0.GPP1, 0x02) // Device Wake
  3090. Notify (\_SB.PCI0.GPP5, 0x02) // Device Wake
  3091. Notify (\_SB.PCI0.GP18, 0x02) // Device Wake
  3092. Notify (\_SB.PWRB, 0x02) // Device Wake
  3093. }
  3094.  
  3095. Method (_L0D, 0, NotSerialized) // _Lxx: Level-Triggered GPE, xx=0x00-0xFF
  3096. {
  3097. Notify (\_SB.PCI0.GPP2, 0x02) // Device Wake
  3098. Notify (\_SB.PWRB, 0x02) // Device Wake
  3099. }
  3100.  
  3101. Method (_L0F, 0, NotSerialized) // _Lxx: Level-Triggered GPE, xx=0x00-0xFF
  3102. {
  3103. Notify (\_SB.PCI0.GPP3, 0x02) // Device Wake
  3104. Notify (\_SB.PWRB, 0x02) // Device Wake
  3105. }
  3106.  
  3107. Method (_L19, 0, NotSerialized) // _Lxx: Level-Triggered GPE, xx=0x00-0xFF
  3108. {
  3109. Notify (\_SB.PCI0.GP17, 0x02) // Device Wake
  3110. Notify (\_SB.PCI0.GP17.XHC0, 0x02) // Device Wake
  3111. Notify (\_SB.PCI0.GP17.XHC1, 0x02) // Device Wake
  3112. Notify (\_SB.PWRB, 0x02) // Device Wake
  3113. }
  3114. }
  3115.  
  3116. Scope (_SB)
  3117. {
  3118. Device (PWRB)
  3119. {
  3120. Name (_HID, EisaId ("PNP0C0C") /* Power Button Device */) // _HID: Hardware ID
  3121. Name (_UID, 0xAA) // _UID: Unique ID
  3122. Name (_STA, 0x0B) // _STA: Status
  3123. }
  3124. }
  3125.  
  3126. Name (_S0, Package (0x04) // _S0_: S0 System State
  3127. {
  3128. Zero,
  3129. Zero,
  3130. Zero,
  3131. Zero
  3132. })
  3133. Name (_S3, Package (0x04) // _S3_: S3 System State
  3134. {
  3135. 0x03,
  3136. Zero,
  3137. Zero,
  3138. Zero
  3139. })
  3140. Name (_S4, Package (0x04) // _S4_: S4 System State
  3141. {
  3142. 0x04,
  3143. Zero,
  3144. Zero,
  3145. Zero
  3146. })
  3147. Name (_S5, Package (0x04) // _S5_: S5 System State
  3148. {
  3149. 0x05,
  3150. Zero,
  3151. Zero,
  3152. Zero
  3153. })
  3154. Method (_PTS, 1, NotSerialized) // _PTS: Prepare To Sleep
  3155. {
  3156. If (Arg0)
  3157. {
  3158. \_SB.PCI0.SBRG.EC0.EC0S (Arg0)
  3159. SBDS (Arg0)
  3160. \_SB.TPM.TPTS (Arg0)
  3161. SPTS (Arg0)
  3162. \_SB.PCI0.NPTS (Arg0)
  3163. }
  3164. }
  3165.  
  3166. Method (_WAK, 1, NotSerialized) // _WAK: Wake
  3167. {
  3168. DBG8 = (Arg0 << 0x04)
  3169. \_SB.PCI0.NWAK (Arg0)
  3170. If (((Arg0 == 0x03) || (Arg0 == 0x04)))
  3171. {
  3172. If ((PICM != Zero))
  3173. {
  3174. \_SB.PCI0.NAPE ()
  3175. }
  3176. }
  3177.  
  3178. DBG8 = (Arg0 << 0x04)
  3179. SWAK (Arg0)
  3180. SBDW (Arg0)
  3181. \_SB.PCI0.SBRG.EC0.EC0W (Arg0)
  3182. Return (WAKP) /* \WAKP */
  3183. }
  3184.  
  3185. Scope (_SB)
  3186. {
  3187. Device (PLTF)
  3188. {
  3189. Name (_HID, "ACPI0010" /* Processor Container Device */) // _HID: Hardware ID
  3190. Name (_CID, EisaId ("PNP0A05") /* Generic Container Device */) // _CID: Compatible ID
  3191. Name (_UID, One) // _UID: Unique ID
  3192. Device (P000)
  3193. {
  3194. Name (_HID, "ACPI0007" /* Processor Device */) // _HID: Hardware ID
  3195. Name (_UID, One) // _UID: Unique ID
  3196. }
  3197.  
  3198. Device (P001)
  3199. {
  3200. Name (_HID, "ACPI0007" /* Processor Device */) // _HID: Hardware ID
  3201. Name (_UID, 0x02) // _UID: Unique ID
  3202. }
  3203.  
  3204. Device (P002)
  3205. {
  3206. Name (_HID, "ACPI0007" /* Processor Device */) // _HID: Hardware ID
  3207. Name (_UID, 0x03) // _UID: Unique ID
  3208. }
  3209.  
  3210. Device (P003)
  3211. {
  3212. Name (_HID, "ACPI0007" /* Processor Device */) // _HID: Hardware ID
  3213. Name (_UID, 0x04) // _UID: Unique ID
  3214. }
  3215.  
  3216. Device (P004)
  3217. {
  3218. Name (_HID, "ACPI0007" /* Processor Device */) // _HID: Hardware ID
  3219. Name (_UID, 0x05) // _UID: Unique ID
  3220. }
  3221.  
  3222. Device (P005)
  3223. {
  3224. Name (_HID, "ACPI0007" /* Processor Device */) // _HID: Hardware ID
  3225. Name (_UID, 0x06) // _UID: Unique ID
  3226. }
  3227.  
  3228. Device (P006)
  3229. {
  3230. Name (_HID, "ACPI0007" /* Processor Device */) // _HID: Hardware ID
  3231. Name (_UID, 0x07) // _UID: Unique ID
  3232. }
  3233.  
  3234. Device (P007)
  3235. {
  3236. Name (_HID, "ACPI0007" /* Processor Device */) // _HID: Hardware ID
  3237. Name (_UID, 0x08) // _UID: Unique ID
  3238. }
  3239.  
  3240. Device (P008)
  3241. {
  3242. Name (_HID, "ACPI0007" /* Processor Device */) // _HID: Hardware ID
  3243. Name (_UID, 0x09) // _UID: Unique ID
  3244. }
  3245.  
  3246. Device (P009)
  3247. {
  3248. Name (_HID, "ACPI0007" /* Processor Device */) // _HID: Hardware ID
  3249. Name (_UID, 0x0A) // _UID: Unique ID
  3250. }
  3251.  
  3252. Device (P00A)
  3253. {
  3254. Name (_HID, "ACPI0007" /* Processor Device */) // _HID: Hardware ID
  3255. Name (_UID, 0x0B) // _UID: Unique ID
  3256. }
  3257.  
  3258. Device (P00B)
  3259. {
  3260. Name (_HID, "ACPI0007" /* Processor Device */) // _HID: Hardware ID
  3261. Name (_UID, 0x0C) // _UID: Unique ID
  3262. }
  3263.  
  3264. Device (P00C)
  3265. {
  3266. Name (_HID, "ACPI0007" /* Processor Device */) // _HID: Hardware ID
  3267. Name (_UID, 0x0D) // _UID: Unique ID
  3268. }
  3269.  
  3270. Device (P00D)
  3271. {
  3272. Name (_HID, "ACPI0007" /* Processor Device */) // _HID: Hardware ID
  3273. Name (_UID, 0x0E) // _UID: Unique ID
  3274. }
  3275.  
  3276. Device (P00E)
  3277. {
  3278. Name (_HID, "ACPI0007" /* Processor Device */) // _HID: Hardware ID
  3279. Name (_UID, 0x0F) // _UID: Unique ID
  3280. }
  3281.  
  3282. Device (P00F)
  3283. {
  3284. Name (_HID, "ACPI0007" /* Processor Device */) // _HID: Hardware ID
  3285. Name (_UID, 0x10) // _UID: Unique ID
  3286. }
  3287. }
  3288. }
  3289.  
  3290. Scope (_SB)
  3291. {
  3292. OperationRegion (PIRQ, SystemIO, 0x0C00, 0x02)
  3293. Field (PIRQ, ByteAcc, NoLock, Preserve)
  3294. {
  3295. PIDX, 8,
  3296. PDAT, 8
  3297. }
  3298.  
  3299. IndexField (PIDX, PDAT, ByteAcc, NoLock, Preserve)
  3300. {
  3301. PIRA, 8,
  3302. PIRB, 8,
  3303. PIRC, 8,
  3304. PIRD, 8,
  3305. PIRE, 8,
  3306. PIRF, 8,
  3307. PIRG, 8,
  3308. PIRH, 8,
  3309. Offset (0x0C),
  3310. SIRA, 8,
  3311. SIRB, 8,
  3312. SIRC, 8,
  3313. SIRD, 8,
  3314. PIRS, 8,
  3315. Offset (0x13),
  3316. HDAD, 8,
  3317. Offset (0x17),
  3318. SDCL, 8,
  3319. Offset (0x1A),
  3320. SDIO, 8,
  3321. Offset (0x30),
  3322. USB1, 8,
  3323. Offset (0x34),
  3324. USB3, 8,
  3325. Offset (0x41),
  3326. SATA, 8,
  3327. Offset (0x62),
  3328. GIOC, 8,
  3329. Offset (0x70),
  3330. I2C0, 8,
  3331. I2C1, 8,
  3332. I2C2, 8,
  3333. I2C3, 8,
  3334. URT0, 8,
  3335. URT1, 8,
  3336. Offset (0x80),
  3337. AIRA, 8,
  3338. AIRB, 8,
  3339. AIRC, 8,
  3340. AIRD, 8,
  3341. AIRE, 8,
  3342. AIRF, 8,
  3343. AIRG, 8,
  3344. AIRH, 8
  3345. }
  3346.  
  3347. OperationRegion (KBDD, SystemIO, 0x64, One)
  3348. Field (KBDD, ByteAcc, NoLock, Preserve)
  3349. {
  3350. PD64, 8
  3351. }
  3352.  
  3353. Method (DSPI, 0, NotSerialized)
  3354. {
  3355. INTA (0x1F)
  3356. INTB (0x1F)
  3357. INTC (0x1F)
  3358. INTD (0x1F)
  3359. Local1 = PD64 /* \_SB_.PD64 */
  3360. PIRE = 0x1F
  3361. PIRF = 0x1F
  3362. PIRG = 0x1F
  3363. PIRH = 0x1F
  3364. Local1 = PD64 /* \_SB_.PD64 */
  3365. AIRA = 0x10
  3366. AIRB = 0x11
  3367. AIRC = 0x12
  3368. AIRD = 0x13
  3369. AIRE = 0x14
  3370. AIRF = 0x15
  3371. AIRG = 0x16
  3372. AIRH = 0x17
  3373. }
  3374.  
  3375. Method (INTA, 1, NotSerialized)
  3376. {
  3377. PIRA = Arg0
  3378. HDAD = Arg0
  3379. }
  3380.  
  3381. Method (INTB, 1, NotSerialized)
  3382. {
  3383. PIRB = Arg0
  3384. }
  3385.  
  3386. Method (INTC, 1, NotSerialized)
  3387. {
  3388. PIRC = Arg0
  3389. USB1 = Arg0
  3390. USB3 = Arg0
  3391. }
  3392.  
  3393. Method (INTD, 1, NotSerialized)
  3394. {
  3395. PIRD = Arg0
  3396. SATA = Arg0
  3397. }
  3398.  
  3399. Name (BUFA, ResourceTemplate ()
  3400. {
  3401. IRQ (Level, ActiveLow, Shared, )
  3402. {15}
  3403. })
  3404. Name (IPRA, ResourceTemplate ()
  3405. {
  3406. IRQ (Level, ActiveLow, Shared, )
  3407. {5,10,11}
  3408. })
  3409. Name (IPRB, ResourceTemplate ()
  3410. {
  3411. IRQ (Level, ActiveLow, Shared, )
  3412. {5,10,11}
  3413. })
  3414. Name (IPRC, ResourceTemplate ()
  3415. {
  3416. IRQ (Level, ActiveLow, Shared, )
  3417. {5,10,11}
  3418. })
  3419. Name (IPRD, ResourceTemplate ()
  3420. {
  3421. IRQ (Level, ActiveLow, Shared, )
  3422. {5,10,11}
  3423. })
  3424. Device (LNKA)
  3425. {
  3426. Name (_HID, EisaId ("PNP0C0F") /* PCI Interrupt Link Device */) // _HID: Hardware ID
  3427. Name (_UID, One) // _UID: Unique ID
  3428. Method (_STA, 0, NotSerialized) // _STA: Status
  3429. {
  3430. If (PIRA)
  3431. {
  3432. Return (0x0B)
  3433. }
  3434. Else
  3435. {
  3436. Return (0x09)
  3437. }
  3438. }
  3439.  
  3440. Method (_PRS, 0, NotSerialized) // _PRS: Possible Resource Settings
  3441. {
  3442. Return (PRSA) /* \_SB_.PRSA */
  3443. }
  3444.  
  3445. Method (_DIS, 0, NotSerialized) // _DIS: Disable Device
  3446. {
  3447. INTA (0x1F)
  3448. }
  3449.  
  3450. Method (_CRS, 0, NotSerialized) // _CRS: Current Resource Settings
  3451. {
  3452. CreateWordField (BUFA, One, IRQX)
  3453. IRQX = (One << PIRA) /* \_SB_.PIRA */
  3454. Return (BUFA) /* \_SB_.BUFA */
  3455. }
  3456.  
  3457. Method (_SRS, 1, NotSerialized) // _SRS: Set Resource Settings
  3458. {
  3459. CreateWordField (Arg0, One, IRA)
  3460. FindSetRightBit (IRA, Local0)
  3461. Local0--
  3462. INTA (Local0)
  3463. }
  3464. }
  3465.  
  3466. Device (LNKB)
  3467. {
  3468. Name (_HID, EisaId ("PNP0C0F") /* PCI Interrupt Link Device */) // _HID: Hardware ID
  3469. Name (_UID, 0x02) // _UID: Unique ID
  3470. Method (_STA, 0, NotSerialized) // _STA: Status
  3471. {
  3472. If (PIRB)
  3473. {
  3474. Return (0x0B)
  3475. }
  3476. Else
  3477. {
  3478. Return (0x09)
  3479. }
  3480. }
  3481.  
  3482. Method (_PRS, 0, NotSerialized) // _PRS: Possible Resource Settings
  3483. {
  3484. Return (PRSB) /* \_SB_.PRSB */
  3485. }
  3486.  
  3487. Method (_DIS, 0, NotSerialized) // _DIS: Disable Device
  3488. {
  3489. INTB (0x1F)
  3490. }
  3491.  
  3492. Method (_CRS, 0, NotSerialized) // _CRS: Current Resource Settings
  3493. {
  3494. CreateWordField (BUFA, One, IRQX)
  3495. IRQX = (One << PIRB) /* \_SB_.PIRB */
  3496. Return (BUFA) /* \_SB_.BUFA */
  3497. }
  3498.  
  3499. Method (_SRS, 1, NotSerialized) // _SRS: Set Resource Settings
  3500. {
  3501. CreateWordField (Arg0, One, IRA)
  3502. FindSetRightBit (IRA, Local0)
  3503. Local0--
  3504. INTB (Local0)
  3505. }
  3506. }
  3507.  
  3508. Device (LNKC)
  3509. {
  3510. Name (_HID, EisaId ("PNP0C0F") /* PCI Interrupt Link Device */) // _HID: Hardware ID
  3511. Name (_UID, 0x03) // _UID: Unique ID
  3512. Method (_STA, 0, NotSerialized) // _STA: Status
  3513. {
  3514. If (PIRC)
  3515. {
  3516. Return (0x0B)
  3517. }
  3518. Else
  3519. {
  3520. Return (0x09)
  3521. }
  3522. }
  3523.  
  3524. Method (_PRS, 0, NotSerialized) // _PRS: Possible Resource Settings
  3525. {
  3526. Return (PRSC) /* \_SB_.PRSC */
  3527. }
  3528.  
  3529. Method (_DIS, 0, NotSerialized) // _DIS: Disable Device
  3530. {
  3531. INTC (0x1F)
  3532. }
  3533.  
  3534. Method (_CRS, 0, NotSerialized) // _CRS: Current Resource Settings
  3535. {
  3536. CreateWordField (BUFA, One, IRQX)
  3537. IRQX = (One << PIRC) /* \_SB_.PIRC */
  3538. Return (BUFA) /* \_SB_.BUFA */
  3539. }
  3540.  
  3541. Method (_SRS, 1, NotSerialized) // _SRS: Set Resource Settings
  3542. {
  3543. CreateWordField (Arg0, One, IRA)
  3544. FindSetRightBit (IRA, Local0)
  3545. Local0--
  3546. INTC (Local0)
  3547. }
  3548. }
  3549.  
  3550. Device (LNKD)
  3551. {
  3552. Name (_HID, EisaId ("PNP0C0F") /* PCI Interrupt Link Device */) // _HID: Hardware ID
  3553. Name (_UID, 0x04) // _UID: Unique ID
  3554. Method (_STA, 0, NotSerialized) // _STA: Status
  3555. {
  3556. If (PIRD)
  3557. {
  3558. Return (0x0B)
  3559. }
  3560. Else
  3561. {
  3562. Return (0x09)
  3563. }
  3564. }
  3565.  
  3566. Method (_PRS, 0, NotSerialized) // _PRS: Possible Resource Settings
  3567. {
  3568. Return (PRSD) /* \_SB_.PRSD */
  3569. }
  3570.  
  3571. Method (_DIS, 0, NotSerialized) // _DIS: Disable Device
  3572. {
  3573. INTD (0x1F)
  3574. }
  3575.  
  3576. Method (_CRS, 0, NotSerialized) // _CRS: Current Resource Settings
  3577. {
  3578. CreateWordField (BUFA, One, IRQX)
  3579. IRQX = (One << PIRD) /* \_SB_.PIRD */
  3580. Return (BUFA) /* \_SB_.BUFA */
  3581. }
  3582.  
  3583. Method (_SRS, 1, NotSerialized) // _SRS: Set Resource Settings
  3584. {
  3585. CreateWordField (Arg0, One, IRA)
  3586. FindSetRightBit (IRA, Local0)
  3587. Local0--
  3588. INTD (Local0)
  3589. }
  3590. }
  3591.  
  3592. Device (LNKE)
  3593. {
  3594. Name (_HID, EisaId ("PNP0C0F") /* PCI Interrupt Link Device */) // _HID: Hardware ID
  3595. Name (_UID, 0x05) // _UID: Unique ID
  3596. Method (_STA, 0, NotSerialized) // _STA: Status
  3597. {
  3598. If (PIRE)
  3599. {
  3600. Return (0x0B)
  3601. }
  3602. Else
  3603. {
  3604. Return (0x09)
  3605. }
  3606. }
  3607.  
  3608. Method (_PRS, 0, NotSerialized) // _PRS: Possible Resource Settings
  3609. {
  3610. Return (PRSE) /* \_SB_.PRSE */
  3611. }
  3612.  
  3613. Method (_DIS, 0, NotSerialized) // _DIS: Disable Device
  3614. {
  3615. PIRE = 0x1F
  3616. }
  3617.  
  3618. Method (_CRS, 0, NotSerialized) // _CRS: Current Resource Settings
  3619. {
  3620. CreateWordField (BUFA, One, IRQX)
  3621. IRQX = (One << PIRE) /* \_SB_.PIRE */
  3622. Return (BUFA) /* \_SB_.BUFA */
  3623. }
  3624.  
  3625. Method (_SRS, 1, NotSerialized) // _SRS: Set Resource Settings
  3626. {
  3627. CreateWordField (Arg0, One, IRA)
  3628. FindSetRightBit (PIRE, Local0)
  3629. Local0--
  3630. PIRE = Local0
  3631. }
  3632. }
  3633.  
  3634. Device (LNKF)
  3635. {
  3636. Name (_HID, EisaId ("PNP0C0F") /* PCI Interrupt Link Device */) // _HID: Hardware ID
  3637. Name (_UID, 0x06) // _UID: Unique ID
  3638. Method (_STA, 0, NotSerialized) // _STA: Status
  3639. {
  3640. If (PIRF)
  3641. {
  3642. Return (0x0B)
  3643. }
  3644. Else
  3645. {
  3646. Return (0x09)
  3647. }
  3648. }
  3649.  
  3650. Method (_PRS, 0, NotSerialized) // _PRS: Possible Resource Settings
  3651. {
  3652. Return (PRSF) /* \_SB_.PRSF */
  3653. }
  3654.  
  3655. Method (_DIS, 0, NotSerialized) // _DIS: Disable Device
  3656. {
  3657. PIRF = 0x1F
  3658. }
  3659.  
  3660. Method (_CRS, 0, NotSerialized) // _CRS: Current Resource Settings
  3661. {
  3662. CreateWordField (BUFA, One, IRQX)
  3663. IRQX = (One << PIRF) /* \_SB_.PIRF */
  3664. Return (BUFA) /* \_SB_.BUFA */
  3665. }
  3666.  
  3667. Method (_SRS, 1, NotSerialized) // _SRS: Set Resource Settings
  3668. {
  3669. CreateWordField (Arg0, One, IRA)
  3670. FindSetRightBit (IRA, Local0)
  3671. Local0--
  3672. PIRF = Local0
  3673. }
  3674. }
  3675.  
  3676. Device (LNKG)
  3677. {
  3678. Name (_HID, EisaId ("PNP0C0F") /* PCI Interrupt Link Device */) // _HID: Hardware ID
  3679. Name (_UID, 0x07) // _UID: Unique ID
  3680. Method (_STA, 0, NotSerialized) // _STA: Status
  3681. {
  3682. If (PIRG)
  3683. {
  3684. Return (0x0B)
  3685. }
  3686. Else
  3687. {
  3688. Return (0x09)
  3689. }
  3690. }
  3691.  
  3692. Method (_PRS, 0, NotSerialized) // _PRS: Possible Resource Settings
  3693. {
  3694. Return (PRSG) /* \_SB_.PRSG */
  3695. }
  3696.  
  3697. Method (_DIS, 0, NotSerialized) // _DIS: Disable Device
  3698. {
  3699. PIRG = 0x1F
  3700. }
  3701.  
  3702. Method (_CRS, 0, NotSerialized) // _CRS: Current Resource Settings
  3703. {
  3704. CreateWordField (BUFA, One, IRQX)
  3705. IRQX = (One << PIRG) /* \_SB_.PIRG */
  3706. Return (BUFA) /* \_SB_.BUFA */
  3707. }
  3708.  
  3709. Method (_SRS, 1, NotSerialized) // _SRS: Set Resource Settings
  3710. {
  3711. CreateWordField (Arg0, One, IRA)
  3712. FindSetRightBit (IRA, Local0)
  3713. Local0--
  3714. PIRG = Local0
  3715. }
  3716. }
  3717.  
  3718. Device (LNKH)
  3719. {
  3720. Name (_HID, EisaId ("PNP0C0F") /* PCI Interrupt Link Device */) // _HID: Hardware ID
  3721. Name (_UID, 0x08) // _UID: Unique ID
  3722. Method (_STA, 0, NotSerialized) // _STA: Status
  3723. {
  3724. If (PIRH)
  3725. {
  3726. Return (0x0B)
  3727. }
  3728. Else
  3729. {
  3730. Return (0x09)
  3731. }
  3732. }
  3733.  
  3734. Method (_PRS, 0, NotSerialized) // _PRS: Possible Resource Settings
  3735. {
  3736. Return (PRSH) /* \_SB_.PRSH */
  3737. }
  3738.  
  3739. Method (_DIS, 0, NotSerialized) // _DIS: Disable Device
  3740. {
  3741. PIRH = 0x1F
  3742. }
  3743.  
  3744. Method (_CRS, 0, NotSerialized) // _CRS: Current Resource Settings
  3745. {
  3746. CreateWordField (BUFA, One, IRQX)
  3747. IRQX = (One << PIRH) /* \_SB_.PIRH */
  3748. Return (BUFA) /* \_SB_.BUFA */
  3749. }
  3750.  
  3751. Method (_SRS, 1, NotSerialized) // _SRS: Set Resource Settings
  3752. {
  3753. CreateWordField (Arg0, One, IRA)
  3754. FindSetRightBit (IRA, Local0)
  3755. Local0--
  3756. PIRH = Local0
  3757. }
  3758. }
  3759. }
  3760.  
  3761. Name (OSTB, Ones)
  3762. Name (TPOS, Zero)
  3763. Name (LINX, Zero)
  3764. Name (OSSP, Zero)
  3765. Method (SEQL, 2, Serialized)
  3766. {
  3767. Local0 = SizeOf (Arg0)
  3768. Local1 = SizeOf (Arg1)
  3769. If ((Local0 != Local1))
  3770. {
  3771. Return (Zero)
  3772. }
  3773.  
  3774. Name (BUF0, Buffer (Local0){})
  3775. BUF0 = Arg0
  3776. Name (BUF1, Buffer (Local0){})
  3777. BUF1 = Arg1
  3778. Local2 = Zero
  3779. While ((Local2 < Local0))
  3780. {
  3781. Local3 = DerefOf (BUF0 [Local2])
  3782. Local4 = DerefOf (BUF1 [Local2])
  3783. If ((Local3 != Local4))
  3784. {
  3785. Return (Zero)
  3786. }
  3787.  
  3788. Local2++
  3789. }
  3790.  
  3791. Return (One)
  3792. }
  3793.  
  3794. Method (OSTP, 0, NotSerialized)
  3795. {
  3796. If ((OSTB == Ones))
  3797. {
  3798. If (CondRefOf (\_OSI, Local0))
  3799. {
  3800. OSTB = Zero
  3801. TPOS = Zero
  3802. If (_OSI ("Windows 2001"))
  3803. {
  3804. OSTB = 0x08
  3805. TPOS = 0x08
  3806. }
  3807.  
  3808. If (_OSI ("Windows 2001.1"))
  3809. {
  3810. OSTB = 0x20
  3811. TPOS = 0x20
  3812. }
  3813.  
  3814. If (_OSI ("Windows 2001 SP1"))
  3815. {
  3816. OSTB = 0x10
  3817. TPOS = 0x10
  3818. }
  3819.  
  3820. If (_OSI ("Windows 2001 SP2"))
  3821. {
  3822. OSTB = 0x11
  3823. TPOS = 0x11
  3824. }
  3825.  
  3826. If (_OSI ("Windows 2001 SP3"))
  3827. {
  3828. OSTB = 0x12
  3829. TPOS = 0x12
  3830. }
  3831.  
  3832. If (_OSI ("Windows 2006"))
  3833. {
  3834. OSTB = 0x40
  3835. TPOS = 0x40
  3836. }
  3837.  
  3838. If (_OSI ("Windows 2006 SP1"))
  3839. {
  3840. OSTB = 0x41
  3841. TPOS = 0x41
  3842. OSSP = One
  3843. }
  3844.  
  3845. If (_OSI ("Windows 2009"))
  3846. {
  3847. OSSP = One
  3848. OSTB = 0x50
  3849. TPOS = 0x50
  3850. }
  3851.  
  3852. If (_OSI ("Windows 2012"))
  3853. {
  3854. OSSP = One
  3855. OSTB = 0x60
  3856. TPOS = 0x60
  3857. }
  3858.  
  3859. If (_OSI ("Windows 2013"))
  3860. {
  3861. OSSP = One
  3862. OSTB = 0x61
  3863. TPOS = 0x61
  3864. }
  3865.  
  3866. If (_OSI ("Windows 2015"))
  3867. {
  3868. OSSP = One
  3869. OSTB = 0x70
  3870. TPOS = 0x70
  3871. }
  3872.  
  3873. If (_OSI ("Linux"))
  3874. {
  3875. LINX = One
  3876. OSTB = 0x80
  3877. TPOS = 0x80
  3878. }
  3879. }
  3880. ElseIf (CondRefOf (\_OS, Local0))
  3881. {
  3882. If (SEQL (_OS, "Microsoft Windows"))
  3883. {
  3884. OSTB = One
  3885. TPOS = One
  3886. }
  3887. ElseIf (SEQL (_OS, "Microsoft WindowsME: Millennium Edition"))
  3888. {
  3889. OSTB = 0x02
  3890. TPOS = 0x02
  3891. }
  3892. ElseIf (SEQL (_OS, "Microsoft Windows NT"))
  3893. {
  3894. OSTB = 0x04
  3895. TPOS = 0x04
  3896. }
  3897. Else
  3898. {
  3899. OSTB = Zero
  3900. TPOS = Zero
  3901. }
  3902. }
  3903. Else
  3904. {
  3905. OSTB = Zero
  3906. TPOS = Zero
  3907. }
  3908. }
  3909.  
  3910. Return (OSTB) /* \OSTB */
  3911. }
  3912.  
  3913. Scope (_SB.PCI0)
  3914. {
  3915. Method (_INI, 0, NotSerialized) // _INI: Initialize
  3916. {
  3917. If ((PICM != Zero))
  3918. {
  3919. DSPI ()
  3920. NAPE ()
  3921. }
  3922.  
  3923. OSTP ()
  3924. OSFL ()
  3925. }
  3926. }
  3927.  
  3928. Name (TSOS, 0x75)
  3929. If (CondRefOf (\_OSI))
  3930. {
  3931. If (_OSI ("Windows 2009"))
  3932. {
  3933. TSOS = 0x50
  3934. }
  3935.  
  3936. If (_OSI ("Windows 2015"))
  3937. {
  3938. TSOS = 0x70
  3939. }
  3940. }
  3941.  
  3942. Scope (_SB)
  3943. {
  3944. Name (D0S0, One)
  3945. Name (D3S0, One)
  3946. Name (D0S1, One)
  3947. Name (D3S1, One)
  3948. PowerResource (P0S0, 0x00, 0x0000)
  3949. {
  3950. Method (_STA, 0, NotSerialized) // _STA: Status
  3951. {
  3952. Return (D0S0) /* \_SB_.D0S0 */
  3953. }
  3954.  
  3955. Method (_ON, 0, NotSerialized) // _ON_: Power On
  3956. {
  3957. D0S0 = One
  3958. }
  3959.  
  3960. Method (_OFF, 0, NotSerialized) // _OFF: Power Off
  3961. {
  3962. D0S0 = Zero
  3963. }
  3964. }
  3965.  
  3966. PowerResource (P3S0, 0x00, 0x0000)
  3967. {
  3968. Method (_STA, 0, NotSerialized) // _STA: Status
  3969. {
  3970. Return (D3S0) /* \_SB_.D3S0 */
  3971. }
  3972.  
  3973. Method (_ON, 0, NotSerialized) // _ON_: Power On
  3974. {
  3975. D3S0 = One
  3976. }
  3977.  
  3978. Method (_OFF, 0, NotSerialized) // _OFF: Power Off
  3979. {
  3980. D3S0 = Zero
  3981. }
  3982. }
  3983.  
  3984. PowerResource (P0S1, 0x00, 0x0000)
  3985. {
  3986. Method (_STA, 0, NotSerialized) // _STA: Status
  3987. {
  3988. Return (D0S1) /* \_SB_.D0S1 */
  3989. }
  3990.  
  3991. Method (_ON, 0, NotSerialized) // _ON_: Power On
  3992. {
  3993. D0S1 = One
  3994. }
  3995.  
  3996. Method (_OFF, 0, NotSerialized) // _OFF: Power Off
  3997. {
  3998. D0S1 = Zero
  3999. }
  4000. }
  4001.  
  4002. PowerResource (P3S1, 0x00, 0x0000)
  4003. {
  4004. Method (_STA, 0, NotSerialized) // _STA: Status
  4005. {
  4006. Return (D3S1) /* \_SB_.D3S1 */
  4007. }
  4008.  
  4009. Method (_ON, 0, NotSerialized) // _ON_: Power On
  4010. {
  4011. D3S1 = One
  4012. }
  4013.  
  4014. Method (_OFF, 0, NotSerialized) // _OFF: Power Off
  4015. {
  4016. D3S1 = Zero
  4017. }
  4018. }
  4019.  
  4020. OperationRegion (SMIC, SystemMemory, 0xFED80000, 0x00800000)
  4021. Field (SMIC, ByteAcc, NoLock, Preserve)
  4022. {
  4023. Offset (0x36A),
  4024. SMIB, 8
  4025. }
  4026.  
  4027. OperationRegion (SSMI, SystemIO, SMIB, 0x02)
  4028. Field (SSMI, AnyAcc, NoLock, Preserve)
  4029. {
  4030. SMIW, 16
  4031. }
  4032.  
  4033. OperationRegion (ECMC, SystemIO, 0x72, 0x02)
  4034. Field (ECMC, AnyAcc, NoLock, Preserve)
  4035. {
  4036. ECMI, 8,
  4037. ECMD, 8
  4038. }
  4039.  
  4040. IndexField (ECMI, ECMD, ByteAcc, NoLock, Preserve)
  4041. {
  4042. Offset (0x08),
  4043. FRTB, 32
  4044. }
  4045.  
  4046. OperationRegion (FRTP, SystemMemory, FRTB, 0x0100)
  4047. Field (FRTP, AnyAcc, NoLock, Preserve)
  4048. {
  4049. PEBA, 32,
  4050. , 5,
  4051. IC0E, 1,
  4052. IC1E, 1,
  4053. IC2E, 1,
  4054. IC3E, 1,
  4055. IC4E, 1,
  4056. IC5E, 1,
  4057. UT0E, 1,
  4058. UT1E, 1,
  4059. , 1,
  4060. , 1,
  4061. ST_E, 1,
  4062. UT2E, 1,
  4063. , 1,
  4064. EMMD, 2,
  4065. , 3,
  4066. XHCE, 1,
  4067. , 1,
  4068. , 1,
  4069. UT3E, 1,
  4070. ESPI, 1,
  4071. EMME, 1,
  4072. HFPE, 1,
  4073. Offset (0x08),
  4074. PCEF, 1,
  4075. , 4,
  4076. IC0D, 1,
  4077. IC1D, 1,
  4078. IC2D, 1,
  4079. IC3D, 1,
  4080. IC4D, 1,
  4081. IC5D, 1,
  4082. UT0D, 1,
  4083. UT1D, 1,
  4084. , 1,
  4085. , 1,
  4086. ST_D, 1,
  4087. UT2D, 1,
  4088. , 1,
  4089. EHCD, 1,
  4090. , 4,
  4091. XHCD, 1,
  4092. SD_D, 1,
  4093. , 1,
  4094. UT3D, 1,
  4095. , 1,
  4096. EMD3, 1,
  4097. , 2,
  4098. S03D, 1,
  4099. FW00, 16,
  4100. FW01, 32,
  4101. FW02, 16,
  4102. FW03, 32,
  4103. SDS0, 8,
  4104. SDS1, 8,
  4105. CZFG, 1,
  4106. Offset (0x20),
  4107. SD10, 32,
  4108. EH10, 32,
  4109. XH10, 32,
  4110. STBA, 32
  4111. }
  4112.  
  4113. OperationRegion (FCFG, SystemMemory, PEBA, 0x01000000)
  4114. Field (FCFG, DWordAcc, NoLock, Preserve)
  4115. {
  4116. Offset (0xA3044),
  4117. IPDE, 32,
  4118. IMPE, 32,
  4119. Offset (0xA3078),
  4120. , 2,
  4121. LDQ0, 1,
  4122. Offset (0xA30CB),
  4123. , 7,
  4124. AUSS, 1
  4125. }
  4126.  
  4127. OperationRegion (IOMX, SystemMemory, 0xFED80D00, 0x0100)
  4128. Field (IOMX, AnyAcc, NoLock, Preserve)
  4129. {
  4130. Offset (0x15),
  4131. IM15, 8,
  4132. IM16, 8,
  4133. Offset (0x1F),
  4134. IM1F, 8,
  4135. IM20, 8,
  4136. Offset (0x44),
  4137. IM44, 8,
  4138. Offset (0x46),
  4139. IM46, 8,
  4140. Offset (0x4A),
  4141. IM4A, 8,
  4142. IM4B, 8,
  4143. Offset (0x57),
  4144. IM57, 8,
  4145. IM58, 8,
  4146. Offset (0x68),
  4147. IM68, 8,
  4148. IM69, 8,
  4149. IM6A, 8,
  4150. IM6B, 8,
  4151. Offset (0x6D),
  4152. IM6D, 8
  4153. }
  4154.  
  4155. OperationRegion (FACR, SystemMemory, 0xFED81E00, 0x0100)
  4156. Field (FACR, AnyAcc, NoLock, Preserve)
  4157. {
  4158. Offset (0x80),
  4159. , 28,
  4160. RD28, 1,
  4161. , 1,
  4162. RQTY, 1,
  4163. Offset (0x84),
  4164. , 28,
  4165. SD28, 1,
  4166. , 1,
  4167. Offset (0xA0),
  4168. PG1A, 1
  4169. }
  4170.  
  4171. OperationRegion (EMMX, SystemMemory, 0xFEDD5800, 0x0130)
  4172. Field (EMMX, AnyAcc, NoLock, Preserve)
  4173. {
  4174. Offset (0xD0),
  4175. , 17,
  4176. FC18, 1,
  4177. FC33, 1,
  4178. , 7,
  4179. CD_T, 1,
  4180. WP_T, 1
  4181. }
  4182.  
  4183. OperationRegion (EMMB, SystemMemory, 0xFEDD5800, 0x0130)
  4184. Field (EMMB, AnyAcc, NoLock, Preserve)
  4185. {
  4186. Offset (0xA4),
  4187. E0A4, 32,
  4188. E0A8, 32,
  4189. Offset (0xB0),
  4190. E0B0, 32,
  4191. Offset (0xD0),
  4192. E0D0, 32,
  4193. Offset (0x116),
  4194. E116, 32
  4195. }
  4196.  
  4197. Name (SVBF, Buffer (0x0100)
  4198. {
  4199. 0x00 // .
  4200. })
  4201. CreateDWordField (SVBF, Zero, S0A4)
  4202. CreateDWordField (SVBF, 0x04, S0A8)
  4203. CreateDWordField (SVBF, 0x08, S0B0)
  4204. CreateDWordField (SVBF, 0x0C, S0D0)
  4205. CreateDWordField (SVBF, 0x10, S116)
  4206. Method (SECR, 0, Serialized)
  4207. {
  4208. S116 = E116 /* \_SB_.E116 */
  4209. RQTY = Zero
  4210. RD28 = One
  4211. Local0 = SD28 /* \_SB_.SD28 */
  4212. While (Local0)
  4213. {
  4214. Local0 = SD28 /* \_SB_.SD28 */
  4215. }
  4216. }
  4217.  
  4218. Method (RECR, 0, Serialized)
  4219. {
  4220. E116 = S116 /* \_SB_.S116 */
  4221. }
  4222.  
  4223. OperationRegion (LUIE, SystemMemory, 0xFEDC0020, 0x04)
  4224. Field (LUIE, AnyAcc, NoLock, Preserve)
  4225. {
  4226. IER0, 1,
  4227. IER1, 1,
  4228. IER2, 1,
  4229. IER3, 1,
  4230. UOL0, 1,
  4231. UOL1, 1,
  4232. UOL2, 1,
  4233. UOL3, 1,
  4234. WUR0, 2,
  4235. WUR1, 2,
  4236. WUR2, 2,
  4237. WUR3, 2
  4238. }
  4239.  
  4240. Method (FRUI, 2, Serialized)
  4241. {
  4242. If ((Arg0 == Zero))
  4243. {
  4244. Arg1 = IUA0 /* \_SB_.IUA0 */
  4245. }
  4246.  
  4247. If ((Arg0 == One))
  4248. {
  4249. Arg1 = IUA1 /* \_SB_.IUA1 */
  4250. }
  4251.  
  4252. If ((Arg0 == 0x02))
  4253. {
  4254. Arg1 = IUA2 /* \_SB_.IUA2 */
  4255. }
  4256.  
  4257. If ((Arg0 == 0x03))
  4258. {
  4259. Arg1 = IUA3 /* \_SB_.IUA3 */
  4260. }
  4261. }
  4262.  
  4263. Method (SRAD, 2, Serialized)
  4264. {
  4265. Local0 = (Arg0 << One)
  4266. Local0 += 0xFED81E40
  4267. OperationRegion (ADCR, SystemMemory, Local0, 0x02)
  4268. Field (ADCR, ByteAcc, NoLock, Preserve)
  4269. {
  4270. ADTD, 2,
  4271. ADPS, 1,
  4272. ADPD, 1,
  4273. ADSO, 1,
  4274. ADSC, 1,
  4275. ADSR, 1,
  4276. ADIS, 1,
  4277. ADDS, 3
  4278. }
  4279.  
  4280. ADIS = One
  4281. ADSR = Zero
  4282. Stall (Arg1)
  4283. ADSR = One
  4284. ADIS = Zero
  4285. Stall (Arg1)
  4286. }
  4287.  
  4288. Method (DSAD, 2, Serialized)
  4289. {
  4290. Local0 = (Arg0 << One)
  4291. Local0 += 0xFED81E40
  4292. OperationRegion (ADCR, SystemMemory, Local0, 0x02)
  4293. Field (ADCR, ByteAcc, NoLock, Preserve)
  4294. {
  4295. ADTD, 2,
  4296. ADPS, 1,
  4297. ADPD, 1,
  4298. ADSO, 1,
  4299. ADSC, 1,
  4300. ADSR, 1,
  4301. ADIS, 1,
  4302. ADDS, 3
  4303. }
  4304.  
  4305. If ((Arg0 != ADTD))
  4306. {
  4307. If ((Arg1 == Zero))
  4308. {
  4309. ADTD = Zero
  4310. ADPD = One
  4311. Local0 = ADDS /* \_SB_.DSAD.ADDS */
  4312. While ((Local0 != 0x07))
  4313. {
  4314. Local0 = ADDS /* \_SB_.DSAD.ADDS */
  4315. }
  4316. }
  4317.  
  4318. If ((Arg1 == 0x03))
  4319. {
  4320. ADPD = Zero
  4321. Local0 = ADDS /* \_SB_.DSAD.ADDS */
  4322. While ((Local0 != Zero))
  4323. {
  4324. Local0 = ADDS /* \_SB_.DSAD.ADDS */
  4325. }
  4326.  
  4327. ADTD = 0x03
  4328. }
  4329. }
  4330. }
  4331.  
  4332. Method (HSAD, 2, Serialized)
  4333. {
  4334. Local3 = (One << Arg0)
  4335. Local0 = (Arg0 << One)
  4336. Local0 += 0xFED81E40
  4337. OperationRegion (ADCR, SystemMemory, Local0, 0x02)
  4338. Field (ADCR, ByteAcc, NoLock, Preserve)
  4339. {
  4340. ADTD, 2,
  4341. ADPS, 1,
  4342. ADPD, 1,
  4343. ADSO, 1,
  4344. ADSC, 1,
  4345. ADSR, 1,
  4346. ADIS, 1,
  4347. ADDS, 3
  4348. }
  4349.  
  4350. If ((Arg1 != ADTD))
  4351. {
  4352. If ((Arg1 == Zero))
  4353. {
  4354. PG1A = One
  4355. ADTD = Zero
  4356. ADPD = One
  4357. Local0 = ADDS /* \_SB_.HSAD.ADDS */
  4358. While ((Local0 != 0x07))
  4359. {
  4360. Local0 = ADDS /* \_SB_.HSAD.ADDS */
  4361. }
  4362.  
  4363. RQTY = One
  4364. RD28 = One
  4365. Local0 = SD28 /* \_SB_.SD28 */
  4366. While (!Local0)
  4367. {
  4368. Local0 = SD28 /* \_SB_.SD28 */
  4369. }
  4370. }
  4371.  
  4372. If ((Arg1 == 0x03))
  4373. {
  4374. RQTY = Zero
  4375. RD28 = One
  4376. Local0 = SD28 /* \_SB_.SD28 */
  4377. While (Local0)
  4378. {
  4379. Local0 = SD28 /* \_SB_.SD28 */
  4380. }
  4381.  
  4382. ADPD = Zero
  4383. Local0 = ADDS /* \_SB_.HSAD.ADDS */
  4384. While ((Local0 != Zero))
  4385. {
  4386. Local0 = ADDS /* \_SB_.HSAD.ADDS */
  4387. }
  4388.  
  4389. ADTD = 0x03
  4390. PG1A = Zero
  4391. }
  4392. }
  4393. }
  4394.  
  4395. OperationRegion (FPIC, SystemIO, 0x0C00, 0x02)
  4396. Field (ECMC, AnyAcc, NoLock, Preserve)
  4397. {
  4398. FPII, 8,
  4399. FPID, 8
  4400. }
  4401.  
  4402. IndexField (FPII, FPID, ByteAcc, NoLock, Preserve)
  4403. {
  4404. Offset (0xF4),
  4405. IUA0, 8,
  4406. IUA1, 8,
  4407. Offset (0xF8),
  4408. IUA2, 8,
  4409. IUA3, 8
  4410. }
  4411.  
  4412. Device (HFP1)
  4413. {
  4414. Name (_HID, "AMDI0060") // _HID: Hardware ID
  4415. Name (_UID, Zero) // _UID: Unique ID
  4416. Method (_STA, 0, NotSerialized) // _STA: Status
  4417. {
  4418. If (HFPE)
  4419. {
  4420. Return (0x0F)
  4421. }
  4422. Else
  4423. {
  4424. Return (Zero)
  4425. }
  4426. }
  4427.  
  4428. Method (_CRS, 0, NotSerialized) // _CRS: Current Resource Settings
  4429. {
  4430. Name (RBUF, ResourceTemplate ()
  4431. {
  4432. Memory32Fixed (ReadWrite,
  4433. 0xFEC11000, // Address Base
  4434. 0x00000100, // Address Length
  4435. )
  4436. })
  4437. Return (RBUF) /* \_SB_.HFP1._CRS.RBUF */
  4438. }
  4439. }
  4440.  
  4441. Device (GPIO)
  4442. {
  4443. Name (_HID, "AMDI0030") // _HID: Hardware ID
  4444. Name (_CID, "AMDI0030") // _CID: Compatible ID
  4445. Name (_UID, Zero) // _UID: Unique ID
  4446. Method (_CRS, 0, NotSerialized) // _CRS: Current Resource Settings
  4447. {
  4448. Name (RBUF, ResourceTemplate ()
  4449. {
  4450. Interrupt (ResourceConsumer, Level, ActiveLow, Shared, ,, )
  4451. {
  4452. 0x00000007,
  4453. }
  4454. Memory32Fixed (ReadWrite,
  4455. 0xFED81500, // Address Base
  4456. 0x00000400, // Address Length
  4457. )
  4458. Memory32Fixed (ReadWrite,
  4459. 0xFED81200, // Address Base
  4460. 0x00000100, // Address Length
  4461. )
  4462. })
  4463. Return (RBUF) /* \_SB_.GPIO._CRS.RBUF */
  4464. }
  4465.  
  4466. Method (_STA, 0, NotSerialized) // _STA: Status
  4467. {
  4468. If ((TSOS >= 0x70))
  4469. {
  4470. Return (0x0F)
  4471. }
  4472. Else
  4473. {
  4474. Return (Zero)
  4475. }
  4476. }
  4477. }
  4478.  
  4479. Device (FUR0)
  4480. {
  4481. Name (_HID, "AMDI0020") // _HID: Hardware ID
  4482. Name (_UID, Zero) // _UID: Unique ID
  4483. Name (_CRS, ResourceTemplate () // _CRS: Current Resource Settings
  4484. {
  4485. IRQ (Edge, ActiveHigh, Exclusive, )
  4486. {3}
  4487. Memory32Fixed (ReadWrite,
  4488. 0xFEDC9000, // Address Base
  4489. 0x00001000, // Address Length
  4490. )
  4491. Memory32Fixed (ReadWrite,
  4492. 0xFEDC7000, // Address Base
  4493. 0x00001000, // Address Length
  4494. )
  4495. })
  4496. Method (_STA, 0, NotSerialized) // _STA: Status
  4497. {
  4498. If ((TSOS >= 0x70))
  4499. {
  4500. If ((UT0E == One))
  4501. {
  4502. If (IER0)
  4503. {
  4504. Return (Zero)
  4505. }
  4506.  
  4507. Return (0x0F)
  4508. }
  4509.  
  4510. Return (Zero)
  4511. }
  4512. Else
  4513. {
  4514. Return (Zero)
  4515. }
  4516. }
  4517. }
  4518.  
  4519. Device (FUR1)
  4520. {
  4521. Name (_HID, "AMDI0020") // _HID: Hardware ID
  4522. Name (_UID, One) // _UID: Unique ID
  4523. Name (_CRS, ResourceTemplate () // _CRS: Current Resource Settings
  4524. {
  4525. IRQ (Edge, ActiveHigh, Exclusive, )
  4526. {4}
  4527. Memory32Fixed (ReadWrite,
  4528. 0xFEDCA000, // Address Base
  4529. 0x00001000, // Address Length
  4530. )
  4531. Memory32Fixed (ReadWrite,
  4532. 0xFEDC8000, // Address Base
  4533. 0x00001000, // Address Length
  4534. )
  4535. })
  4536. Method (_STA, 0, NotSerialized) // _STA: Status
  4537. {
  4538. If ((TSOS >= 0x70))
  4539. {
  4540. If ((UT1E == One))
  4541. {
  4542. If (UOL1)
  4543. {
  4544. Return (Zero)
  4545. }
  4546.  
  4547. Return (0x0F)
  4548. }
  4549.  
  4550. Return (Zero)
  4551. }
  4552. Else
  4553. {
  4554. Return (Zero)
  4555. }
  4556. }
  4557. }
  4558.  
  4559. Device (FUR2)
  4560. {
  4561. Name (_HID, "AMDI0020") // _HID: Hardware ID
  4562. Name (_UID, 0x02) // _UID: Unique ID
  4563. Name (_CRS, ResourceTemplate () // _CRS: Current Resource Settings
  4564. {
  4565. IRQ (Edge, ActiveHigh, Exclusive, )
  4566. {3}
  4567. Memory32Fixed (ReadWrite,
  4568. 0xFEDCE000, // Address Base
  4569. 0x00001000, // Address Length
  4570. )
  4571. Memory32Fixed (ReadWrite,
  4572. 0xFEDCC000, // Address Base
  4573. 0x00001000, // Address Length
  4574. )
  4575. })
  4576. Method (_STA, 0, NotSerialized) // _STA: Status
  4577. {
  4578. If ((TSOS >= 0x70))
  4579. {
  4580. If ((UT2E == One))
  4581. {
  4582. If (UOL2)
  4583. {
  4584. Return (Zero)
  4585. }
  4586.  
  4587. Return (0x0F)
  4588. }
  4589.  
  4590. Return (Zero)
  4591. }
  4592. Else
  4593. {
  4594. Return (Zero)
  4595. }
  4596. }
  4597. }
  4598.  
  4599. Device (FUR3)
  4600. {
  4601. Name (_HID, "AMDI0020") // _HID: Hardware ID
  4602. Name (_UID, 0x03) // _UID: Unique ID
  4603. Name (_CRS, ResourceTemplate () // _CRS: Current Resource Settings
  4604. {
  4605. IRQ (Edge, ActiveHigh, Exclusive, )
  4606. {4}
  4607. Memory32Fixed (ReadWrite,
  4608. 0xFEDCF000, // Address Base
  4609. 0x00001000, // Address Length
  4610. )
  4611. Memory32Fixed (ReadWrite,
  4612. 0xFEDCD000, // Address Base
  4613. 0x00001000, // Address Length
  4614. )
  4615. })
  4616. Method (_STA, 0, NotSerialized) // _STA: Status
  4617. {
  4618. If ((TSOS >= 0x70))
  4619. {
  4620. If ((UT3E == One))
  4621. {
  4622. If (UOL3)
  4623. {
  4624. Return (Zero)
  4625. }
  4626.  
  4627. Return (0x0F)
  4628. }
  4629.  
  4630. Return (Zero)
  4631. }
  4632. Else
  4633. {
  4634. Return (Zero)
  4635. }
  4636. }
  4637. }
  4638.  
  4639. Device (I2CA)
  4640. {
  4641. Name (_HID, "AMDI0010") // _HID: Hardware ID
  4642. Name (_UID, Zero) // _UID: Unique ID
  4643. Name (_CRS, ResourceTemplate () // _CRS: Current Resource Settings
  4644. {
  4645. IRQ (Edge, ActiveHigh, Exclusive, )
  4646. {10}
  4647. Memory32Fixed (ReadWrite,
  4648. 0xFEDC2000, // Address Base
  4649. 0x00001000, // Address Length
  4650. )
  4651. })
  4652. Method (_STA, 0, NotSerialized) // _STA: Status
  4653. {
  4654. If ((TSOS >= 0x70))
  4655. {
  4656. If ((IC0E == One))
  4657. {
  4658. Return (0x0F)
  4659. }
  4660.  
  4661. Return (Zero)
  4662. }
  4663. Else
  4664. {
  4665. Return (Zero)
  4666. }
  4667. }
  4668.  
  4669. Method (RSET, 0, NotSerialized)
  4670. {
  4671. SRAD (0x05, 0xC8)
  4672. }
  4673. }
  4674.  
  4675. Device (I2CB)
  4676. {
  4677. Name (_HID, "AMDI0010") // _HID: Hardware ID
  4678. Name (_UID, One) // _UID: Unique ID
  4679. Name (_CRS, ResourceTemplate () // _CRS: Current Resource Settings
  4680. {
  4681. IRQ (Edge, ActiveHigh, Exclusive, )
  4682. {11}
  4683. Memory32Fixed (ReadWrite,
  4684. 0xFEDC3000, // Address Base
  4685. 0x00001000, // Address Length
  4686. )
  4687. })
  4688. Method (_STA, 0, NotSerialized) // _STA: Status
  4689. {
  4690. If ((TSOS >= 0x70))
  4691. {
  4692. If ((IC1E == One))
  4693. {
  4694. Return (0x0F)
  4695. }
  4696.  
  4697. Return (Zero)
  4698. }
  4699. Else
  4700. {
  4701. Return (Zero)
  4702. }
  4703. }
  4704.  
  4705. Method (RSET, 0, NotSerialized)
  4706. {
  4707. SRAD (0x06, 0xC8)
  4708. }
  4709. }
  4710.  
  4711. Device (I2CC)
  4712. {
  4713. Name (_HID, "AMDI0010") // _HID: Hardware ID
  4714. Name (_UID, 0x02) // _UID: Unique ID
  4715. Name (_CRS, ResourceTemplate () // _CRS: Current Resource Settings
  4716. {
  4717. IRQ (Edge, ActiveHigh, Exclusive, )
  4718. {4}
  4719. Memory32Fixed (ReadWrite,
  4720. 0xFEDC4000, // Address Base
  4721. 0x00001000, // Address Length
  4722. )
  4723. })
  4724. Method (_STA, 0, NotSerialized) // _STA: Status
  4725. {
  4726. If ((TSOS >= 0x70))
  4727. {
  4728. If ((IC2E == One))
  4729. {
  4730. Return (0x0F)
  4731. }
  4732.  
  4733. Return (Zero)
  4734. }
  4735. Else
  4736. {
  4737. Return (Zero)
  4738. }
  4739. }
  4740.  
  4741. Method (RSET, 0, NotSerialized)
  4742. {
  4743. SRAD (0x07, 0xC8)
  4744. }
  4745. }
  4746.  
  4747. Device (I2CD)
  4748. {
  4749. Name (_HID, "AMDI0010") // _HID: Hardware ID
  4750. Name (_UID, 0x03) // _UID: Unique ID
  4751. Name (_CRS, ResourceTemplate () // _CRS: Current Resource Settings
  4752. {
  4753. IRQ (Edge, ActiveHigh, Exclusive, )
  4754. {6}
  4755. Memory32Fixed (ReadWrite,
  4756. 0xFEDC5000, // Address Base
  4757. 0x00001000, // Address Length
  4758. )
  4759. })
  4760. Method (_STA, 0, NotSerialized) // _STA: Status
  4761. {
  4762. Return (0x0F)
  4763. }
  4764.  
  4765. Method (RSET, 0, NotSerialized)
  4766. {
  4767. SRAD (0x08, 0xC8)
  4768. }
  4769. }
  4770.  
  4771. Device (I2CE)
  4772. {
  4773. Name (_HID, "AMDI0010") // _HID: Hardware ID
  4774. Name (_UID, 0x04) // _UID: Unique ID
  4775. Name (_CRS, ResourceTemplate () // _CRS: Current Resource Settings
  4776. {
  4777. IRQ (Edge, ActiveHigh, Exclusive, )
  4778. {14}
  4779. Memory32Fixed (ReadWrite,
  4780. 0xFEDC6000, // Address Base
  4781. 0x00001000, // Address Length
  4782. )
  4783. })
  4784. Method (_STA, 0, NotSerialized) // _STA: Status
  4785. {
  4786. If ((TSOS >= 0x70))
  4787. {
  4788. If ((IC4E == One))
  4789. {
  4790. Return (0x0F)
  4791. }
  4792.  
  4793. Return (Zero)
  4794. }
  4795. Else
  4796. {
  4797. Return (Zero)
  4798. }
  4799. }
  4800.  
  4801. Method (RSET, 0, NotSerialized)
  4802. {
  4803. SRAD (0x09, 0xC8)
  4804. }
  4805. }
  4806.  
  4807. Device (I2CF)
  4808. {
  4809. Name (_HID, "AMDI0010") // _HID: Hardware ID
  4810. Name (_UID, 0x05) // _UID: Unique ID
  4811. Name (_CRS, ResourceTemplate () // _CRS: Current Resource Settings
  4812. {
  4813. IRQ (Edge, ActiveHigh, Exclusive, )
  4814. {15}
  4815. Memory32Fixed (ReadWrite,
  4816. 0xFEDCB000, // Address Base
  4817. 0x00001000, // Address Length
  4818. )
  4819. })
  4820. Method (_STA, 0, NotSerialized) // _STA: Status
  4821. {
  4822. If ((TSOS >= 0x70))
  4823. {
  4824. If ((IC5E == One))
  4825. {
  4826. Return (0x0F)
  4827. }
  4828.  
  4829. Return (Zero)
  4830. }
  4831. Else
  4832. {
  4833. Return (Zero)
  4834. }
  4835. }
  4836.  
  4837. Method (RSET, 0, NotSerialized)
  4838. {
  4839. SRAD (0x0A, 0xC8)
  4840. }
  4841. }
  4842.  
  4843. Method (EPIN, 0, NotSerialized)
  4844. {
  4845. IPDE = Zero
  4846. IMPE = Zero
  4847. IM15 = One
  4848. IM16 = One
  4849. IM20 = One
  4850. IM44 = One
  4851. IM46 = One
  4852. IM68 = One
  4853. IM69 = One
  4854. IM6A = One
  4855. IM6B = One
  4856. IM4A = One
  4857. IM58 = One
  4858. IM4B = One
  4859. IM57 = One
  4860. IM6D = One
  4861. IM1F = One
  4862. SECR ()
  4863. }
  4864.  
  4865. Name (NCRS, ResourceTemplate ()
  4866. {
  4867. Interrupt (ResourceConsumer, Level, ActiveLow, Shared, ,, )
  4868. {
  4869. 0x00000005,
  4870. }
  4871. Memory32Fixed (ReadWrite,
  4872. 0xFEDD5000, // Address Base
  4873. 0x00001000, // Address Length
  4874. )
  4875. })
  4876. Name (DCRS, ResourceTemplate ()
  4877. {
  4878. Interrupt (ResourceConsumer, Level, ActiveLow, Shared, ,, )
  4879. {
  4880. 0x00000005,
  4881. }
  4882. Memory32Fixed (ReadWrite,
  4883. 0xFEDD5000, // Address Base
  4884. 0x00001000, // Address Length
  4885. )
  4886. GpioInt (Edge, ActiveBoth, SharedAndWake, PullUp, 0x0BB8,
  4887. "\\_SB.GPIO", 0x00, ResourceConsumer, ,
  4888. )
  4889. { // Pin list
  4890. 0x0044
  4891. }
  4892. GpioIo (Shared, PullUp, 0x0000, 0x0000, IoRestrictionNone,
  4893. "\\_SB.GPIO", 0x00, ResourceConsumer, ,
  4894. )
  4895. { // Pin list
  4896. 0x0044
  4897. }
  4898. })
  4899. Name (AHID, "AMDI0040")
  4900. Name (ACID, "AMDI0040")
  4901. Name (SHID, 0x400DD041)
  4902. Name (SCID, "PCICC_080501")
  4903. Device (EMM0)
  4904. {
  4905. Method (_HID, 0, Serialized) // _HID: Hardware ID
  4906. {
  4907. If (EMMD)
  4908. {
  4909. Return (SHID) /* \_SB_.SHID */
  4910. }
  4911. Else
  4912. {
  4913. Return (AHID) /* \_SB_.AHID */
  4914. }
  4915. }
  4916.  
  4917. Method (_CID, 0, Serialized) // _CID: Compatible ID
  4918. {
  4919. If (EMMD)
  4920. {
  4921. Return (SCID) /* \_SB_.SCID */
  4922. }
  4923. Else
  4924. {
  4925. Return (ACID) /* \_SB_.ACID */
  4926. }
  4927. }
  4928.  
  4929. Name (_UID, Zero) // _UID: Unique ID
  4930. Method (_CRS, 0, Serialized) // _CRS: Current Resource Settings
  4931. {
  4932. If (EMD3)
  4933. {
  4934. Return (DCRS) /* \_SB_.DCRS */
  4935. }
  4936. Else
  4937. {
  4938. Return (NCRS) /* \_SB_.NCRS */
  4939. }
  4940. }
  4941.  
  4942. Method (_STA, 0, NotSerialized) // _STA: Status
  4943. {
  4944. If ((TSOS >= 0x70))
  4945. {
  4946. If (EMME)
  4947. {
  4948. Return (0x0F)
  4949. }
  4950.  
  4951. Return (Zero)
  4952. }
  4953. Else
  4954. {
  4955. Return (Zero)
  4956. }
  4957. }
  4958.  
  4959. Method (_INI, 0, NotSerialized) // _INI: Initialize
  4960. {
  4961. If (EMME)
  4962. {
  4963. EPIN ()
  4964. }
  4965. }
  4966.  
  4967. Method (_S0W, 0, NotSerialized) // _S0W: S0 Device Wake State
  4968. {
  4969. If ((EMD3 && EMME))
  4970. {
  4971. Return (0x04)
  4972. }
  4973. Else
  4974. {
  4975. Return (Zero)
  4976. }
  4977. }
  4978.  
  4979. Method (_PS0, 0, NotSerialized) // _PS0: Power State 0
  4980. {
  4981. If ((EMD3 && EMME))
  4982. {
  4983. HSAD (0x1C, Zero)
  4984. RECR ()
  4985. }
  4986. }
  4987.  
  4988. Method (_PS3, 0, NotSerialized) // _PS3: Power State 3
  4989. {
  4990. If ((EMD3 && EMME))
  4991. {
  4992. HSAD (0x1C, 0x03)
  4993. }
  4994. }
  4995. }
  4996. }
  4997.  
  4998. Scope (_SB.PCI0)
  4999. {
  5000. Device (UAR1)
  5001. {
  5002. Name (_HID, EisaId ("PNP0500") /* Standard PC COM Serial Port */) // _HID: Hardware ID
  5003. Name (_DDN, "COM1") // _DDN: DOS Device Name
  5004. Method (_STA, 0, NotSerialized) // _STA: Status
  5005. {
  5006. If (IER0)
  5007. {
  5008. Return (0x0F)
  5009. }
  5010.  
  5011. Return (Zero)
  5012. }
  5013.  
  5014. Method (_CRS, 0, NotSerialized) // _CRS: Current Resource Settings
  5015. {
  5016. Name (BUF0, ResourceTemplate ()
  5017. {
  5018. IO (Decode16,
  5019. 0x02E8, // Range Minimum
  5020. 0x02E8, // Range Maximum
  5021. 0x01, // Alignment
  5022. 0x08, // Length
  5023. _Y18)
  5024. IRQNoFlags (_Y19)
  5025. {3}
  5026. })
  5027. CreateByteField (BUF0, \_SB.PCI0.UAR1._CRS._Y18._MIN, IOLO) // _MIN: Minimum Base Address
  5028. CreateByteField (BUF0, 0x03, IOHI)
  5029. CreateByteField (BUF0, \_SB.PCI0.UAR1._CRS._Y18._MAX, IORL) // _MAX: Maximum Base Address
  5030. CreateByteField (BUF0, 0x05, IORH)
  5031. CreateWordField (BUF0, \_SB.PCI0.UAR1._CRS._Y19._INT, IRQL) // _INT: Interrupts
  5032. FRUI (WUR0, IRQL)
  5033. Return (BUF0) /* \_SB_.PCI0.UAR1._CRS.BUF0 */
  5034. }
  5035. }
  5036.  
  5037. Device (UAR2)
  5038. {
  5039. Name (_HID, EisaId ("PNP0500") /* Standard PC COM Serial Port */) // _HID: Hardware ID
  5040. Name (_DDN, "COM2") // _DDN: DOS Device Name
  5041. Method (_STA, 0, NotSerialized) // _STA: Status
  5042. {
  5043. If (IER1)
  5044. {
  5045. Return (0x0F)
  5046. }
  5047.  
  5048. Return (Zero)
  5049. }
  5050.  
  5051. Method (_CRS, 0, NotSerialized) // _CRS: Current Resource Settings
  5052. {
  5053. Name (BUF0, ResourceTemplate ()
  5054. {
  5055. IO (Decode16,
  5056. 0x02F8, // Range Minimum
  5057. 0x02F8, // Range Maximum
  5058. 0x01, // Alignment
  5059. 0x08, // Length
  5060. _Y1A)
  5061. IRQNoFlags (_Y1B)
  5062. {4}
  5063. })
  5064. CreateByteField (BUF0, \_SB.PCI0.UAR2._CRS._Y1A._MIN, IOLO) // _MIN: Minimum Base Address
  5065. CreateByteField (BUF0, 0x03, IOHI)
  5066. CreateByteField (BUF0, \_SB.PCI0.UAR2._CRS._Y1A._MAX, IORL) // _MAX: Maximum Base Address
  5067. CreateByteField (BUF0, 0x05, IORH)
  5068. CreateWordField (BUF0, \_SB.PCI0.UAR2._CRS._Y1B._INT, IRQL) // _INT: Interrupts
  5069. FRUI (WUR1, IRQL)
  5070. Return (BUF0) /* \_SB_.PCI0.UAR2._CRS.BUF0 */
  5071. }
  5072. }
  5073.  
  5074. Device (UAR3)
  5075. {
  5076. Name (_HID, EisaId ("PNP0500") /* Standard PC COM Serial Port */) // _HID: Hardware ID
  5077. Name (_DDN, "COM3") // _DDN: DOS Device Name
  5078. Method (_STA, 0, NotSerialized) // _STA: Status
  5079. {
  5080. If (IER2)
  5081. {
  5082. Return (0x0F)
  5083. }
  5084.  
  5085. Return (Zero)
  5086. }
  5087.  
  5088. Method (_CRS, 0, NotSerialized) // _CRS: Current Resource Settings
  5089. {
  5090. Name (BUF0, ResourceTemplate ()
  5091. {
  5092. IO (Decode16,
  5093. 0x03E8, // Range Minimum
  5094. 0x03E8, // Range Maximum
  5095. 0x01, // Alignment
  5096. 0x08, // Length
  5097. _Y1C)
  5098. IRQNoFlags (_Y1D)
  5099. {3}
  5100. })
  5101. CreateByteField (BUF0, \_SB.PCI0.UAR3._CRS._Y1C._MIN, IOLO) // _MIN: Minimum Base Address
  5102. CreateByteField (BUF0, 0x03, IOHI)
  5103. CreateByteField (BUF0, \_SB.PCI0.UAR3._CRS._Y1C._MAX, IORL) // _MAX: Maximum Base Address
  5104. CreateByteField (BUF0, 0x05, IORH)
  5105. CreateWordField (BUF0, \_SB.PCI0.UAR3._CRS._Y1D._INT, IRQL) // _INT: Interrupts
  5106. FRUI (WUR2, IRQL)
  5107. Return (BUF0) /* \_SB_.PCI0.UAR3._CRS.BUF0 */
  5108. }
  5109. }
  5110.  
  5111. Device (UAR4)
  5112. {
  5113. Name (_HID, EisaId ("PNP0500") /* Standard PC COM Serial Port */) // _HID: Hardware ID
  5114. Name (_DDN, "COM4") // _DDN: DOS Device Name
  5115. Method (_STA, 0, NotSerialized) // _STA: Status
  5116. {
  5117. If (IER3)
  5118. {
  5119. Return (0x0F)
  5120. }
  5121.  
  5122. Return (Zero)
  5123. }
  5124.  
  5125. Method (_CRS, 0, NotSerialized) // _CRS: Current Resource Settings
  5126. {
  5127. Name (BUF0, ResourceTemplate ()
  5128. {
  5129. IO (Decode16,
  5130. 0x03F8, // Range Minimum
  5131. 0x03F8, // Range Maximum
  5132. 0x01, // Alignment
  5133. 0x08, // Length
  5134. _Y1E)
  5135. IRQNoFlags (_Y1F)
  5136. {4}
  5137. })
  5138. CreateByteField (BUF0, \_SB.PCI0.UAR4._CRS._Y1E._MIN, IOLO) // _MIN: Minimum Base Address
  5139. CreateByteField (BUF0, 0x03, IOHI)
  5140. CreateByteField (BUF0, \_SB.PCI0.UAR4._CRS._Y1E._MAX, IORL) // _MAX: Maximum Base Address
  5141. CreateByteField (BUF0, 0x05, IORH)
  5142. CreateWordField (BUF0, \_SB.PCI0.UAR4._CRS._Y1F._INT, IRQL) // _INT: Interrupts
  5143. FRUI (WUR3, IRQL)
  5144. Return (BUF0) /* \_SB_.PCI0.UAR4._CRS.BUF0 */
  5145. }
  5146. }
  5147. }
  5148.  
  5149. Scope (_SB.PCI0.GP18.SATA)
  5150. {
  5151. Name (_PR0, Package (0x01) // _PR0: Power Resources for D0
  5152. {
  5153. P0S0
  5154. })
  5155. Name (_PR3, Package (0x01) // _PR3: Power Resources for D3hot
  5156. {
  5157. P3S0
  5158. })
  5159. Method (_S0W, 0, NotSerialized) // _S0W: S0 Device Wake State
  5160. {
  5161. If ((ST_D == One))
  5162. {
  5163. Return (0x04)
  5164. }
  5165. Else
  5166. {
  5167. Return (Zero)
  5168. }
  5169. }
  5170.  
  5171. Method (_PS0, 0, NotSerialized) // _PS0: Power State 0
  5172. {
  5173. If ((ST_D == One))
  5174. {
  5175. SMIW = 0xD6
  5176. }
  5177. }
  5178.  
  5179. Method (_PS3, 0, NotSerialized) // _PS3: Power State 3
  5180. {
  5181. If ((ST_D == One))
  5182. {
  5183. SMIW = 0xD5
  5184. }
  5185. }
  5186. }
  5187.  
  5188. Scope (_SB.PCI0.GP18.SAT1)
  5189. {
  5190. Name (_PR0, Package (0x01) // _PR0: Power Resources for D0
  5191. {
  5192. P0S1
  5193. })
  5194. Name (_PR3, Package (0x01) // _PR3: Power Resources for D3hot
  5195. {
  5196. P3S1
  5197. })
  5198. Method (_S0W, 0, NotSerialized) // _S0W: S0 Device Wake State
  5199. {
  5200. If ((ST_D == One))
  5201. {
  5202. Return (0x04)
  5203. }
  5204. Else
  5205. {
  5206. Return (Zero)
  5207. }
  5208. }
  5209.  
  5210. Method (_PS0, 0, NotSerialized) // _PS0: Power State 0
  5211. {
  5212. If ((ST_D == One))
  5213. {
  5214. SMIW = 0x01D6
  5215. }
  5216. }
  5217.  
  5218. Method (_PS3, 0, NotSerialized) // _PS3: Power State 3
  5219. {
  5220. If ((ST_D == One))
  5221. {
  5222. SMIW = 0x01D5
  5223. }
  5224. }
  5225. }
  5226.  
  5227. Device (HPET)
  5228. {
  5229. Name (_HID, EisaId ("PNP0103") /* HPET System Timer */) // _HID: Hardware ID
  5230. Method (_STA, 0, NotSerialized) // _STA: Status
  5231. {
  5232. If ((HPEN == One))
  5233. {
  5234. If ((OSVR >= 0x0C))
  5235. {
  5236. Return (0x0F)
  5237. }
  5238.  
  5239. HPEN = Zero
  5240. Return (One)
  5241. }
  5242.  
  5243. Return (One)
  5244. }
  5245.  
  5246. Method (_CRS, 0, NotSerialized) // _CRS: Current Resource Settings
  5247. {
  5248. Name (BUF0, ResourceTemplate ()
  5249. {
  5250. IRQNoFlags ()
  5251. {0}
  5252. IRQNoFlags ()
  5253. {8}
  5254. Memory32Fixed (ReadOnly,
  5255. 0xFED00000, // Address Base
  5256. 0x00000400, // Address Length
  5257. )
  5258. })
  5259. Return (BUF0) /* \HPET._CRS.BUF0 */
  5260. }
  5261. }
  5262.  
  5263. Device (_SB.TPM)
  5264. {
  5265. Name (TMRQ, 0xFFFFFFFF)
  5266. Name (TLVL, 0xFFFFFFFF)
  5267. Method (_HID, 0, NotSerialized) // _HID: Hardware ID
  5268. {
  5269. If (TCMF)
  5270. {
  5271. Return (0x01013469)
  5272. }
  5273. ElseIf ((TTDP == Zero))
  5274. {
  5275. Return (0x310CD041)
  5276. }
  5277. Else
  5278. {
  5279. Return ("MSFT0101")
  5280. }
  5281. }
  5282.  
  5283. OperationRegion (TMMB, SystemMemory, 0xFED40000, 0x5000)
  5284. Field (TMMB, ByteAcc, Lock, Preserve)
  5285. {
  5286. ACC0, 8,
  5287. Offset (0x08),
  5288. INTE, 32,
  5289. INTV, 8,
  5290. Offset (0x10),
  5291. INTS, 32,
  5292. INTF, 32,
  5293. TSTS, 32,
  5294. Offset (0x24),
  5295. FIFO, 32,
  5296. Offset (0x30),
  5297. IDTF, 32,
  5298. Offset (0x4C),
  5299. SCMD, 32
  5300. }
  5301.  
  5302. Method (_STR, 0, NotSerialized) // _STR: Description String
  5303. {
  5304. If ((TTDP == Zero))
  5305. {
  5306. Return (Unicode ("TPM 1.2 Device"))
  5307. }
  5308. Else
  5309. {
  5310. Return (Unicode ("TPM 2.0 Device"))
  5311. }
  5312. }
  5313.  
  5314. Name (_UID, One) // _UID: Unique ID
  5315. Name (CRST, ResourceTemplate ()
  5316. {
  5317. Memory32Fixed (ReadOnly,
  5318. 0x00000000, // Address Base
  5319. 0x00001000, // Address Length
  5320. _Y20)
  5321. Memory32Fixed (ReadOnly,
  5322. 0xFED70000, // Address Base
  5323. 0x00001000, // Address Length
  5324. _Y21)
  5325. })
  5326. Name (CRSD, ResourceTemplate ()
  5327. {
  5328. Memory32Fixed (ReadWrite,
  5329. 0xFED40000, // Address Base
  5330. 0x00005000, // Address Length
  5331. _Y22)
  5332. })
  5333. Name (CRID, ResourceTemplate ()
  5334. {
  5335. Memory32Fixed (ReadWrite,
  5336. 0xFED40000, // Address Base
  5337. 0x00005000, // Address Length
  5338. _Y23)
  5339. })
  5340. Name (CREI, ResourceTemplate ()
  5341. {
  5342. Memory32Fixed (ReadWrite,
  5343. 0xFED40000, // Address Base
  5344. 0x00005000, // Address Length
  5345. )
  5346. GpioInt (Level, ActiveLow, ExclusiveAndWake, PullNone, 0x0000,
  5347. "\\_SB.GPIO", 0x00, ResourceConsumer, _Y24,
  5348. )
  5349. { // Pin list
  5350. 0x0000
  5351. }
  5352. })
  5353. Method (_CRS, 0, Serialized) // _CRS: Current Resource Settings
  5354. {
  5355. If ((AMDT == One))
  5356. {
  5357. CreateDWordField (CRST, \_SB.TPM._Y20._BAS, MTFB) // _BAS: Base Address
  5358. CreateDWordField (CRST, \_SB.TPM._Y20._LEN, LTFB) // _LEN: Length
  5359. MTFB = TPMB /* \TPMB */
  5360. LTFB = TPBS /* \TPBS */
  5361. CreateDWordField (CRST, \_SB.TPM._Y21._BAS, MTFC) // _BAS: Base Address
  5362. CreateDWordField (CRST, \_SB.TPM._Y21._LEN, LTFC) // _LEN: Length
  5363. MTFC = TPMC /* \TPMC */
  5364. LTFC = TPCS /* \TPCS */
  5365. Return (CRST) /* \_SB_.TPM_.CRST */
  5366. }
  5367. Else
  5368. {
  5369. If ((DTPT == One))
  5370. {
  5371. CreateDWordField (CRSD, \_SB.TPM._Y22._BAS, MTFE) // _BAS: Base Address
  5372. CreateDWordField (CRSD, \_SB.TPM._Y22._LEN, LTFE) // _LEN: Length
  5373. MTFE = 0xFED40000
  5374. LTFE = 0x5000
  5375. Return (CRSD) /* \_SB_.TPM_.CRSD */
  5376. }
  5377. ElseIf ((TTPF == One))
  5378. {
  5379. If (((TMRQ == Zero) && (TMRQ != 0xFFFFFFFF)))
  5380. {
  5381. CreateDWordField (CRID, \_SB.TPM._Y23._BAS, MTFD) // _BAS: Base Address
  5382. CreateDWordField (CRID, \_SB.TPM._Y23._LEN, LTFD) // _LEN: Length
  5383. MTFD = 0xFED40000
  5384. LTFD = 0x5000
  5385. Return (CRID) /* \_SB_.TPM_.CRID */
  5386. }
  5387. Else
  5388. {
  5389. CreateWordField (CREI, 0x23, LIRQ)
  5390. CreateBitField (CREI, \_SB.TPM._Y24._POL, LLVL) // _POL: Polarity
  5391. LIRQ = TMRQ /* \_SB_.TPM_.TMRQ */
  5392. LLVL = TLVL /* \_SB_.TPM_.TLVL */
  5393. Return (CREI) /* \_SB_.TPM_.CREI */
  5394. }
  5395. }
  5396. ElseIf ((TTPF == Zero))
  5397. {
  5398. CreateDWordField (CRST, \_SB.TPM._Y21._BAS, MTFF) // _BAS: Base Address
  5399. MTFF = FTPM /* \FTPM */
  5400. Return (CRST) /* \_SB_.TPM_.CRST */
  5401. }
  5402.  
  5403. MTFE = Zero
  5404. LTFE = Zero
  5405. Return (CRID) /* \_SB_.TPM_.CRID */
  5406. }
  5407.  
  5408. Return (CRID) /* \_SB_.TPM_.CRID */
  5409. }
  5410.  
  5411. Method (_SRS, 1, Serialized) // _SRS: Set Resource Settings
  5412. {
  5413. If (((TMRQ != Zero) && (TMRQ != 0xFFFFFFFF)))
  5414. {
  5415. CreateWordField (Arg0, 0x23, IRQ0)
  5416. CreateWordField (CREI, 0x23, LIRQ)
  5417. LIRQ = IRQ0 /* \_SB_.TPM_._SRS.IRQ0 */
  5418. TMRQ = IRQ0 /* \_SB_.TPM_._SRS.IRQ0 */
  5419. CreateBitField (Arg0, 0x98, ITRG)
  5420. CreateBitField (CREI, \_SB.TPM._Y24._MOD, LTRG) // _MOD: Mode
  5421. LTRG = ITRG /* \_SB_.TPM_._SRS.ITRG */
  5422. CreateBitField (Arg0, 0x99, ILVL)
  5423. CreateBitField (CREI, \_SB.TPM._Y24._POL, LLVL) // _POL: Polarity
  5424. LLVL = ILVL /* \_SB_.TPM_._SRS.ILVL */
  5425. If ((((IDTF & 0x0F) == Zero) || ((IDTF & 0x0F
  5426. ) == 0x0F)))
  5427. {
  5428. If ((IRQ0 < 0x10))
  5429. {
  5430. INTV = (IRQ0 & 0x0F)
  5431. }
  5432.  
  5433. If ((ITRG == One))
  5434. {
  5435. INTE |= 0x10
  5436. }
  5437. Else
  5438. {
  5439. INTE &= 0xFFFFFFEF
  5440. }
  5441.  
  5442. If ((ILVL == Zero))
  5443. {
  5444. INTE |= 0x08
  5445. }
  5446. Else
  5447. {
  5448. INTE &= 0xFFFFFFF7
  5449. }
  5450. }
  5451. }
  5452. }
  5453.  
  5454. OperationRegion (CRBD, SystemMemory, TPMM, 0x48)
  5455. Field (CRBD, AnyAcc, NoLock, Preserve)
  5456. {
  5457. Offset (0x04),
  5458. HERR, 32,
  5459. Offset (0x40),
  5460. HCMD, 32,
  5461. HSTS, 32
  5462. }
  5463.  
  5464. Method (_STA, 0, NotSerialized) // _STA: Status
  5465. {
  5466. If ((TTDP == Zero))
  5467. {
  5468. If (TPMF)
  5469. {
  5470. Return (0x0F)
  5471. }
  5472.  
  5473. Return (Zero)
  5474. }
  5475. ElseIf ((TTDP == One))
  5476. {
  5477. If (TPMF)
  5478. {
  5479. Return (0x0F)
  5480. }
  5481.  
  5482. Return (Zero)
  5483. }
  5484.  
  5485. Return (Zero)
  5486. }
  5487.  
  5488. Method (STRT, 3, Serialized)
  5489. {
  5490. OperationRegion (TPMR, SystemMemory, FTPM, 0x1000)
  5491. Field (TPMR, AnyAcc, NoLock, Preserve)
  5492. {
  5493. Offset (0x04),
  5494. FERR, 32,
  5495. Offset (0x0C),
  5496. BEGN, 32
  5497. }
  5498.  
  5499. Name (TIMR, Zero)
  5500. If ((ToInteger (Arg0) != Zero)){}
  5501. Switch (ToInteger (Arg1))
  5502. {
  5503. Case (Zero)
  5504. {
  5505. Return (Buffer (One)
  5506. {
  5507. 0x03 // .
  5508. })
  5509. }
  5510. Case (One)
  5511. {
  5512. TIMR = Zero
  5513. If ((AMDT == One))
  5514. {
  5515. While (((BEGN == One) && (TIMR < 0x0200)))
  5516. {
  5517. If ((BEGN == One))
  5518. {
  5519. Sleep (One)
  5520. TIMR++
  5521. }
  5522. }
  5523. }
  5524. ElseIf ((((HSTS & 0x02) | (HSTS & One)
  5525. ) == 0x03))
  5526. {
  5527. HCMD = One
  5528. }
  5529. Else
  5530. {
  5531. FERR = One
  5532. BEGN = Zero
  5533. }
  5534.  
  5535. Return (Zero)
  5536. }
  5537.  
  5538. }
  5539.  
  5540. Return (One)
  5541. }
  5542.  
  5543. Method (CRYF, 3, Serialized)
  5544. {
  5545. If ((ToInteger (Arg0) != One)){}
  5546. Switch (ToInteger (Arg1))
  5547. {
  5548. Case (Zero)
  5549. {
  5550. Return (Buffer (One)
  5551. {
  5552. 0x03 // .
  5553. })
  5554. }
  5555. Case (One)
  5556. {
  5557. Name (TPMV, Package (0x02)
  5558. {
  5559. One,
  5560. Package (0x02)
  5561. {
  5562. One,
  5563. 0x20
  5564. }
  5565. })
  5566. If ((_STA () == Zero))
  5567. {
  5568. Return (Package (0x01)
  5569. {
  5570. Zero
  5571. })
  5572. }
  5573.  
  5574. Return (TPMV) /* \_SB_.TPM_.CRYF.TPMV */
  5575. }
  5576.  
  5577. }
  5578.  
  5579. Return (Buffer (One)
  5580. {
  5581. 0x00 // .
  5582. })
  5583. }
  5584. }
  5585.  
  5586. Scope (_SB.TPM)
  5587. {
  5588. OperationRegion (TSMI, SystemIO, SMIA, 0x02)
  5589. Field (TSMI, WordAcc, NoLock, Preserve)
  5590. {
  5591. SMI, 16
  5592. }
  5593.  
  5594. OperationRegion (ATNV, SystemMemory, PPIM, PPIL)
  5595. Field (ATNV, AnyAcc, NoLock, Preserve)
  5596. {
  5597. RQST, 32,
  5598. RCNT, 32,
  5599. ERRO, 32,
  5600. FLAG, 32,
  5601. MISC, 32,
  5602. OPTN, 32,
  5603. SRSP, 32
  5604. }
  5605.  
  5606. Method (_DSM, 4, Serialized) // _DSM: Device-Specific Method
  5607. {
  5608. If ((Arg0 == ToUUID ("3dddfaa6-361b-4eb4-a424-8d10089d1653") /* Physical Presence Interface */))
  5609. {
  5610. Switch (ToInteger (Arg2))
  5611. {
  5612. Case (Zero)
  5613. {
  5614. Return (Buffer (0x02)
  5615. {
  5616. 0xFF, 0x01 // ..
  5617. })
  5618. }
  5619. Case (One)
  5620. {
  5621. If ((PPIV == Zero))
  5622. {
  5623. Return ("1.2")
  5624. }
  5625. Else
  5626. {
  5627. Return ("1.3")
  5628. }
  5629. }
  5630. Case (0x02)
  5631. {
  5632. RQST = DerefOf (Arg3 [Zero])
  5633. SRSP = Zero
  5634. FLAG = 0x02
  5635. TMF1 = OFST /* \OFST */
  5636. SRSP = Zero
  5637. SMI = TMF1 /* \TMF1 */
  5638. Return (SRSP) /* \_SB_.TPM_.SRSP */
  5639. }
  5640. Case (0x03)
  5641. {
  5642. Name (PPI1, Package (0x02)
  5643. {
  5644. Zero,
  5645. Zero
  5646. })
  5647. PPI1 [One] = RQST /* \_SB_.TPM_.RQST */
  5648. Return (PPI1) /* \_SB_.TPM_._DSM.PPI1 */
  5649. }
  5650. Case (0x04)
  5651. {
  5652. Return (TRST) /* \TRST */
  5653. }
  5654. Case (0x05)
  5655. {
  5656. Name (PPI2, Package (0x03)
  5657. {
  5658. Zero,
  5659. Zero,
  5660. Zero
  5661. })
  5662. SRSP = Zero
  5663. FLAG = 0x05
  5664. SMI = OFST /* \OFST */
  5665. PPI2 [One] = RCNT /* \_SB_.TPM_.RCNT */
  5666. PPI2 [0x02] = ERRO /* \_SB_.TPM_.ERRO */
  5667. Return (PPI2) /* \_SB_.TPM_._DSM.PPI2 */
  5668. }
  5669. Case (0x06)
  5670. {
  5671. Return (0x03)
  5672. }
  5673. Case (0x07)
  5674. {
  5675. RQST = DerefOf (Arg3 [Zero])
  5676. FLAG = 0x07
  5677. OPTN = Zero
  5678. If ((RQST == 0x17))
  5679. {
  5680. ToInteger (DerefOf (Arg3 [One]), OPTN) /* \_SB_.TPM_.OPTN */
  5681. }
  5682.  
  5683. TMF1 = OFST /* \OFST */
  5684. SRSP = Zero
  5685. SMI = TMF1 /* \TMF1 */
  5686. Return (SRSP) /* \_SB_.TPM_.SRSP */
  5687. }
  5688. Case (0x08)
  5689. {
  5690. RQST = DerefOf (Arg3 [Zero])
  5691. FLAG = 0x08
  5692. TMF1 = OFST /* \OFST */
  5693. SRSP = Zero
  5694. SMI = TMF1 /* \TMF1 */
  5695. Return (SRSP) /* \_SB_.TPM_.SRSP */
  5696. }
  5697. Default
  5698. {
  5699. }
  5700.  
  5701. }
  5702. }
  5703. ElseIf ((Arg0 == ToUUID ("376054ed-cc13-4675-901c-4756d7f2d45d") /* Unknown UUID */))
  5704. {
  5705. Switch (ToInteger (Arg2))
  5706. {
  5707. Case (Zero)
  5708. {
  5709. Return (Buffer (One)
  5710. {
  5711. 0x03 // .
  5712. })
  5713. }
  5714. Case (One)
  5715. {
  5716. RQST = DerefOf (Arg3 [Zero])
  5717. FLAG = 0x09
  5718. TMF1 = OFST /* \OFST */
  5719. SRSP = Zero
  5720. SMI = TMF1 /* \TMF1 */
  5721. Return (SRSP) /* \_SB_.TPM_.SRSP */
  5722. }
  5723. Default
  5724. {
  5725. }
  5726.  
  5727. }
  5728. }
  5729.  
  5730. If ((Arg0 == ToUUID ("cf8e16a5-c1e8-4e25-b712-4f54a96702c8") /* Unknown UUID */))
  5731. {
  5732. Return (CRYF (Arg1, Arg2, Arg3))
  5733. }
  5734.  
  5735. If ((Arg0 == ToUUID ("6bbf6cab-5463-4714-b7cd-f0203c0368d4") /* Unknown UUID */))
  5736. {
  5737. Return (STRT (Arg1, Arg2, Arg3))
  5738. }
  5739.  
  5740. Return (Buffer (One)
  5741. {
  5742. 0x00 // .
  5743. })
  5744. }
  5745.  
  5746. Method (TPTS, 1, Serialized)
  5747. {
  5748. Switch (ToInteger (Arg0))
  5749. {
  5750. Case (0x04)
  5751. {
  5752. RQST = Zero
  5753. FLAG = 0x09
  5754. SRSP = Zero
  5755. SMI = OFST /* \OFST */
  5756. }
  5757. Case (0x05)
  5758. {
  5759. RQST = Zero
  5760. FLAG = 0x09
  5761. SRSP = Zero
  5762. SMI = OFST /* \OFST */
  5763. }
  5764.  
  5765. }
  5766.  
  5767. Sleep (0x012C)
  5768. }
  5769. }
  5770.  
  5771. Scope (_SB)
  5772. {
  5773. OperationRegion (RAMW, SystemMemory, 0xAC5D1000, 0x0100)
  5774. Field (RAMW, AnyAcc, NoLock, Preserve)
  5775. {
  5776. AMLS, 32,
  5777. ARS1, 32,
  5778. ARS2, 32,
  5779. ARS3, 32,
  5780. APKG, 32,
  5781. AMDL, 32,
  5782. ACPB, 32,
  5783. ACAB, 32,
  5784. AECB, 32,
  5785. ALBB, 32,
  5786. APSB, 32,
  5787. ASRB, 32,
  5788. ASIB, 32,
  5789. AUSB, 32,
  5790. AVGB, 32,
  5791. AWRB, 32,
  5792. ARSB, 32,
  5793. ADPB, 32
  5794. }
  5795. }
  5796.  
  5797. Scope (_SB)
  5798. {
  5799. OperationRegion (APKO, SystemMemory, APKG, 0x04)
  5800. Field (APKO, AnyAcc, NoLock, Preserve)
  5801. {
  5802. APKS, 32
  5803. }
  5804. }
  5805.  
  5806. Scope (_SB)
  5807. {
  5808. OperationRegion (AMDO, SystemMemory, AMDL, 0x04)
  5809. Field (AMDO, AnyAcc, NoLock, Preserve)
  5810. {
  5811. AMDS, 32
  5812. }
  5813. }
  5814.  
  5815. Scope (_SB)
  5816. {
  5817. OperationRegion (ACPO, SystemMemory, ACPB, 0x0E)
  5818. Field (ACPO, AnyAcc, NoLock, Preserve)
  5819. {
  5820. ACPS, 32,
  5821. SMIF, 8,
  5822. ALPR, 32,
  5823. TMPB, 8,
  5824. INSK, 8,
  5825. WLDP, 8,
  5826. BTDP, 8,
  5827. APSC, 8
  5828. }
  5829. }
  5830.  
  5831. Scope (_SB)
  5832. {
  5833. OperationRegion (ACAO, SystemMemory, ACAB, 0x10)
  5834. Field (ACAO, AnyAcc, NoLock, Preserve)
  5835. {
  5836. ACAS, 32,
  5837. CAL1, 32,
  5838. CA10, 32,
  5839. CA11, 32
  5840. }
  5841. }
  5842.  
  5843. Scope (_SB)
  5844. {
  5845. OperationRegion (AECO, SystemMemory, AECB, 0x14)
  5846. Field (AECO, AnyAcc, NoLock, Preserve)
  5847. {
  5848. AECS, 32,
  5849. ACPF, 8,
  5850. DCPF, 8,
  5851. DCP2, 8,
  5852. TPSV, 8,
  5853. TCRT, 8,
  5854. PPSV, 8,
  5855. DSYN, 8,
  5856. WOLO, 8,
  5857. EGBF, 32,
  5858. KBLC, 8,
  5859. KBLV, 8,
  5860. ALAE, 8,
  5861. KFSK, 8
  5862. }
  5863. }
  5864.  
  5865. Scope (_SB)
  5866. {
  5867. OperationRegion (ALBO, SystemMemory, ALBB, 0x04)
  5868. Field (ALBO, AnyAcc, NoLock, Preserve)
  5869. {
  5870. ALBS, 32
  5871. }
  5872. }
  5873.  
  5874. Scope (_SB)
  5875. {
  5876. OperationRegion (APSO, SystemMemory, APSB, 0x04)
  5877. Field (APSO, AnyAcc, NoLock, Preserve)
  5878. {
  5879. APSS, 32
  5880. }
  5881. }
  5882.  
  5883. Scope (_SB)
  5884. {
  5885. OperationRegion (ASRO, SystemMemory, ASRB, 0x04)
  5886. Field (ASRO, AnyAcc, NoLock, Preserve)
  5887. {
  5888. ASRS, 32
  5889. }
  5890. }
  5891.  
  5892. Scope (_SB)
  5893. {
  5894. OperationRegion (ASIO, SystemMemory, ASIB, 0x09)
  5895. Field (ASIO, AnyAcc, NoLock, Preserve)
  5896. {
  5897. ASIS, 32,
  5898. TPIF, 8,
  5899. TPDI, 8,
  5900. TPLP, 8,
  5901. TPLI, 8,
  5902. TPHI, 8
  5903. }
  5904. }
  5905.  
  5906. Scope (_SB)
  5907. {
  5908. OperationRegion (AUSO, SystemMemory, AUSB, 0x06)
  5909. Field (AUSO, AnyAcc, NoLock, Preserve)
  5910. {
  5911. AUBS, 32,
  5912. VBOF, 16
  5913. }
  5914. }
  5915.  
  5916. Scope (_SB)
  5917. {
  5918. OperationRegion (AVGO, SystemMemory, AVGB, 0x12)
  5919. Field (AVGO, AnyAcc, NoLock, Preserve)
  5920. {
  5921. AVGS, 32,
  5922. VGAF, 16,
  5923. LCDV, 32,
  5924. LCDR, 8,
  5925. LCDS, 32,
  5926. ACTD, 8,
  5927. AVLD, 8,
  5928. SETD, 8
  5929. }
  5930. }
  5931.  
  5932. Scope (_SB)
  5933. {
  5934. OperationRegion (AURO, SystemMemory, AWRB, 0x1D)
  5935. Field (AURO, AnyAcc, NoLock, Preserve)
  5936. {
  5937. STXE, 8,
  5938. ST10, 8,
  5939. ST11, 8,
  5940. ST12, 8,
  5941. ST13, 8,
  5942. ST14, 8,
  5943. ST15, 8,
  5944. ST16, 8,
  5945. ST17, 8,
  5946. ST18, 8,
  5947. ST19, 8,
  5948. SD11, 8,
  5949. SD12, 8,
  5950. SD13, 8,
  5951. SD14, 8,
  5952. SD15, 8,
  5953. SD16, 8,
  5954. SD21, 8,
  5955. SD22, 8,
  5956. SD23, 8,
  5957. SD24, 8,
  5958. SD25, 8,
  5959. SD26, 8,
  5960. SD31, 8,
  5961. SD32, 8,
  5962. SD33, 8,
  5963. SD34, 8,
  5964. SD35, 8,
  5965. SD36, 8
  5966. }
  5967. }
  5968.  
  5969. Scope (_SB)
  5970. {
  5971. OperationRegion (ARSO, SystemMemory, ARSB, 0x05)
  5972. Field (ARSO, AnyAcc, NoLock, Preserve)
  5973. {
  5974. ARSS, 32,
  5975. ARSE, 8
  5976. }
  5977. }
  5978.  
  5979. Scope (_SB)
  5980. {
  5981. OperationRegion (ADPO, SystemMemory, ADPB, 0x05)
  5982. Field (ADPO, AnyAcc, NoLock, Preserve)
  5983. {
  5984. ADPS, 32,
  5985. CPFG, 8
  5986. }
  5987. }
  5988.  
  5989. Scope (\)
  5990. {
  5991. Method (DIAG, 1, NotSerialized)
  5992. {
  5993. }
  5994.  
  5995. OperationRegion (GPSC, SystemIO, 0xB2, 0x02)
  5996. Field (GPSC, ByteAcc, NoLock, Preserve)
  5997. {
  5998. SMCM, 8,
  5999. SMST, 8
  6000. }
  6001.  
  6002. Method (ISMI, 1, Serialized)
  6003. {
  6004. SMCM = Arg0
  6005. }
  6006.  
  6007. Method (ASMI, 1, Serialized)
  6008. {
  6009. \_SB.ALPR = Arg0
  6010. SMCM = 0xA3
  6011. Return (\_SB.ALPR)
  6012. }
  6013.  
  6014. Name (OSFG, Zero)
  6015. Name (OS9X, One)
  6016. Name (OS98, 0x02)
  6017. Name (OSME, 0x04)
  6018. Name (OS2K, 0x08)
  6019. Name (OSXP, 0x10)
  6020. Name (OSEG, 0x20)
  6021. Name (OSVT, 0x40)
  6022. Name (OSW7, 0x80)
  6023. Name (OSW8, 0x0100)
  6024. Name (OS13, 0x0110)
  6025. Name (OS14, 0x0120)
  6026. Name (OS15, 0x0130)
  6027. Name (OS16, 0x0140)
  6028. Name (OS17, 0x0150)
  6029. Method (MSOS, 0, NotSerialized)
  6030. {
  6031. Return (0x0110)
  6032. }
  6033.  
  6034. Method (ADVG, 0, NotSerialized)
  6035. {
  6036. Return (0x03)
  6037. }
  6038.  
  6039. Method (GCDM, 0, NotSerialized)
  6040. {
  6041. Return (One)
  6042. }
  6043.  
  6044. Method (SWHG, 1, Serialized)
  6045. {
  6046. Return (Zero)
  6047. }
  6048.  
  6049. Method (NATK, 0, NotSerialized)
  6050. {
  6051. Return (One)
  6052. }
  6053. }
  6054.  
  6055. Scope (_SB)
  6056. {
  6057. Device (SLPB)
  6058. {
  6059. Name (_HID, EisaId ("PNP0C0E") /* Sleep Button Device */) // _HID: Hardware ID
  6060. Name (_STA, 0x0B) // _STA: Status
  6061. }
  6062.  
  6063. OperationRegion (AGPO, SystemMemory, 0xFEC30000, 0x1000)
  6064. Field (AGPO, AnyAcc, NoLock, Preserve)
  6065. {
  6066. Offset (0x08),
  6067. GPOL, 8
  6068. }
  6069.  
  6070. Method (GGOV, 2, Serialized)
  6071. {
  6072. If (Arg0)
  6073. {
  6074. Return (((GPOL & (One << Arg1)) >> Arg1))
  6075. }
  6076. Else
  6077. {
  6078. Return (M009) /* External reference */
  6079. Arg1
  6080. }
  6081. }
  6082.  
  6083. Method (SGOV, 3, Serialized)
  6084. {
  6085. If (Arg0)
  6086. {
  6087. Local0 = ((GPOL & ~(One << Arg1)) | (
  6088. Arg2 << Arg1))
  6089. GPOL = Local0
  6090. }
  6091. Else
  6092. {
  6093. M010 (Arg1, Arg2)
  6094. }
  6095. }
  6096.  
  6097. Method (GPC0, 2, Serialized)
  6098. {
  6099. If (Arg0)
  6100. {
  6101. Return (((GPOL & (One << Arg1)) >> Arg1))
  6102. }
  6103. Else
  6104. {
  6105. Return (M900) /* External reference */
  6106. Arg1
  6107. }
  6108. }
  6109. }
  6110.  
  6111. Scope (_SB)
  6112. {
  6113. Name (ATKP, Zero)
  6114. Name (AITM, Zero)
  6115. Name (PLMD, Zero)
  6116. Name (MUTX, One)
  6117. Name (LEDS, Zero)
  6118. Name (FNIV, Zero)
  6119. Device (ATKD)
  6120. {
  6121. Name (_HID, "PNP0C14" /* Windows Management Instrumentation Device */) // _HID: Hardware ID
  6122. Name (_UID, "ATK") // _UID: Unique ID
  6123. Name (ATKQ, Package (0x10)
  6124. {
  6125. 0xFFFFFFFF,
  6126. 0xFFFFFFFF,
  6127. 0xFFFFFFFF,
  6128. 0xFFFFFFFF,
  6129. 0xFFFFFFFF,
  6130. 0xFFFFFFFF,
  6131. 0xFFFFFFFF,
  6132. 0xFFFFFFFF,
  6133. 0xFFFFFFFF,
  6134. 0xFFFFFFFF,
  6135. 0xFFFFFFFF,
  6136. 0xFFFFFFFF,
  6137. 0xFFFFFFFF,
  6138. 0xFFFFFFFF,
  6139. 0xFFFFFFFF,
  6140. 0xFFFFFFFF
  6141. })
  6142. Name (AQHI, Zero)
  6143. Name (AQTI, 0x0F)
  6144. Name (AQNO, Zero)
  6145. Method (IANQ, 1, Serialized)
  6146. {
  6147. If ((AQNO >= 0x10))
  6148. {
  6149. Local0 = 0x64
  6150. While ((Local0 && (AQNO >= 0x10)))
  6151. {
  6152. Local0--
  6153. Sleep (0x0A)
  6154. }
  6155.  
  6156. If ((!Local0 && (AQNO >= 0x10)))
  6157. {
  6158. Return (Zero)
  6159. }
  6160. }
  6161.  
  6162. AQTI++
  6163. AQTI &= 0x0F
  6164. ATKQ [AQTI] = Arg0
  6165. AQNO++
  6166. Return (One)
  6167. }
  6168.  
  6169. Method (GANQ, 0, Serialized)
  6170. {
  6171. If (AQNO)
  6172. {
  6173. AQNO--
  6174. Local0 = DerefOf (ATKQ [AQHI])
  6175. AQHI++
  6176. AQHI &= 0x0F
  6177. Return (Local0)
  6178. }
  6179.  
  6180. Return (Ones)
  6181. }
  6182.  
  6183. Name (_WDG, Buffer (0x3C)
  6184. {
  6185. /* 0000 */ 0xD0, 0x5E, 0x84, 0x97, 0x6D, 0x4E, 0xDE, 0x11, // .^..mN..
  6186. /* 0008 */ 0x8A, 0x39, 0x08, 0x00, 0x20, 0x0C, 0x9A, 0x66, // .9.. ..f
  6187. /* 0010 */ 0x4E, 0x42, 0x01, 0x02, 0x35, 0xBB, 0x3C, 0x0B, // NB..5.<.
  6188. /* 0018 */ 0xC2, 0xE3, 0xED, 0x45, 0x91, 0xC2, 0x4C, 0x5A, // ...E..LZ
  6189. /* 0020 */ 0x6D, 0x19, 0x5D, 0x1C, 0xFF, 0x00, 0x01, 0x08, // m.].....
  6190. /* 0028 */ 0x21, 0x12, 0x90, 0x05, 0x66, 0xD5, 0xD1, 0x11, // !...f...
  6191. /* 0030 */ 0xB2, 0xF0, 0x00, 0xA0, 0xC9, 0x06, 0x29, 0x10, // ......).
  6192. /* 0038 */ 0x4D, 0x4F, 0x01, 0x00 // MO..
  6193. })
  6194. Scope (\_SB.ATKD)
  6195. {
  6196. Method (WLED, 1, NotSerialized)
  6197. {
  6198. SGOV (One, One, Arg0)
  6199. Arg0 ^= One
  6200. If (((WAPF && 0x05) == Zero)){}
  6201. Return (One)
  6202. }
  6203.  
  6204. Method (BLED, 1, NotSerialized)
  6205. {
  6206. SGOV (One, One, Arg0)
  6207. Return (One)
  6208. }
  6209.  
  6210. Name (WAPF, Zero)
  6211. Method (CWAP, 1, NotSerialized)
  6212. {
  6213. WAPF |= Arg0 /* \_SB_.ATKD.WAPF */
  6214. Return (One)
  6215. }
  6216.  
  6217. Name (GPST, Package (0x02)
  6218. {
  6219. 0x50,
  6220. 0x48
  6221. })
  6222. Method (DGPS, 2, NotSerialized)
  6223. {
  6224. If ((Arg0 >= SizeOf (Arg1)))
  6225. {
  6226. Return (Zero)
  6227. }
  6228.  
  6229. ^^PCI0.GPP0.PEGP.NLIM = One
  6230. ^^PCI0.GPP0.PEGP.TGPU = DerefOf (Arg1 [Arg0])
  6231. Notify (^^PCI0.GPP0.PEGP, 0xC0) // Hardware-Specific
  6232. Return (One)
  6233. }
  6234. }
  6235.  
  6236. Scope (\_SB.ATKD)
  6237. {
  6238. }
  6239.  
  6240. Scope (\_SB.ATKD)
  6241. {
  6242. Method (OFBD, 1, NotSerialized)
  6243. {
  6244. Name (FBDT, Package (0x53)
  6245. {
  6246. 0x88,
  6247. 0x89,
  6248. 0x8A,
  6249. 0x8B,
  6250. 0x8C,
  6251. 0x8D,
  6252. 0x8E,
  6253. 0x8F,
  6254. 0x70,
  6255. 0x71,
  6256. 0x72,
  6257. 0x73,
  6258. 0x74,
  6259. 0x75,
  6260. 0x76,
  6261. 0x77,
  6262. 0x78,
  6263. 0x79,
  6264. 0x7A,
  6265. 0x7B,
  6266. 0x7C,
  6267. 0x7D,
  6268. 0x7E,
  6269. 0x7F,
  6270. 0x60,
  6271. 0x61,
  6272. 0x62,
  6273. 0x63,
  6274. 0x64,
  6275. 0x65,
  6276. 0x66,
  6277. 0x67,
  6278. 0x91,
  6279. 0x92,
  6280. 0x93,
  6281. 0x96,
  6282. 0xE0,
  6283. 0xE1,
  6284. 0xE2,
  6285. 0xE3,
  6286. 0xE4,
  6287. 0xE5,
  6288. 0xE6,
  6289. 0xE7,
  6290. 0xE8,
  6291. 0xE9,
  6292. 0xEA,
  6293. 0xEB,
  6294. 0xEC,
  6295. 0xED,
  6296. 0xEE,
  6297. 0xEF,
  6298. 0xD0,
  6299. 0xD1,
  6300. 0xD2,
  6301. 0xD3,
  6302. 0xD4,
  6303. 0xD5,
  6304. 0xD6,
  6305. 0xD7,
  6306. 0xD8,
  6307. 0xD9,
  6308. 0xDA,
  6309. 0xDB,
  6310. 0xDC,
  6311. 0xDD,
  6312. 0xDE,
  6313. 0xDF,
  6314. 0xC0,
  6315. 0xC1,
  6316. 0xC2,
  6317. 0xC3,
  6318. 0xC4,
  6319. 0xC5,
  6320. 0xC6,
  6321. 0xC7,
  6322. 0xF0,
  6323. 0xF1,
  6324. 0xF2,
  6325. 0xF3,
  6326. 0xF6,
  6327. 0xF7,
  6328. 0xFA
  6329. })
  6330. Local0 = Match (FBDT, MEQ, Arg0, MTR, Zero, Zero)
  6331. Local0++
  6332. Return (Local0)
  6333. }
  6334. }
  6335.  
  6336. Method (WMNB, 3, Serialized)
  6337. {
  6338. CreateDWordField (Arg2, Zero, IIA0)
  6339. CreateDWordField (Arg2, 0x04, IIA1)
  6340. CreateDWordField (Arg2, 0x08, IIA2)
  6341. CreateDWordField (Arg2, 0x0C, IIA3)
  6342. CreateDWordField (Arg2, 0x10, IIA4)
  6343. Local0 = (Arg1 & 0xFFFFFFFF)
  6344. If ((Local0 == 0x54494E49))
  6345. {
  6346. Return (INIT (IIA0))
  6347. }
  6348.  
  6349. If ((Local0 == 0x53545342))
  6350. {
  6351. Return (BSTS ())
  6352. }
  6353.  
  6354. If ((Local0 == 0x4E554653))
  6355. {
  6356. Return (SFUN ())
  6357. }
  6358.  
  6359. If ((Local0 == 0x474F4457))
  6360. {
  6361. Return (WDOG (IIA0))
  6362. }
  6363.  
  6364. If ((Local0 == 0x494E424B))
  6365. {
  6366. Return (KBNI ())
  6367. }
  6368.  
  6369. If ((Local0 == 0x47444353))
  6370. {
  6371. Return (SCDG (IIA0, IIA1))
  6372. }
  6373.  
  6374. If ((Local0 == 0x43455053))
  6375. {
  6376. Return (SPEC (IIA0))
  6377. }
  6378.  
  6379. If ((Local0 == 0x5256534F))
  6380. {
  6381. OSVR (IIA0)
  6382. Return (Zero)
  6383. }
  6384.  
  6385. If ((Local0 == 0x53524556))
  6386. {
  6387. Return (VERS (IIA0, IIA1))
  6388. }
  6389.  
  6390. If ((Local0 == 0x44434C47))
  6391. {
  6392. Return (GLCD ())
  6393. }
  6394.  
  6395. If ((Local0 == 0x49564E41))
  6396. {
  6397. Return (ANVI (IIA0))
  6398. }
  6399.  
  6400. If ((Local0 == 0x4647574D))
  6401. {
  6402. If ((IIA0 == 0x00020013)){}
  6403. If ((IIA0 == 0x00010016))
  6404. {
  6405. Local0 = OFBD (IIA1)
  6406. If (Local0)
  6407. {
  6408. SMIF = One
  6409. Return (ASMI (IIA1))
  6410. }
  6411.  
  6412. Return (Zero)
  6413. }
  6414.  
  6415. If ((IIA0 == 0x0006001F))
  6416. {
  6417. SMIF = 0x02
  6418. Return (ASMI (Zero))
  6419. }
  6420.  
  6421. If ((IIA0 == 0x0010001F))
  6422. {
  6423. SMIF = 0x03
  6424. Return (ASMI (IIA1))
  6425. }
  6426. }
  6427.  
  6428. If ((Local0 == 0x53545344))
  6429. {
  6430. If ((IIA0 == 0x00010002))
  6431. {
  6432. Return (Zero)
  6433. }
  6434.  
  6435. If ((IIA0 == 0x00010011))
  6436. {
  6437. If (WLDP)
  6438. {
  6439. Return (0x00030001)
  6440. }
  6441. Else
  6442. {
  6443. Return (0x02)
  6444. }
  6445. }
  6446.  
  6447. If ((IIA0 == 0x00010013))
  6448. {
  6449. If (BTDP)
  6450. {
  6451. Return (0x00030001)
  6452. }
  6453. Else
  6454. {
  6455. Return (0x02)
  6456. }
  6457. }
  6458.  
  6459. If ((IIA0 == 0x00080041))
  6460. {
  6461. Return (Zero)
  6462. }
  6463.  
  6464. If ((IIA0 == 0x00080042))
  6465. {
  6466. Return (Zero)
  6467. }
  6468.  
  6469. If ((IIA0 == 0x00080043))
  6470. {
  6471. Return (Zero)
  6472. }
  6473.  
  6474. If ((IIA0 == 0x00080044))
  6475. {
  6476. Return (Zero)
  6477. }
  6478.  
  6479. If ((IIA0 == 0x00110024))
  6480. {
  6481. If ((IIA1 == Zero))
  6482. {
  6483. Local0 = 0x80
  6484. }
  6485. ElseIf ((IIA1 == One))
  6486. {
  6487. Local0 = 0x81
  6488. }
  6489. ElseIf ((IIA1 == 0x02))
  6490. {
  6491. Local0 = 0x82
  6492. }
  6493. Else
  6494. {
  6495. Return (Zero)
  6496. }
  6497.  
  6498. Return (^^PCI0.SBRG.EC0.GDFC (Local0))
  6499. }
  6500.  
  6501. If ((IIA0 == 0x00110025))
  6502. {
  6503. If ((IIA1 == Zero))
  6504. {
  6505. Local0 = 0x84
  6506. }
  6507. ElseIf ((IIA1 == One))
  6508. {
  6509. Local0 = 0x85
  6510. }
  6511. ElseIf ((IIA1 == 0x02))
  6512. {
  6513. Local0 = 0x86
  6514. }
  6515. Else
  6516. {
  6517. Return (Zero)
  6518. }
  6519.  
  6520. Return (^^PCI0.SBRG.EC0.GDFC (Local0))
  6521. }
  6522.  
  6523. If ((IIA0 == 0x00110026))
  6524. {
  6525. Return (^^PCI0.SBRG.EC0.GFLB (0x20))
  6526. }
  6527.  
  6528. If ((IIA0 == 0x00110027))
  6529. {
  6530. Return (^^PCI0.SBRG.EC0.GFLB (0x24))
  6531. }
  6532.  
  6533. If ((IIA0 == 0x00060061))
  6534. {
  6535. Return (Zero)
  6536. }
  6537.  
  6538. If ((IIA0 == 0x00130022))
  6539. {
  6540. If (APSC)
  6541. {
  6542. Return (0x00010001)
  6543. }
  6544. Else
  6545. {
  6546. Return (0x00010000)
  6547. }
  6548. }
  6549.  
  6550. If ((IIA0 == 0x00130021))
  6551. {
  6552. Return (0x00010002)
  6553. }
  6554.  
  6555. If ((IIA0 == 0x00110013))
  6556. {
  6557. Local0 = ^^PCI0.SBRG.EC0.RTAH (Zero)
  6558. Local0 /= 0x64
  6559. Return ((0x00010000 + Local0))
  6560. }
  6561.  
  6562. If ((IIA0 == 0x00110014))
  6563. {
  6564. Local0 = ^^PCI0.SBRG.EC0.RTAH (One)
  6565. Local0 /= 0x64
  6566. Return ((0x00010000 + Local0))
  6567. }
  6568.  
  6569. If ((IIA0 == 0x00010001))
  6570. {
  6571. Return (0x00040000)
  6572. }
  6573.  
  6574. If ((IIA0 == 0x00120061))
  6575. {
  6576. If ((^^PCI0.SBRG.EC0.ACNG == One))
  6577. {
  6578. Return (0x00010002)
  6579. }
  6580.  
  6581. If (^^PCI0.SBRG.EC0.ACPS ())
  6582. {
  6583. Return (0x00010001)
  6584. }
  6585. Else
  6586. {
  6587. Return (0x00010000)
  6588. }
  6589. }
  6590.  
  6591. If ((IIA0 == 0x00110015))
  6592. {
  6593. Return (Zero)
  6594. }
  6595.  
  6596. If ((IIA0 == 0x00110016))
  6597. {
  6598. Return (Zero)
  6599. }
  6600.  
  6601. If ((IIA0 == 0x00050021))
  6602. {
  6603. Return (0xFFFFFFFE)
  6604. }
  6605.  
  6606. If ((IIA0 == 0x00100051))
  6607. {
  6608. Return (0x00010001)
  6609. }
  6610.  
  6611. If ((IIA0 == 0x00120057))
  6612. {
  6613. Name (RBU1, Buffer (0x02)
  6614. {
  6615. 0x00, 0x00 // ..
  6616. })
  6617. RBU1 = ^^PCI0.SBRG.EC0.REBC (0x05, 0x02)
  6618. Local1 = DerefOf (RBU1 [One])
  6619. Local0 = 0x00010000
  6620. Local0 |= 0x00080000
  6621. If ((Local1 & One))
  6622. {
  6623. Local0 |= 0x00100000
  6624. }
  6625.  
  6626. If ((Local1 & 0x80))
  6627. {
  6628. Local0 |= 0x0200
  6629. }
  6630.  
  6631. Return (Local0)
  6632. }
  6633.  
  6634. If ((IIA0 == 0x00110022))
  6635. {
  6636. Local0 = ^^PCI0.SBRG.EC0.STCC (Zero, 0xD3)
  6637. Local0 |= 0x00010000
  6638. Return (Local0)
  6639. }
  6640.  
  6641. If ((IIA0 == 0x00110023))
  6642. {
  6643. Local0 = ^^PCI0.SBRG.EC0.STCC (Zero, 0xDB)
  6644. Local0 |= 0x00010000
  6645. Return (Local0)
  6646. }
  6647.  
  6648. If ((IIA0 == 0x00120075))
  6649. {
  6650. Return (0x00010003)
  6651. }
  6652.  
  6653. If ((IIA0 == 0x00060023))
  6654. {
  6655. Local0 = (^^PCI0.SBRG.EC0.STA8 (Zero) & 0x03)
  6656. If (Ones)
  6657. {
  6658. Local0 |= 0x04
  6659. }
  6660.  
  6661. If (((^^PCI0.SBRG.EC0.STA8 (Zero) & 0x80) == 0x80))
  6662. {
  6663. If ((^^PCI0.SBRG.EC0.STA8 (0x02) == 0x03))
  6664. {
  6665. Local0 |= 0x08
  6666. }
  6667. }
  6668.  
  6669. Return (Local0)
  6670. }
  6671.  
  6672. If ((IIA0 == 0x00060024))
  6673. {
  6674. Return (Package (0x03)
  6675. {
  6676. 0xA36D8086,
  6677. One,
  6678. 0xFFFFFFFF
  6679. })
  6680. }
  6681.  
  6682. If ((IIA0 == 0x00060026))
  6683. {
  6684. Local0 = ^^PCI0.SBRG.EC0.STA8 (Zero)
  6685. Local0 &= 0x04
  6686. If ((Local0 == 0x04))
  6687. {
  6688. Return (0x00010001)
  6689. }
  6690. ElseIf ((Local0 == Zero))
  6691. {
  6692. Return (0x00010000)
  6693. }
  6694. }
  6695.  
  6696. If ((IIA0 == 0x0012006C))
  6697. {
  6698. Name (PDPF, Zero)
  6699. Acquire (^^PCI0.SBRG.EC0.CMUT, 0xFFFF)
  6700. PDPF = ^^PCI0.SBRG.EC0.PDST /* \_SB_.PCI0.SBRG.EC0_.PDST */
  6701. Release (^^PCI0.SBRG.EC0.CMUT)
  6702. Local0 = 0x00010000
  6703. If ((PDPF != Zero))
  6704. {
  6705. Local0 += PDPF /* \_SB_.ATKD.WMNB.PDPF */
  6706. }
  6707. Else
  6708. {
  6709. Local0 = Zero
  6710. }
  6711.  
  6712. Return (Local0)
  6713. }
  6714. }
  6715.  
  6716. If ((Local0 == 0x53564544))
  6717. {
  6718. If ((IIA0 == 0x00010002))
  6719. {
  6720. SWBL (IIA1)
  6721. Return (One)
  6722. }
  6723.  
  6724. If ((IIA0 == 0x00010012))
  6725. {
  6726. WLED (IIA1)
  6727. Return (One)
  6728. }
  6729.  
  6730. If ((IIA0 == 0x00010013))
  6731. {
  6732. BLED (IIA1)
  6733. Return (One)
  6734. }
  6735.  
  6736. If ((IIA0 == 0x00010003))
  6737. {
  6738. Return (CWAP (IIA1))
  6739. }
  6740.  
  6741. If ((IIA0 == 0x00110024))
  6742. {
  6743. Return (^^PCI0.SBRG.EC0.SUFC (IIA1, IIA2, IIA3, IIA4, 0x40))
  6744. }
  6745.  
  6746. If ((IIA0 == 0x00110025))
  6747. {
  6748. Return (^^PCI0.SBRG.EC0.SUFC (IIA1, IIA2, IIA3, IIA4, 0x44))
  6749. }
  6750.  
  6751. If ((IIA0 == 0x00130022))
  6752. {
  6753. SMIF = 0x05
  6754. If ((IIA1 == One))
  6755. {
  6756. APSC = One
  6757. }
  6758. Else
  6759. {
  6760. APSC = Zero
  6761. }
  6762.  
  6763. ASMI (Zero)
  6764. Return (One)
  6765. }
  6766.  
  6767. If ((IIA0 == 0x00050011))
  6768. {
  6769. If ((IIA1 == 0x02))
  6770. {
  6771. ^^PCI0.SBRG.EC0.BLCT = One
  6772. }
  6773.  
  6774. Return (One)
  6775. }
  6776.  
  6777. If ((IIA0 == 0x00050021))
  6778. {
  6779. ^^PCI0.SBRG.EC0.SLKB (IIA1)
  6780. Return (One)
  6781. }
  6782.  
  6783. If ((IIA0 == 0x00100022))
  6784. {
  6785. If ((IIA1 & 0x02))
  6786. {
  6787. ^^PCI0.SBRG.EC0.STB1 (0x04)
  6788. ^^PCI0.SBRG.EC0.STB1 (0x05)
  6789. FNIV = One
  6790. Return (One)
  6791. }
  6792. Else
  6793. {
  6794. ^^PCI0.SBRG.EC0.KINI ()
  6795. Return (One)
  6796. }
  6797.  
  6798. Return (Zero)
  6799. }
  6800.  
  6801. If ((IIA0 == 0x00100021))
  6802. {
  6803. If ((IIA1 == 0x6C))
  6804. {
  6805. ^^PCI0.SBRG.EC0._Q0A ()
  6806. Return (Zero)
  6807. }
  6808.  
  6809. If ((IIA1 == 0x88))
  6810. {
  6811. ^^PCI0.SBRG.EC0._Q0B ()
  6812. Return (Zero)
  6813. }
  6814.  
  6815. If ((IIA1 == 0xC5))
  6816. {
  6817. ^^PCI0.SBRG.EC0.KBLD ()
  6818. Return (Zero)
  6819. }
  6820.  
  6821. If ((IIA1 == 0xC4))
  6822. {
  6823. ^^PCI0.SBRG.EC0.KBLU ()
  6824. Return (Zero)
  6825. }
  6826.  
  6827. If ((IIA1 == 0x10))
  6828. {
  6829. ^^PCI0.SBRG.EC0._Q0E ()
  6830. Return (Zero)
  6831. }
  6832.  
  6833. If ((IIA1 == 0x20))
  6834. {
  6835. ^^PCI0.SBRG.EC0._Q0F ()
  6836. Return (Zero)
  6837. }
  6838.  
  6839. If ((IIA1 == 0x35))
  6840. {
  6841. ^^PCI0.SBRG.EC0._Q10 ()
  6842. Return (Zero)
  6843. }
  6844.  
  6845. If ((IIA1 == 0x6B))
  6846. {
  6847. ^^PCI0.SBRG.EC0._Q12 ()
  6848. Return (Zero)
  6849. }
  6850.  
  6851. If ((IIA1 == 0x8A))
  6852. {
  6853. ^^PCI0.SBRG.EC0._Q72 ()
  6854. Return (Zero)
  6855. }
  6856.  
  6857. If ((IIA1 == 0x38))
  6858. {
  6859. ^^PCI0.SBRG.EC0._Q6B ()
  6860. Return (Zero)
  6861. }
  6862.  
  6863. If ((IIA1 == 0xAE))
  6864. {
  6865. IANE (IIA1)
  6866. Return (Zero)
  6867. }
  6868.  
  6869. If ((IIA1 == 0x7C))
  6870. {
  6871. IANE (IIA1)
  6872. Return (Zero)
  6873. }
  6874.  
  6875. If ((IIA1 == 0x9E))
  6876. {
  6877. IANE (IIA1)
  6878. Return (Zero)
  6879. }
  6880.  
  6881. If ((IIA1 == 0xA8))
  6882. {
  6883. IANE (IIA1)
  6884. Return (Zero)
  6885. }
  6886.  
  6887. If ((IIA1 == 0xA9))
  6888. {
  6889. IANE (IIA1)
  6890. Return (Zero)
  6891. }
  6892.  
  6893. If ((IIA1 == 0xAA))
  6894. {
  6895. IANE (IIA1)
  6896. Return (Zero)
  6897. }
  6898.  
  6899. If ((IIA1 == 0xAB))
  6900. {
  6901. IANE (IIA1)
  6902. Return (Zero)
  6903. }
  6904.  
  6905. Return (One)
  6906. }
  6907.  
  6908. If ((IIA0 == 0x00110013))
  6909. {
  6910. Local0 = ^^PCI0.SBRG.EC0.RRAM (0xCC, 0x30)
  6911. If ((IIA1 == Zero))
  6912. {
  6913. Local1 = (Local0 & 0xFFFFFFFFFFFFFFBF)
  6914. }
  6915. ElseIf ((IIA1 == One))
  6916. {
  6917. Local1 = (Local0 | 0x40)
  6918. }
  6919.  
  6920. ^^PCI0.SBRG.EC0.WRAM (0xCD, 0x30, Local1)
  6921. Return (One)
  6922. }
  6923.  
  6924. If ((IIA0 == 0x00110014))
  6925. {
  6926. Local0 = ^^PCI0.SBRG.EC0.RRAM (0xCC, 0x10)
  6927. If ((Local0 & 0x02))
  6928. {
  6929. Local0 = ^^PCI0.SBRG.EC0.RRAM (0xCC, 0x30)
  6930. If ((IIA1 == Zero))
  6931. {
  6932. Local1 = (Local0 & 0xFFFFFFFFFFFFFFBF)
  6933. }
  6934. ElseIf ((IIA1 == One))
  6935. {
  6936. Local1 = (Local0 | 0x40)
  6937. }
  6938.  
  6939. ^^PCI0.SBRG.EC0.WRAM (0xCD, 0x30, Local1)
  6940. Return (One)
  6941. }
  6942.  
  6943. Return (Zero)
  6944. }
  6945.  
  6946. If ((IIA0 == 0x00110015))
  6947. {
  6948. Return (Zero)
  6949. }
  6950.  
  6951. If ((IIA0 == 0x00110016))
  6952. {
  6953. Return (Zero)
  6954. }
  6955.  
  6956. If ((IIA0 == 0x00120057))
  6957. {
  6958. Return (^^PCI0.SBRG.EC0.SRSC (IIA1))
  6959. }
  6960.  
  6961. If ((IIA0 == 0x00110022))
  6962. {
  6963. Local2 = IIA1 /* \_SB_.ATKD.WMNB.IIA1 */
  6964. Local0 = (Local2 & 0xFF)
  6965. Local1 = (Local2 & 0xFF00)
  6966. Local1 >>= 0x08
  6967. ^^PCI0.SBRG.EC0.STCD (Zero, 0xD2, Local0)
  6968. ^^PCI0.SBRG.EC0.STCD (Zero, 0xD1, Local1)
  6969. Local3 = ^^PCI0.SBRG.EC0.STCC (Zero, 0xD0)
  6970. Local3 |= One
  6971. ^^PCI0.SBRG.EC0.STCD (Zero, 0xD0, Local3)
  6972. Return (One)
  6973. }
  6974.  
  6975. If ((IIA0 == 0x00110023))
  6976. {
  6977. Local2 = IIA1 /* \_SB_.ATKD.WMNB.IIA1 */
  6978. Local0 = (Local2 & 0xFF)
  6979. Local1 = (Local2 & 0xFF00)
  6980. Local1 >>= 0x08
  6981. ^^PCI0.SBRG.EC0.STCD (Zero, 0xDA, Local0)
  6982. ^^PCI0.SBRG.EC0.STCD (Zero, 0xD9, Local1)
  6983. Local3 = ^^PCI0.SBRG.EC0.STCC (Zero, 0xD8)
  6984. Local3 |= One
  6985. ^^PCI0.SBRG.EC0.STCD (Zero, 0xD8, Local3)
  6986. Return (One)
  6987. }
  6988.  
  6989. If ((IIA0 == 0x00120075))
  6990. {
  6991. ^^PCI0.SBRG.EC0.WEBC (0x23, Zero, Zero)
  6992. Local3 = ^^PCI0.SBRG.EC0.STCC (Zero, 0xD0)
  6993. Local3 &= 0xFE
  6994. ^^PCI0.SBRG.EC0.STCD (Zero, 0xD0, Local3)
  6995. Local3 = ^^PCI0.SBRG.EC0.STCC (Zero, 0xD8)
  6996. Local3 &= 0xFE
  6997. ^^PCI0.SBRG.EC0.STCD (Zero, 0xD8, Local3)
  6998. If ((IIA1 == One))
  6999. {
  7000. ^^PCI0.SBRG.EC0.STCD (Zero, 0x13, 0x04)
  7001. DGPS (Zero, ^^PCI0.SBRG.EC0.DGST)
  7002. }
  7003. ElseIf ((IIA1 == Zero))
  7004. {
  7005. ^^PCI0.SBRG.EC0.STCD (Zero, 0x13, One)
  7006. DGPS (Zero, ^^PCI0.SBRG.EC0.DGST)
  7007. }
  7008. ElseIf ((IIA1 == 0x02))
  7009. {
  7010. ^^PCI0.SBRG.EC0.STCD (Zero, 0x13, 0x02)
  7011. DGPS (One, ^^PCI0.SBRG.EC0.DGST)
  7012. }
  7013.  
  7014. Return (One)
  7015. }
  7016.  
  7017. If ((IIA0 == 0x00130025))
  7018. {
  7019. If ((IIA1 == 0x02))
  7020. {
  7021. ^^PCI0.SBRG.EC0.STE7 (Zero)
  7022. }
  7023.  
  7024. Return (One)
  7025. }
  7026.  
  7027. If ((IIA0 == 0x00060023))
  7028. {
  7029. Local0 = (IIA1 >> 0x09)
  7030. If (((Local0 & One) == One))
  7031. {
  7032. VBOF = One
  7033. Local0 = (IIA1 >> 0x18)
  7034. Local0 *= 0x0100
  7035. VBOF |= Local0 /* \_SB_.VBOF */
  7036. }
  7037. Else
  7038. {
  7039. VBOF = Zero
  7040. }
  7041.  
  7042. Local0 = (IIA1 & 0xFF)
  7043. ^^PCI0.SBRG.EC0.STA9 (One, Local0)
  7044. Local0 = (IIA1 >> 0x08)
  7045. Local1 = ^^PCI0.SBRG.EC0.STA8 (Zero)
  7046. If (((Local0 & One) == One))
  7047. {
  7048. Local1 |= 0x02
  7049. Local2 = (Local1 & 0x0F)
  7050. ^^PCI0.SBRG.EC0.STA9 (Zero, Local1)
  7051. }
  7052. Else
  7053. {
  7054. Local1 &= 0xFD
  7055. Local2 = (Local1 & 0x0F)
  7056. ^^PCI0.SBRG.EC0.STA9 (Zero, Local1)
  7057. }
  7058.  
  7059. Return (One)
  7060. }
  7061.  
  7062. If ((IIA0 == 0x00060026))
  7063. {
  7064. Local0 = ^^PCI0.SBRG.EC0.STA8 (Zero)
  7065. If ((IIA1 == One))
  7066. {
  7067. Local0 |= 0x04
  7068. ^^PCI0.SBRG.EC0.STA9 (Zero, Local0)
  7069. }
  7070. Else
  7071. {
  7072. Local0 &= 0xFB
  7073. ^^PCI0.SBRG.EC0.STA9 (Zero, Local0)
  7074. }
  7075.  
  7076. Return (One)
  7077. }
  7078. }
  7079.  
  7080. Return (0xFFFFFFFE)
  7081. }
  7082.  
  7083. Method (_WED, 1, NotSerialized) // _Wxx: Wake Event, xx=0x00-0xFF
  7084. {
  7085. If ((Arg0 == 0xFF))
  7086. {
  7087. Return (GANQ ())
  7088. }
  7089.  
  7090. Return (Ones)
  7091. }
  7092.  
  7093. Name (WQMO, Buffer (0x08F9)
  7094. {
  7095. /* 0000 */ 0x46, 0x4F, 0x4D, 0x42, 0x01, 0x00, 0x00, 0x00, // FOMB....
  7096. /* 0008 */ 0xE9, 0x08, 0x00, 0x00, 0x10, 0x2B, 0x00, 0x00, // .....+..
  7097. /* 0010 */ 0x44, 0x53, 0x00, 0x01, 0x1A, 0x7D, 0xDA, 0x54, // DS...}.T
  7098. /* 0018 */ 0x28, 0xC5, 0x94, 0x00, 0x01, 0x06, 0x18, 0x42, // (......B
  7099. /* 0020 */ 0x10, 0x05, 0x10, 0x0A, 0x60, 0x89, 0x42, 0x04, // ....`.B.
  7100. /* 0028 */ 0x0A, 0x0D, 0xA1, 0x38, 0x44, 0x86, 0xA1, 0x12, // ...8D...
  7101. /* 0030 */ 0x20, 0x24, 0x09, 0x42, 0x2E, 0x98, 0x98, 0x00, // $.B....
  7102. /* 0038 */ 0x21, 0x10, 0x92, 0x28, 0xC0, 0xBC, 0x00, 0xDD, // !..(....
  7103. /* 0040 */ 0x02, 0x0C, 0x0B, 0xB0, 0x2D, 0xC0, 0xB4, 0x00, // ....-...
  7104. /* 0048 */ 0xC7, 0x40, 0xEA, 0xDF, 0x1F, 0xA2, 0x34, 0x10, // .@....4.
  7105. /* 0050 */ 0x89, 0x80, 0xA4, 0x52, 0x20, 0x24, 0x54, 0x80, // ...R $T.
  7106. /* 0058 */ 0x72, 0x01, 0xBE, 0x05, 0x68, 0x47, 0x94, 0x64, // r...hG.d
  7107. /* 0060 */ 0x01, 0x96, 0x61, 0x44, 0x60, 0xAF, 0xC8, 0x04, // ..aD`...
  7108. /* 0068 */ 0x8D, 0x13, 0x94, 0x33, 0x0C, 0x14, 0xBC, 0x01, // ...3....
  7109. /* 0070 */ 0xDB, 0x14, 0x60, 0x72, 0x10, 0x54, 0xF6, 0x20, // ..`r.T.
  7110. /* 0078 */ 0x50, 0x32, 0x20, 0xE4, 0x51, 0x80, 0x55, 0x38, // P2 .Q.U8
  7111. /* 0080 */ 0x4D, 0x27, 0x81, 0xDD, 0x0B, 0x30, 0x27, 0xC0, // M'...0'.
  7112. /* 0088 */ 0x9B, 0x00, 0x71, 0xA3, 0x91, 0x35, 0x01, 0x16, // ..q..5..
  7113. /* 0090 */ 0xA1, 0x24, 0x4C, 0x80, 0x2D, 0x18, 0xA1, 0xD4, // .$L.-...
  7114. /* 0098 */ 0x06, 0x23, 0x94, 0xC6, 0x10, 0x04, 0x12, 0x27, // .#.....'
  7115. /* 00A0 */ 0x4A, 0xC4, 0x06, 0x05, 0x38, 0x83, 0x15, 0x4A, // J...8..J
  7116. /* 00A8 */ 0xC4, 0x30, 0x21, 0x22, 0x54, 0x86, 0x41, 0x1C, // .0!"T.A.
  7117. /* 00B0 */ 0x42, 0x09, 0x2D, 0x6E, 0x84, 0xF6, 0x07, 0x41, // B.-n...A
  7118. /* 00B8 */ 0xA2, 0xAD, 0x58, 0x43, 0x75, 0xA4, 0xD1, 0xA0, // ..XCu...
  7119. /* 00C0 */ 0x46, 0x94, 0xE0, 0xC0, 0x3C, 0x9A, 0x53, 0xED, // F...<.S.
  7120. /* 00C8 */ 0x5C, 0x80, 0xF4, 0xB9, 0x0A, 0xE4, 0x58, 0x4F, // \.....XO
  7121. /* 00D0 */ 0xB1, 0xCE, 0xE1, 0x12, 0x90, 0x04, 0xC6, 0x4A, // .......J
  7122. /* 00D8 */ 0xD0, 0xC1, 0x10, 0xA1, 0xB8, 0x06, 0xD4, 0xC4, // ........
  7123. /* 00E0 */ 0x0F, 0x91, 0x09, 0x82, 0x43, 0x0D, 0xD1, 0xE3, // ....C...
  7124. /* 00E8 */ 0x0D, 0x77, 0x02, 0x47, 0x7D, 0x24, 0x0C, 0xE2, // .w.G}$..
  7125. /* 00F0 */ 0x9C, 0x8E, 0x06, 0x73, 0x0E, 0xF0, 0xB8, 0x4E, // ...s...N
  7126. /* 00F8 */ 0xE6, 0x8C, 0x4B, 0x15, 0x60, 0x76, 0xE8, 0x1A, // ..K.`v..
  7127. /* 0100 */ 0x61, 0x82, 0xE3, 0x31, 0xF4, 0xD9, 0x9F, 0x4F, // a..1...O
  7128. /* 0108 */ 0xCF, 0x90, 0x44, 0xFE, 0x20, 0x50, 0x23, 0x33, // ..D. P#3
  7129. /* 0110 */ 0xB4, 0xC7, 0x78, 0x5A, 0x31, 0x43, 0x3E, 0x05, // ..xZ1C>.
  7130. /* 0118 */ 0x1C, 0x16, 0x13, 0x7B, 0x4A, 0xA0, 0xE3, 0x81, // ...{J...
  7131. /* 0120 */ 0xF7, 0xFF, 0x1F, 0x0F, 0x78, 0x14, 0x1F, 0x0D, // ....x...
  7132. /* 0128 */ 0x84, 0xF0, 0x4A, 0x10, 0xDB, 0x03, 0x7A, 0x5C, // ..J...z\
  7133. /* 0130 */ 0x30, 0x30, 0x76, 0x40, 0xF6, 0x2B, 0x00, 0x21, // 00v@.+.!
  7134. /* 0138 */ 0x78, 0x99, 0x23, 0x92, 0x53, 0x04, 0x8D, 0xC9, // x.#.S...
  7135. /* 0140 */ 0x93, 0x6B, 0x1D, 0x42, 0x20, 0x27, 0x75, 0xC8, // .k.B 'u.
  7136. /* 0148 */ 0x2F, 0x0B, 0x0C, 0xF1, 0x35, 0xC1, 0xD3, 0xAF, // /...5...
  7137. /* 0150 */ 0x10, 0x50, 0x22, 0x47, 0x80, 0x12, 0x33, 0x02, // .P"G..3.
  7138. /* 0158 */ 0x14, 0x5E, 0xE4, 0x90, 0x67, 0x73, 0x04, 0xC7, // .^..gs..
  7139. /* 0160 */ 0x13, 0xE5, 0x24, 0x0E, 0xC8, 0x47, 0x07, 0x23, // ..$..G.#
  7140. /* 0168 */ 0x1C, 0x42, 0xB9, 0x27, 0x08, 0xA2, 0x79, 0x46, // .B.'..yF
  7141. /* 0170 */ 0x9A, 0xC6, 0x39, 0xBD, 0x0D, 0x98, 0x60, 0x50, // ..9...`P
  7142. /* 0178 */ 0x45, 0x10, 0x75, 0x40, 0x7A, 0xA9, 0xB2, 0xB1, // E.u@z...
  7143. /* 0180 */ 0x54, 0x8F, 0x94, 0xE6, 0x3F, 0x23, 0x68, 0x86, // T...?#h.
  7144. /* 0188 */ 0xE7, 0x10, 0xE2, 0x10, 0x13, 0x38, 0x39, 0x90, // .....89.
  7145. /* 0190 */ 0x4E, 0x1A, 0x3C, 0x33, 0x89, 0x52, 0x8F, 0x86, // N.<3.R..
  7146. /* 0198 */ 0xC2, 0x39, 0xE7, 0x81, 0x83, 0x82, 0x18, 0xD0, // .9......
  7147. /* 01A0 */ 0x21, 0x20, 0xE4, 0xE4, 0x1C, 0x80, 0x1A, 0x84, // ! ......
  7148. /* 01A8 */ 0x07, 0xF5, 0xBC, 0x60, 0x88, 0xD7, 0x00, 0x8B, // ...`....
  7149. /* 01B0 */ 0x3E, 0x2C, 0xD0, 0xE1, 0xF9, 0x18, 0xC0, 0x35, // >,.....5
  7150. /* 01B8 */ 0x40, 0xE8, 0x5E, 0x60, 0x64, 0xAB, 0x01, 0xA4, // @.^`d...
  7151. /* 01C0 */ 0x60, 0xFC, 0x70, 0xC1, 0x09, 0xEA, 0xBA, 0x0A, // `.p.....
  7152. /* 01C8 */ 0x40, 0x1F, 0xE6, 0x11, 0x78, 0x26, 0xEF, 0x16, // @...x&..
  7153. /* 01D0 */ 0x2F, 0x16, 0x09, 0xEA, 0x3B, 0x0A, 0x80, 0x02, // /...;...
  7154. /* 01D8 */ 0xC8, 0x53, 0xB7, 0xD2, 0xE1, 0xD3, 0x31, 0x84, // .S....1.
  7155. /* 01E0 */ 0x08, 0x13, 0xCD, 0xE8, 0x3C, 0xFC, 0x54, 0x51, // ....<.TQ
  7156. /* 01E8 */ 0x71, 0xA7, 0x4A, 0x41, 0x3C, 0xD5, 0xFF, 0x7F, // q.JA<...
  7157. /* 01F0 */ 0x82, 0x51, 0xA6, 0x8A, 0x9E, 0x89, 0xA7, 0xCA, // .Q......
  7158. /* 01F8 */ 0xEF, 0x07, 0x26, 0xB0, 0xF0, 0x7B, 0x06, 0xB4, // ..&..{..
  7159. /* 0200 */ 0x4B, 0x41, 0xC4, 0x27, 0x02, 0x4F, 0xC3, 0x70, // KA.'.O.p
  7160. /* 0208 */ 0x9E, 0x2C, 0x87, 0xF3, 0x64, 0xF9, 0x58, 0x7C, // .,..d.X|
  7161. /* 0210 */ 0x8F, 0x80, 0x3F, 0x5A, 0x2C, 0x41, 0x81, 0xB3, // ..?Z,A..
  7162. /* 0218 */ 0x05, 0x39, 0x3C, 0x46, 0xF0, 0x48, 0xA9, 0xAC, // .9<F.H..
  7163. /* 0220 */ 0x71, 0xA1, 0x2E, 0x07, 0x3E, 0x53, 0x30, 0xEC, // q...>S0.
  7164. /* 0228 */ 0x57, 0x84, 0xA3, 0x79, 0x45, 0x38, 0xC3, 0xA7, // W..yE8..
  7165. /* 0230 */ 0x88, 0x83, 0x7A, 0xE6, 0xB0, 0x49, 0x9D, 0x26, // ..z..I.&
  7166. /* 0238 */ 0xA5, 0xC2, 0x7A, 0xA4, 0x1C, 0xD6, 0x68, 0x61, // ..z...ha
  7167. /* 0240 */ 0x0F, 0xF8, 0x75, 0xC3, 0x67, 0x15, 0xCF, 0xCC, // ..u.g...
  7168. /* 0248 */ 0x18, 0x61, 0x3D, 0x5A, 0x07, 0x5A, 0xA7, 0x2E, // .a=Z.Z..
  7169. /* 0250 */ 0x13, 0x38, 0x59, 0x40, 0xBA, 0x66, 0x1C, 0xD1, // .8Y@.f..
  7170. /* 0258 */ 0x31, 0x1D, 0x12, 0x13, 0x74, 0x99, 0xA0, 0x10, // 1...t...
  7171. /* 0260 */ 0x96, 0x42, 0x21, 0x21, 0x10, 0x3A, 0x12, 0xF0, // .B!!.:..
  7172. /* 0268 */ 0xE8, 0x60, 0x14, 0xC4, 0x23, 0x73, 0xAC, 0x23, // .`..#s.#
  7173. /* 0270 */ 0x01, 0x5A, 0xD4, 0x1D, 0x82, 0x5E, 0x66, 0x70, // .Z...^fp
  7174. /* 0278 */ 0x93, 0x7D, 0x88, 0x61, 0x20, 0xB1, 0xD8, 0xC5, // .}.a ...
  7175. /* 0280 */ 0x80, 0x1F, 0x0C, 0xC0, 0xFC, 0xFF, 0x27, 0x60, // ......'`
  7176. /* 0288 */ 0x07, 0x03, 0xC0, 0x93, 0x42, 0xA7, 0x52, 0x9D, // ....B.R.
  7177. /* 0290 */ 0x1E, 0x0C, 0xC0, 0x15, 0xF2, 0x60, 0x80, 0x96, // .....`..
  7178. /* 0298 */ 0x0A, 0xA4, 0x09, 0xD5, 0x78, 0x80, 0xD2, 0xAD, // ....x...
  7179. /* 02A0 */ 0x25, 0x81, 0x45, 0x1E, 0x0C, 0x50, 0xF2, 0x28, // %.E..P.(
  7180. /* 02A8 */ 0x24, 0xEE, 0x60, 0x80, 0x92, 0x03, 0x47, 0x41, // $.`...GA
  7181. /* 02B0 */ 0x3C, 0x32, 0x47, 0x3D, 0x18, 0xA0, 0xC7, 0x99, // <2G=....
  7182. /* 02B8 */ 0xE0, 0x20, 0x8F, 0xE5, 0x78, 0x0E, 0xEC, 0xBD, // . ..x...
  7183. /* 02C0 */ 0xE6, 0x6C, 0x9E, 0x0A, 0x3C, 0xF4, 0x38, 0x81, // .l..<.8.
  7184. /* 02C8 */ 0xF8, 0x8C, 0x0C, 0xF5, 0x6A, 0x13, 0xEA, 0xF9, // ....j...
  7185. /* 02D0 */ 0xC0, 0xA7, 0x22, 0x83, 0xBD, 0x23, 0x18, 0xEA, // .."..#..
  7186. /* 02D8 */ 0xF1, 0x20, 0xA6, 0x27, 0xF7, 0xF2, 0xE5, 0x13, // . .'....
  7187. /* 02E0 */ 0x82, 0xD1, 0xF8, 0x11, 0x01, 0x38, 0xFF, 0xFF, // .....8..
  7188. /* 02E8 */ 0x8F, 0x08, 0xC0, 0xDA, 0xA9, 0x46, 0xAB, 0x3A, // .....F.:
  7189. /* 02F0 */ 0x8F, 0x08, 0xE0, 0x8A, 0x74, 0x4D, 0x42, 0x0B, // ....tMB.
  7190. /* 02F8 */ 0x03, 0xD2, 0x38, 0x0E, 0xB7, 0xCF, 0x33, 0x9B, // ..8...3.
  7191. /* 0300 */ 0x08, 0x2C, 0x09, 0x48, 0xD7, 0x24, 0x2E, 0x86, // .,.H.$..
  7192. /* 0308 */ 0x42, 0x32, 0x8E, 0x08, 0xA8, 0xE0, 0x07, 0x05, // B2......
  7193. /* 0310 */ 0x0A, 0x62, 0x40, 0xA7, 0x3A, 0x22, 0xA0, 0x0F, // .b@.:"..
  7194. /* 0318 */ 0x45, 0xF6, 0x7E, 0x24, 0x20, 0x77, 0x82, 0x23, // E.~$ w.#
  7195. /* 0320 */ 0x3B, 0x99, 0x33, 0x7B, 0x0F, 0x3B, 0xD9, 0xB7, // ;.3{.;..
  7196. /* 0328 */ 0x02, 0x0F, 0xC9, 0x57, 0x84, 0x30, 0xC1, 0x1E, // ...W.0..
  7197. /* 0330 */ 0x0C, 0x7C, 0x1E, 0xF3, 0x85, 0xCB, 0xE7, 0x25, // .|.....%
  7198. /* 0338 */ 0xC0, 0x97, 0x88, 0x31, 0xA3, 0x62, 0x8F, 0x99, // ...1.b..
  7199. /* 0340 */ 0x82, 0x78, 0xCC, 0xBE, 0xE9, 0xFD, 0xFF, 0x8F, // .x......
  7200. /* 0348 */ 0x19, 0xFB, 0x11, 0xF0, 0x74, 0x71, 0x57, 0x0C, // ....tqW.
  7201. /* 0350 */ 0x9F, 0x65, 0x80, 0xCB, 0x99, 0x09, 0x70, 0xE5, // .e....p.
  7202. /* 0358 */ 0x55, 0xA2, 0x4F, 0x8F, 0x27, 0x0B, 0x70, 0x85, // U.O.'.p.
  7203. /* 0360 */ 0x3B, 0xCB, 0xA0, 0x25, 0x02, 0xC9, 0xE5, 0x9D, // ;..%....
  7204. /* 0368 */ 0x49, 0x07, 0x3A, 0x13, 0xF8, 0x1C, 0xE3, 0xB3, // I.:.....
  7205. /* 0370 */ 0x0C, 0x3F, 0x3A, 0x59, 0xD4, 0xB1, 0x00, 0x75, // .?:Y...u
  7206. /* 0378 */ 0xB8, 0x30, 0x98, 0x41, 0x3C, 0x32, 0x47, 0x3C, // .0.A<2G<
  7207. /* 0380 */ 0x16, 0xA0, 0x47, 0xEC, 0xF3, 0xC0, 0x63, 0x81, // ..G...c.
  7208. /* 0388 */ 0x6F, 0x7B, 0x3E, 0xD1, 0xB1, 0x7B, 0x8C, 0xEF, // o{>..{..
  7209. /* 0390 */ 0x4C, 0xEC, 0x5C, 0x68, 0xA8, 0x57, 0x83, 0x48, // L.\h.W.H
  7210. /* 0398 */ 0x1E, 0xD5, 0x9B, 0x9F, 0x51, 0x1F, 0x67, 0xDE, // ....Q.g.
  7211. /* 03A0 */ 0x63, 0xB0, 0xC7, 0x03, 0x78, 0xFF, 0xFF, 0x73, // c...x..s
  7212. /* 03A8 */ 0x0C, 0x60, 0xD4, 0xA5, 0xC2, 0x17, 0xDA, 0xE3, // .`......
  7213. /* 03B0 */ 0x01, 0xB8, 0x44, 0xAD, 0x42, 0xC7, 0x03, 0x5C, // ..D.B..\
  7214. /* 03B8 */ 0xB4, 0xB5, 0x68, 0x42, 0x67, 0x76, 0xBA, 0xCF, // ..hBgv..
  7215. /* 03C0 */ 0x31, 0x2C, 0xD4, 0x39, 0x06, 0x75, 0xE7, 0x75, // 1,.9.u.u
  7216. /* 03C8 */ 0xA4, 0xE3, 0x01, 0x2A, 0xC4, 0xF1, 0x80, 0x82, // ...*....
  7217. /* 03D0 */ 0x78, 0x5C, 0x0E, 0x77, 0x3C, 0x40, 0xCB, 0xBB, // x\.w<@..
  7218. /* 03D8 */ 0xDB, 0x92, 0x89, 0xF9, 0x06, 0xE2, 0x09, 0x45, // .......E
  7219. /* 03E0 */ 0x79, 0x2A, 0x78, 0x2E, 0xE0, 0xC7, 0x18, 0x1F, // y*x.....
  7220. /* 03E8 */ 0x0C, 0xDE, 0x98, 0x7C, 0x40, 0x78, 0x3E, 0x78, // ...|@x>x
  7221. /* 03F0 */ 0x35, 0xC0, 0x80, 0x9D, 0x56, 0x1C, 0x43, 0xBC, // 5...V.C.
  7222. /* 03F8 */ 0xCA, 0x00, 0xC7, 0xFF, 0xFF, 0xDD, 0x80, 0xA5, // ........
  7223. /* 0400 */ 0x18, 0x1E, 0xFA, 0x0E, 0xEA, 0x31, 0x1D, 0x5A, // .....1.Z
  7224. /* 0408 */ 0x84, 0xB3, 0x3B, 0x3F, 0x4F, 0x09, 0xBC, 0xE3, // ..;?O...
  7225. /* 0410 */ 0xF6, 0x69, 0x07, 0x38, 0x9F, 0x02, 0x7D, 0x32, // .i.8..}2
  7226. /* 0418 */ 0xE0, 0x61, 0x87, 0x44, 0x41, 0x7C, 0x42, 0x70, // .a.DA|Bp
  7227. /* 0420 */ 0x90, 0x6B, 0x2A, 0x94, 0xCB, 0x00, 0xE6, 0xE8, // .k*.....
  7228. /* 0428 */ 0x01, 0xF6, 0x81, 0xF8, 0x44, 0x06, 0x88, 0x72, // ....D..r
  7229. /* 0430 */ 0x28, 0xF1, 0xA0, 0xA3, 0xFF, 0xFF, 0xD1, 0x03, // (.......
  7230. /* 0438 */ 0x4C, 0x99, 0x4E, 0x64, 0x68, 0x65, 0x47, 0x0F, // L.NdheG.
  7231. /* 0440 */ 0x32, 0x4A, 0x4F, 0x2D, 0x81, 0x35, 0x1D, 0x3D, // 2JO-.5.=
  7232. /* 0448 */ 0x50, 0x6A, 0x28, 0xA4, 0xE7, 0xE8, 0x81, 0x52, // Pj(....R
  7233. /* 0450 */ 0x70, 0x1D, 0xE6, 0x07, 0x1D, 0x1A, 0xEF, 0xA0, // p.......
  7234. /* 0458 */ 0x03, 0xE5, 0xE8, 0x01, 0xEF, 0xDA, 0x81, 0x3B, // .......;
  7235. /* 0460 */ 0x54, 0xB1, 0x71, 0x9D, 0xA1, 0x21, 0x0F, 0xED, // T.q..!..
  7236. /* 0468 */ 0xD1, 0xCC, 0x07, 0x9E, 0xC0, 0xBE, 0x14, 0x03, // ........
  7237. /* 0470 */ 0x7E, 0x0F, 0xE7, 0x3E, 0x48, 0xFA, 0xB4, 0xCD, // ~..>H...
  7238. /* 0478 */ 0x6F, 0x64, 0xC0, 0xE3, 0xFF, 0x7F, 0xB3, 0x00, // od......
  7239. /* 0480 */ 0x04, 0x09, 0xB5, 0xE8, 0xF0, 0xEA, 0x08, 0xFE, // ........
  7240. /* 0488 */ 0x9B, 0xE3, 0x11, 0xD5, 0x3A, 0x25, 0x5D, 0x1D, // ....:%].
  7241. /* 0490 */ 0xE1, 0xDC, 0x53, 0x7D, 0x24, 0xE0, 0x64, 0x86, // ..S}$.d.
  7242. /* 0498 */ 0x33, 0x85, 0x01, 0x9D, 0xEE, 0x48, 0x80, 0xBE, // 3....H..
  7243. /* 04A0 */ 0x2E, 0x78, 0x3C, 0x07, 0xF3, 0x58, 0xF1, 0x48, // .x<..X.H
  7244. /* 04A8 */ 0xE1, 0xF1, 0x9C, 0xEB, 0x7B, 0x5A, 0xA0, 0xF3, // ....{Z..
  7245. /* 04B0 */ 0xF0, 0x19, 0xC9, 0x93, 0x0F, 0xF5, 0x66, 0xE0, // ......f.
  7246. /* 04B8 */ 0x41, 0x19, 0x28, 0x16, 0xD3, 0x7E, 0x04, 0x24, // A.(..~.$
  7247. /* 04C0 */ 0xD7, 0x33, 0x9F, 0xC8, 0xD8, 0xC9, 0x02, 0x30, // .3.....0
  7248. /* 04C8 */ 0xF2, 0xFF, 0xBF, 0xBD, 0x03, 0x1C, 0xF2, 0xE9, // ........
  7249. /* 04D0 */ 0x54, 0xAB, 0xD2, 0x93, 0x05, 0xB8, 0x14, 0x5F, // T......_
  7250. /* 04D8 */ 0xE6, 0xD0, 0xB9, 0xD7, 0xA2, 0x83, 0xC5, 0x21, // .......!
  7251. /* 04E0 */ 0x61, 0x12, 0x9F, 0x2C, 0x50, 0x59, 0x29, 0x94, // a..,PY).
  7252. /* 04E8 */ 0xEC, 0x64, 0x81, 0xCA, 0x72, 0xB2, 0xA0, 0x20, // .d..r..
  7253. /* 04F0 */ 0x1E, 0x97, 0x6F, 0xEF, 0xF8, 0xD1, 0xFB, 0x80, // ..o.....
  7254. /* 04F8 */ 0xFB, 0x0A, 0xC4, 0x0E, 0x8F, 0x1E, 0x11, 0x8C, // ........
  7255. /* 0500 */ 0x5B, 0x05, 0xF6, 0xFF, 0x7F, 0xAB, 0x00, 0xAE, // [.......
  7256. /* 0508 */ 0x77, 0x59, 0xFC, 0x45, 0xDF, 0x37, 0x82, 0x67, // wY.E.7.g
  7257. /* 0510 */ 0x6E, 0x38, 0x23, 0x03, 0x1E, 0x07, 0x3A, 0xE0, // n8#...:.
  7258. /* 0518 */ 0x2D, 0xE8, 0x72, 0x80, 0x92, 0x70, 0x39, 0xA0, // -.r..p9.
  7259. /* 0520 */ 0x20, 0x3E, 0x6F, 0xC1, 0x11, 0x37, 0x43, 0x72, // >o..7Cr
  7260. /* 0528 */ 0x35, 0x00, 0xC7, 0x25, 0xC1, 0x18, 0xBE, 0xCD, // 5..%....
  7261. /* 0530 */ 0xF0, 0xB3, 0x1D, 0x70, 0xF8, 0xFF, 0x5F, 0x44, // ...p.._D
  7262. /* 0538 */ 0x00, 0x4B, 0x5A, 0x2D, 0x2A, 0x75, 0x7A, 0x11, // .KZ-*uz.
  7263. /* 0540 */ 0x01, 0x57, 0x9C, 0x33, 0x31, 0xFA, 0x2C, 0xEC, // .W.31.,.
  7264. /* 0548 */ 0x83, 0xDC, 0x91, 0xBD, 0xA5, 0x9A, 0xC0, 0xB7, // ........
  7265. /* 0550 */ 0x25, 0x9F, 0x89, 0xB9, 0x10, 0x0A, 0x1D, 0xDE, // %.......
  7266. /* 0558 */ 0xE1, 0x86, 0x3A, 0x1C, 0xA0, 0x25, 0xDD, 0xC9, // ..:..%..
  7267. /* 0560 */ 0xE8, 0x51, 0xC7, 0x20, 0x0F, 0x05, 0x9E, 0xD1, // .Q. ....
  7268. /* 0568 */ 0xEB, 0x45, 0x90, 0x87, 0x3A, 0x36, 0xD6, 0x13, // .E..:6..
  7269. /* 0570 */ 0x79, 0x11, 0x60, 0x87, 0x61, 0xC0, 0xD2, 0xFF, // y.`.a...
  7270. /* 0578 */ 0xFF, 0x5C, 0x00, 0x0C, 0x3C, 0xCA, 0x7C, 0x42, // .\..<.|B
  7271. /* 0580 */ 0x3E, 0x17, 0x80, 0x4B, 0xFC, 0xC5, 0x0C, 0x2D, // >..K...-
  7272. /* 0588 */ 0x01, 0x48, 0x73, 0x7A, 0xF3, 0x7E, 0xE1, 0x79, // .Hsz.~.y
  7273. /* 0590 */ 0xF4, 0x66, 0xE1, 0xCF, 0x8E, 0xFC, 0x68, 0x6F, // .f....ho
  7274. /* 0598 */ 0x12, 0x1D, 0x09, 0x7C, 0x2E, 0xE0, 0x51, 0xCF, // ...|..Q.
  7275. /* 05A0 */ 0x05, 0x14, 0xC4, 0x80, 0xCE, 0x71, 0x2E, 0x40, // .....q.@
  7276. /* 05A8 */ 0x2B, 0xB9, 0x51, 0x91, 0xC1, 0x1E, 0xE9, 0x9B, // +.Q.....
  7277. /* 05B0 */ 0x23, 0xE6, 0xDA, 0x08, 0xB0, 0xE3, 0xFF, 0x7F, // #.......
  7278. /* 05B8 */ 0x1B, 0x03, 0xCC, 0x19, 0xD4, 0xA9, 0xF5, 0xA8, // ........
  7279. /* 05C0 */ 0x0E, 0x32, 0x21, 0xB7, 0x31, 0xF4, 0x19, 0xDD, // .2!.1...
  7280. /* 05C8 */ 0xB3, 0x38, 0x8F, 0xC7, 0x96, 0x1A, 0xA1, 0x48, // .8.....H
  7281. /* 05D0 */ 0x90, 0xDB, 0x18, 0x2A, 0x02, 0x85, 0x4E, 0xE9, // ...*..N.
  7282. /* 05D8 */ 0x3E, 0x12, 0x70, 0xD9, 0xA7, 0x0A, 0x0A, 0xE2, // >.p.....
  7283. /* 05E0 */ 0x71, 0xF9, 0x04, 0x8D, 0x97, 0x02, 0xA2, 0x0B, // q.......
  7284. /* 05E8 */ 0xC0, 0xB1, 0x3C, 0x1C, 0x3D, 0x62, 0x19, 0xE4, // ..<.=b..
  7285. /* 05F0 */ 0x5C, 0x5F, 0x02, 0xD8, 0x75, 0x02, 0x78, 0x66, // \_..u.xf
  7286. /* 05F8 */ 0x19, 0x14, 0x7A, 0x18, 0x46, 0x7E, 0x7A, 0x32, // ..z.F~z2
  7287. /* 0600 */ 0xE2, 0x83, 0x43, 0x90, 0xD7, 0x1A, 0xCF, 0x34, // ..C....4
  7288. /* 0608 */ 0xC6, 0xA3, 0xCD, 0x73, 0xDB, 0x59, 0x61, 0xFF, // ...s.Ya.
  7289. /* 0610 */ 0xFF, 0x67, 0x30, 0xC0, 0xD0, 0xA1, 0x03, 0xB8, // .g0.....
  7290. /* 0618 */ 0x9F, 0xBC, 0x00, 0x57, 0x36, 0xBD, 0x7A, 0xD4, // ...W6.z.
  7291. /* 0620 */ 0x78, 0xE8, 0x00, 0x57, 0x86, 0x23, 0x11, 0xF9, // x..W.#..
  7292. /* 0628 */ 0xFF, 0x1F, 0x3A, 0x30, 0x4A, 0x80, 0x34, 0xDB, // ..:0J.4.
  7293. /* 0630 */ 0x23, 0x3A, 0xA6, 0x43, 0x62, 0x1A, 0x0E, 0x1D, // #:.Cb...
  7294. /* 0638 */ 0xA8, 0xF4, 0x24, 0x4A, 0x7E, 0x24, 0x40, 0x65, // ..$J~$@e
  7295. /* 0640 */ 0x3D, 0x12, 0x50, 0x10, 0x03, 0xFA, 0xD0, 0x01, // =.P.....
  7296. /* 0648 */ 0xF8, 0xB8, 0x4E, 0x00, 0x8B, 0xCB, 0xA1, 0x27, // ..N....'
  7297. /* 0650 */ 0xCB, 0x43, 0x4F, 0x96, 0x82, 0x78, 0xB2, 0x0E, // .CO..x..
  7298. /* 0658 */ 0x34, 0x59, 0xF4, 0x05, 0xC2, 0x77, 0x29, 0x4F, // 4Y...w)O
  7299. /* 0660 */ 0x16, 0x73, 0xA2, 0x78, 0xE7, 0xC5, 0xDD, 0x8A, // .s.x....
  7300. /* 0668 */ 0x00, 0x2F, 0xFF, 0xFF, 0x1B, 0x05, 0xF0, 0x91, // ./......
  7301. /* 0670 */ 0xE8, 0x54, 0xEA, 0xD5, 0x10, 0x64, 0x52, 0x6E, // .T...dRn
  7302. /* 0678 */ 0x45, 0xE8, 0x40, 0x37, 0x0A, 0x32, 0xA4, 0x77, // E.@7.2.w
  7303. /* 0680 */ 0xB6, 0x43, 0x62, 0x51, 0x6E, 0x14, 0xA8, 0x10, // .CbQn...
  7304. /* 0688 */ 0x14, 0x8A, 0x71, 0x2A, 0x40, 0x09, 0xBF, 0x15, // ..q*@...
  7305. /* 0690 */ 0x51, 0x10, 0xDF, 0x8A, 0x00, 0x27, 0x69, 0x06, // Q....'i.
  7306. /* 0698 */ 0x85, 0xD6, 0x73, 0x2B, 0x82, 0x72, 0x73, 0xC0, // ..s+.rs.
  7307. /* 06A0 */ 0x5E, 0x8B, 0x80, 0xF1, 0xFF, 0xFF, 0x5A, 0x04, // ^.....Z.
  7308. /* 06A8 */ 0x70, 0x4C, 0xA2, 0x45, 0xAD, 0xA7, 0x0E, 0x90, // pL.E....
  7309. /* 06B0 */ 0x05, 0x58, 0x05, 0x3D, 0xCB, 0x58, 0x32, 0x0C, // .X.=.X2.
  7310. /* 06B8 */ 0x4A, 0x02, 0x84, 0xEE, 0xB3, 0x1E, 0x02, 0x1F, // J.......
  7311. /* 06C0 */ 0xA1, 0xE7, 0xDC, 0x3C, 0xBE, 0x2E, 0x10, 0xA7, // ...<....
  7312. /* 06C8 */ 0xE3, 0x93, 0xC6, 0x01, 0x30, 0x69, 0x63, 0x43, // ....0icC
  7313. /* 06D0 */ 0x9D, 0x38, 0x3C, 0xC8, 0x77, 0x09, 0xDF, 0x38, // .8<.w..8
  7314. /* 06D8 */ 0x7C, 0xB1, 0x31, 0x4C, 0x02, 0x8F, 0x8D, 0xA1, // |.1L....
  7315. /* 06E0 */ 0xFD, 0xFF, 0xA3, 0xB1, 0x13, 0x01, 0x0C, 0xC0, // ........
  7316. /* 06E8 */ 0x43, 0x7C, 0x28, 0xF5, 0x20, 0x3C, 0xB3, 0x83, // C|(. <..
  7317. /* 06F0 */ 0xC0, 0x9C, 0x4C, 0x7C, 0xF9, 0x6B, 0xF5, 0x48, // ..L|.k.H
  7318. /* 06F8 */ 0x80, 0x70, 0x7F, 0x23, 0xD0, 0xA1, 0xFA, 0x45, // .p.#...E
  7319. /* 0700 */ 0xE0, 0x09, 0x20, 0x46, 0x10, 0x5B, 0x13, 0x60, // .. F.[.`
  7320. /* 0708 */ 0x6B, 0xF2, 0x02, 0xF2, 0x69, 0x20, 0xCA, 0x29, // k...i .)
  7321. /* 0710 */ 0x05, 0x7A, 0xE9, 0x35, 0x4A, 0x73, 0x02, 0x8C, // .z.5Js..
  7322. /* 0718 */ 0x41, 0x21, 0x40, 0x62, 0xBD, 0x07, 0xD4, 0x06, // A!@b....
  7323. /* 0720 */ 0x26, 0xA8, 0x60, 0x61, 0x82, 0x18, 0xAA, 0xFD, // &.`a....
  7324. /* 0728 */ 0x41, 0x10, 0xF9, 0xCF, 0x00, 0x5D, 0x33, 0x7C, // A....]3|
  7325. /* 0730 */ 0x76, 0xF7, 0x68, 0xF8, 0x41, 0x88, 0x8F, 0xE6, // v.h.A...
  7326. /* 0738 */ 0x54, 0x1F, 0x3E, 0x18, 0xC8, 0x43, 0x8A, 0x4F, // T.>..C.O
  7327. /* 0740 */ 0xAF, 0x87, 0xEB, 0x8B, 0xAA, 0x09, 0x1E, 0x1E, // ........
  7328. /* 0748 */ 0x7C, 0x86, 0x80, 0xE3, 0x1A, 0x50, 0x13, 0x3F, // |....P.?
  7329. /* 0750 */ 0x44, 0xF6, 0x93, 0x31, 0x1C, 0x1F, 0xA2, 0x0F, // D..1....
  7330. /* 0758 */ 0x15, 0x9E, 0xC0, 0xDB, 0x80, 0x01, 0xD9, 0x21, // .......!
  7331. /* 0760 */ 0x02, 0xFE, 0x78, 0x0C, 0xFD, 0x14, 0xE1, 0x1B, // ..x.....
  7332. /* 0768 */ 0xA0, 0xC7, 0xA6, 0x41, 0xA0, 0x4E, 0x1A, 0x7C, // ...A.N.|
  7333. /* 0770 */ 0x98, 0xA7, 0xF5, 0x86, 0xEF, 0xEB, 0xB9, 0x09, // ........
  7334. /* 0778 */ 0x2C, 0xF6, 0xEC, 0x40, 0xC7, 0x03, 0x7E, 0xC5, // ,..@..~.
  7335. /* 0780 */ 0x47, 0x03, 0x5D, 0x5E, 0x8C, 0xED, 0x33, 0x8B, // G.]^..3.
  7336. /* 0788 */ 0x23, 0x1C, 0x44, 0xA0, 0x80, 0x9E, 0x8D, 0xCF, // #.D.....
  7337. /* 0790 */ 0x10, 0xBE, 0x17, 0xB0, 0xA3, 0x05, 0x17, 0x75, // .......u
  7338. /* 0798 */ 0xB4, 0x40, 0x1D, 0x1A, 0x7C, 0x5E, 0x60, 0x88, // .@..|^`.
  7339. /* 07A0 */ 0x8F, 0x33, 0xFE, 0xFF, 0x43, 0x3C, 0x59, 0xB0, // .3..C<Y.
  7340. /* 07A8 */ 0x93, 0x14, 0x38, 0x47, 0xE2, 0x43, 0x08, 0x7C, // ..8G.C.|
  7341. /* 07B0 */ 0x90, 0x97, 0x15, 0x43, 0x04, 0x09, 0xFE, 0x4C, // ...C...L
  7342. /* 07B8 */ 0x70, 0x3A, 0x6C, 0x68, 0x18, 0x82, 0x22, 0x47, // p:lh.."G
  7343. /* 07C0 */ 0x80, 0x3A, 0x76, 0x78, 0x04, 0xFC, 0x9C, 0xF0, // .:vx....
  7344. /* 07C8 */ 0x40, 0xC2, 0x46, 0xF0, 0x4E, 0xE2, 0x49, 0x1C, // @.F.N.I.
  7345. /* 07D0 */ 0x90, 0xCF, 0x16, 0x46, 0x88, 0x5D, 0xEE, 0x11, // ...F.]..
  7346. /* 07D8 */ 0x83, 0x68, 0x1E, 0x9F, 0xCE, 0x30, 0x98, 0x31, // .h...0.1
  7347. /* 07E0 */ 0xE1, 0x4E, 0x0C, 0x1E, 0x02, 0x1F, 0xC0, 0xB3, // .N......
  7348. /* 07E8 */ 0xC5, 0xF9, 0xF9, 0x84, 0x72, 0x56, 0xB8, 0x11, // ....rV..
  7349. /* 07F0 */ 0xF3, 0x29, 0xE1, 0x06, 0x80, 0x51, 0x68, 0xD3, // .)...Qh.
  7350. /* 07F8 */ 0xA7, 0x46, 0xA3, 0x56, 0x0D, 0xCA, 0xD4, 0x28, // .F.V...(
  7351. /* 0800 */ 0xD3, 0xA0, 0x56, 0x9F, 0x4A, 0x8D, 0x19, 0xB3, // ..V.J...
  7352. /* 0808 */ 0x07, 0xA5, 0xE3, 0x94, 0x4F, 0x00, 0x16, 0xF1, // ....O...
  7353. /* 0810 */ 0x08, 0x10, 0x88, 0xC5, 0x52, 0xC8, 0xC8, 0xA8, // ....R...
  7354. /* 0818 */ 0x0C, 0x22, 0x20, 0xAB, 0x7C, 0x97, 0x08, 0xC8, // ." .|...
  7355. /* 0820 */ 0x9A, 0x41, 0x04, 0xE4, 0xD4, 0x16, 0x80, 0x98, // .A......
  7356. /* 0828 */ 0x86, 0x37, 0x86, 0x80, 0x9C, 0xCC, 0x03, 0x10, // .7......
  7357. /* 0830 */ 0xCB, 0x09, 0x22, 0x20, 0x4B, 0x35, 0x01, 0xC4, // .." K5..
  7358. /* 0838 */ 0x74, 0x83, 0x08, 0xC8, 0x5A, 0x55, 0x0C, 0x82, // t...ZU..
  7359. /* 0840 */ 0x82, 0x08, 0xC8, 0x3A, 0x5E, 0x0E, 0x02, 0xB2, // ...:^...
  7360. /* 0848 */ 0x2A, 0x10, 0x01, 0x39, 0x9F, 0x0D, 0x20, 0x16, // *..9.. .
  7361. /* 0850 */ 0x16, 0x44, 0x40, 0x16, 0xA9, 0x03, 0x88, 0x29, // .D@....)
  7362. /* 0858 */ 0x06, 0x11, 0x90, 0xB5, 0xF9, 0x00, 0x62, 0x4A, // ......bJ
  7363. /* 0860 */ 0x41, 0x34, 0x20, 0xF2, 0x28, 0x10, 0x90, 0x25, // A4 .(..%
  7364. /* 0868 */ 0x50, 0x08, 0xC8, 0x71, 0x41, 0x04, 0xE4, 0xF0, // P..qA...
  7365. /* 0870 */ 0x40, 0x34, 0xC7, 0xFB, 0x41, 0x40, 0xFE, 0xFF, // @4..A@..
  7366. /* 0878 */ 0x87, 0x02, 0x11, 0x90, 0x03, 0x3C, 0x1B, 0x04, // .....<..
  7367. /* 0880 */ 0xE4, 0x38, 0x20, 0x02, 0xB2, 0x24, 0x2D, 0x40, // .8 ..$-@
  7368. /* 0888 */ 0x4C, 0x1F, 0x88, 0x80, 0x1C, 0x12, 0x88, 0x26, // L......&
  7369. /* 0890 */ 0x06, 0xA2, 0x89, 0xBD, 0x00, 0xB1, 0xFC, 0x20, // .......
  7370. /* 0898 */ 0x02, 0xB2, 0x7E, 0x33, 0x40, 0x2C, 0x0D, 0x88, // ..~3@,..
  7371. /* 08A0 */ 0x80, 0x2C, 0xC1, 0x0D, 0x10, 0xD3, 0x03, 0x22, // .,....."
  7372. /* 08A8 */ 0x20, 0x67, 0x07, 0xA2, 0x4A, 0xDE, 0x05, 0x02, // g..J...
  7373. /* 08B0 */ 0x26, 0x76, 0x80, 0x58, 0x18, 0x10, 0x01, 0x59, // &v.X...Y
  7374. /* 08B8 */ 0xCA, 0xBB, 0x4B, 0x40, 0xD6, 0x05, 0x22, 0x20, // ..K@.."
  7375. /* 08C0 */ 0x6B, 0xF0, 0x03, 0xC4, 0x14, 0x81, 0x68, 0x70, // k.....hp
  7376. /* 08C8 */ 0xE4, 0x01, 0xA2, 0xC1, 0x11, 0x10, 0x01, 0x39, // .......9
  7377. /* 08D0 */ 0x86, 0x21, 0x20, 0x0A, 0xA2, 0x01, 0x10, 0x47, // .! ....G
  7378. /* 08D8 */ 0x03, 0xA0, 0x20, 0x02, 0x72, 0x2E, 0x20, 0x1A, // .. .r. .
  7379. /* 08E0 */ 0x12, 0x88, 0x06, 0x7A, 0xFE, 0x08, 0xC8, 0xF1, // ...z....
  7380. /* 08E8 */ 0x40, 0x04, 0x64, 0x19, 0x9E, 0x40, 0x58, 0x08, // @.d..@X.
  7381. /* 08F0 */ 0x10, 0x2A, 0xE3, 0xE5, 0x21, 0x10, 0xFF, 0xFF, // .*..!...
  7382. /* 08F8 */ 0x01 // .
  7383. })
  7384. Method (IANE, 1, Serialized)
  7385. {
  7386. IANQ (Arg0)
  7387. Notify (ATKD, 0xFF) // Hardware-Specific
  7388. }
  7389.  
  7390. Method (INIT, 1, NotSerialized)
  7391. {
  7392. ATKP = One
  7393. Return (One)
  7394. }
  7395.  
  7396. Method (BSTS, 0, NotSerialized)
  7397. {
  7398. Local0 = Zero
  7399. If (^^PCI0.SBRG.EC0.ACAP ())
  7400. {
  7401. Local0 = Zero
  7402. }
  7403. Else
  7404. {
  7405. Local0 = ^^PCI0.SBRG.EC0.ST8E (0x05, Zero)
  7406. If (((Local0 & 0xFF) == 0x34))
  7407. {
  7408. Local0 = 0x05
  7409. }
  7410. Else
  7411. {
  7412. Local0 = Zero
  7413. }
  7414. }
  7415.  
  7416. Return (Local0)
  7417. }
  7418.  
  7419. Method (SFUN, 0, NotSerialized)
  7420. {
  7421. Local0 = 0x21
  7422. Return (Local0)
  7423. }
  7424.  
  7425. Method (WDOG, 1, NotSerialized)
  7426. {
  7427. Return (Zero)
  7428. }
  7429.  
  7430. Method (KBNI, 0, NotSerialized)
  7431. {
  7432. Return (One)
  7433. }
  7434.  
  7435. Name (CA1M, Zero)
  7436. Method (RMEM, 1, NotSerialized)
  7437. {
  7438. OperationRegion (VMEM, SystemMemory, Arg0, 0x04)
  7439. Field (VMEM, ByteAcc, NoLock, Preserve)
  7440. {
  7441. MEMI, 32
  7442. }
  7443.  
  7444. Local0 = MEMI /* \_SB_.ATKD.RMEM.MEMI */
  7445. Return (Local0)
  7446. }
  7447.  
  7448. Method (WMEM, 2, NotSerialized)
  7449. {
  7450. OperationRegion (VMEM, SystemMemory, Arg0, 0x04)
  7451. Field (VMEM, ByteAcc, NoLock, Preserve)
  7452. {
  7453. MEMI, 32
  7454. }
  7455.  
  7456. MEMI = Arg1
  7457. }
  7458.  
  7459. Name (MEMD, Package (0x81)
  7460. {
  7461. 0xFFFFFFFF,
  7462. 0xFFFFFFFF,
  7463. 0xFFFFFFFF,
  7464. 0xFFFFFFFF,
  7465. 0xFFFFFFFF,
  7466. 0xFFFFFFFF,
  7467. 0xFFFFFFFF,
  7468. 0xFFFFFFFF,
  7469. 0xFFFFFFFF,
  7470. 0xFFFFFFFF,
  7471. 0xFFFFFFFF,
  7472. 0xFFFFFFFF,
  7473. 0xFFFFFFFF,
  7474. 0xFFFFFFFF,
  7475. 0xFFFFFFFF,
  7476. 0xFFFFFFFF,
  7477. 0xFFFFFFFF,
  7478. 0xFFFFFFFF,
  7479. 0xFFFFFFFF,
  7480. 0xFFFFFFFF,
  7481. 0xFFFFFFFF,
  7482. 0xFFFFFFFF,
  7483. 0xFFFFFFFF,
  7484. 0xFFFFFFFF,
  7485. 0xFFFFFFFF,
  7486. 0xFFFFFFFF,
  7487. 0xFFFFFFFF,
  7488. 0xFFFFFFFF,
  7489. 0xFFFFFFFF,
  7490. 0xFFFFFFFF,
  7491. 0xFFFFFFFF,
  7492. 0xFFFFFFFF,
  7493. 0xFFFFFFFF,
  7494. 0xFFFFFFFF,
  7495. 0xFFFFFFFF,
  7496. 0xFFFFFFFF,
  7497. 0xFFFFFFFF,
  7498. 0xFFFFFFFF,
  7499. 0xFFFFFFFF,
  7500. 0xFFFFFFFF,
  7501. 0xFFFFFFFF,
  7502. 0xFFFFFFFF,
  7503. 0xFFFFFFFF,
  7504. 0xFFFFFFFF,
  7505. 0xFFFFFFFF,
  7506. 0xFFFFFFFF,
  7507. 0xFFFFFFFF,
  7508. 0xFFFFFFFF,
  7509. 0xFFFFFFFF,
  7510. 0xFFFFFFFF,
  7511. 0xFFFFFFFF,
  7512. 0xFFFFFFFF,
  7513. 0xFFFFFFFF,
  7514. 0xFFFFFFFF,
  7515. 0xFFFFFFFF,
  7516. 0xFFFFFFFF,
  7517. 0xFFFFFFFF,
  7518. 0xFFFFFFFF,
  7519. 0xFFFFFFFF,
  7520. 0xFFFFFFFF,
  7521. 0xFFFFFFFF,
  7522. 0xFFFFFFFF,
  7523. 0xFFFFFFFF,
  7524. 0xFFFFFFFF,
  7525. 0xFFFFFFFF,
  7526. 0xFFFFFFFF,
  7527. 0xFFFFFFFF,
  7528. 0xFFFFFFFF,
  7529. 0xFFFFFFFF,
  7530. 0xFFFFFFFF,
  7531. 0xFFFFFFFF,
  7532. 0xFFFFFFFF,
  7533. 0xFFFFFFFF,
  7534. 0xFFFFFFFF,
  7535. 0xFFFFFFFF,
  7536. 0xFFFFFFFF,
  7537. 0xFFFFFFFF,
  7538. 0xFFFFFFFF,
  7539. 0xFFFFFFFF,
  7540. 0xFFFFFFFF,
  7541. 0xFFFFFFFF,
  7542. 0xFFFFFFFF,
  7543. 0xFFFFFFFF,
  7544. 0xFFFFFFFF,
  7545. 0xFFFFFFFF,
  7546. 0xFFFFFFFF,
  7547. 0xFFFFFFFF,
  7548. 0xFFFFFFFF,
  7549. 0xFFFFFFFF,
  7550. 0xFFFFFFFF,
  7551. 0xFFFFFFFF,
  7552. 0xFFFFFFFF,
  7553. 0xFFFFFFFF,
  7554. 0xFFFFFFFF,
  7555. 0xFFFFFFFF,
  7556. 0xFFFFFFFF,
  7557. 0xFFFFFFFF,
  7558. 0xFFFFFFFF,
  7559. 0xFFFFFFFF,
  7560. 0xFFFFFFFF,
  7561. 0xFFFFFFFF,
  7562. 0xFFFFFFFF,
  7563. 0xFFFFFFFF,
  7564. 0xFFFFFFFF,
  7565. 0xFFFFFFFF,
  7566. 0xFFFFFFFF,
  7567. 0xFFFFFFFF,
  7568. 0xFFFFFFFF,
  7569. 0xFFFFFFFF,
  7570. 0xFFFFFFFF,
  7571. 0xFFFFFFFF,
  7572. 0xFFFFFFFF,
  7573. 0xFFFFFFFF,
  7574. 0xFFFFFFFF,
  7575. 0xFFFFFFFF,
  7576. 0xFFFFFFFF,
  7577. 0xFFFFFFFF,
  7578. 0xFFFFFFFF,
  7579. 0xFFFFFFFF,
  7580. 0xFFFFFFFF,
  7581. 0xFFFFFFFF,
  7582. 0xFFFFFFFF,
  7583. 0xFFFFFFFF,
  7584. 0xFFFFFFFF,
  7585. 0xFFFFFFFF,
  7586. 0xFFFFFFFF,
  7587. 0xFFFFFFFF,
  7588. 0xFFFFFFFF,
  7589. 0xFFFFFFFF
  7590. })
  7591. Method (SCDG, 2, NotSerialized)
  7592. {
  7593. MEMD [Zero] = Zero
  7594. CA1M = CAL1 /* \_SB_.CAL1 */
  7595. If ((ToInteger (CAL1) == Zero))
  7596. {
  7597. Return (MEMD) /* \_SB_.ATKD.MEMD */
  7598. }
  7599.  
  7600. If ((Arg0 != One))
  7601. {
  7602. MEMD [Zero] = Zero
  7603. Return (MEMD) /* \_SB_.ATKD.MEMD */
  7604. }
  7605.  
  7606. Local2 = Zero
  7607. Local3 = One
  7608. Local1 = CA1M /* \_SB_.ATKD.CA1M */
  7609. MEMD [Zero] = 0x0200
  7610. While ((Local3 < 0x81))
  7611. {
  7612. MEMD [Local3] = RMEM ((Local1 + Local2))
  7613. Local2 += 0x04
  7614. Local3 += One
  7615. }
  7616.  
  7617. Return (MEMD) /* \_SB_.ATKD.MEMD */
  7618. }
  7619.  
  7620. Method (SPEC, 1, NotSerialized)
  7621. {
  7622. If ((Arg0 == Zero))
  7623. {
  7624. Return (0x00090000)
  7625. }
  7626. ElseIf ((Arg0 == One))
  7627. {
  7628. Return (One)
  7629. }
  7630.  
  7631. Return (0xFFFFFFFE)
  7632. }
  7633.  
  7634. Method (OSVR, 1, NotSerialized)
  7635. {
  7636. If ((OSFG == Zero))
  7637. {
  7638. OSFG = Arg0
  7639. }
  7640. }
  7641.  
  7642. Method (VERS, 2, NotSerialized)
  7643. {
  7644. If ((Arg0 == Zero))
  7645. {
  7646. Return (0x00090000)
  7647. }
  7648.  
  7649. Return (0xFFFFFFFE)
  7650. }
  7651.  
  7652. Method (GLCD, 0, NotSerialized)
  7653. {
  7654. Return (LCDV) /* \_SB_.LCDV */
  7655. }
  7656.  
  7657. Method (ANVI, 1, Serialized)
  7658. {
  7659. SMIF = 0x04
  7660. Return (ASMI (Arg0))
  7661. }
  7662. }
  7663. }
  7664.  
  7665. Scope (_SB)
  7666. {
  7667. Device (ASHS)
  7668. {
  7669. Name (_HID, "ATK4002") // _HID: Hardware ID
  7670. Method (HSWC, 1, Serialized)
  7671. {
  7672. If ((Arg0 < 0x02))
  7673. {
  7674. Return (SWBL (Arg0))
  7675. }
  7676.  
  7677. If ((Arg0 == 0x02))
  7678. {
  7679. If ((GWBL () == Zero))
  7680. {
  7681. Return (0x04)
  7682. }
  7683. Else
  7684. {
  7685. Return (0x05)
  7686. }
  7687. }
  7688.  
  7689. If ((Arg0 == 0x03))
  7690. {
  7691. Return (0xFF)
  7692. }
  7693.  
  7694. If ((Arg0 == 0x04))
  7695. {
  7696. Return (SWBL (Zero))
  7697. }
  7698.  
  7699. If ((Arg0 == 0x05))
  7700. {
  7701. Return (SWBL (One))
  7702. }
  7703.  
  7704. If ((Arg0 == 0x80))
  7705. {
  7706. Return (One)
  7707. }
  7708. }
  7709.  
  7710. Method (_STA, 0, NotSerialized) // _STA: Status
  7711. {
  7712. If ((MSOS () >= OSW8))
  7713. {
  7714. Return (0x0F)
  7715. }
  7716. Else
  7717. {
  7718. Return (Zero)
  7719. }
  7720. }
  7721. }
  7722. }
  7723.  
  7724. Scope (\)
  7725. {
  7726. Method (OHWS, 0, Serialized)
  7727. {
  7728. Return (Zero)
  7729. }
  7730.  
  7731. Method (GWBL, 0, Serialized)
  7732. {
  7733. Return (\_SB.GGOV (One, One))
  7734. }
  7735.  
  7736. Method (SWBL, 1, Serialized)
  7737. {
  7738. If ((Arg0 == Zero))
  7739. {
  7740. \_SB.SGOV (One, One, Zero)
  7741. }
  7742. ElseIf ((Arg0 == One))
  7743. {
  7744. \_SB.SGOV (One, One, One)
  7745. }
  7746.  
  7747. Return (One)
  7748. }
  7749. }
  7750.  
  7751. Scope (_SB)
  7752. {
  7753. Device (ASUP)
  7754. {
  7755. Name (_HID, "ASUS2018") // _HID: Hardware ID
  7756. Method (_STA, 0, NotSerialized) // _STA: Status
  7757. {
  7758. Return (0x0F)
  7759. }
  7760. }
  7761.  
  7762. Device (ARLS)
  7763. {
  7764. Name (_HID, "ASUS9001") // _HID: Hardware ID
  7765. Method (_STA, 0, NotSerialized) // _STA: Status
  7766. {
  7767. If (ARSE)
  7768. {
  7769. Return (0x0F)
  7770. }
  7771. Else
  7772. {
  7773. Return (Zero)
  7774. }
  7775. }
  7776. }
  7777. }
  7778.  
  7779. Scope (\)
  7780. {
  7781. OperationRegion (DBIO, SystemIO, 0x03F8, 0x08)
  7782. Field (DBIO, ByteAcc, NoLock, Preserve)
  7783. {
  7784. SOUT, 8,
  7785. Offset (0x05),
  7786. SSAT, 8
  7787. }
  7788.  
  7789. Method (GETC, 2, NotSerialized)
  7790. {
  7791. CreateByteField (Arg0, Arg1, TCHR)
  7792. Return (TCHR) /* \GETC.TCHR */
  7793. }
  7794.  
  7795. Method (THRE, 0, NotSerialized)
  7796. {
  7797. Local0 = (SSAT & 0x20)
  7798. While ((Local0 == Zero))
  7799. {
  7800. Local0 = (SSAT & 0x20)
  7801. }
  7802. }
  7803.  
  7804. Method (OUTX, 1, NotSerialized)
  7805. {
  7806. THRE ()
  7807. SOUT = Arg0
  7808. }
  7809.  
  7810. Method (OUTC, 1, NotSerialized)
  7811. {
  7812. If ((Arg0 == 0x0A))
  7813. {
  7814. OUTX (0x0D)
  7815. }
  7816.  
  7817. OUTX (Arg0)
  7818. }
  7819.  
  7820. Method (DBGN, 1, NotSerialized)
  7821. {
  7822. Local0 = (Arg0 & 0x0F)
  7823. If ((Local0 < 0x0A))
  7824. {
  7825. Local0 += 0x30
  7826. }
  7827. Else
  7828. {
  7829. Local0 += 0x37
  7830. }
  7831.  
  7832. OUTC (Local0)
  7833. }
  7834.  
  7835. Method (ADGB, 1, NotSerialized)
  7836. {
  7837. Local0 = (Arg0 >> 0x04)
  7838. DBGN (Local0)
  7839. DBGN (Arg0)
  7840. }
  7841.  
  7842. Method (ADGW, 1, NotSerialized)
  7843. {
  7844. Local0 = (Arg0 >> 0x08)
  7845. ADGB (Local0)
  7846. ADGB (Arg0)
  7847. }
  7848.  
  7849. Method (ADGD, 1, NotSerialized)
  7850. {
  7851. Local0 = (Arg0 >> 0x10)
  7852. ADGW (Local0)
  7853. ADGW (Arg0)
  7854. }
  7855.  
  7856. Method (ADGQ, 1, NotSerialized)
  7857. {
  7858. Local0 = (Arg0 >> 0x30)
  7859. ADGW (Local0)
  7860. Local0 = (Arg0 >> 0x20)
  7861. ADGW (Local0)
  7862. Local0 = (Arg0 >> 0x10)
  7863. ADGW (Local0)
  7864. ADGW (Arg0)
  7865. }
  7866.  
  7867. Name (DBGZ, Buffer (0x50){})
  7868. Method (AMLI, 1, NotSerialized)
  7869. {
  7870. If ((ObjectType (Arg0) == One))
  7871. {
  7872. If ((Arg0 > 0xFFFFFFFF))
  7873. {
  7874. ADGQ (Arg0)
  7875. }
  7876. ElseIf ((Arg0 > 0xFFFF))
  7877. {
  7878. ADGD (Arg0)
  7879. }
  7880. ElseIf ((Arg0 > 0xFF))
  7881. {
  7882. ADGW (Arg0)
  7883. }
  7884. Else
  7885. {
  7886. ADGB (Arg0)
  7887. }
  7888.  
  7889. Return (Zero)
  7890. }
  7891.  
  7892. If ((ObjectType (Arg0) == 0x02))
  7893. {
  7894. DBGZ = Arg0
  7895. Local1 = Zero
  7896. While (One)
  7897. {
  7898. Local0 = GETC (DBGZ, Local1)
  7899. If ((Local0 == Zero))
  7900. {
  7901. Return (Zero)
  7902. }
  7903.  
  7904. OUTC (Local0)
  7905. Local1++
  7906. }
  7907.  
  7908. Return (Zero)
  7909. }
  7910.  
  7911. If ((ObjectType (Arg0) == 0x03))
  7912. {
  7913. Local0 = Zero
  7914. While ((Local0 < SizeOf (Arg0)))
  7915. {
  7916. Local1 = GETC (Arg0, Local0)
  7917. If ((Local0 > Zero))
  7918. {
  7919. OUTC (0x20)
  7920. }
  7921.  
  7922. ADGB (Local1)
  7923. Local0++
  7924. }
  7925.  
  7926. Return (Zero)
  7927. }
  7928.  
  7929. If ((ObjectType (Arg0) == 0x04))
  7930. {
  7931. Local0 = Zero
  7932. While ((Local0 < SizeOf (Arg0)))
  7933. {
  7934. OUTC (0x20)
  7935. OUTC (0x20)
  7936. AMLI (DerefOf (Arg0 [Local0]))
  7937. OUTC (0x0A)
  7938. Local0++
  7939. }
  7940.  
  7941. Return (Zero)
  7942. }
  7943.  
  7944. Return (One)
  7945. }
  7946. }
  7947.  
  7948. OperationRegion (ASDB, SystemIO, 0xB2, 0x02)
  7949. Field (ASDB, ByteAcc, Lock, Preserve)
  7950. {
  7951. ASB2, 8,
  7952. ASB3, 8
  7953. }
  7954.  
  7955. Method (SBDS, 1, NotSerialized)
  7956. {
  7957. Local0 = ASB3 /* \ASB3 */
  7958. ASB3 = (0xD0 + Arg0)
  7959. ASB2 = 0xE0
  7960. ASB3 = Local0
  7961. }
  7962.  
  7963. Method (SBDW, 1, NotSerialized)
  7964. {
  7965. Local0 = ASB3 /* \ASB3 */
  7966. ASB3 = (0xF0 + Arg0)
  7967. ASB2 = 0xE0
  7968. ASB3 = Local0
  7969. }
  7970.  
  7971. Scope (_SB.PCI0.SBRG)
  7972. {
  7973. Device (EC0)
  7974. {
  7975. Name (_HID, EisaId ("PNP0C09") /* Embedded Controller Device */) // _HID: Hardware ID
  7976. Name (_CRS, ResourceTemplate () // _CRS: Current Resource Settings
  7977. {
  7978. IO (Decode16,
  7979. 0x0062, // Range Minimum
  7980. 0x0062, // Range Maximum
  7981. 0x00, // Alignment
  7982. 0x01, // Length
  7983. )
  7984. IO (Decode16,
  7985. 0x0066, // Range Minimum
  7986. 0x0066, // Range Maximum
  7987. 0x00, // Alignment
  7988. 0x01, // Length
  7989. )
  7990. })
  7991. Method (_GPE, 0, NotSerialized) // _GPE: General Purpose Events
  7992. {
  7993. Local0 = 0x03
  7994. Return (Local0)
  7995. }
  7996.  
  7997. Mutex (MUEC, 0x00)
  7998. Mutex (MU4T, 0x00)
  7999. Mutex (CMUT, 0x00)
  8000. Name (ECFL, Ones)
  8001. Method (ECAV, 0, NotSerialized)
  8002. {
  8003. If ((ECFL == Ones))
  8004. {
  8005. If ((_REV >= 0x02))
  8006. {
  8007. Return (One)
  8008. }
  8009. Else
  8010. {
  8011. Return (Zero)
  8012. }
  8013.  
  8014. Return (Zero)
  8015. }
  8016.  
  8017. Return (ECFL) /* \_SB_.PCI0.SBRG.EC0_.ECFL */
  8018. }
  8019.  
  8020. OperationRegion (BRIH, SystemIO, 0x0381, One)
  8021. Field (BRIH, ByteAcc, Lock, Preserve)
  8022. {
  8023. BRAH, 8
  8024. }
  8025.  
  8026. OperationRegion (BRAM, SystemIO, 0x0382, 0x02)
  8027. Field (BRAM, ByteAcc, Lock, Preserve)
  8028. {
  8029. BRAI, 8,
  8030. BRAD, 8
  8031. }
  8032.  
  8033. IndexField (BRAI, BRAD, ByteAcc, NoLock, Preserve)
  8034. {
  8035. Offset (0x04),
  8036. CCI0, 8,
  8037. CCI1, 8,
  8038. CCI2, 8,
  8039. CCI3, 8,
  8040. CTL0, 8,
  8041. CTL1, 8,
  8042. CTL2, 8,
  8043. CTL3, 8,
  8044. CTL4, 8,
  8045. CTL5, 8,
  8046. CTL6, 8,
  8047. CTL7, 8,
  8048. MGI0, 8,
  8049. MGI1, 8,
  8050. MGI2, 8,
  8051. MGI3, 8,
  8052. MGI4, 8,
  8053. MGI5, 8,
  8054. MGI6, 8,
  8055. MGI7, 8,
  8056. MGI8, 8,
  8057. MGI9, 8,
  8058. MGIA, 8,
  8059. MGIB, 8,
  8060. MGIC, 8,
  8061. MGID, 8,
  8062. MGIE, 8,
  8063. MGIF, 8,
  8064. MGO0, 8,
  8065. MGO1, 8,
  8066. MGO2, 8,
  8067. MGO3, 8,
  8068. MGO4, 8,
  8069. MGO5, 8,
  8070. MGO6, 8,
  8071. MGO7, 8,
  8072. MGO8, 8,
  8073. MGO9, 8,
  8074. MGOA, 8,
  8075. MGOB, 8,
  8076. MGOC, 8,
  8077. MGOD, 8,
  8078. MGOE, 8,
  8079. MGOF, 8,
  8080. Offset (0x40),
  8081. BRD1, 8,
  8082. BRD2, 8,
  8083. BRD3, 8,
  8084. BRD4, 8,
  8085. Offset (0x6E),
  8086. BFLB, 8,
  8087. BCLB, 8,
  8088. Offset (0x8E),
  8089. CNTD, 8,
  8090. Offset (0x90),
  8091. EPWS, 8,
  8092. EB0S, 8,
  8093. EB1S, 8,
  8094. EB0T, 8,
  8095. EB1T, 8,
  8096. Offset (0x98),
  8097. ECPU, 8,
  8098. ECRT, 8,
  8099. EPSV, 8,
  8100. PDST, 8,
  8101. THL0, 8,
  8102. THH0, 8,
  8103. THL1, 8,
  8104. THH1, 8,
  8105. B0VL, 16,
  8106. B0RC, 16,
  8107. B0FC, 16,
  8108. B0MD, 16,
  8109. B0ST, 16,
  8110. B0CC, 16,
  8111. B0DC, 16,
  8112. B0DV, 16,
  8113. B1VL, 16,
  8114. B1RC, 16,
  8115. B1FC, 16,
  8116. B1MD, 16,
  8117. B1ST, 16,
  8118. B1CC, 16,
  8119. B1DC, 16,
  8120. B1DV, 16
  8121. }
  8122.  
  8123. Method (_INI, 0, NotSerialized) // _INI: Initialize
  8124. {
  8125. KINI ()
  8126. DINI ()
  8127. }
  8128.  
  8129. Method (_REG, 2, NotSerialized) // _REG: Region Availability
  8130. {
  8131. If ((Arg0 == 0x03))
  8132. {
  8133. ECFL = Arg1
  8134. }
  8135. }
  8136. }
  8137. }
  8138.  
  8139. Scope (_SB.PCI0.SBRG.EC0)
  8140. {
  8141. Device (AC0)
  8142. {
  8143. Name (_HID, "ACPI0003" /* Power Source Device */) // _HID: Hardware ID
  8144. Name (XX00, Buffer (0x03){})
  8145. Name (ACDC, 0xFF)
  8146. Method (_PSR, 0, NotSerialized) // _PSR: Power Source
  8147. {
  8148. ACPF = ACPS ()
  8149. If (((ACPF != ACDC) || (ACDC == 0xFF)))
  8150. {
  8151. CreateWordField (XX00, Zero, SSZE)
  8152. CreateByteField (XX00, 0x02, ACST)
  8153. SSZE = 0x03
  8154. If (ACPF)
  8155. {
  8156. AFN4 (One)
  8157. ACST = Zero
  8158. }
  8159. Else
  8160. {
  8161. AFN4 (0x02)
  8162. ACST = One
  8163. }
  8164.  
  8165. ALIB (One, XX00)
  8166. ACDC = ACPF /* \_SB_.ACPF */
  8167. }
  8168.  
  8169. Return (ACPF) /* \_SB_.ACPF */
  8170. }
  8171.  
  8172. Name (_PCL, Package (0x01) // _PCL: Power Consumer List
  8173. {
  8174. PCI0
  8175. })
  8176. }
  8177.  
  8178. Device (LID)
  8179. {
  8180. Name (_HID, EisaId ("PNP0C0D") /* Lid Device */) // _HID: Hardware ID
  8181. Method (_LID, 0, Serialized) // _LID: Lid Status
  8182. {
  8183. Local0 = One
  8184. Local0 = RPIN (0x11)
  8185. If ((Local0 == Ones))
  8186. {
  8187. Local0 = One
  8188. }
  8189.  
  8190. Name (DPTI, Buffer (0x07){})
  8191. CreateWordField (DPTI, Zero, SSZE)
  8192. CreateByteField (DPTI, 0x02, MSID)
  8193. CreateDWordField (DPTI, 0x03, DECI)
  8194. If ((Local0 == Zero))
  8195. {
  8196. Local1 = 0x52
  8197. If (ATKP)
  8198. {
  8199. ^^^^^ATKD.IANE (0xE9)
  8200. }
  8201. }
  8202. Else
  8203. {
  8204. Switch (CFML)
  8205. {
  8206. Case (One)
  8207. {
  8208. If ((WRFG == One))
  8209. {
  8210. Local1 = 0x5A
  8211. }
  8212. Else
  8213. {
  8214. Local1 = 0x5E
  8215. }
  8216. }
  8217. Case (0x02)
  8218. {
  8219. Local1 = 0x5A
  8220. }
  8221. Case (0x04)
  8222. {
  8223. Local1 = 0x60
  8224. }
  8225. Default
  8226. {
  8227. Local1 = 0x5A
  8228. }
  8229.  
  8230. }
  8231. }
  8232.  
  8233. SSZE = 0x07
  8234. MSID = 0x03
  8235. DECI = Local1
  8236. ALIB (0x0C, DPTI)
  8237. Return (Local0)
  8238. }
  8239. }
  8240. }
  8241.  
  8242. Scope (_SB.PCI0.SBRG.EC0)
  8243. {
  8244. OperationRegion (ECAD, SystemMemory, EGBF, 0x10)
  8245. Field (ECAD, DWordAcc, NoLock, Preserve)
  8246. {
  8247. MFUN, 16,
  8248. SFUN, 16,
  8249. LEN, 16,
  8250. STAS, 8,
  8251. EROR, 8,
  8252. CMD, 8,
  8253. EDA1, 8,
  8254. EDA2, 8,
  8255. EDA3, 8,
  8256. EDA4, 8,
  8257. EDA5, 8,
  8258. Offset (0x10)
  8259. }
  8260.  
  8261. Name (CUNT, Zero)
  8262. Method (ECAC, 0, NotSerialized)
  8263. {
  8264. MFUN = 0x30
  8265. SFUN = One
  8266. LEN = 0x10
  8267. EROR = 0xFF
  8268. CUNT = One
  8269. While ((CUNT < 0x06))
  8270. {
  8271. ISMI (0x9C)
  8272. If ((EROR != Zero))
  8273. {
  8274. CUNT += One
  8275. }
  8276. Else
  8277. {
  8278. Break
  8279. }
  8280. }
  8281. }
  8282.  
  8283. Method (ST83, 1, Serialized)
  8284. {
  8285. If (ECAV ())
  8286. {
  8287. Acquire (MU4T, 0xFFFF)
  8288. CMD = 0xFF
  8289. EDA1 = 0x83
  8290. EDA2 = Arg0
  8291. ECAC ()
  8292. Local0 = EDA1 /* \_SB_.PCI0.SBRG.EC0_.EDA1 */
  8293. Release (MU4T)
  8294. Return (Local0)
  8295. }
  8296.  
  8297. Return (Ones)
  8298. }
  8299.  
  8300. Method (ST84, 2, Serialized)
  8301. {
  8302. If (ECAV ())
  8303. {
  8304. Acquire (MU4T, 0xFFFF)
  8305. CMD = 0xFF
  8306. EDA1 = 0x84
  8307. EDA2 = Arg0
  8308. EDA3 = Arg1
  8309. ECAC ()
  8310. Release (MU4T)
  8311. Return (Zero)
  8312. }
  8313.  
  8314. Return (Ones)
  8315. }
  8316.  
  8317. Method (ST87, 2, Serialized)
  8318. {
  8319. If (ECAV ())
  8320. {
  8321. Acquire (MU4T, 0xFFFF)
  8322. CMD = 0xFF
  8323. EDA1 = 0x87
  8324. EDA2 = Arg0
  8325. EDA3 = Arg1
  8326. ECAC ()
  8327. Local0 = EDA1 /* \_SB_.PCI0.SBRG.EC0_.EDA1 */
  8328. Release (MU4T)
  8329. If ((Arg0 == Zero))
  8330. {
  8331. Return (Local0)
  8332. }
  8333.  
  8334. Return (Zero)
  8335. }
  8336.  
  8337. Return (Ones)
  8338. }
  8339.  
  8340. Method (ST8E, 2, Serialized)
  8341. {
  8342. If (ECAV ())
  8343. {
  8344. Acquire (MU4T, 0xFFFF)
  8345. CMD = 0xFF
  8346. EDA1 = 0x8E
  8347. EDA2 = Arg0
  8348. EDA3 = Arg1
  8349. ECAC ()
  8350. Local0 = EDA1 /* \_SB_.PCI0.SBRG.EC0_.EDA1 */
  8351. Release (MU4T)
  8352. Return (Local0)
  8353. }
  8354.  
  8355. Return (Ones)
  8356. }
  8357.  
  8358. Method (ST95, 2, Serialized)
  8359. {
  8360. If (ECAV ())
  8361. {
  8362. Acquire (MU4T, 0xFFFF)
  8363. CMD = 0xFF
  8364. EDA1 = 0x95
  8365. EDA2 = Arg0
  8366. EDA3 = Arg1
  8367. ECAC ()
  8368. Local0 = EDA1 /* \_SB_.PCI0.SBRG.EC0_.EDA1 */
  8369. Release (MU4T)
  8370. If ((Arg0 == Zero))
  8371. {
  8372. Return (Local0)
  8373. }
  8374.  
  8375. Return (Zero)
  8376. }
  8377.  
  8378. Return (Ones)
  8379. }
  8380.  
  8381. Method (ST98, 1, Serialized)
  8382. {
  8383. If (ECAV ())
  8384. {
  8385. Acquire (MU4T, 0xFFFF)
  8386. CMD = 0xFF
  8387. EDA1 = 0x98
  8388. EDA2 = Arg0
  8389. ECAC ()
  8390. Release (MU4T)
  8391. Return (Zero)
  8392. }
  8393.  
  8394. Return (Ones)
  8395. }
  8396.  
  8397. Method (ST9E, 3, Serialized)
  8398. {
  8399. If (ECAV ())
  8400. {
  8401. Acquire (MU4T, 0xFFFF)
  8402. CMD = 0xFF
  8403. EDA1 = 0x9E
  8404. EDA2 = Arg0
  8405. EDA3 = Arg1
  8406. EDA4 = Arg2
  8407. ECAC ()
  8408. Release (MU4T)
  8409. Return (Zero)
  8410. }
  8411.  
  8412. Return (Ones)
  8413. }
  8414.  
  8415. Method (ST9F, 3, Serialized)
  8416. {
  8417. If (ECAV ())
  8418. {
  8419. Acquire (MU4T, 0xFFFF)
  8420. CMD = 0xFF
  8421. EDA1 = 0x9F
  8422. EDA2 = Arg0
  8423. EDA3 = Arg1
  8424. EDA4 = Arg2
  8425. ECAC ()
  8426. Release (MU4T)
  8427. Return (Zero)
  8428. }
  8429.  
  8430. Return (Ones)
  8431. }
  8432.  
  8433. Method (STA8, 1, Serialized)
  8434. {
  8435. If (ECAV ())
  8436. {
  8437. Acquire (MU4T, 0xFFFF)
  8438. CMD = 0xFF
  8439. EDA1 = 0xA8
  8440. EDA2 = Arg0
  8441. ECAC ()
  8442. Local0 = EDA1 /* \_SB_.PCI0.SBRG.EC0_.EDA1 */
  8443. Release (MU4T)
  8444. Return (Local0)
  8445. }
  8446.  
  8447. Return (Ones)
  8448. }
  8449.  
  8450. Method (STA9, 2, Serialized)
  8451. {
  8452. If (ECAV ())
  8453. {
  8454. Acquire (MU4T, 0xFFFF)
  8455. CMD = 0xFF
  8456. EDA1 = 0xA9
  8457. EDA2 = Arg0
  8458. EDA3 = Arg1
  8459. ECAC ()
  8460. Release (MU4T)
  8461. Return (Zero)
  8462. }
  8463.  
  8464. Return (Ones)
  8465. }
  8466.  
  8467. Method (STB0, 1, Serialized)
  8468. {
  8469. If (ECAV ())
  8470. {
  8471. Acquire (MU4T, 0xFFFF)
  8472. CMD = 0xFF
  8473. EDA1 = 0xB0
  8474. EDA2 = Arg0
  8475. ECAC ()
  8476. Release (MU4T)
  8477. Return (Zero)
  8478. }
  8479.  
  8480. Return (Ones)
  8481. }
  8482.  
  8483. Method (STB1, 1, Serialized)
  8484. {
  8485. If (ECAV ())
  8486. {
  8487. Acquire (MU4T, 0xFFFF)
  8488. CMD = 0xFF
  8489. EDA1 = 0xB1
  8490. EDA2 = Arg0
  8491. ECAC ()
  8492. Release (MU4T)
  8493. Return (Zero)
  8494. }
  8495.  
  8496. Return (Ones)
  8497. }
  8498.  
  8499. Method (STB2, 1, Serialized)
  8500. {
  8501. If (ECAV ())
  8502. {
  8503. Acquire (MU4T, 0xFFFF)
  8504. CMD = 0xFF
  8505. EDA1 = 0xB2
  8506. EDA2 = Arg0
  8507. ECAC ()
  8508. Release (MU4T)
  8509. Return (Zero)
  8510. }
  8511.  
  8512. Return (Ones)
  8513. }
  8514.  
  8515. Method (SPIN, 2, Serialized)
  8516. {
  8517. If (Arg1)
  8518. {
  8519. ST87 (0x20, Arg0)
  8520. }
  8521. Else
  8522. {
  8523. ST87 (0x40, Arg0)
  8524. }
  8525.  
  8526. Return (One)
  8527. }
  8528.  
  8529. Method (RPIN, 1, Serialized)
  8530. {
  8531. Local1 = ST87 (Zero, Arg0)
  8532. Return (Local1)
  8533. }
  8534.  
  8535. Method (RRAM, 2, Serialized)
  8536. {
  8537. If (ECAV ())
  8538. {
  8539. Acquire (MU4T, 0xFFFF)
  8540. Local0 = Arg1
  8541. Local1 = (Local0 & 0xFF)
  8542. Local0 >>= 0x08
  8543. Local0 &= 0xFF
  8544. CMD = 0xFF
  8545. EDA1 = Arg0
  8546. EDA2 = Local0
  8547. EDA3 = Local1
  8548. ECAC ()
  8549. Local0 = EDA1 /* \_SB_.PCI0.SBRG.EC0_.EDA1 */
  8550. Release (MU4T)
  8551. Return (Local0)
  8552. }
  8553.  
  8554. Return (Ones)
  8555. }
  8556.  
  8557. Method (WRAM, 3, Serialized)
  8558. {
  8559. If (ECAV ())
  8560. {
  8561. Acquire (MU4T, 0xFFFF)
  8562. Local0 = Arg1
  8563. Local1 = (Local0 & 0xFF)
  8564. Local0 >>= 0x08
  8565. Local0 &= 0xFF
  8566. CMD = 0xFF
  8567. EDA1 = Arg0
  8568. EDA2 = Local0
  8569. EDA3 = Local1
  8570. EDA4 = Arg2
  8571. ECAC ()
  8572. Release (MU4T)
  8573. Return (One)
  8574. }
  8575.  
  8576. Return (Ones)
  8577. }
  8578.  
  8579. Method (RP2E, 1, NotSerialized)
  8580. {
  8581. Local1 = Acquire (CMUT, 0xFFFF)
  8582. If ((Local1 == Zero))
  8583. {
  8584. BRAH = 0xC9
  8585. BRAI = Arg0
  8586. Local0 = BRAD /* \_SB_.PCI0.SBRG.EC0_.BRAD */
  8587. Release (CMUT)
  8588. }
  8589.  
  8590. Return (Local0)
  8591. }
  8592.  
  8593. Method (WP2E, 2, NotSerialized)
  8594. {
  8595. Local1 = Acquire (CMUT, 0xFFFF)
  8596. If ((Local1 == Zero))
  8597. {
  8598. BRAH = 0xC9
  8599. BRAI = Arg0
  8600. BRAD = Arg1
  8601. Release (CMUT)
  8602. }
  8603. }
  8604.  
  8605. Method (WEBC, 3, NotSerialized)
  8606. {
  8607. Local0 = Acquire (CMUT, 0xFFFF)
  8608. If ((Local0 == Zero))
  8609. {
  8610. Local1 = 0xC8
  8611. While ((BCLB && Local1))
  8612. {
  8613. Stall (0x64)
  8614. Local1--
  8615. }
  8616.  
  8617. If (!Local1)
  8618. {
  8619. Return (Zero)
  8620. }
  8621.  
  8622. BRAH = 0xC9
  8623. Local0 = Zero
  8624. While ((Local0 < Arg1))
  8625. {
  8626. BRAI = (0x40 + Local0)
  8627. BRAD = DerefOf (Arg2 [Local0])
  8628. Local0++
  8629. }
  8630.  
  8631. BCLB |= 0x80
  8632. BFLB = Arg0
  8633. Release (CMUT)
  8634. Return (One)
  8635. }
  8636. Else
  8637. {
  8638. Return (Zero)
  8639. }
  8640. }
  8641.  
  8642. Method (REBC, 2, Serialized)
  8643. {
  8644. Name (TMBF, Buffer (Arg1)
  8645. {
  8646. 0x00 // .
  8647. })
  8648. Local0 = Acquire (CMUT, 0xFFFF)
  8649. If ((Local0 == Zero))
  8650. {
  8651. BRAH = 0xC9
  8652. Local1 = 0xC8
  8653. While (((BCLB > Zero) && (Local1 > Zero)))
  8654. {
  8655. Stall (0x64)
  8656. Local1--
  8657. }
  8658.  
  8659. If (!Local1)
  8660. {
  8661. Release (CMUT)
  8662. BCLB |= 0x40
  8663. Return (TMBF) /* \_SB_.PCI0.SBRG.EC0_.REBC.TMBF */
  8664. }
  8665.  
  8666. BCLB |= 0x20
  8667. BFLB = Arg0
  8668. Local1 = 0x01F4
  8669. While (((BCLB & 0x80) != 0x80))
  8670. {
  8671. Stall (0x64)
  8672. Local1--
  8673. If (!Local1)
  8674. {
  8675. Release (CMUT)
  8676. Return (TMBF) /* \_SB_.PCI0.SBRG.EC0_.REBC.TMBF */
  8677. }
  8678. }
  8679.  
  8680. Local0 = Zero
  8681. While ((Local0 < Arg1))
  8682. {
  8683. BRAI = (0x40 + Local0)
  8684. TMBF [Local0] = BRAD /* \_SB_.PCI0.SBRG.EC0_.BRAD */
  8685. Local0++
  8686. }
  8687.  
  8688. BCLB |= 0x40
  8689. Release (CMUT)
  8690. Return (TMBF) /* \_SB_.PCI0.SBRG.EC0_.REBC.TMBF */
  8691. }
  8692. Else
  8693. {
  8694. Return (TMBF) /* \_SB_.PCI0.SBRG.EC0_.REBC.TMBF */
  8695. }
  8696. }
  8697.  
  8698. Method (STCC, 2, Serialized)
  8699. {
  8700. If (ECAV ())
  8701. {
  8702. Acquire (MU4T, 0xFFFF)
  8703. CMD = 0xFF
  8704. EDA1 = 0xCC
  8705. EDA2 = Arg0
  8706. EDA3 = Arg1
  8707. ECAC ()
  8708. Local0 = EDA1 /* \_SB_.PCI0.SBRG.EC0_.EDA1 */
  8709. Release (MU4T)
  8710. Return (Local0)
  8711. }
  8712.  
  8713. Return (Ones)
  8714. }
  8715.  
  8716. Method (STCD, 3, Serialized)
  8717. {
  8718. If (ECAV ())
  8719. {
  8720. Acquire (MU4T, 0xFFFF)
  8721. CMD = 0xFF
  8722. EDA1 = 0xCD
  8723. EDA2 = Arg0
  8724. EDA3 = Arg1
  8725. EDA4 = Arg2
  8726. ECAC ()
  8727. Release (MU4T)
  8728. Return (Zero)
  8729. }
  8730.  
  8731. Return (Ones)
  8732. }
  8733.  
  8734. Method (STE7, 1, Serialized)
  8735. {
  8736. If (ECAV ())
  8737. {
  8738. Acquire (MU4T, 0xFFFF)
  8739. CMD = 0xFF
  8740. EDA1 = 0xE7
  8741. EDA2 = Arg0
  8742. ECAC ()
  8743. Release (MU4T)
  8744. Return (Zero)
  8745. }
  8746.  
  8747. Return (Ones)
  8748. }
  8749. }
  8750.  
  8751. Scope (_SB.PCI0.SBRG.EC0)
  8752. {
  8753. Method (GPWS, 0, Serialized)
  8754. {
  8755. Acquire (CMUT, 0xFFFF)
  8756. Local0 = EPWS /* \_SB_.PCI0.SBRG.EC0_.EPWS */
  8757. Release (CMUT)
  8758. Return (Local0)
  8759. }
  8760.  
  8761. Method (ACPS, 0, Serialized)
  8762. {
  8763. Return ((GPWS () & One))
  8764. }
  8765.  
  8766. Method (ACAP, 0, Serialized)
  8767. {
  8768. Return (ACPF) /* \_SB_.ACPF */
  8769. }
  8770.  
  8771. Method (DCPS, 1, Serialized)
  8772. {
  8773. Local0 = GPWS ()
  8774. If (Arg0)
  8775. {
  8776. Local0 &= 0x04
  8777. }
  8778. Else
  8779. {
  8780. Local0 &= 0x02
  8781. }
  8782.  
  8783. If (Local0)
  8784. {
  8785. Local0 = One
  8786. }
  8787. Else
  8788. {
  8789. Local0 = Zero
  8790. }
  8791.  
  8792. Return (Local0)
  8793. }
  8794.  
  8795. Method (BCHG, 1, Serialized)
  8796. {
  8797. Acquire (CMUT, 0xFFFF)
  8798. If (Arg0)
  8799. {
  8800. BRAH = 0xC9
  8801. Local0 = EB1S /* \_SB_.PCI0.SBRG.EC0_.EB1S */
  8802. Release (CMUT)
  8803. Local0 &= 0xFF
  8804. If ((Local0 != 0xFF))
  8805. {
  8806. Local0 &= 0x02
  8807. }
  8808. Else
  8809. {
  8810. Local0 = Zero
  8811. }
  8812.  
  8813. Return (Local0)
  8814. }
  8815. Else
  8816. {
  8817. BRAH = 0xC9
  8818. Local0 = EB0S /* \_SB_.PCI0.SBRG.EC0_.EB0S */
  8819. Release (CMUT)
  8820. Local0 &= 0xFF
  8821. If ((Local0 != 0xFF))
  8822. {
  8823. Local0 &= 0x02
  8824. }
  8825. Else
  8826. {
  8827. Local0 = Zero
  8828. }
  8829.  
  8830. Return (Local0)
  8831. }
  8832. }
  8833.  
  8834. Method (BCLE, 1, Serialized)
  8835. {
  8836. If (Arg0)
  8837. {
  8838. If (ECAV ())
  8839. {
  8840. Local0 = Ones
  8841. Acquire (CMUT, 0xFFFF)
  8842. BRAH = 0xC9
  8843. Local1 = EB1S /* \_SB_.PCI0.SBRG.EC0_.EB1S */
  8844. Release (CMUT)
  8845. Local1 &= 0xFFFF
  8846. If ((Local1 != 0xFFFF))
  8847. {
  8848. Local1 &= 0x16
  8849. If ((Local1 == 0x04))
  8850. {
  8851. Local0 = Zero
  8852. }
  8853. ElseIf ((Local1 == 0x02))
  8854. {
  8855. Local0 = One
  8856. }
  8857. ElseIf ((Local1 == 0x10))
  8858. {
  8859. Local0 = One
  8860. }
  8861. }
  8862. }
  8863. Else
  8864. {
  8865. Local0 = Ones
  8866. }
  8867.  
  8868. Return (Local0)
  8869. }
  8870. Else
  8871. {
  8872. If (ECAV ())
  8873. {
  8874. Local0 = Ones
  8875. Acquire (CMUT, 0xFFFF)
  8876. BRAH = 0xC9
  8877. Local1 = EB0S /* \_SB_.PCI0.SBRG.EC0_.EB0S */
  8878. Release (CMUT)
  8879. Local1 &= 0xFFFF
  8880. If ((Local1 != 0xFFFF))
  8881. {
  8882. Local1 &= 0x16
  8883. If ((Local1 == 0x04))
  8884. {
  8885. Local0 = Zero
  8886. }
  8887. ElseIf ((Local1 == 0x02))
  8888. {
  8889. Local0 = One
  8890. }
  8891. ElseIf ((Local1 == 0x10))
  8892. {
  8893. Local0 = One
  8894. }
  8895. }
  8896. }
  8897. Else
  8898. {
  8899. Local0 = Ones
  8900. }
  8901.  
  8902. Return (Local0)
  8903. }
  8904. }
  8905.  
  8906. Method (GBTT, 1, Serialized)
  8907. {
  8908. Acquire (CMUT, 0xFFFF)
  8909. If ((Arg0 == Zero))
  8910. {
  8911. BRAH = 0xC9
  8912. Local0 = EB0T /* \_SB_.PCI0.SBRG.EC0_.EB0T */
  8913. }
  8914. Else
  8915. {
  8916. BRAH = 0xC9
  8917. Local0 = EB1T /* \_SB_.PCI0.SBRG.EC0_.EB1T */
  8918. }
  8919.  
  8920. Release (CMUT)
  8921. Return (Local0)
  8922. }
  8923.  
  8924. Method (SRSC, 1, NotSerialized)
  8925. {
  8926. Name (DUBF, Buffer (One)
  8927. {
  8928. 0x00 // .
  8929. })
  8930. DUBF [Zero] = Arg0
  8931. Return (WEBC (0x06, One, DUBF))
  8932. }
  8933.  
  8934. Method (GDFC, 1, NotSerialized)
  8935. {
  8936. Name (DUBF, Buffer (0x10)
  8937. {
  8938. /* 0000 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........
  8939. /* 0008 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 // ........
  8940. })
  8941. Name (DFC0, Buffer (One)
  8942. {
  8943. 0x00 // .
  8944. })
  8945. DFC0 [Zero] = Arg0
  8946. WEBC (0x20, One, DFC0)
  8947. DUBF = REBC (0x21, 0x10)
  8948. Return (DUBF) /* \_SB_.PCI0.SBRG.EC0_.GDFC.DUBF */
  8949. }
  8950.  
  8951. Method (SUFC, 5, NotSerialized)
  8952. {
  8953. Name (DUBF, Buffer (0x10)
  8954. {
  8955. /* 0000 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........
  8956. /* 0008 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 // ........
  8957. })
  8958. Name (UFC0, Buffer (One)
  8959. {
  8960. 0x00 // .
  8961. })
  8962. DUBF [Zero] = (Arg0 >> Zero)
  8963. DUBF [One] = (Arg0 >> 0x08)
  8964. DUBF [0x02] = (Arg0 >> 0x10)
  8965. DUBF [0x03] = (Arg0 >> 0x18)
  8966. DUBF [0x04] = (Arg1 >> Zero)
  8967. DUBF [0x05] = (Arg1 >> 0x08)
  8968. DUBF [0x06] = (Arg1 >> 0x10)
  8969. DUBF [0x07] = (Arg1 >> 0x18)
  8970. DUBF [0x08] = (Arg2 >> Zero)
  8971. DUBF [0x09] = (Arg2 >> 0x08)
  8972. DUBF [0x0A] = (Arg2 >> 0x10)
  8973. DUBF [0x0B] = (Arg2 >> 0x18)
  8974. DUBF [0x0C] = (Arg3 >> Zero)
  8975. DUBF [0x0D] = (Arg3 >> 0x08)
  8976. DUBF [0x0E] = (Arg3 >> 0x10)
  8977. DUBF [0x0F] = (Arg3 >> 0x18)
  8978. UFC0 [Zero] = Arg4
  8979. WEBC (0x20, One, UFC0)
  8980. Return (WEBC (0x22, 0x10, DUBF))
  8981. }
  8982.  
  8983. Method (GFLB, 1, NotSerialized)
  8984. {
  8985. Name (DUBF, Buffer (0x10)
  8986. {
  8987. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 // ........
  8988. })
  8989. Name (FLB0, Buffer (One)
  8990. {
  8991. 0x00 // .
  8992. })
  8993. FLB0 [Zero] = Arg0
  8994. WEBC (0x20, One, FLB0)
  8995. DUBF = REBC (0x24, 0x08)
  8996. Return (DUBF) /* \_SB_.PCI0.SBRG.EC0_.GFLB.DUBF */
  8997. }
  8998.  
  8999. Method (RTAH, 1, NotSerialized)
  9000. {
  9001. If ((Arg0 == Zero))
  9002. {
  9003. Local2 = Acquire (CMUT, 0xFFFF)
  9004. If ((Local2 == Zero))
  9005. {
  9006. BRAH = 0xC9
  9007. Local0 = THH0 /* \_SB_.PCI0.SBRG.EC0_.THH0 */
  9008. Local0 <<= 0x08
  9009. Local1 = THL0 /* \_SB_.PCI0.SBRG.EC0_.THL0 */
  9010. Local0 |= Local1
  9011. Release (CMUT)
  9012. }
  9013. }
  9014. ElseIf ((Arg0 == One))
  9015. {
  9016. Local2 = Acquire (CMUT, 0xFFFF)
  9017. If ((Local2 == Zero))
  9018. {
  9019. BRAH = 0xC9
  9020. Local0 = THH1 /* \_SB_.PCI0.SBRG.EC0_.THH1 */
  9021. Local0 <<= 0x08
  9022. Local1 = THL1 /* \_SB_.PCI0.SBRG.EC0_.THL1 */
  9023. Local0 |= Local1
  9024. Release (CMUT)
  9025. }
  9026. }
  9027. Else
  9028. {
  9029. Local0 = 0xFFFF
  9030. }
  9031.  
  9032. Return (Local0)
  9033. }
  9034.  
  9035. Method (TACH, 1, Serialized)
  9036. {
  9037. If (ECAV ())
  9038. {
  9039. Switch (Arg0)
  9040. {
  9041. Case (Zero)
  9042. {
  9043. Local0 = RTAH (Zero)
  9044. Break
  9045. }
  9046. Case (One)
  9047. {
  9048. Local0 = RTAH (One)
  9049. Break
  9050. }
  9051. Default
  9052. {
  9053. Return (Ones)
  9054. }
  9055.  
  9056. }
  9057.  
  9058. Local0 *= 0x02
  9059. If ((Local0 != Zero))
  9060. {
  9061. Local0 = (0x0041CDB4 / Local0)
  9062. Return (Local0)
  9063. }
  9064. Else
  9065. {
  9066. Return (Ones)
  9067. }
  9068. }
  9069. Else
  9070. {
  9071. Return (Ones)
  9072. }
  9073. }
  9074.  
  9075. Method (DINI, 0, Serialized)
  9076. {
  9077. Name (DPTI, Buffer (0x07){})
  9078. CreateWordField (DPTI, Zero, SSZE)
  9079. CreateByteField (DPTI, 0x02, MSID)
  9080. CreateDWordField (DPTI, 0x03, DECI)
  9081. SSZE = 0x07
  9082. MSID = 0x05
  9083. DECI = PL1V /* \_SB_.PCI0.SBRG.EC0_.PL1V */
  9084. ALIB (0x0C, DPTI)
  9085. SSZE = 0x07
  9086. MSID = 0x07
  9087. DECI = PL2V /* \_SB_.PCI0.SBRG.EC0_.PL2V */
  9088. ALIB (0x0C, DPTI)
  9089. SSZE = 0x07
  9090. MSID = 0x06
  9091. DECI = FPTV /* \_SB_.PCI0.SBRG.EC0_.FPTV */
  9092. ALIB (0x0C, DPTI)
  9093. SSZE = 0x07
  9094. MSID = 0x03
  9095. DECI = 0x64
  9096. ALIB (0x0C, DPTI)
  9097. }
  9098.  
  9099. Method (KINI, 0, Serialized)
  9100. {
  9101. STB1 (0x02)
  9102. STB1 (0x04)
  9103. FNIV = Zero
  9104. }
  9105.  
  9106. Name (KLDT, Zero)
  9107. Name (PWKB, Buffer (0x04)
  9108. {
  9109. 0x00, 0x55, 0xAA, 0xFF // .U..
  9110. })
  9111. Method (GLID, 0, Serialized)
  9112. {
  9113. Return (RPIN (0x11))
  9114. }
  9115.  
  9116. Method (GLKB, 1, NotSerialized)
  9117. {
  9118. If ((Arg0 == One))
  9119. {
  9120. Local0 = (KBLC & 0x80)
  9121. If (Local0)
  9122. {
  9123. Return (One)
  9124. }
  9125. Else
  9126. {
  9127. Return (Zero)
  9128. }
  9129. }
  9130. ElseIf ((Arg0 == 0x02))
  9131. {
  9132. Return (KBLV) /* \_SB_.KBLV */
  9133. }
  9134. ElseIf ((Arg0 == 0x03))
  9135. {
  9136. Return (0x80)
  9137. }
  9138.  
  9139. Return (Ones)
  9140. }
  9141.  
  9142. Method (SLKB, 1, NotSerialized)
  9143. {
  9144. KBLV = (Arg0 & 0x7F)
  9145. If ((Arg0 & 0x80))
  9146. {
  9147. Local0 = DerefOf (PWKB [KBLV])
  9148. }
  9149. Else
  9150. {
  9151. Local0 = Zero
  9152. }
  9153.  
  9154. Return (One)
  9155. }
  9156.  
  9157. Method (CSEE, 1, Serialized)
  9158. {
  9159. If (ECAV ())
  9160. {
  9161. Acquire (MU4T, 0xFFFF)
  9162. CMD = Arg0
  9163. EDA1 = Arg0
  9164. ECAC ()
  9165. Release (MU4T)
  9166. Return (Zero)
  9167. }
  9168.  
  9169. Return (Ones)
  9170. }
  9171.  
  9172. Method (EC0S, 1, NotSerialized)
  9173. {
  9174. If ((Arg0 == 0x03))
  9175. {
  9176. Name (DPTI, Buffer (0x07){})
  9177. CreateWordField (DPTI, Zero, SSZE)
  9178. CreateByteField (DPTI, 0x02, MSID)
  9179. CreateDWordField (DPTI, 0x03, DECI)
  9180. SSZE = 0x07
  9181. MSID = 0x05
  9182. DECI = 0x2EE0
  9183. ALIB (0x0C, DPTI)
  9184. SSZE = 0x07
  9185. MSID = 0x07
  9186. DECI = 0x2EE0
  9187. ALIB (0x0C, DPTI)
  9188. SSZE = 0x07
  9189. MSID = 0x06
  9190. DECI = 0x2EE0
  9191. ALIB (0x0C, DPTI)
  9192. }
  9193.  
  9194. If (((Arg0 == 0x03) || (Arg0 == 0x04)))
  9195. {
  9196. ST9E (0x1F, 0xFF, Zero)
  9197. }
  9198.  
  9199. If ((Arg0 == 0x05))
  9200. {
  9201. ST9E (0x1F, 0xFF, Zero)
  9202. }
  9203. }
  9204.  
  9205. Method (EC0W, 1, NotSerialized)
  9206. {
  9207. If (((Arg0 == 0x03) || (Arg0 == 0x04)))
  9208. {
  9209. ^^^GPP0.PEGP.DSTA = Zero
  9210. ^^^GPP0.PEGP.INIA = Zero
  9211. }
  9212.  
  9213. KINI ()
  9214. If ((Arg0 <= 0x04))
  9215. {
  9216. DCPF = DCPS (Zero)
  9217. Local0 = ACPS ()
  9218. If ((Local0 != ACPF))
  9219. {
  9220. ACPF = ACPS ()
  9221. }
  9222. }
  9223.  
  9224. If (((Arg0 == 0x03) || (Arg0 == 0x04))){}
  9225. If ((WOLO & One))
  9226. {
  9227. ST9E (0x3B, 0x02, 0x02)
  9228. }
  9229.  
  9230. If ((DSYN & One))
  9231. {
  9232. ST9F (0x2B, 0x20, 0x20)
  9233. }
  9234.  
  9235. ^AC0.ACDC = 0xFF
  9236. }
  9237.  
  9238. Name (PL1V, 0x7530)
  9239. Name (PL2V, 0x9C40)
  9240. Name (PL1B, 0x88B8)
  9241. Name (PL2B, 0xD2F0)
  9242. Name (PL1S, 0x7A12)
  9243. Name (PL2S, 0xAAE6)
  9244. Name (PL1O, 0x7530)
  9245. Name (PL2O, 0x9C40)
  9246. Name (FPTV, 0xD6D8)
  9247. Name (FPTB, 0xFDE8)
  9248. Name (FPTS, 0xF424)
  9249. Name (DGD1, 0xD1)
  9250. Name (DGD2, 0xD2)
  9251. Name (DGD3, 0xD3)
  9252. Name (DGD4, 0xD4)
  9253. Name (DGD5, 0xD4)
  9254. Method (DCPL, 0, Serialized)
  9255. {
  9256. Acquire (CMUT, 0xFFFF)
  9257. Local0 = PDST /* \_SB_.PCI0.SBRG.EC0_.PDST */
  9258. Release (CMUT)
  9259. If (((Local0 == Zero) || (Local0 == 0x06)))
  9260. {
  9261. Switch (CFML)
  9262. {
  9263. Case (0x02)
  9264. {
  9265. PL1V = 0x4E20
  9266. PL2V = 0x61A8
  9267. FPTV = 0x61A8
  9268. }
  9269. Default
  9270. {
  9271. PL1V = 0x4E20
  9272. PL2V = 0x61A8
  9273. FPTV = 0x61A8
  9274. }
  9275.  
  9276. }
  9277. }
  9278. ElseIf ((Local0 == 0x02))
  9279. {
  9280. Switch (CFML)
  9281. {
  9282. Case (0x02)
  9283. {
  9284. PL1V = 0x5DC0
  9285. PL2V = 0x6D60
  9286. FPTV = 0x7530
  9287. }
  9288. Default
  9289. {
  9290. PL1V = 0x5DC0
  9291. PL2V = 0x6D60
  9292. FPTV = 0x7530
  9293. }
  9294.  
  9295. }
  9296. }
  9297. }
  9298.  
  9299. Method (AGPL, 1, Serialized)
  9300. {
  9301. Acquire (CMUT, 0xFFFF)
  9302. Local0 = PDST /* \_SB_.PCI0.SBRG.EC0_.PDST */
  9303. Release (CMUT)
  9304. Local1 = Arg0
  9305. If (((Local0 & 0x02) && (Local0 != 0x03)))
  9306. {
  9307. If ((Arg0 == 0xD1))
  9308. {
  9309. Local1 = 0xD2
  9310. }
  9311. }
  9312.  
  9313. If (((Local1 >= 0xD1) && (Local1 <= 0xD4)))
  9314. {
  9315. If (^^^GPP0.PEGP.INIA)
  9316. {
  9317. Notify (^^^GPP0.PEGP, Local1)
  9318. }
  9319. Else
  9320. {
  9321. ^^^GPP0.PEGP.DSTA = Local1
  9322. }
  9323. }
  9324. }
  9325. }
  9326.  
  9327. Scope (_SB.PCI0.SBRG.EC0)
  9328. {
  9329. Name (F8FG, Zero)
  9330. Name (BLCT, Zero)
  9331. Name (ACNG, Zero)
  9332. Name (DSTI, One)
  9333. Name (DCTL, Zero)
  9334. Name (CFML, Zero)
  9335. Name (WRFG, Zero)
  9336. Name (GOTF, Zero)
  9337. Method (_Q0A, 0, NotSerialized) // _Qxx: EC Query, xx=0x00-0xFF
  9338. {
  9339. Notify (SLPB, 0x80) // Status Change
  9340. }
  9341.  
  9342. Method (_Q0B, 0, NotSerialized) // _Qxx: EC Query, xx=0x00-0xFF
  9343. {
  9344. Notify (ASHS, 0x88) // Device-Specific
  9345. }
  9346.  
  9347. Method (KBLD, 0, NotSerialized)
  9348. {
  9349. If (ATKP)
  9350. {
  9351. Local1 = (KBLC & 0x80)
  9352. If (Local1)
  9353. {
  9354. ^^^^ATKD.IANE (0xC5)
  9355. }
  9356. }
  9357. }
  9358.  
  9359. Method (KBLU, 0, NotSerialized)
  9360. {
  9361. If (ATKP)
  9362. {
  9363. Local1 = (KBLC & 0x80)
  9364. If (Local1)
  9365. {
  9366. ^^^^ATKD.IANE (0xC4)
  9367. }
  9368. }
  9369. }
  9370.  
  9371. Method (_Q0E, 0, NotSerialized) // _Qxx: EC Query, xx=0x00-0xFF
  9372. {
  9373. Notify (^^^GP17.VGA.LCD, 0x87) // Device-Specific
  9374. Return (Zero)
  9375. }
  9376.  
  9377. Method (_Q0F, 0, NotSerialized) // _Qxx: EC Query, xx=0x00-0xFF
  9378. {
  9379. Notify (^^^GP17.VGA.LCD, 0x86) // Device-Specific
  9380. Return (Zero)
  9381. }
  9382.  
  9383. Method (_Q10, 0, NotSerialized) // _Qxx: EC Query, xx=0x00-0xFF
  9384. {
  9385. If ((BLCT == Zero))
  9386. {
  9387. If (ATKP)
  9388. {
  9389. ^^^^ATKD.IANE (0x33)
  9390. }
  9391. }
  9392. ElseIf ((BLCT == One))
  9393. {
  9394. If (ATKP)
  9395. {
  9396. ^^^^ATKD.IANE (0x35)
  9397. }
  9398. }
  9399. }
  9400.  
  9401. Method (_Q11, 0, Serialized) // _Qxx: EC Query, xx=0x00-0xFF
  9402. {
  9403. If ((F8FG == Zero))
  9404. {
  9405. F8FG = One
  9406. STB2 (0xE0)
  9407. STB2 (0x5B)
  9408. }
  9409.  
  9410. STB2 (0x19)
  9411. STB2 (0x99)
  9412. Return (Zero)
  9413. }
  9414.  
  9415. Method (_Q12, 0, NotSerialized) // _Qxx: EC Query, xx=0x00-0xFF
  9416. {
  9417. If (!(DSYN & One))
  9418. {
  9419. If (ATKP)
  9420. {
  9421. ^^^^ATKD.IANE (0x6B)
  9422. }
  9423. }
  9424. ElseIf (ATKP)
  9425. {
  9426. ^^^^ATKD.IANE (0x6F)
  9427. }
  9428. }
  9429.  
  9430. Method (_Q13, 0, NotSerialized) // _Qxx: EC Query, xx=0x00-0xFF
  9431. {
  9432. STB2 (0xE0)
  9433. STB2 (0x20)
  9434. STB2 (0xE0)
  9435. STB2 (0xA0)
  9436. Return (Zero)
  9437. If (ATKP)
  9438. {
  9439. ^^^^ATKD.IANE (0x32)
  9440. }
  9441.  
  9442. Return (Zero)
  9443. }
  9444.  
  9445. Method (_Q14, 0, NotSerialized) // _Qxx: EC Query, xx=0x00-0xFF
  9446. {
  9447. STB2 (0xE0)
  9448. STB2 (0x2E)
  9449. STB2 (0xE0)
  9450. STB2 (0xAE)
  9451. Return (Zero)
  9452. If (ATKP)
  9453. {
  9454. ^^^^ATKD.IANE (0x31)
  9455. }
  9456.  
  9457. Return (Zero)
  9458. }
  9459.  
  9460. Method (_Q15, 0, NotSerialized) // _Qxx: EC Query, xx=0x00-0xFF
  9461. {
  9462. STB2 (0xE0)
  9463. STB2 (0x30)
  9464. STB2 (0xE0)
  9465. STB2 (0xB0)
  9466. Return (Zero)
  9467. If (ATKP)
  9468. {
  9469. ^^^^ATKD.IANE (0x30)
  9470. }
  9471.  
  9472. Return (Zero)
  9473. }
  9474.  
  9475. Method (_Q6F, 0, NotSerialized) // _Qxx: EC Query, xx=0x00-0xFF
  9476. {
  9477. If (ATKP)
  9478. {
  9479. ^^^^ATKD.IANE (0x45)
  9480. }
  9481. }
  9482.  
  9483. Method (_Q6E, 0, NotSerialized) // _Qxx: EC Query, xx=0x00-0xFF
  9484. {
  9485. If (ATKP)
  9486. {
  9487. ^^^^ATKD.IANE (0x43)
  9488. }
  9489. }
  9490.  
  9491. Method (_Q6C, 0, NotSerialized) // _Qxx: EC Query, xx=0x00-0xFF
  9492. {
  9493. If (ATKP)
  9494. {
  9495. ^^^^ATKD.IANE (0x40)
  9496. }
  9497. }
  9498.  
  9499. Method (_Q6D, 0, NotSerialized) // _Qxx: EC Query, xx=0x00-0xFF
  9500. {
  9501. If (ATKP)
  9502. {
  9503. ^^^^ATKD.IANE (0x41)
  9504. }
  9505. }
  9506.  
  9507. Method (_Q78, 0, NotSerialized) // _Qxx: EC Query, xx=0x00-0xFF
  9508. {
  9509. If (ATKP)
  9510. {
  9511. ^^^^ATKD.IANE (0x7C)
  9512. }
  9513. }
  9514.  
  9515. Method (_Q73, 0, NotSerialized) // _Qxx: EC Query, xx=0x00-0xFF
  9516. {
  9517. If (ATKP)
  9518. {
  9519. ^^^^ATKD.IANE (0xAE)
  9520. }
  9521. }
  9522.  
  9523. Method (_Q72, 0, NotSerialized) // _Qxx: EC Query, xx=0x00-0xFF
  9524. {
  9525. If (ATKP)
  9526. {
  9527. ^^^^ATKD.IANE (0x8A)
  9528. }
  9529. }
  9530.  
  9531. Method (_Q80, 0, NotSerialized) // _Qxx: EC Query, xx=0x00-0xFF
  9532. {
  9533. If (GLID ())
  9534. {
  9535. ST9E (0x1F, 0xFF, KLDT)
  9536. }
  9537. Else
  9538. {
  9539. KLDT = ST8E (0x1F, Zero)
  9540. ST9E (0x1F, 0xFF, Zero)
  9541. }
  9542.  
  9543. Notify (LID, 0x80) // Status Change
  9544. }
  9545.  
  9546. Method (_QAD, 0, NotSerialized) // _Qxx: EC Query, xx=0x00-0xFF
  9547. {
  9548. ACNG = Zero
  9549. If (ATKP)
  9550. {
  9551. ^^^^ATKD.IANE (0xCF)
  9552. }
  9553. }
  9554.  
  9555. Method (_QAE, 0, NotSerialized) // _Qxx: EC Query, xx=0x00-0xFF
  9556. {
  9557. ACNG = One
  9558. If (ATKP)
  9559. {
  9560. ^^^^ATKD.IANE (0xCF)
  9561. }
  9562. }
  9563.  
  9564. Method (_QB0, 0, NotSerialized) // _Qxx: EC Query, xx=0x00-0xFF
  9565. {
  9566. Notify (\_TZ.THRM, 0x80) // Thermal Status Change
  9567. }
  9568.  
  9569. Method (_QA0, 0, NotSerialized) // _Qxx: EC Query, xx=0x00-0xFF
  9570. {
  9571. Name (PDPF, Zero)
  9572. Acquire (CMUT, 0xFFFF)
  9573. PDPF = PDST /* \_SB_.PCI0.SBRG.EC0_.PDST */
  9574. Release (CMUT)
  9575. If (ACPS ())
  9576. {
  9577. ACPF = One
  9578. Local0 = 0x58
  9579. If (ATKP)
  9580. {
  9581. If (((PDPF & 0x02) && (PDPF != 0x03))){}
  9582. Else
  9583. {
  9584. ^^^^ATKD.IANE (0xCF)
  9585. }
  9586. }
  9587. }
  9588. Else
  9589. {
  9590. ACPF = Zero
  9591. Local0 = 0x57
  9592. }
  9593.  
  9594. Notify (AC0, 0x80) // Status Change
  9595. If (ATKP)
  9596. {
  9597. If (((PDPF & 0x02) && (PDPF != 0x03))){}
  9598. Else
  9599. {
  9600. ^^^^ATKD.IANE (Local0)
  9601. }
  9602. }
  9603.  
  9604. Sleep (0x64)
  9605. Sleep (0x0A)
  9606. NBAT (0x80)
  9607. }
  9608.  
  9609. Name (BLLO, Zero)
  9610. Method (_QA1, 0, NotSerialized) // _Qxx: EC Query, xx=0x00-0xFF
  9611. {
  9612. DCPF = DCPS (Zero)
  9613. If (DCPF)
  9614. {
  9615. Sleep (0x07D0)
  9616. }
  9617.  
  9618. Notify (BAT0, 0x80) // Status Change
  9619. Notify (BAT0, 0x81) // Information Change
  9620. }
  9621.  
  9622. Method (_QA5, 0, NotSerialized) // _Qxx: EC Query, xx=0x00-0xFF
  9623. {
  9624. BLLO = One
  9625. If (ATKP)
  9626. {
  9627. ^^^^ATKD.IANE (0x6E)
  9628. }
  9629. ElseIf (BATP (Zero))
  9630. {
  9631. Notify (BAT0, 0x80) // Status Change
  9632. }
  9633. }
  9634.  
  9635. Method (_QA3, 0, NotSerialized) // _Qxx: EC Query, xx=0x00-0xFF
  9636. {
  9637. If (BATP (Zero))
  9638. {
  9639. Local0 = BCLE (Zero)
  9640. If ((Local0 == Zero))
  9641. {
  9642. Notify (BAT0, 0x80) // Status Change
  9643. }
  9644. Else
  9645. {
  9646. Notify (BAT0, 0x81) // Information Change
  9647. Notify (AC0, 0x80) // Status Change
  9648. }
  9649. }
  9650. }
  9651.  
  9652. Method (_QAC, 0, NotSerialized) // _Qxx: EC Query, xx=0x00-0xFF
  9653. {
  9654. Local0 = RP2E (0x95)
  9655. If (((Local0 & One) == One))
  9656. {
  9657. Notify (BAT0, 0x80) // Status Change
  9658. }
  9659. }
  9660.  
  9661. Method (_QB3, 0, NotSerialized) // _Qxx: EC Query, xx=0x00-0xFF
  9662. {
  9663. If (ATKP)
  9664. {
  9665. ^^^^ATKD.IANE (0x6D)
  9666. }
  9667. }
  9668.  
  9669. Method (_QB4, 0, NotSerialized) // _Qxx: EC Query, xx=0x00-0xFF
  9670. {
  9671. If (ATKP)
  9672. {
  9673. ^^^^ATKD.IANE (0xE5)
  9674. }
  9675. }
  9676.  
  9677. Method (_QD3, 0, NotSerialized) // _Qxx: EC Query, xx=0x00-0xFF
  9678. {
  9679. }
  9680.  
  9681. Method (_QD4, 0, NotSerialized) // _Qxx: EC Query, xx=0x00-0xFF
  9682. {
  9683. If ((F8FG == One))
  9684. {
  9685. F8FG = Zero
  9686. STB2 (0xE0)
  9687. STB2 (0xDB)
  9688. }
  9689. }
  9690.  
  9691. Method (_QD7, 0, NotSerialized) // _Qxx: EC Query, xx=0x00-0xFF
  9692. {
  9693. ^^^^ATKD.DGPS (Zero, ^^^^ATKD.GPST)
  9694. If (ATKP)
  9695. {
  9696. ^^^^ATKD.IANE (0xFA)
  9697. }
  9698. }
  9699.  
  9700. Method (_QD8, 0, NotSerialized) // _Qxx: EC Query, xx=0x00-0xFF
  9701. {
  9702. ^^^^ATKD.DGPS (One, ^^^^ATKD.GPST)
  9703. If (ATKP)
  9704. {
  9705. ^^^^ATKD.IANE (0xFA)
  9706. }
  9707. }
  9708.  
  9709. Method (_Q6B, 0, NotSerialized) // _Qxx: EC Query, xx=0x00-0xFF
  9710. {
  9711. If (ATKP)
  9712. {
  9713. ^^^^ATKD.IANE (0x38)
  9714. }
  9715. }
  9716.  
  9717. Method (_QDB, 0, NotSerialized) // _Qxx: EC Query, xx=0x00-0xFF
  9718. {
  9719. If (ATKP)
  9720. {
  9721. ^^^^ATKD.IANE (0x9B)
  9722. ^^^^ATKD.IANE (0x6D)
  9723. }
  9724. }
  9725.  
  9726. Method (_QDC, 0, NotSerialized) // _Qxx: EC Query, xx=0x00-0xFF
  9727. {
  9728. If (ATKP)
  9729. {
  9730. ^^^^ATKD.IANE (0x6D)
  9731. }
  9732. }
  9733.  
  9734. Name (CNTR, Zero)
  9735. Method (_QDD, 0, NotSerialized) // _Qxx: EC Query, xx=0x00-0xFF
  9736. {
  9737. If ((CNTR == Zero))
  9738. {
  9739. AGPL (0xD2)
  9740. CNTR += One
  9741. }
  9742. ElseIf ((CNTR == One))
  9743. {
  9744. AGPL (0xD3)
  9745. CNTR += One
  9746. }
  9747. ElseIf ((CNTR == 0x02))
  9748. {
  9749. AGPL (0xD4)
  9750. }
  9751. }
  9752.  
  9753. Method (_QA8, 0, NotSerialized) // _Qxx: EC Query, xx=0x00-0xFF
  9754. {
  9755. If (ATKP)
  9756. {
  9757. ^^^^ATKD.IANE (0x9A)
  9758. }
  9759.  
  9760. AGPL (0xD4)
  9761. }
  9762.  
  9763. Method (_QA9, 0, NotSerialized) // _Qxx: EC Query, xx=0x00-0xFF
  9764. {
  9765. AGPL (DGD1)
  9766. CNTR = Zero
  9767. }
  9768.  
  9769. Method (_QE8, 0, Serialized) // _Qxx: EC Query, xx=0x00-0xFF
  9770. {
  9771. DCTL = One
  9772. Name (DPTI, Buffer (0x07){})
  9773. CreateWordField (DPTI, Zero, SSZE)
  9774. CreateByteField (DPTI, 0x02, MSID)
  9775. CreateDWordField (DPTI, 0x03, DECI)
  9776. Switch (CFML)
  9777. {
  9778. Case (One)
  9779. {
  9780. PL1V = 0x6D60
  9781. PL2V = 0x88B8
  9782. FPTV = 0x88B8
  9783. DGD1 = 0xD1
  9784. Local0 = 0x5A
  9785. Local1 = 0x32
  9786. }
  9787. Case (0x02)
  9788. {
  9789. PL1V = 0x61A8
  9790. PL2V = 0x927C
  9791. FPTV = 0xAAE6
  9792. DGD1 = 0xD1
  9793. Local0 = 0x5A
  9794. Local1 = 0x32
  9795. }
  9796. Case (0x04)
  9797. {
  9798. PL1V = 0x7D00
  9799. PL2V = 0x9470
  9800. FPTV = 0xA410
  9801. DGD1 = 0xD1
  9802. Local0 = 0x5C
  9803. Local1 = 0x50
  9804. }
  9805.  
  9806. }
  9807.  
  9808. DCPL ()
  9809. Local2 = RPIN (0x11)
  9810. If ((Local2 == Zero))
  9811. {
  9812. Local0 = 0x52
  9813. }
  9814.  
  9815. SSZE = 0x07
  9816. MSID = 0x05
  9817. DECI = PL1V /* \_SB_.PCI0.SBRG.EC0_.PL1V */
  9818. ALIB (0x0C, DPTI)
  9819. SSZE = 0x07
  9820. MSID = 0x07
  9821. DECI = PL2V /* \_SB_.PCI0.SBRG.EC0_.PL2V */
  9822. ALIB (0x0C, DPTI)
  9823. SSZE = 0x07
  9824. MSID = 0x06
  9825. DECI = FPTV /* \_SB_.PCI0.SBRG.EC0_.FPTV */
  9826. ALIB (0x0C, DPTI)
  9827. SSZE = 0x07
  9828. MSID = 0x03
  9829. DECI = Local0
  9830. ALIB (0x0C, DPTI)
  9831. SSZE = 0x07
  9832. MSID = One
  9833. DECI = Local1
  9834. ALIB (0x0C, DPTI)
  9835. If (((GOTF == Zero) && (CNTR == Zero)))
  9836. {
  9837. AGPL (DGD1)
  9838. }
  9839. }
  9840.  
  9841. Method (_QF1, 0, Serialized) // _Qxx: EC Query, xx=0x00-0xFF
  9842. {
  9843. DCTL = Zero
  9844. Name (DPTI, Buffer (0x07){})
  9845. CreateWordField (DPTI, Zero, SSZE)
  9846. CreateByteField (DPTI, 0x02, MSID)
  9847. CreateDWordField (DPTI, 0x03, DECI)
  9848. Switch (CFML)
  9849. {
  9850. Case (One)
  9851. {
  9852. If ((CPFG == 0x02))
  9853. {
  9854. PL1V = 0x88B8
  9855. PL2V = 0xA410
  9856. FPTV = 0xEA60
  9857. }
  9858. Else
  9859. {
  9860. PL1V = 0x88B8
  9861. PL2V = 0xD2F0
  9862. FPTV = 0xFDE8
  9863. }
  9864.  
  9865. DGD1 = 0xD1
  9866. Local0 = 0x5E
  9867. Local1 = 0x96
  9868. }
  9869. Case (0x02)
  9870. {
  9871. PL1V = 0x7A12
  9872. PL2V = 0xAAE6
  9873. FPTV = 0xF424
  9874. DGD1 = 0xD1
  9875. Local0 = 0x5A
  9876. Local1 = 0x3C
  9877. }
  9878. Case (0x04)
  9879. {
  9880. If ((CPFG == 0x02))
  9881. {
  9882. PL1V = 0x88B8
  9883. PL2V = 0xA410
  9884. FPTV = 0xEA60
  9885. }
  9886. Else
  9887. {
  9888. PL1V = 0x88B8
  9889. PL2V = 0xD2F0
  9890. FPTV = 0xFDE8
  9891. }
  9892.  
  9893. DGD1 = 0xD1
  9894. Local0 = 0x60
  9895. Local1 = 0xC8
  9896. }
  9897.  
  9898. }
  9899.  
  9900. DCPL ()
  9901. Local2 = RPIN (0x11)
  9902. If ((Local2 == Zero))
  9903. {
  9904. Local0 = 0x52
  9905. }
  9906.  
  9907. SSZE = 0x07
  9908. MSID = 0x05
  9909. DECI = PL1V /* \_SB_.PCI0.SBRG.EC0_.PL1V */
  9910. ALIB (0x0C, DPTI)
  9911. SSZE = 0x07
  9912. MSID = 0x07
  9913. DECI = PL2V /* \_SB_.PCI0.SBRG.EC0_.PL2V */
  9914. ALIB (0x0C, DPTI)
  9915. SSZE = 0x07
  9916. MSID = 0x06
  9917. DECI = FPTV /* \_SB_.PCI0.SBRG.EC0_.FPTV */
  9918. ALIB (0x0C, DPTI)
  9919. SSZE = 0x07
  9920. MSID = 0x03
  9921. DECI = Local0
  9922. ALIB (0x0C, DPTI)
  9923. SSZE = 0x07
  9924. MSID = One
  9925. DECI = Local1
  9926. ALIB (0x0C, DPTI)
  9927. If (((GOTF == Zero) && (CNTR == Zero)))
  9928. {
  9929. AGPL (DGD1)
  9930. }
  9931.  
  9932. WRFG = Zero
  9933. }
  9934.  
  9935. Method (_QF0, 0, Serialized) // _Qxx: EC Query, xx=0x00-0xFF
  9936. {
  9937. DCTL = Zero
  9938. Name (DPTI, Buffer (0x07){})
  9939. CreateWordField (DPTI, Zero, SSZE)
  9940. CreateByteField (DPTI, 0x02, MSID)
  9941. CreateDWordField (DPTI, 0x03, DECI)
  9942. Switch (CFML)
  9943. {
  9944. Case (One)
  9945. {
  9946. If ((CPFG == 0x02))
  9947. {
  9948. PL1V = 0x7530
  9949. PL2V = 0x9C40
  9950. FPTV = 0xD6D8
  9951. }
  9952. Else
  9953. {
  9954. PL1V = 0x7530
  9955. PL2V = 0x9C40
  9956. FPTV = 0xD6D8
  9957. }
  9958.  
  9959. DGD1 = 0xD1
  9960. Local0 = 0x5A
  9961. Local1 = 0x64
  9962. }
  9963. Case (0x02)
  9964. {
  9965. PL1V = 0x7A12
  9966. PL2V = 0xAAE6
  9967. FPTV = 0xF424
  9968. DGD1 = 0xD1
  9969. Local0 = 0x5A
  9970. Local1 = 0x3C
  9971. }
  9972. Case (0x04)
  9973. {
  9974. If ((CPFG == 0x02))
  9975. {
  9976. PL1V = 0x88B8
  9977. PL2V = 0xA410
  9978. FPTV = 0xEA60
  9979. }
  9980. Else
  9981. {
  9982. PL1V = 0x88B8
  9983. PL2V = 0xD2F0
  9984. FPTV = 0xFDE8
  9985. }
  9986.  
  9987. DGD1 = 0xD1
  9988. Local0 = 0x60
  9989. Local1 = 0x96
  9990. }
  9991.  
  9992. }
  9993.  
  9994. DCPL ()
  9995. Local2 = RPIN (0x11)
  9996. If ((Local2 == Zero))
  9997. {
  9998. Local0 = 0x52
  9999. }
  10000.  
  10001. SSZE = 0x07
  10002. MSID = 0x05
  10003. DECI = PL1V /* \_SB_.PCI0.SBRG.EC0_.PL1V */
  10004. ALIB (0x0C, DPTI)
  10005. SSZE = 0x07
  10006. MSID = 0x07
  10007. DECI = PL2V /* \_SB_.PCI0.SBRG.EC0_.PL2V */
  10008. ALIB (0x0C, DPTI)
  10009. SSZE = 0x07
  10010. MSID = 0x06
  10011. DECI = FPTV /* \_SB_.PCI0.SBRG.EC0_.FPTV */
  10012. ALIB (0x0C, DPTI)
  10013. SSZE = 0x07
  10014. MSID = 0x03
  10015. DECI = Local0
  10016. ALIB (0x0C, DPTI)
  10017. SSZE = 0x07
  10018. MSID = One
  10019. DECI = Local1
  10020. ALIB (0x0C, DPTI)
  10021. If (((GOTF == Zero) && (CNTR == Zero)))
  10022. {
  10023. AGPL (DGD1)
  10024. }
  10025.  
  10026. WRFG = One
  10027. }
  10028.  
  10029. Method (_QEA, 0, Serialized) // _Qxx: EC Query, xx=0x00-0xFF
  10030. {
  10031. DCTL = 0x02
  10032. Name (DPTI, Buffer (0x07){})
  10033. CreateWordField (DPTI, Zero, SSZE)
  10034. CreateByteField (DPTI, 0x02, MSID)
  10035. CreateDWordField (DPTI, 0x03, DECI)
  10036. Switch (CFML)
  10037. {
  10038. Case (One)
  10039. {
  10040. PL1V = 0x59D8
  10041. PL2V = 0x61A8
  10042. FPTV = 0x61A8
  10043. DGD1 = 0xD1
  10044. Local0 = 0x58
  10045. Local1 = 0x32
  10046. }
  10047. Case (0x02)
  10048. {
  10049. PL1V = 0x61A8
  10050. PL2V = 0x7A12
  10051. FPTV = 0x927C
  10052. DGD1 = 0xD1
  10053. Local0 = 0x58
  10054. Local1 = 0x32
  10055. }
  10056. Case (0x04)
  10057. {
  10058. PL1V = 0x6D60
  10059. PL2V = 0x88B8
  10060. FPTV = 0x9C40
  10061. DGD1 = 0xD1
  10062. Local0 = 0x5A
  10063. Local1 = 0x32
  10064. }
  10065.  
  10066. }
  10067.  
  10068. DCPL ()
  10069. Local2 = RPIN (0x11)
  10070. If ((Local2 == Zero))
  10071. {
  10072. Local0 = 0x52
  10073. }
  10074.  
  10075. SSZE = 0x07
  10076. MSID = 0x05
  10077. DECI = PL1V /* \_SB_.PCI0.SBRG.EC0_.PL1V */
  10078. ALIB (0x0C, DPTI)
  10079. SSZE = 0x07
  10080. MSID = 0x07
  10081. DECI = PL2V /* \_SB_.PCI0.SBRG.EC0_.PL2V */
  10082. ALIB (0x0C, DPTI)
  10083. SSZE = 0x07
  10084. MSID = 0x06
  10085. DECI = FPTV /* \_SB_.PCI0.SBRG.EC0_.FPTV */
  10086. ALIB (0x0C, DPTI)
  10087. SSZE = 0x07
  10088. MSID = 0x03
  10089. DECI = Local0
  10090. ALIB (0x0C, DPTI)
  10091. SSZE = 0x07
  10092. MSID = One
  10093. DECI = Local1
  10094. ALIB (0x0C, DPTI)
  10095. If (((GOTF == Zero) && (CNTR == Zero)))
  10096. {
  10097. AGPL (DGD1)
  10098. }
  10099. }
  10100.  
  10101. Method (_QEB, 0, Serialized) // _Qxx: EC Query, xx=0x00-0xFF
  10102. {
  10103. DCTL = One
  10104. Name (DPTI, Buffer (0x07){})
  10105. CreateWordField (DPTI, Zero, SSZE)
  10106. CreateByteField (DPTI, 0x02, MSID)
  10107. CreateDWordField (DPTI, 0x03, DECI)
  10108. Switch (CFML)
  10109. {
  10110. Case (One)
  10111. {
  10112. PL1V = 0x6D60
  10113. PL2V = 0x88B8
  10114. FPTV = 0x88B8
  10115. DGD1 = 0xD1
  10116. Local0 = 0x5A
  10117. Local1 = 0x32
  10118. }
  10119. Case (0x02)
  10120. {
  10121. PL1V = 0x61A8
  10122. PL2V = 0x927C
  10123. FPTV = 0xAAE6
  10124. DGD1 = 0xD1
  10125. Local0 = 0x5A
  10126. Local1 = 0x32
  10127. }
  10128. Case (0x04)
  10129. {
  10130. PL1V = 0x7D00
  10131. PL2V = 0x9470
  10132. FPTV = 0xA410
  10133. DGD1 = 0xD1
  10134. Local0 = 0x5C
  10135. Local1 = 0x50
  10136. }
  10137.  
  10138. }
  10139.  
  10140. DCPL ()
  10141. Local2 = RPIN (0x11)
  10142. If ((Local2 == Zero))
  10143. {
  10144. Local0 = 0x52
  10145. }
  10146.  
  10147. SSZE = 0x07
  10148. MSID = 0x05
  10149. DECI = PL1V /* \_SB_.PCI0.SBRG.EC0_.PL1V */
  10150. ALIB (0x0C, DPTI)
  10151. SSZE = 0x07
  10152. MSID = 0x07
  10153. DECI = PL2V /* \_SB_.PCI0.SBRG.EC0_.PL2V */
  10154. ALIB (0x0C, DPTI)
  10155. SSZE = 0x07
  10156. MSID = 0x06
  10157. DECI = FPTV /* \_SB_.PCI0.SBRG.EC0_.FPTV */
  10158. ALIB (0x0C, DPTI)
  10159. SSZE = 0x07
  10160. MSID = 0x03
  10161. DECI = Local0
  10162. ALIB (0x0C, DPTI)
  10163. SSZE = 0x07
  10164. MSID = One
  10165. DECI = Local1
  10166. ALIB (0x0C, DPTI)
  10167. If (((GOTF == Zero) && (CNTR == Zero)))
  10168. {
  10169. AGPL (DGD1)
  10170. }
  10171. }
  10172.  
  10173. Method (_QEC, 0, NotSerialized) // _Qxx: EC Query, xx=0x00-0xFF
  10174. {
  10175. Name (DPTI, Buffer (0x07){})
  10176. CreateWordField (DPTI, Zero, SSZE)
  10177. CreateByteField (DPTI, 0x02, MSID)
  10178. CreateDWordField (DPTI, 0x03, DECI)
  10179. Local0 = RPIN (0x11)
  10180. If ((Local0 == Zero))
  10181. {
  10182. Local1 = 0x52
  10183. }
  10184. Else
  10185. {
  10186. Local1 = 0x64
  10187. }
  10188.  
  10189. SSZE = 0x07
  10190. MSID = 0x03
  10191. DECI = Local1
  10192. ALIB (0x0C, DPTI)
  10193. }
  10194.  
  10195. Method (_QED, 0, NotSerialized) // _Qxx: EC Query, xx=0x00-0xFF
  10196. {
  10197. Name (DPTI, Buffer (0x07){})
  10198. CreateWordField (DPTI, Zero, SSZE)
  10199. CreateByteField (DPTI, 0x02, MSID)
  10200. CreateDWordField (DPTI, 0x03, DECI)
  10201. Local0 = RPIN (0x11)
  10202. If ((Local0 == Zero))
  10203. {
  10204. Local1 = 0x52
  10205. }
  10206. Else
  10207. {
  10208. Local1 = 0x5F
  10209. }
  10210.  
  10211. SSZE = 0x07
  10212. MSID = 0x03
  10213. DECI = Local1
  10214. ALIB (0x0C, DPTI)
  10215. }
  10216.  
  10217. Name (DGST, Package (0x02)
  10218. {
  10219. 0x57,
  10220. 0x4B
  10221. })
  10222. Method (_QBA, 0, NotSerialized) // _Qxx: EC Query, xx=0x00-0xFF
  10223. {
  10224. Acquire (CMUT, 0xFFFF)
  10225. BRAH = 0xC9
  10226. Local0 = (CNTD & 0x07)
  10227. Release (CMUT)
  10228. GOTF = One
  10229. If ((Local0 == One))
  10230. {
  10231. AGPL (0xD2)
  10232. }
  10233. ElseIf ((Local0 == 0x02))
  10234. {
  10235. AGPL (0xD3)
  10236. }
  10237. ElseIf ((Local0 == 0x03))
  10238. {
  10239. AGPL (0xD4)
  10240. }
  10241. ElseIf ((Local0 >= 0x04))
  10242. {
  10243. AGPL (0xD4)
  10244. }
  10245. }
  10246.  
  10247. Method (_QBB, 0, NotSerialized) // _Qxx: EC Query, xx=0x00-0xFF
  10248. {
  10249. GOTF = Zero
  10250. AGPL (0xD1)
  10251. Acquire (CMUT, 0xFFFF)
  10252. BRAH = 0xC9
  10253. CNTD &= 0xF8
  10254. Release (CMUT)
  10255. }
  10256.  
  10257. Method (_QEF, 0, NotSerialized) // _Qxx: EC Query, xx=0x00-0xFF
  10258. {
  10259. If (ATKP)
  10260. {
  10261. ^^^^ATKD.IANE (0xE8)
  10262. }
  10263. }
  10264.  
  10265. Method (_QAF, 0, NotSerialized) // _Qxx: EC Query, xx=0x00-0xFF
  10266. {
  10267. Local1 = Acquire (CMUT, 0xFFFF)
  10268. If ((Local1 == Zero))
  10269. {
  10270. BRAH = 0xC9
  10271. ^^^^UBTC.MGI0 = MGI0 /* \_SB_.PCI0.SBRG.EC0_.MGI0 */
  10272. ^^^^UBTC.MGI1 = MGI1 /* \_SB_.PCI0.SBRG.EC0_.MGI1 */
  10273. ^^^^UBTC.MGI2 = MGI2 /* \_SB_.PCI0.SBRG.EC0_.MGI2 */
  10274. ^^^^UBTC.MGI3 = MGI3 /* \_SB_.PCI0.SBRG.EC0_.MGI3 */
  10275. ^^^^UBTC.MGI4 = MGI4 /* \_SB_.PCI0.SBRG.EC0_.MGI4 */
  10276. ^^^^UBTC.MGI5 = MGI5 /* \_SB_.PCI0.SBRG.EC0_.MGI5 */
  10277. ^^^^UBTC.MGI6 = MGI6 /* \_SB_.PCI0.SBRG.EC0_.MGI6 */
  10278. ^^^^UBTC.MGI7 = MGI7 /* \_SB_.PCI0.SBRG.EC0_.MGI7 */
  10279. ^^^^UBTC.MGI8 = MGI8 /* \_SB_.PCI0.SBRG.EC0_.MGI8 */
  10280. ^^^^UBTC.MGI9 = MGI9 /* \_SB_.PCI0.SBRG.EC0_.MGI9 */
  10281. ^^^^UBTC.MGIA = MGIA /* \_SB_.PCI0.SBRG.EC0_.MGIA */
  10282. ^^^^UBTC.MGIB = MGIB /* \_SB_.PCI0.SBRG.EC0_.MGIB */
  10283. ^^^^UBTC.MGIC = MGIC /* \_SB_.PCI0.SBRG.EC0_.MGIC */
  10284. ^^^^UBTC.MGID = MGID /* \_SB_.PCI0.SBRG.EC0_.MGID */
  10285. ^^^^UBTC.MGIE = MGIE /* \_SB_.PCI0.SBRG.EC0_.MGIE */
  10286. ^^^^UBTC.MGIF = MGIF /* \_SB_.PCI0.SBRG.EC0_.MGIF */
  10287. ^^^^UBTC.CCI0 = CCI0 /* \_SB_.PCI0.SBRG.EC0_.CCI0 */
  10288. ^^^^UBTC.CCI1 = CCI1 /* \_SB_.PCI0.SBRG.EC0_.CCI1 */
  10289. ^^^^UBTC.CCI2 = CCI2 /* \_SB_.PCI0.SBRG.EC0_.CCI2 */
  10290. ^^^^UBTC.CCI3 = CCI3 /* \_SB_.PCI0.SBRG.EC0_.CCI3 */
  10291. BRAH = 0xC9
  10292. Release (CMUT)
  10293. }
  10294.  
  10295. Notify (UBTC, 0x80) // Status Change
  10296. }
  10297.  
  10298. Method (_QD5, 0, NotSerialized) // _Qxx: EC Query, xx=0x00-0xFF
  10299. {
  10300. }
  10301.  
  10302. Method (_QD9, 0, Serialized) // _Qxx: EC Query, xx=0x00-0xFF
  10303. {
  10304. CFML = STCC (Zero, 0x14)
  10305. Switch (ToInteger (DCTL))
  10306. {
  10307. Case (Zero)
  10308. {
  10309. If ((WRFG == One))
  10310. {
  10311. _QF0 ()
  10312. }
  10313. Else
  10314. {
  10315. _QF1 ()
  10316. }
  10317. }
  10318. Case (One)
  10319. {
  10320. _QE8 ()
  10321. }
  10322. Case (0x02)
  10323. {
  10324. _QEA ()
  10325. }
  10326.  
  10327. }
  10328. }
  10329.  
  10330. Method (_QC7, 0, NotSerialized) // _Qxx: EC Query, xx=0x00-0xFF
  10331. {
  10332. If (ATKP)
  10333. {
  10334. ^^^^ATKD.IANE (0x6D)
  10335. }
  10336. }
  10337.  
  10338. Method (_QEE, 0, NotSerialized) // _Qxx: EC Query, xx=0x00-0xFF
  10339. {
  10340. Notify (^^^GPP0.PEGP, 0x81) // Information Change
  10341. }
  10342. }
  10343.  
  10344. Scope (_SB.PCI0.SBRG.EC0)
  10345. {
  10346. Method (CHGS, 1, Serialized)
  10347. {
  10348. Local0 = BCHG (Arg0)
  10349. Return (Local0)
  10350. }
  10351.  
  10352. Name (BSLF, Zero)
  10353. Method (BATS, 1, Serialized)
  10354. {
  10355. If (Arg0)
  10356. {
  10357. BSLF = One
  10358. }
  10359. Else
  10360. {
  10361. BSLF = Zero
  10362. }
  10363. }
  10364.  
  10365. Mutex (MMPX, 0x00)
  10366. Method (BATO, 0, Serialized)
  10367. {
  10368. Acquire (MMPX, 0xFFFF)
  10369. }
  10370.  
  10371. Method (BATR, 0, Serialized)
  10372. {
  10373. Release (MMPX)
  10374. }
  10375.  
  10376. Method (BATP, 1, Serialized)
  10377. {
  10378. If (Arg0)
  10379. {
  10380. Return (DCP2) /* \_SB_.DCP2 */
  10381. }
  10382. Else
  10383. {
  10384. Return (DCPF) /* \_SB_.DCPF */
  10385. }
  10386. }
  10387.  
  10388. Method (NBAT, 1, NotSerialized)
  10389. {
  10390. If (BATP (Zero))
  10391. {
  10392. Notify (BAT0, Arg0)
  10393. }
  10394. }
  10395. }
  10396.  
  10397. Scope (_SB.PCI0.SBRG.EC0)
  10398. {
  10399. Name (BADR, 0x0B)
  10400. Name (CADR, 0x09)
  10401. Name (SADR, 0x0A)
  10402. Method (BIF0, 0, NotSerialized)
  10403. {
  10404. If (ECAV ())
  10405. {
  10406. Acquire (CMUT, 0xFFFF)
  10407. If (BSLF)
  10408. {
  10409. BRAH = 0xC9
  10410. Local0 = B1MD /* \_SB_.PCI0.SBRG.EC0_.B1MD */
  10411. }
  10412. Else
  10413. {
  10414. BRAH = 0xC9
  10415. Local0 = B0MD /* \_SB_.PCI0.SBRG.EC0_.B0MD */
  10416. }
  10417.  
  10418. Release (CMUT)
  10419. If ((Local0 != 0xFFFF))
  10420. {
  10421. Local1 = (Local0 >> 0x0F)
  10422. Local1 &= One
  10423. Local0 = (Local1 ^ One)
  10424. }
  10425. }
  10426. Else
  10427. {
  10428. Local0 = Ones
  10429. }
  10430.  
  10431. Return (Local0)
  10432. }
  10433.  
  10434. Method (BIF1, 0, NotSerialized)
  10435. {
  10436. If (ECAV ())
  10437. {
  10438. Acquire (CMUT, 0xFFFF)
  10439. If (BSLF)
  10440. {
  10441. BRAH = 0xC9
  10442. Local0 = B1DC /* \_SB_.PCI0.SBRG.EC0_.B1DC */
  10443. }
  10444. Else
  10445. {
  10446. BRAH = 0xC9
  10447. Local0 = B0DC /* \_SB_.PCI0.SBRG.EC0_.B0DC */
  10448. }
  10449.  
  10450. Release (CMUT)
  10451. Local0 &= 0xFFFF
  10452. }
  10453. Else
  10454. {
  10455. Local0 = Ones
  10456. }
  10457.  
  10458. Return (Local0)
  10459. }
  10460.  
  10461. Method (BIF2, 0, NotSerialized)
  10462. {
  10463. If (ECAV ())
  10464. {
  10465. Acquire (CMUT, 0xFFFF)
  10466. If (BSLF)
  10467. {
  10468. BRAH = 0xC9
  10469. Local0 = B1FC /* \_SB_.PCI0.SBRG.EC0_.B1FC */
  10470. }
  10471. Else
  10472. {
  10473. BRAH = 0xC9
  10474. Local0 = B0FC /* \_SB_.PCI0.SBRG.EC0_.B0FC */
  10475. }
  10476.  
  10477. Release (CMUT)
  10478. Local0 &= 0xFFFF
  10479. }
  10480. Else
  10481. {
  10482. Local0 = Ones
  10483. }
  10484.  
  10485. Return (Local0)
  10486. }
  10487.  
  10488. Method (BIF3, 0, NotSerialized)
  10489. {
  10490. If (ECAV ())
  10491. {
  10492. Acquire (CMUT, 0xFFFF)
  10493. If (BSLF)
  10494. {
  10495. BRAH = 0xC9
  10496. Local0 = B1MD /* \_SB_.PCI0.SBRG.EC0_.B1MD */
  10497. }
  10498. Else
  10499. {
  10500. BRAH = 0xC9
  10501. Local0 = B0MD /* \_SB_.PCI0.SBRG.EC0_.B0MD */
  10502. }
  10503.  
  10504. Release (CMUT)
  10505. If ((Local0 != 0xFFFF))
  10506. {
  10507. Local0 >>= 0x09
  10508. Local0 &= One
  10509. Local0 ^= One
  10510. }
  10511. }
  10512. Else
  10513. {
  10514. Local0 = Ones
  10515. }
  10516.  
  10517. Return (Local0)
  10518. }
  10519.  
  10520. Method (BIF4, 0, NotSerialized)
  10521. {
  10522. If (ECAV ())
  10523. {
  10524. Acquire (CMUT, 0xFFFF)
  10525. If (BSLF)
  10526. {
  10527. BRAH = 0xC9
  10528. Local0 = B1DV /* \_SB_.PCI0.SBRG.EC0_.B1DV */
  10529. }
  10530. Else
  10531. {
  10532. BRAH = 0xC9
  10533. Local0 = B0DV /* \_SB_.PCI0.SBRG.EC0_.B0DV */
  10534. }
  10535.  
  10536. Release (CMUT)
  10537. }
  10538. Else
  10539. {
  10540. Local0 = Ones
  10541. }
  10542.  
  10543. Return (Local0)
  10544. }
  10545.  
  10546. Method (BIF9, 0, NotSerialized)
  10547. {
  10548. Name (BSTR, Buffer (0x20){})
  10549. Name (DDDD, "ASUS Battery")
  10550. BSTR = DDDD /* \_SB_.PCI0.SBRG.EC0_.BIF9.DDDD */
  10551. Return (BSTR) /* \_SB_.PCI0.SBRG.EC0_.BIF9.BSTR */
  10552. }
  10553.  
  10554. Method (BSTS, 0, NotSerialized)
  10555. {
  10556. Acquire (CMUT, 0xFFFF)
  10557. If (BSLF)
  10558. {
  10559. BRAH = 0xC9
  10560. Local0 = B1ST /* \_SB_.PCI0.SBRG.EC0_.B1ST */
  10561. }
  10562. Else
  10563. {
  10564. BRAH = 0xC9
  10565. Local0 = B0ST /* \_SB_.PCI0.SBRG.EC0_.B0ST */
  10566. }
  10567.  
  10568. Release (CMUT)
  10569. Return (Local0)
  10570. }
  10571.  
  10572. Method (BCRT, 0, NotSerialized)
  10573. {
  10574. Acquire (CMUT, 0xFFFF)
  10575. If (BSLF)
  10576. {
  10577. BRAH = 0xC9
  10578. Local0 = B1CC /* \_SB_.PCI0.SBRG.EC0_.B1CC */
  10579. }
  10580. Else
  10581. {
  10582. BRAH = 0xC9
  10583. Local0 = B0CC /* \_SB_.PCI0.SBRG.EC0_.B0CC */
  10584. }
  10585.  
  10586. Release (CMUT)
  10587. Return (Local0)
  10588. }
  10589.  
  10590. Method (BRCP, 0, NotSerialized)
  10591. {
  10592. Acquire (CMUT, 0xFFFF)
  10593. If (BSLF)
  10594. {
  10595. BRAH = 0xC9
  10596. Local0 = B1RC /* \_SB_.PCI0.SBRG.EC0_.B1RC */
  10597. }
  10598. Else
  10599. {
  10600. BRAH = 0xC9
  10601. Local0 = B0RC /* \_SB_.PCI0.SBRG.EC0_.B0RC */
  10602. }
  10603.  
  10604. Release (CMUT)
  10605. If ((Local0 == 0xFFFF))
  10606. {
  10607. Local0 = Ones
  10608. }
  10609.  
  10610. Return (Local0)
  10611. }
  10612.  
  10613. Method (BVOT, 0, NotSerialized)
  10614. {
  10615. Acquire (CMUT, 0xFFFF)
  10616. If (BSLF)
  10617. {
  10618. BRAH = 0xC9
  10619. Local0 = B1VL /* \_SB_.PCI0.SBRG.EC0_.B1VL */
  10620. }
  10621. Else
  10622. {
  10623. BRAH = 0xC9
  10624. Local0 = B0VL /* \_SB_.PCI0.SBRG.EC0_.B0VL */
  10625. }
  10626.  
  10627. Release (CMUT)
  10628. Return (Local0)
  10629. }
  10630. }
  10631.  
  10632. Scope (_SB.PCI0.SBRG.EC0)
  10633. {
  10634. Device (BAT0)
  10635. {
  10636. Name (_HID, EisaId ("PNP0C0A") /* Control Method Battery */) // _HID: Hardware ID
  10637. Name (_UID, Zero) // _UID: Unique ID
  10638. Name (_PCL, Package (0x01) // _PCL: Power Consumer List
  10639. {
  10640. PCI0
  10641. })
  10642. Method (_STA, 0, NotSerialized) // _STA: Status
  10643. {
  10644. If (BATP (Zero))
  10645. {
  10646. Return (0x1F)
  10647. }
  10648. Else
  10649. {
  10650. Return (0x0F)
  10651. }
  10652. }
  10653.  
  10654. Name (LOW2, 0x012C)
  10655. Name (PUNT, One)
  10656. Name (LFCC, 0x1770)
  10657. Name (NBIF, Package (0x0D)
  10658. {
  10659. Zero,
  10660. 0xFFFFFFFF,
  10661. 0xFFFFFFFF,
  10662. One,
  10663. 0xFFFFFFFF,
  10664. 0xFFFFFFFF,
  10665. 0xFFFFFFFF,
  10666. 0xFFFFFFFF,
  10667. 0xFFFFFFFF,
  10668. "",
  10669. "",
  10670. "",
  10671. ""
  10672. })
  10673. Name (PBIF, Package (0x0D)
  10674. {
  10675. One,
  10676. 0x1770,
  10677. 0x1770,
  10678. One,
  10679. 0x39D0,
  10680. 0x0258,
  10681. 0x012C,
  10682. 0x3C,
  10683. 0x3C,
  10684. "M3N",
  10685. " ",
  10686. "LIon",
  10687. "ASUSTeK"
  10688. })
  10689. Name (PBST, Package (0x04)
  10690. {
  10691. Zero,
  10692. 0xFFFFFFFF,
  10693. 0xFFFFFFFF,
  10694. 0xFFFFFFFF
  10695. })
  10696. Name (BIXT, Package (0x14)
  10697. {
  10698. Zero,
  10699. Zero,
  10700. 0x1770,
  10701. 0x1770,
  10702. One,
  10703. 0x39D0,
  10704. 0x0258,
  10705. 0x012C,
  10706. Zero,
  10707. 0xFFFFFFFF,
  10708. 0xFFFFFFFF,
  10709. 0xFFFFFFFF,
  10710. 0xFFFFFFFF,
  10711. 0xFFFFFFFF,
  10712. 0x3C,
  10713. 0x3C,
  10714. "M3N",
  10715. " ",
  10716. "LIon",
  10717. "ASUSTeK"
  10718. })
  10719. Name (NBIX, Package (0x14)
  10720. {
  10721. Zero,
  10722. Zero,
  10723. 0xFFFFFFFF,
  10724. 0xFFFFFFFF,
  10725. One,
  10726. 0xFFFFFFFF,
  10727. 0xFFFFFFFF,
  10728. 0xFFFFFFFF,
  10729. Zero,
  10730. 0xFFFFFFFF,
  10731. 0xFFFFFFFF,
  10732. 0xFFFFFFFF,
  10733. 0xFFFFFFFF,
  10734. 0xFFFFFFFF,
  10735. 0xFFFFFFFF,
  10736. 0xFFFFFFFF,
  10737. "",
  10738. "",
  10739. "",
  10740. ""
  10741. })
  10742. Method (FBIF, 5, NotSerialized)
  10743. {
  10744. PUNT = Arg0
  10745. Local1 = Arg1
  10746. Local2 = Arg2
  10747. If ((PUNT == Zero))
  10748. {
  10749. Local1 *= 0x0A
  10750. Local2 *= 0x0A
  10751. }
  10752.  
  10753. PBIF [Zero] = Arg0
  10754. PBIF [One] = Local1
  10755. PBIF [0x02] = Local2
  10756. LFCC = Local2
  10757. PBIF [0x03] = Arg3
  10758. PBIF [0x04] = Arg4
  10759. Local5 = (Local1 / 0x0A)
  10760. PBIF [0x05] = Local5
  10761. Local6 = (Local1 / 0x64)
  10762. PBIF [0x06] = Local6
  10763. LOW2 = Local6
  10764. Local7 = (Local1 / 0x64)
  10765. PBIF [0x07] = Local7
  10766. PBIF [0x08] = Local7
  10767. }
  10768.  
  10769. Method (CBIF, 0, NotSerialized)
  10770. {
  10771. If (PUNT)
  10772. {
  10773. Local0 = DerefOf (PBIF [0x04])
  10774. PBIF [Zero] = Zero
  10775. PBIF [One] = (DerefOf (PBIF [One]) * Local0)
  10776. PBIF [0x02] = (DerefOf (PBIF [0x02]) * Local0)
  10777. PBIF [0x05] = (DerefOf (PBIF [0x05]) * Local0)
  10778. PBIF [0x06] = (DerefOf (PBIF [0x06]) * Local0)
  10779. PBIF [0x07] = (DerefOf (PBIF [0x07]) * Local0)
  10780. PBIF [0x08] = (DerefOf (PBIF [0x08]) * Local0)
  10781. PBIF [One] = (DerefOf (PBIF [One]) / 0x03E8)
  10782. PBIF [0x02] = (DerefOf (PBIF [0x02]) / 0x03E8)
  10783. PBIF [0x05] = (DerefOf (PBIF [0x05]) / 0x03E8)
  10784. PBIF [0x06] = (DerefOf (PBIF [0x06]) / 0x03E8)
  10785. PBIF [0x07] = (DerefOf (PBIF [0x07]) / 0x03E8)
  10786. PBIF [0x08] = (DerefOf (PBIF [0x08]) / 0x03E8)
  10787. }
  10788. }
  10789.  
  10790. Method (_BIF, 0, NotSerialized) // _BIF: Battery Information
  10791. {
  10792. If (!BATP (Zero))
  10793. {
  10794. Return (NBIF) /* \_SB_.PCI0.SBRG.EC0_.BAT0.NBIF */
  10795. }
  10796.  
  10797. If ((GBTT (Zero) == 0xFF))
  10798. {
  10799. Return (NBIF) /* \_SB_.PCI0.SBRG.EC0_.BAT0.NBIF */
  10800. }
  10801.  
  10802. BATO ()
  10803. BATS (Zero)
  10804. PBIF [0x09] = BIF9 ()
  10805. Local0 = BIF0 ()
  10806. Local1 = BIF1 ()
  10807. Local2 = BIF2 ()
  10808. Local3 = BIF3 ()
  10809. Local4 = BIF4 ()
  10810. If ((Local0 != Ones))
  10811. {
  10812. If ((Local1 != Ones))
  10813. {
  10814. If ((Local2 != Ones))
  10815. {
  10816. If ((Local3 != Ones))
  10817. {
  10818. If ((Local4 != Ones))
  10819. {
  10820. FBIF (Local0, Local1, Local2, Local3, Local4)
  10821. CBIF ()
  10822. }
  10823. }
  10824. }
  10825. }
  10826. }
  10827.  
  10828. If ((PUNT == Zero))
  10829. {
  10830. Local2 *= 0x0A
  10831. }
  10832.  
  10833. LFCC = Local2
  10834. BATR ()
  10835. Return (PBIF) /* \_SB_.PCI0.SBRG.EC0_.BAT0.PBIF */
  10836. }
  10837.  
  10838. Method (FBST, 4, NotSerialized)
  10839. {
  10840. Local1 = (Arg1 & 0xFFFF)
  10841. Local0 = Zero
  10842. If (ACAP ())
  10843. {
  10844. Local0 = One
  10845. }
  10846.  
  10847. If (Local0)
  10848. {
  10849. If (CHGS (Zero))
  10850. {
  10851. Local0 = 0x02
  10852. }
  10853. Else
  10854. {
  10855. Local0 = One
  10856. }
  10857. }
  10858. Else
  10859. {
  10860. Local0 = One
  10861. }
  10862.  
  10863. If (BLLO)
  10864. {
  10865. Local2 = (One << 0x02)
  10866. Local0 |= Local2
  10867. }
  10868.  
  10869. BRAH = 0xC9
  10870. If ((EB0S & 0x08))
  10871. {
  10872. Local2 = (One << 0x02)
  10873. Local0 |= Local2
  10874. }
  10875.  
  10876. If ((Local1 >= 0x8000))
  10877. {
  10878. Local1 = (0xFFFF - Local1)
  10879. }
  10880.  
  10881. Local2 = Arg2
  10882. If ((PUNT == Zero))
  10883. {
  10884. Acquire (CMUT, 0xFFFF)
  10885. BRAH = 0xC9
  10886. Local1 *= B0DV /* \_SB_.PCI0.SBRG.EC0_.B0DV */
  10887. Release (CMUT)
  10888. Local2 *= 0x0A
  10889. }
  10890.  
  10891. Local3 = (Local0 & 0x02)
  10892. If (!Local3)
  10893. {
  10894. Local3 = (LFCC - Local2)
  10895. Divide (LFCC, 0xC8, Local4, Local5)
  10896. If ((Local3 < Local5))
  10897. {
  10898. Local2 = LFCC /* \_SB_.PCI0.SBRG.EC0_.BAT0.LFCC */
  10899. }
  10900. }
  10901. Else
  10902. {
  10903. Divide (LFCC, 0xC8, Local4, Local5)
  10904. Local4 = (LFCC - Local5)
  10905. If ((Local2 > Local4))
  10906. {
  10907. Local2 = Local4
  10908. }
  10909. }
  10910.  
  10911. If (!ACAP ())
  10912. {
  10913. Divide (Local2, MBLF, Local3, Local4)
  10914. If ((Local1 < Local4))
  10915. {
  10916. Local1 = Local4
  10917. }
  10918. }
  10919.  
  10920. PBST [Zero] = Local0
  10921. PBST [One] = Local1
  10922. PBST [0x02] = Local2
  10923. PBST [0x03] = Arg3
  10924. }
  10925.  
  10926. Method (CBST, 0, NotSerialized)
  10927. {
  10928. If (PUNT)
  10929. {
  10930. Acquire (CMUT, 0xFFFF)
  10931. BRAH = 0xC9
  10932. PBST [0x03] = B0DV /* \_SB_.PCI0.SBRG.EC0_.B0DV */
  10933. Release (CMUT)
  10934. Local0 = DerefOf (PBST [0x03])
  10935. PBST [One] = (DerefOf (PBST [One]) * Local0)
  10936. PBST [One] = (DerefOf (PBST [One]) / 0x03E8)
  10937. PBST [0x02] = (DerefOf (PBST [0x02]) * Local0)
  10938. PBST [0x02] = (DerefOf (PBST [0x02]) / 0x03E8)
  10939. }
  10940. }
  10941.  
  10942. Method (_BST, 0, NotSerialized) // _BST: Battery Status
  10943. {
  10944. PBST [Zero] = Zero
  10945. PBST [One] = Ones
  10946. PBST [0x02] = Ones
  10947. PBST [0x03] = Ones
  10948. If (!BATP (Zero))
  10949. {
  10950. PBST [Zero] = One
  10951. Return (PBST) /* \_SB_.PCI0.SBRG.EC0_.BAT0.PBST */
  10952. }
  10953.  
  10954. If ((GBTT (Zero) == 0xFF))
  10955. {
  10956. Return (PBST) /* \_SB_.PCI0.SBRG.EC0_.BAT0.PBST */
  10957. }
  10958.  
  10959. BATO ()
  10960. BATS (Zero)
  10961. Local0 = BSTS ()
  10962. Local1 = BCRT ()
  10963. Local2 = BRCP ()
  10964. Local3 = BVOT ()
  10965. If ((Local0 != Ones))
  10966. {
  10967. If ((Local1 != Ones))
  10968. {
  10969. If ((Local2 != Ones))
  10970. {
  10971. If ((Local3 != Ones))
  10972. {
  10973. FBST (Local0, Local1, Local2, Local3)
  10974. CBST ()
  10975. }
  10976. }
  10977. }
  10978. }
  10979.  
  10980. BATR ()
  10981. Return (PBST) /* \_SB_.PCI0.SBRG.EC0_.BAT0.PBST */
  10982. }
  10983.  
  10984. Method (_BIX, 0, NotSerialized) // _BIX: Battery Information Extended
  10985. {
  10986. If (!BATP (Zero))
  10987. {
  10988. Return (NBIX) /* \_SB_.PCI0.SBRG.EC0_.BAT0.NBIX */
  10989. }
  10990.  
  10991. If ((GBTT (Zero) == 0xFF))
  10992. {
  10993. Return (NBIX) /* \_SB_.PCI0.SBRG.EC0_.BAT0.NBIX */
  10994. }
  10995.  
  10996. _BIF ()
  10997. BIXT [One] = DerefOf (PBIF [Zero])
  10998. BIXT [0x02] = DerefOf (PBIF [One])
  10999. BIXT [0x03] = DerefOf (PBIF [0x02])
  11000. BIXT [0x04] = DerefOf (PBIF [0x03])
  11001. BIXT [0x05] = DerefOf (PBIF [0x04])
  11002. BIXT [0x06] = DerefOf (PBIF [0x05])
  11003. BIXT [0x07] = DerefOf (PBIF [0x06])
  11004. BIXT [0x0E] = DerefOf (PBIF [0x07])
  11005. BIXT [0x0F] = DerefOf (PBIF [0x08])
  11006. BIXT [0x10] = DerefOf (PBIF [0x09])
  11007. BIXT [0x11] = DerefOf (PBIF [0x0A])
  11008. BIXT [0x12] = DerefOf (PBIF [0x0B])
  11009. BIXT [0x13] = DerefOf (PBIF [0x0C])
  11010. If ((DerefOf (BIXT [One]) == One))
  11011. {
  11012. BIXT [One] = Zero
  11013. Local0 = DerefOf (BIXT [0x05])
  11014. BIXT [0x02] = (DerefOf (BIXT [0x02]) * Local0)
  11015. BIXT [0x03] = (DerefOf (BIXT [0x03]) * Local0)
  11016. BIXT [0x06] = (DerefOf (BIXT [0x06]) * Local0)
  11017. BIXT [0x07] = (DerefOf (BIXT [0x07]) * Local0)
  11018. BIXT [0x0E] = (DerefOf (BIXT [0x0E]) * Local0)
  11019. BIXT [0x0F] = (DerefOf (BIXT [0x0F]) * Local0)
  11020. Divide (DerefOf (BIXT [0x02]), 0x03E8, Local0, BIXT [0x02])
  11021. Divide (DerefOf (BIXT [0x03]), 0x03E8, Local0, BIXT [0x03])
  11022. Divide (DerefOf (BIXT [0x06]), 0x03E8, Local0, BIXT [0x06])
  11023. Divide (DerefOf (BIXT [0x07]), 0x03E8, Local0, BIXT [0x07])
  11024. Divide (DerefOf (BIXT [0x0E]), 0x03E8, Local0, BIXT [0x0E])
  11025. Divide (DerefOf (BIXT [0x0F]), 0x03E8, Local0, BIXT [0x0F])
  11026. }
  11027.  
  11028. BIXT [0x09] = 0x0001869F
  11029. Return (BIXT) /* \_SB_.PCI0.SBRG.EC0_.BAT0.BIXT */
  11030. }
  11031.  
  11032. Method (_BTP, 1, NotSerialized) // _BTP: Battery Trip Point
  11033. {
  11034. RP2E (0x96)
  11035. RP2E (0x97)
  11036. RP2E (0x95)
  11037. If ((Arg0 != Zero))
  11038. {
  11039. Local0 = DerefOf (PBIF [0x04])
  11040. Local1 = (Arg0 * 0x03E8)
  11041. Divide (Local1, Local0, Local2, Local3)
  11042. If (CHGS (Zero))
  11043. {
  11044. If ((Local2 != Zero))
  11045. {
  11046. Local3 += One
  11047. }
  11048. }
  11049.  
  11050. WP2E (0x96, (Local3 & 0xFF))
  11051. Local2 = (Local3 >> 0x08)
  11052. Local2 &= 0xFF
  11053. WP2E (0x97, Local2)
  11054. WP2E (0x95, Zero)
  11055. }
  11056. }
  11057. }
  11058. }
  11059.  
  11060. Scope (\)
  11061. {
  11062. Name (TSP, 0x0A)
  11063. Name (TC1, 0x02)
  11064. Name (TC2, 0x0A)
  11065. }
  11066.  
  11067. Scope (_TZ)
  11068. {
  11069. Name (ETMD, One)
  11070. Method (KELV, 1, NotSerialized)
  11071. {
  11072. Local0 = (Arg0 & 0xFF)
  11073. If ((Local0 >= 0x80))
  11074. {
  11075. Local0 = (0x0100 - Local0)
  11076. Local0 *= 0x0A
  11077. Local0 = (0x0AAC - Local0)
  11078. Return (Local0)
  11079. }
  11080.  
  11081. Local0 *= 0x0A
  11082. Local0 += 0x0AAC
  11083. Return (Local0)
  11084. }
  11085.  
  11086. Method (CELC, 1, NotSerialized)
  11087. {
  11088. Local0 = (Arg0 - 0x0AAC)
  11089. Local0 /= 0x0A
  11090. Return (Local0)
  11091. }
  11092.  
  11093. Name (PLCY, Zero)
  11094. ThermalZone (THRM)
  11095. {
  11096. Method (_CRT, 0, NotSerialized) // _CRT: Critical Temperature
  11097. {
  11098. RCRT ()
  11099. Return (KELV (\_SB.TCRT))
  11100. }
  11101.  
  11102. Method (_TMP, 0, NotSerialized) // _TMP: Temperature
  11103. {
  11104. Local1 = 0x05
  11105. While (Local1)
  11106. {
  11107. Local0 = RTMP ()
  11108. If ((Local0 > \_SB.TCRT))
  11109. {
  11110. Local1--
  11111. }
  11112. Else
  11113. {
  11114. Local1 = Zero
  11115. }
  11116. }
  11117.  
  11118. Return (KELV (Local0))
  11119. }
  11120.  
  11121. Name (_PSL, Package (0x10) // _PSL: Passive List
  11122. {
  11123. \_SB.PLTF.P000,
  11124. \_SB.PLTF.P001,
  11125. \_SB.PLTF.P002,
  11126. \_SB.PLTF.P003,
  11127. \_SB.PLTF.P004,
  11128. \_SB.PLTF.P005,
  11129. \_SB.PLTF.P006,
  11130. \_SB.PLTF.P007,
  11131. \_SB.PLTF.P008,
  11132. \_SB.PLTF.P009,
  11133. \_SB.PLTF.P00A,
  11134. \_SB.PLTF.P00B,
  11135. \_SB.PLTF.P00C,
  11136. \_SB.PLTF.P00D,
  11137. \_SB.PLTF.P00E,
  11138. \_SB.PLTF.P00F
  11139. })
  11140. Method (_TSP, 0, NotSerialized) // _TSP: Thermal Sampling Period
  11141. {
  11142. Local0 = (TSP * 0x0A)
  11143. Return (Local0)
  11144. }
  11145.  
  11146. Method (_TC1, 0, NotSerialized) // _TC1: Thermal Constant 1
  11147. {
  11148. Return (TC1) /* \TC1_ */
  11149. }
  11150.  
  11151. Method (_TC2, 0, NotSerialized) // _TC2: Thermal Constant 2
  11152. {
  11153. Return (TC2) /* \TC2_ */
  11154. }
  11155.  
  11156. Method (_PSV, 0, NotSerialized) // _PSV: Passive Temperature
  11157. {
  11158. RPSV ()
  11159. If (PLCY)
  11160. {
  11161. Return (KELV (\_SB.PPSV))
  11162. }
  11163. Else
  11164. {
  11165. Return (KELV (\_SB.TPSV))
  11166. }
  11167. }
  11168.  
  11169. Method (_SCP, 1, NotSerialized) // _SCP: Set Cooling Policy
  11170. {
  11171. PLCY = Zero
  11172. Notify (THRM, 0x81) // Thermal Trip Point Change
  11173. }
  11174. }
  11175. }
  11176.  
  11177. Scope (_TZ)
  11178. {
  11179. Name (ATMP, 0x3C)
  11180. Name (LTMP, 0x3C)
  11181. Name (FANS, Zero)
  11182. Method (RTMP, 0, NotSerialized)
  11183. {
  11184. If (\_SB.PCI0.SBRG.EC0.ECAV ())
  11185. {
  11186. Acquire (\_SB.PCI0.SBRG.EC0.CMUT, 0xFFFF)
  11187. \_SB.PCI0.SBRG.EC0.BRAH = 0xC9
  11188. Local0 = \_SB.PCI0.SBRG.EC0.ECPU
  11189. Release (\_SB.PCI0.SBRG.EC0.CMUT)
  11190. If ((Local0 < 0x80))
  11191. {
  11192. LTMP = Local0
  11193. }
  11194. }
  11195.  
  11196. Return (LTMP) /* \_TZ_.LTMP */
  11197. }
  11198.  
  11199. Method (RCRT, 0, NotSerialized)
  11200. {
  11201. If (\_SB.PCI0.SBRG.EC0.ECAV ())
  11202. {
  11203. Acquire (\_SB.PCI0.SBRG.EC0.CMUT, 0xFFFF)
  11204. \_SB.PCI0.SBRG.EC0.BRAH = 0xC9
  11205. Local0 = \_SB.PCI0.SBRG.EC0.ECRT
  11206. Release (\_SB.PCI0.SBRG.EC0.CMUT)
  11207. If ((Local0 < 0x80))
  11208. {
  11209. \_SB.TCRT = Local0
  11210. }
  11211. }
  11212.  
  11213. \_SB.TCRT = 0x78
  11214. }
  11215.  
  11216. Method (RPSV, 0, NotSerialized)
  11217. {
  11218. If (\_SB.PCI0.SBRG.EC0.ECAV ())
  11219. {
  11220. Acquire (\_SB.PCI0.SBRG.EC0.CMUT, 0xFFFF)
  11221. \_SB.PCI0.SBRG.EC0.BRAH = 0xC9
  11222. Local0 = \_SB.PCI0.SBRG.EC0.EPSV
  11223. Release (\_SB.PCI0.SBRG.EC0.CMUT)
  11224. If ((Local0 < 0x80))
  11225. {
  11226. \_SB.TPSV = Local0
  11227. }
  11228. }
  11229. }
  11230.  
  11231. Method (RFAN, 1, NotSerialized)
  11232. {
  11233. If (\_SB.PCI0.SBRG.EC0.ECAV ())
  11234. {
  11235. Local0 = \_SB.PCI0.SBRG.EC0.ST83 (Arg0)
  11236. If ((Local0 == 0xFF))
  11237. {
  11238. Return (Local0)
  11239. }
  11240.  
  11241. Local0 = \_SB.PCI0.SBRG.EC0.TACH (Arg0)
  11242. Local0 /= 0x64
  11243. Local0 += One
  11244. If ((Local0 <= 0x3C))
  11245. {
  11246. FANS = Local0
  11247. }
  11248. Else
  11249. {
  11250. Local0 = FANS /* \_TZ_.FANS */
  11251. }
  11252. }
  11253. Else
  11254. {
  11255. Local0 = Zero
  11256. }
  11257.  
  11258. Return (Local0)
  11259. }
  11260.  
  11261. Method (RFSE, 0, NotSerialized)
  11262. {
  11263. If (\_SB.PCI0.SBRG.EC0.ECAV ())
  11264. {
  11265. Local1 = \_SB.PCI0.SBRG.EC0.ST83 (Zero)
  11266. If ((Local1 < 0x80))
  11267. {
  11268. If ((Local1 < 0x0A))
  11269. {
  11270. Local0 = Zero
  11271. }
  11272. Else
  11273. {
  11274. Local0 = One
  11275. }
  11276. }
  11277. ElseIf ((Local1 < 0xF5))
  11278. {
  11279. Local0 = 0x02
  11280. }
  11281. Else
  11282. {
  11283. Local0 = 0x03
  11284. }
  11285. }
  11286. Else
  11287. {
  11288. Local0 = Zero
  11289. }
  11290.  
  11291. Return (Local0)
  11292. }
  11293. }
  11294.  
  11295. Scope (_SB.PCI0.SBRG.EC0)
  11296. {
  11297. Method (_QA2, 0, NotSerialized) // _Qxx: EC Query, xx=0x00-0xFF
  11298. {
  11299. Name (PDPF, Zero)
  11300. Acquire (CMUT, 0xFFFF)
  11301. PDPF = PDST /* \_SB_.PCI0.SBRG.EC0_.PDST */
  11302. Release (CMUT)
  11303. If (((PDPF & 0x02) && (PDPF != 0x03))){}
  11304. If (ATKP)
  11305. {
  11306. ^^^^ATKD.IANE (0x7B)
  11307. }
  11308. }
  11309. }
  11310.  
  11311. Scope (_SB.PCI0.GP17.XHC0)
  11312. {
  11313. Method (_S0W, 0, NotSerialized) // _S0W: S0 Device Wake State
  11314. {
  11315. Return (Zero)
  11316. }
  11317.  
  11318. Device (RHUB)
  11319. {
  11320. Name (_ADR, Zero) // _ADR: Address
  11321. Device (PRT1)
  11322. {
  11323. Name (_ADR, One) // _ADR: Address
  11324. Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities
  11325. {
  11326. Name (XUPC, Package (0x04)
  11327. {
  11328. 0xFF,
  11329. 0x03,
  11330. Zero,
  11331. Zero
  11332. })
  11333. Return (XUPC) /* \_SB_.PCI0.GP17.XHC0.RHUB.PRT1._UPC.XUPC */
  11334. }
  11335.  
  11336. Method (_PLD, 0, Serialized) // _PLD: Physical Location of Device
  11337. {
  11338. Name (XPLD, Package (0x01)
  11339. {
  11340. Buffer (0x14)
  11341. {
  11342. /* 0000 */ 0x82, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........
  11343. /* 0008 */ 0x61, 0x0D, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // a.......
  11344. /* 0010 */ 0xFF, 0xFF, 0xFF, 0xFF // ....
  11345. }
  11346. })
  11347. CreateField (DerefOf (XPLD [Zero]), 0x40, One, VISI)
  11348. VISI = One
  11349. CreateField (DerefOf (XPLD [Zero]), 0x57, 0x08, GPOS)
  11350. GPOS = One
  11351. Return (XPLD) /* \_SB_.PCI0.GP17.XHC0.RHUB.PRT1._PLD.XPLD */
  11352. }
  11353. }
  11354.  
  11355. Device (PRT2)
  11356. {
  11357. Name (_ADR, 0x02) // _ADR: Address
  11358. Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities
  11359. {
  11360. Name (XUPC, Package (0x04)
  11361. {
  11362. 0xFF,
  11363. 0x03,
  11364. Zero,
  11365. Zero
  11366. })
  11367. Return (XUPC) /* \_SB_.PCI0.GP17.XHC0.RHUB.PRT2._UPC.XUPC */
  11368. }
  11369.  
  11370. Method (_PLD, 0, Serialized) // _PLD: Physical Location of Device
  11371. {
  11372. Name (XPLD, Package (0x01)
  11373. {
  11374. Buffer (0x14)
  11375. {
  11376. /* 0000 */ 0x82, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........
  11377. /* 0008 */ 0x61, 0x0D, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // a.......
  11378. /* 0010 */ 0xFF, 0xFF, 0xFF, 0xFF // ....
  11379. }
  11380. })
  11381. CreateField (DerefOf (XPLD [Zero]), 0x40, One, VISI)
  11382. VISI = One
  11383. CreateField (DerefOf (XPLD [Zero]), 0x57, 0x08, GPOS)
  11384. GPOS = 0x02
  11385. Return (XPLD) /* \_SB_.PCI0.GP17.XHC0.RHUB.PRT2._PLD.XPLD */
  11386. }
  11387. }
  11388.  
  11389. Device (PRT3)
  11390. {
  11391. Name (_ADR, 0x03) // _ADR: Address
  11392. Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities
  11393. {
  11394. Name (XUPC, Package (0x04)
  11395. {
  11396. 0xFF,
  11397. 0xFF,
  11398. Zero,
  11399. Zero
  11400. })
  11401. Return (XUPC) /* \_SB_.PCI0.GP17.XHC0.RHUB.PRT3._UPC.XUPC */
  11402. }
  11403.  
  11404. Method (_PLD, 0, Serialized) // _PLD: Physical Location of Device
  11405. {
  11406. Name (XPLD, Package (0x01)
  11407. {
  11408. Buffer (0x14)
  11409. {
  11410. /* 0000 */ 0x82, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........
  11411. /* 0008 */ 0x61, 0x0D, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // a.......
  11412. /* 0010 */ 0xFF, 0xFF, 0xFF, 0xFF // ....
  11413. }
  11414. })
  11415. CreateField (DerefOf (XPLD [Zero]), 0x40, One, VISI)
  11416. VISI = Zero
  11417. CreateField (DerefOf (XPLD [Zero]), 0x57, 0x08, GPOS)
  11418. GPOS = 0x03
  11419. Return (XPLD) /* \_SB_.PCI0.GP17.XHC0.RHUB.PRT3._PLD.XPLD */
  11420. }
  11421. }
  11422.  
  11423. Device (PRT4)
  11424. {
  11425. Name (_ADR, 0x04) // _ADR: Address
  11426. Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities
  11427. {
  11428. Name (XUPC, Package (0x04)
  11429. {
  11430. Zero,
  11431. Zero,
  11432. Zero,
  11433. Zero
  11434. })
  11435. Return (XUPC) /* \_SB_.PCI0.GP17.XHC0.RHUB.PRT4._UPC.XUPC */
  11436. }
  11437.  
  11438. Method (_PLD, 0, Serialized) // _PLD: Physical Location of Device
  11439. {
  11440. Name (XPLD, Package (0x01)
  11441. {
  11442. Buffer (0x14)
  11443. {
  11444. /* 0000 */ 0x82, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........
  11445. /* 0008 */ 0x61, 0x0D, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // a.......
  11446. /* 0010 */ 0xFF, 0xFF, 0xFF, 0xFF // ....
  11447. }
  11448. })
  11449. CreateField (DerefOf (XPLD [Zero]), 0x40, One, VISI)
  11450. VISI = Zero
  11451. CreateField (DerefOf (XPLD [Zero]), 0x57, 0x08, GPOS)
  11452. GPOS = 0x04
  11453. Return (XPLD) /* \_SB_.PCI0.GP17.XHC0.RHUB.PRT4._PLD.XPLD */
  11454. }
  11455. }
  11456.  
  11457. Device (PRT5)
  11458. {
  11459. Name (_ADR, 0x05) // _ADR: Address
  11460. Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities
  11461. {
  11462. Name (XUPC, Package (0x04)
  11463. {
  11464. 0xFF,
  11465. 0x03,
  11466. Zero,
  11467. Zero
  11468. })
  11469. Return (XUPC) /* \_SB_.PCI0.GP17.XHC0.RHUB.PRT5._UPC.XUPC */
  11470. }
  11471.  
  11472. Method (_PLD, 0, Serialized) // _PLD: Physical Location of Device
  11473. {
  11474. Name (XPLD, Package (0x01)
  11475. {
  11476. Buffer (0x14)
  11477. {
  11478. /* 0000 */ 0x82, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........
  11479. /* 0008 */ 0x61, 0x0D, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // a.......
  11480. /* 0010 */ 0xFF, 0xFF, 0xFF, 0xFF // ....
  11481. }
  11482. })
  11483. CreateField (DerefOf (XPLD [Zero]), 0x40, One, VISI)
  11484. VISI = One
  11485. CreateField (DerefOf (XPLD [Zero]), 0x57, 0x08, GPOS)
  11486. GPOS = One
  11487. Return (XPLD) /* \_SB_.PCI0.GP17.XHC0.RHUB.PRT5._PLD.XPLD */
  11488. }
  11489. }
  11490.  
  11491. Device (PRT6)
  11492. {
  11493. Name (_ADR, 0x06) // _ADR: Address
  11494. Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities
  11495. {
  11496. Name (XUPC, Package (0x04)
  11497. {
  11498. 0xFF,
  11499. 0x03,
  11500. Zero,
  11501. Zero
  11502. })
  11503. Return (XUPC) /* \_SB_.PCI0.GP17.XHC0.RHUB.PRT6._UPC.XUPC */
  11504. }
  11505.  
  11506. Method (_PLD, 0, Serialized) // _PLD: Physical Location of Device
  11507. {
  11508. Name (XPLD, Package (0x01)
  11509. {
  11510. Buffer (0x14)
  11511. {
  11512. /* 0000 */ 0x82, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........
  11513. /* 0008 */ 0x61, 0x0D, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // a.......
  11514. /* 0010 */ 0xFF, 0xFF, 0xFF, 0xFF // ....
  11515. }
  11516. })
  11517. CreateField (DerefOf (XPLD [Zero]), 0x40, One, VISI)
  11518. VISI = One
  11519. CreateField (DerefOf (XPLD [Zero]), 0x57, 0x08, GPOS)
  11520. GPOS = 0x02
  11521. Return (XPLD) /* \_SB_.PCI0.GP17.XHC0.RHUB.PRT6._PLD.XPLD */
  11522. }
  11523. }
  11524. }
  11525. }
  11526.  
  11527. Scope (_SB.PCI0.GP17.XHC1)
  11528. {
  11529. Method (_S0W, 0, NotSerialized) // _S0W: S0 Device Wake State
  11530. {
  11531. Return (Zero)
  11532. }
  11533.  
  11534. Device (RHUB)
  11535. {
  11536. Name (_ADR, Zero) // _ADR: Address
  11537. Device (PRT1)
  11538. {
  11539. Name (_ADR, One) // _ADR: Address
  11540. Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities
  11541. {
  11542. Name (XUPC, Package (0x04)
  11543. {
  11544. 0xFF,
  11545. 0x09,
  11546. Zero,
  11547. Zero
  11548. })
  11549. Return (XUPC) /* \_SB_.PCI0.GP17.XHC1.RHUB.PRT1._UPC.XUPC */
  11550. }
  11551.  
  11552. Method (_PLD, 0, Serialized) // _PLD: Physical Location of Device
  11553. {
  11554. Name (XPLD, Package (0x01)
  11555. {
  11556. Buffer (0x14)
  11557. {
  11558. /* 0000 */ 0x82, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........
  11559. /* 0008 */ 0x61, 0x0D, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // a.......
  11560. /* 0010 */ 0xFF, 0xFF, 0xFF, 0xFF // ....
  11561. }
  11562. })
  11563. CreateField (DerefOf (XPLD [Zero]), 0x40, One, VISI)
  11564. VISI = One
  11565. CreateField (DerefOf (XPLD [Zero]), 0x57, 0x08, GPOS)
  11566. GPOS = 0x05
  11567. Return (XPLD) /* \_SB_.PCI0.GP17.XHC1.RHUB.PRT1._PLD.XPLD */
  11568. }
  11569. }
  11570.  
  11571. Device (PRT2)
  11572. {
  11573. Name (_ADR, 0x02) // _ADR: Address
  11574. Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities
  11575. {
  11576. Name (XUPC, Package (0x04)
  11577. {
  11578. 0xFF,
  11579. 0x09,
  11580. Zero,
  11581. Zero
  11582. })
  11583. Return (XUPC) /* \_SB_.PCI0.GP17.XHC1.RHUB.PRT2._UPC.XUPC */
  11584. }
  11585.  
  11586. Method (_PLD, 0, Serialized) // _PLD: Physical Location of Device
  11587. {
  11588. Name (XPLD, Package (0x01)
  11589. {
  11590. Buffer (0x14)
  11591. {
  11592. /* 0000 */ 0x82, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........
  11593. /* 0008 */ 0x61, 0x0D, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // a.......
  11594. /* 0010 */ 0xFF, 0xFF, 0xFF, 0xFF // ....
  11595. }
  11596. })
  11597. CreateField (DerefOf (XPLD [Zero]), 0x40, One, VISI)
  11598. VISI = One
  11599. CreateField (DerefOf (XPLD [Zero]), 0x57, 0x08, GPOS)
  11600. GPOS = 0x06
  11601. Return (XPLD) /* \_SB_.PCI0.GP17.XHC1.RHUB.PRT2._PLD.XPLD */
  11602. }
  11603. }
  11604.  
  11605. Device (PRT3)
  11606. {
  11607. Name (_ADR, 0x03) // _ADR: Address
  11608. Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities
  11609. {
  11610. Name (XUPC, Package (0x04)
  11611. {
  11612. 0xFF,
  11613. 0xFF,
  11614. Zero,
  11615. Zero
  11616. })
  11617. Return (XUPC) /* \_SB_.PCI0.GP17.XHC1.RHUB.PRT3._UPC.XUPC */
  11618. }
  11619.  
  11620. Method (_PLD, 0, Serialized) // _PLD: Physical Location of Device
  11621. {
  11622. Name (XPLD, Package (0x01)
  11623. {
  11624. Buffer (0x14)
  11625. {
  11626. /* 0000 */ 0x82, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........
  11627. /* 0008 */ 0x61, 0x0D, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // a.......
  11628. /* 0010 */ 0xFF, 0xFF, 0xFF, 0xFF // ....
  11629. }
  11630. })
  11631. CreateField (DerefOf (XPLD [Zero]), 0x40, One, VISI)
  11632. VISI = Zero
  11633. CreateField (DerefOf (XPLD [Zero]), 0x57, 0x08, GPOS)
  11634. GPOS = 0x07
  11635. Return (XPLD) /* \_SB_.PCI0.GP17.XHC1.RHUB.PRT3._PLD.XPLD */
  11636. }
  11637. }
  11638.  
  11639. Device (PRT4)
  11640. {
  11641. Name (_ADR, 0x04) // _ADR: Address
  11642. Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities
  11643. {
  11644. Name (XUPC, Package (0x04)
  11645. {
  11646. 0xFF,
  11647. 0xFF,
  11648. Zero,
  11649. Zero
  11650. })
  11651. Return (XUPC) /* \_SB_.PCI0.GP17.XHC1.RHUB.PRT4._UPC.XUPC */
  11652. }
  11653.  
  11654. Method (_PLD, 0, Serialized) // _PLD: Physical Location of Device
  11655. {
  11656. Name (XPLD, Package (0x01)
  11657. {
  11658. Buffer (0x14)
  11659. {
  11660. /* 0000 */ 0x82, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........
  11661. /* 0008 */ 0x61, 0x0D, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // a.......
  11662. /* 0010 */ 0xFF, 0xFF, 0xFF, 0xFF // ....
  11663. }
  11664. })
  11665. CreateField (DerefOf (XPLD [Zero]), 0x40, One, VISI)
  11666. VISI = Zero
  11667. CreateField (DerefOf (XPLD [Zero]), 0x57, 0x08, GPOS)
  11668. GPOS = 0x08
  11669. Return (XPLD) /* \_SB_.PCI0.GP17.XHC1.RHUB.PRT4._PLD.XPLD */
  11670. }
  11671. }
  11672.  
  11673. Device (PRT5)
  11674. {
  11675. Name (_ADR, 0x05) // _ADR: Address
  11676. Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities
  11677. {
  11678. Name (XUPC, Package (0x04)
  11679. {
  11680. 0xFF,
  11681. 0x09,
  11682. Zero,
  11683. Zero
  11684. })
  11685. Return (XUPC) /* \_SB_.PCI0.GP17.XHC1.RHUB.PRT5._UPC.XUPC */
  11686. }
  11687.  
  11688. Method (_PLD, 0, Serialized) // _PLD: Physical Location of Device
  11689. {
  11690. Name (XPLD, Package (0x01)
  11691. {
  11692. Buffer (0x14)
  11693. {
  11694. /* 0000 */ 0x82, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........
  11695. /* 0008 */ 0x61, 0x0D, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // a.......
  11696. /* 0010 */ 0xFF, 0xFF, 0xFF, 0xFF // ....
  11697. }
  11698. })
  11699. CreateField (DerefOf (XPLD [Zero]), 0x40, One, VISI)
  11700. VISI = One
  11701. CreateField (DerefOf (XPLD [Zero]), 0x57, 0x08, GPOS)
  11702. GPOS = 0x05
  11703. Return (XPLD) /* \_SB_.PCI0.GP17.XHC1.RHUB.PRT5._PLD.XPLD */
  11704. }
  11705. }
  11706.  
  11707. Device (PRT6)
  11708. {
  11709. Name (_ADR, 0x06) // _ADR: Address
  11710. Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities
  11711. {
  11712. Name (XUPC, Package (0x04)
  11713. {
  11714. 0xFF,
  11715. 0x09,
  11716. Zero,
  11717. Zero
  11718. })
  11719. Return (XUPC) /* \_SB_.PCI0.GP17.XHC1.RHUB.PRT6._UPC.XUPC */
  11720. }
  11721.  
  11722. Method (_PLD, 0, Serialized) // _PLD: Physical Location of Device
  11723. {
  11724. Name (XPLD, Package (0x01)
  11725. {
  11726. Buffer (0x14)
  11727. {
  11728. /* 0000 */ 0x82, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........
  11729. /* 0008 */ 0x61, 0x0D, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // a.......
  11730. /* 0010 */ 0xFF, 0xFF, 0xFF, 0xFF // ....
  11731. }
  11732. })
  11733. CreateField (DerefOf (XPLD [Zero]), 0x40, One, VISI)
  11734. VISI = One
  11735. CreateField (DerefOf (XPLD [Zero]), 0x57, 0x08, GPOS)
  11736. GPOS = 0x06
  11737. Return (XPLD) /* \_SB_.PCI0.GP17.XHC1.RHUB.PRT6._PLD.XPLD */
  11738. }
  11739. }
  11740. }
  11741. }
  11742.  
  11743. Scope (_SB.I2CD)
  11744. {
  11745. Device (ETPD)
  11746. {
  11747. Name (_ADR, One) // _ADR: Address
  11748. Name (ETPH, Package (0x02)
  11749. {
  11750. "ELAN1205",
  11751. "ELAN1201"
  11752. })
  11753. Method (_HID, 0, NotSerialized) // _HID: Hardware ID
  11754. {
  11755. Return ("ELAN1201")
  11756. }
  11757.  
  11758. Name (_CID, "PNP0C50" /* HID Protocol Device (I2C bus) */) // _CID: Compatible ID
  11759. Name (_UID, One) // _UID: Unique ID
  11760. Name (_S0W, 0x03) // _S0W: S0 Device Wake State
  11761. Method (_DSM, 4, NotSerialized) // _DSM: Device-Specific Method
  11762. {
  11763. If ((Arg0 == ToUUID ("3cdff6f7-4267-4555-ad05-b30a3d8938de") /* HID I2C Device */))
  11764. {
  11765. If ((Arg2 == Zero))
  11766. {
  11767. If ((Arg1 == One))
  11768. {
  11769. Return (Buffer (One)
  11770. {
  11771. 0x03 // .
  11772. })
  11773. }
  11774. Else
  11775. {
  11776. Return (Buffer (One)
  11777. {
  11778. 0x00 // .
  11779. })
  11780. }
  11781. }
  11782.  
  11783. If ((Arg2 == One))
  11784. {
  11785. Return (One)
  11786. }
  11787. }
  11788. Else
  11789. {
  11790. Return (Buffer (One)
  11791. {
  11792. 0x00 // .
  11793. })
  11794. }
  11795. }
  11796.  
  11797. Method (_STA, 0, NotSerialized) // _STA: Status
  11798. {
  11799. Return (0x0F)
  11800. }
  11801.  
  11802. Method (_CRS, 0, Serialized) // _CRS: Current Resource Settings
  11803. {
  11804. Name (SBFI, ResourceTemplate ()
  11805. {
  11806. I2cSerialBusV2 (0x0015, ControllerInitiated, 0x00061A80,
  11807. AddressingMode7Bit, "\\_SB.I2CD",
  11808. 0x00, ResourceConsumer, , Exclusive,
  11809. )
  11810. GpioInt (Level, ActiveLow, Exclusive, PullUp, 0x0000,
  11811. "\\_SB.GPIO", 0x00, ResourceConsumer, ,
  11812. )
  11813. { // Pin list
  11814. 0x0009
  11815. }
  11816. })
  11817. Return (SBFI) /* \_SB_.I2CD.ETPD._CRS.SBFI */
  11818. }
  11819. }
  11820. }
  11821.  
  11822. Scope (_SB.PCI0.GPP4.WLAN)
  11823. {
  11824. Name (WRDY, Package (0x02)
  11825. {
  11826. Zero,
  11827. Package (0x0C)
  11828. {
  11829. 0x07,
  11830. 0x80,
  11831. 0x80,
  11832. 0x80,
  11833. 0x80,
  11834. 0x80,
  11835. 0x80,
  11836. 0x80,
  11837. 0x80,
  11838. 0x80,
  11839. 0x80,
  11840. 0x80
  11841. }
  11842. })
  11843. Method (WRDS, 0, Serialized)
  11844. {
  11845. DerefOf (WRDY [One]) [One] = STXE /* \_SB_.STXE */
  11846. DerefOf (WRDY [One]) [0x02] = ST10 /* \_SB_.ST10 */
  11847. DerefOf (WRDY [One]) [0x03] = ST11 /* \_SB_.ST11 */
  11848. DerefOf (WRDY [One]) [0x04] = ST12 /* \_SB_.ST12 */
  11849. DerefOf (WRDY [One]) [0x05] = ST13 /* \_SB_.ST13 */
  11850. DerefOf (WRDY [One]) [0x06] = ST14 /* \_SB_.ST14 */
  11851. DerefOf (WRDY [One]) [0x07] = ST15 /* \_SB_.ST15 */
  11852. DerefOf (WRDY [One]) [0x08] = ST16 /* \_SB_.ST16 */
  11853. DerefOf (WRDY [One]) [0x09] = ST17 /* \_SB_.ST17 */
  11854. DerefOf (WRDY [One]) [0x0A] = ST18 /* \_SB_.ST18 */
  11855. DerefOf (WRDY [One]) [0x0B] = ST19 /* \_SB_.ST19 */
  11856. Return (WRDY) /* \_SB_.PCI0.GPP4.WLAN.WRDY */
  11857. }
  11858.  
  11859. Name (WGDY, Package (0x02)
  11860. {
  11861. Zero,
  11862. Package (0x13)
  11863. {
  11864. 0x07,
  11865. 0x80,
  11866. 0x80,
  11867. 0x80,
  11868. 0x80,
  11869. 0x80,
  11870. 0x80,
  11871. 0x80,
  11872. 0x80,
  11873. 0x80,
  11874. 0x80,
  11875. 0x80,
  11876. 0x80,
  11877. 0x80,
  11878. 0x80,
  11879. 0x80,
  11880. 0x80,
  11881. 0x80,
  11882. 0x80
  11883. }
  11884. })
  11885. Method (WGDS, 0, Serialized)
  11886. {
  11887. DerefOf (WGDY [One]) [One] = SD11 /* \_SB_.SD11 */
  11888. DerefOf (WGDY [One]) [0x02] = SD12 /* \_SB_.SD12 */
  11889. DerefOf (WGDY [One]) [0x03] = SD13 /* \_SB_.SD13 */
  11890. DerefOf (WGDY [One]) [0x04] = SD14 /* \_SB_.SD14 */
  11891. DerefOf (WGDY [One]) [0x05] = SD15 /* \_SB_.SD15 */
  11892. DerefOf (WGDY [One]) [0x06] = SD16 /* \_SB_.SD16 */
  11893. DerefOf (WGDY [One]) [0x07] = SD21 /* \_SB_.SD21 */
  11894. DerefOf (WGDY [One]) [0x08] = SD22 /* \_SB_.SD22 */
  11895. DerefOf (WGDY [One]) [0x09] = SD23 /* \_SB_.SD23 */
  11896. DerefOf (WGDY [One]) [0x0A] = SD24 /* \_SB_.SD24 */
  11897. DerefOf (WGDY [One]) [0x0B] = SD25 /* \_SB_.SD25 */
  11898. DerefOf (WGDY [One]) [0x0C] = SD26 /* \_SB_.SD26 */
  11899. DerefOf (WGDY [One]) [0x0D] = SD31 /* \_SB_.SD31 */
  11900. DerefOf (WGDY [One]) [0x0E] = SD32 /* \_SB_.SD32 */
  11901. DerefOf (WGDY [One]) [0x0F] = SD33 /* \_SB_.SD33 */
  11902. DerefOf (WGDY [One]) [0x10] = SD34 /* \_SB_.SD34 */
  11903. DerefOf (WGDY [One]) [0x11] = SD35 /* \_SB_.SD35 */
  11904. DerefOf (WGDY [One]) [0x12] = SD36 /* \_SB_.SD36 */
  11905. Return (WGDY) /* \_SB_.PCI0.GPP4.WLAN.WGDY */
  11906. }
  11907. }
  11908. }
  11909.  
  11910.  
Tags: GA401IV
Add Comment
Please, Sign In to add comment