Advertisement
Guest User

Untitled

a guest
Aug 8th, 2017
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 167.01 KB | None | 0 0
  1. /*
  2. * Intel ACPI Component Architecture
  3. * AML Disassembler version 20100331
  4. *
  5. * Disassembly of iASLpRO0mp.aml, Tue Aug 8 21:20:07 2017
  6. *
  7. *
  8. * Original Table Header:
  9. * Signature "DSDT"
  10. * Length 0x00004008 (16392)
  11. * Revision 0x01 **** ACPI 1.0, no 64-bit math support
  12. * Checksum 0x89
  13. * OEM ID "GBT "
  14. * OEM Table ID "GBTUACPI"
  15. * OEM Revision 0x00001000 (4096)
  16. * Compiler ID "INTL"
  17. * Compiler Version 0x20120420 (538051616)
  18. */
  19. DefinitionBlock ("iASLpRO0mp.aml", "DSDT", 1, "GBT ", "GBTUACPI", 0x00001000)
  20. {
  21. Scope (_PR)
  22. {
  23. Processor (CPU0, 0x00, 0x00000410, 0x06) {}
  24. Processor (CPU1, 0x01, 0x00000410, 0x06) {}
  25. Processor (CPU2, 0x02, 0x00000410, 0x06) {}
  26. Processor (CPU3, 0x03, 0x00000410, 0x06) {}
  27. }
  28.  
  29. Name (_S0, Package (0x04)
  30. {
  31. Zero,
  32. Zero,
  33. Zero,
  34. Zero
  35. })
  36. Name (SS1, Package (0x04)
  37. {
  38. One,
  39. Zero,
  40. Zero,
  41. Zero
  42. })
  43. Name (_S3, Package (0x04)
  44. {
  45. 0x05,
  46. Zero,
  47. Zero,
  48. Zero
  49. })
  50. Name (_S4, Package (0x04)
  51. {
  52. 0x06,
  53. Zero,
  54. Zero,
  55. Zero
  56. })
  57. Name (_S5, Package (0x04)
  58. {
  59. 0x07,
  60. Zero,
  61. Zero,
  62. Zero
  63. })
  64. Name (FLAG, Zero)
  65. Name (STAT, Zero)
  66. OperationRegion (SMOD, SystemMemory, 0x000FF840, One)
  67. Field (SMOD, ByteAcc, NoLock, Preserve)
  68. {
  69. , 7,
  70. SUSF, 1
  71. }
  72.  
  73. OperationRegion (DEBG, SystemIO, 0x80, One)
  74. Field (DEBG, ByteAcc, NoLock, Preserve)
  75. {
  76. DBG1, 8
  77. }
  78.  
  79. OperationRegion (RCRB, SystemMemory, 0xFED1C000, 0x4000)
  80. Field (RCRB, DWordAcc, Lock, Preserve)
  81. {
  82. Offset (0x3404),
  83. , 7,
  84. HPTF, 1
  85. }
  86.  
  87. OperationRegion (ELKM, SystemMemory, 0x000FFFEA, One)
  88. Field (ELKM, ByteAcc, NoLock, Preserve)
  89. {
  90. , 1,
  91. , 1,
  92. ELSO, 1,
  93. , 1,
  94. , 1,
  95. , 1,
  96. , 1
  97. }
  98.  
  99. OperationRegion (EXTM, SystemMemory, 0x000FF830, 0x10)
  100. Field (EXTM, WordAcc, NoLock, Preserve)
  101. {
  102. ROM1, 16,
  103. RMS1, 16,
  104. ROM2, 16,
  105. RMS2, 16,
  106. ROM3, 16,
  107. RMS3, 16,
  108. AMEM, 32
  109. }
  110.  
  111. OperationRegion (SMIC, SystemIO, 0xB2, One)
  112. Field (SMIC, ByteAcc, NoLock, Preserve)
  113. {
  114. SCP, 8
  115. }
  116.  
  117. OperationRegion (GP2C, SystemIO, 0x042C, 0x02)
  118. Field (GP2C, ByteAcc, NoLock, Preserve)
  119. {
  120. G2C1, 8,
  121. G2C2, 8
  122. }
  123.  
  124. OperationRegion (GBLE, SystemIO, 0x0421, One)
  125. Field (GBLE, ByteAcc, NoLock, Preserve)
  126. {
  127. ESMI, 8
  128. }
  129.  
  130. OperationRegion (APMP, SystemIO, 0xB2, 0x02)
  131. Field (APMP, ByteAcc, NoLock, Preserve)
  132. {
  133. APMC, 8,
  134. APMD, 8
  135. }
  136.  
  137. OperationRegion (AGPS, SystemIO, 0x0438, 0x04)
  138. Field (AGPS, ByteAcc, NoLock, Preserve)
  139. {
  140. GPSE, 16,
  141. GPSS, 16
  142. }
  143.  
  144. OperationRegion (GPCN, SystemIO, 0x0442, One)
  145. Field (GPCN, ByteAcc, NoLock, Preserve)
  146. {
  147. , 1,
  148. SWGC, 1,
  149. Offset (0x01)
  150. }
  151.  
  152. Name (OSFX, One)
  153. Name (OSFL, One)
  154. Method (STRC, 2, NotSerialized)
  155. {
  156. If (LNotEqual (SizeOf (Arg0), SizeOf (Arg1)))
  157. {
  158. Return (Zero)
  159. }
  160.  
  161. Add (SizeOf (Arg0), One, Local0)
  162. Name (BUF0, Buffer (Local0) {})
  163. Name (BUF1, Buffer (Local0) {})
  164. Store (Arg0, BUF0)
  165. Store (Arg1, BUF1)
  166. While (Local0)
  167. {
  168. Decrement (Local0)
  169. If (LNotEqual (DerefOf (Index (BUF0, Local0)), DerefOf (Index (
  170. BUF1, Local0))))
  171. {
  172. Return (Zero)
  173. }
  174. }
  175.  
  176. Return (One)
  177. }
  178.  
  179. OperationRegion (INFO, SystemMemory, 0x000FF840, 0x02)
  180. Field (INFO, ByteAcc, NoLock, Preserve)
  181. {
  182. KBDI, 1,
  183. RTCW, 1,
  184. PS2F, 1,
  185. IRFL, 2,
  186. DISE, 1,
  187. SSHU, 1
  188. }
  189.  
  190. Scope (\)
  191. {
  192. Name (PICF, Zero)
  193. Method (_PIC, 1, NotSerialized)
  194. {
  195. Store (Arg0, PICF)
  196. }
  197. }
  198.  
  199. Method (_PTS, 1, NotSerialized)
  200. {
  201. Or (Arg0, 0xF0, Local0)
  202. Store (Local0, DBG1)
  203. OSTP ()
  204. If (LEqual (Arg0, One)) {}
  205. If (LEqual (Arg0, 0x03)) {}
  206. If (LEqual (Arg0, 0x05))
  207. {
  208. Store (One, \_SB.PCI0.PX40.AG3E)
  209. Store (Zero, SLPE)
  210. Sleep (0x10)
  211. }
  212. Else
  213. {
  214. Store (Zero, \_SB.PCI0.PX40.AG3E)
  215. }
  216.  
  217. If (LEqual (Arg0, 0x04))
  218. {
  219. If (LNot (PICF))
  220. {
  221. Sleep (0x64)
  222. }
  223. }
  224. }
  225.  
  226. Method (_WAK, 1, NotSerialized)
  227. {
  228. Store (0xFF, DBG1)
  229. If (LEqual (Arg0, 0x03))
  230. {
  231. Store (0x8F, SCP)
  232. }
  233.  
  234. If (LEqual (Arg0, 0x04))
  235. {
  236. If (LEqual (OSFL, Zero))
  237. {
  238. If (LEqual (OSFX, 0x03))
  239. {
  240. Store (0x59, SMIP)
  241. }
  242. Else
  243. {
  244. Store (0x58, SMIP)
  245. }
  246. }
  247.  
  248. If (LEqual (OSFL, One))
  249. {
  250. Store (0x56, SMIP)
  251. }
  252.  
  253. If (LEqual (OSFL, 0x02))
  254. {
  255. Store (0x57, SMIP)
  256. }
  257.  
  258. If (LEqual (OSFX, 0x03))
  259. {
  260. Store (0x59, SMIP)
  261. }
  262. }
  263.  
  264. If (LEqual (Arg0, One)) {}
  265. If (OSFL)
  266. {
  267. Notify (\_SB.PWRB, 0x02)
  268. }
  269. Else
  270. {
  271. If (LEqual (RTCW, Zero))
  272. {
  273. Notify (\_SB.PWRB, 0x02)
  274. }
  275. }
  276.  
  277. Notify (\_SB.PCI0.UHC1, Zero)
  278. Notify (\_SB.PCI0.UHC2, Zero)
  279. Notify (\_SB.PCI0.UHC3, Zero)
  280. Notify (\_SB.PCI0.UHC4, Zero)
  281. Notify (\_SB.PCI0.UHC5, Zero)
  282. Notify (\_SB.PCI0.UHC6, Zero)
  283. Return (Package (0x02)
  284. {
  285. Zero,
  286. Zero
  287. })
  288. }
  289.  
  290. Scope (_SI)
  291. {
  292. Method (_MSG, 1, NotSerialized)
  293. {
  294. Store ("Local0", Local0)
  295. }
  296.  
  297. Method (_SST, 1, NotSerialized)
  298. {
  299. Store ("Local0", Local0)
  300. }
  301. }
  302.  
  303. Scope (_GPE)
  304. {
  305. Method (_L08, 0, NotSerialized)
  306. {
  307. Notify (\_SB.PCI0.PX40.UAR1, 0x02)
  308. }
  309.  
  310. Method (_L03, 0, NotSerialized)
  311. {
  312. Notify (\_SB.PCI0.UHC1, 0x02)
  313. Notify (\_SB.PWRB, 0x02)
  314. }
  315.  
  316. Method (_L04, 0, NotSerialized)
  317. {
  318. Notify (\_SB.PCI0.UHC2, 0x02)
  319. Notify (\_SB.PWRB, 0x02)
  320. }
  321.  
  322. Method (_L0C, 0, NotSerialized)
  323. {
  324. Notify (\_SB.PCI0.UHC3, 0x02)
  325. Notify (\_SB.PWRB, 0x02)
  326. }
  327.  
  328. Method (_L0E, 0, NotSerialized)
  329. {
  330. Notify (\_SB.PCI0.UHC4, 0x02)
  331. Notify (\_SB.PWRB, 0x02)
  332. Notify (\_SB.PCI0.US31, 0x02)
  333. Notify (\_SB.PWRB, 0x02)
  334. }
  335.  
  336. Method (_L05, 0, NotSerialized)
  337. {
  338. Notify (\_SB.PCI0.UHC5, 0x02)
  339. Notify (\_SB.PWRB, 0x02)
  340. }
  341.  
  342. Method (_L20, 0, NotSerialized)
  343. {
  344. Notify (\_SB.PCI0.UHC6, 0x02)
  345. Notify (\_SB.PWRB, 0x02)
  346. }
  347.  
  348. Method (_L0D, 0, NotSerialized)
  349. {
  350. Notify (\_SB.PCI0.EHC1, 0x02)
  351. Notify (\_SB.PCI0.EHC2, 0x02)
  352. Notify (\_SB.PWRB, 0x02)
  353. Notify (\_SB.PCI0.HDEF, 0x02)
  354. }
  355.  
  356. Method (_L02, 0, NotSerialized)
  357. {
  358. Store (Zero, SWGC)
  359. ShiftLeft (One, 0x0A, Local0)
  360. Store (0x02, Local2)
  361. Store (One, Local3)
  362. Store (Local3, Local4)
  363. While (LAnd (LNotEqual (Local4, Zero), LNotEqual (Local2, Zero)))
  364. {
  365. Sleep (One)
  366. Decrement (Local2)
  367. And (GPSS, Local0, Local1)
  368. If (LNotEqual (Local1, Local0))
  369. {
  370. Decrement (Local4)
  371. }
  372. Else
  373. {
  374. Store (Local3, Local4)
  375. }
  376. }
  377.  
  378. And (GPSS, Local0, GPSS)
  379. Or (GPSE, Local0, GPSE)
  380. }
  381.  
  382. Method (_L0B, 0, NotSerialized)
  383. {
  384. Notify (\_SB.PCI0.HUB0, 0x02)
  385. }
  386.  
  387. Method (_L09, 0, NotSerialized)
  388. {
  389. Notify (\_SB.PCI0.PEX0, 0x02)
  390. Notify (\_SB.PCI0.PEX1, 0x02)
  391. Notify (\_SB.PCI0.PEX2, 0x02)
  392. Notify (\_SB.PCI0.PEX3, 0x02)
  393. Notify (\_SB.PCI0.PEX4, 0x02)
  394. Notify (\_SB.PCI0.PEX5, 0x02)
  395. }
  396. }
  397.  
  398. Scope (_SB)
  399. {
  400. Device (PWRB)
  401. {
  402. Name (_CID, EisaId ("PNP0C0C"))
  403. Method (_STA, 0, NotSerialized)
  404. {
  405. Return (0x0B)
  406. }
  407. }
  408.  
  409. Device (PCI0)
  410. {
  411. Name (_HID, EisaId ("PNP0A03"))
  412. Name (_ADR, Zero)
  413. Name (_UID, One)
  414. Name (_BBN, Zero)
  415. Method (_S3D, 0, NotSerialized)
  416. {
  417. If (LEqual (OSFL, 0x02))
  418. {
  419. Return (0x02)
  420. }
  421. Else
  422. {
  423. Return (0x03)
  424. }
  425. }
  426.  
  427. Method (_STA, 0, NotSerialized)
  428. {
  429. Return (0x0F)
  430. }
  431.  
  432. Method (_CRS, 0, NotSerialized)
  433. {
  434. Name (BUF0, ResourceTemplate ()
  435. {
  436. WordBusNumber (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode,
  437. 0x0000, // Granularity
  438. 0x0000, // Range Minimum
  439. 0x003F, // Range Maximum
  440. 0x0000, // Translation Offset
  441. 0x0040, // Length
  442. ,, )
  443. IO (Decode16,
  444. 0x0CF8, // Range Minimum
  445. 0x0CF8, // Range Maximum
  446. 0x01, // Alignment
  447. 0x08, // Length
  448. )
  449. WordIO (ResourceProducer, MinFixed, MaxFixed, PosDecode, EntireRange,
  450. 0x0000, // Granularity
  451. 0x0000, // Range Minimum
  452. 0x0CF7, // Range Maximum
  453. 0x0000, // Translation Offset
  454. 0x0CF8, // Length
  455. ,, , TypeStatic)
  456. WordIO (ResourceProducer, MinFixed, MaxFixed, PosDecode, EntireRange,
  457. 0x0000, // Granularity
  458. 0x0D00, // Range Minimum
  459. 0xFFFF, // Range Maximum
  460. 0x0000, // Translation Offset
  461. 0xF300, // Length
  462. ,, , TypeStatic)
  463. DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
  464. 0x00000000, // Granularity
  465. 0x000A0000, // Range Minimum
  466. 0x000BFFFF, // Range Maximum
  467. 0x00000000, // Translation Offset
  468. 0x00020000, // Length
  469. ,, , AddressRangeMemory, TypeStatic)
  470. DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
  471. 0x00000000, // Granularity
  472. 0x000C0000, // Range Minimum
  473. 0x000DFFFF, // Range Maximum
  474. 0x00000000, // Translation Offset
  475. 0x00020000, // Length
  476. ,, , AddressRangeMemory, TypeStatic)
  477. DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
  478. 0x00000000, // Granularity
  479. 0x00100000, // Range Minimum
  480. 0xFEBFFFFF, // Range Maximum
  481. 0x00000000, // Translation Offset
  482. 0xFEB00000, // Length
  483. ,, _Y00, AddressRangeMemory, TypeStatic)
  484. })
  485. CreateDWordField (BUF0, \_SB.PCI0._CRS._Y00._MIN, TCMM)
  486. CreateDWordField (BUF0, \_SB.PCI0._CRS._Y00._LEN, TOMM)
  487. Add (AMEM, 0x00010000, TCMM)
  488. Add (TCMM, 0x00010000, TCMM)
  489. Subtract (0xFEC00000, TCMM, TOMM)
  490. Return (BUF0)
  491. }
  492.  
  493. Name (PICM, Package (0x16)
  494. {
  495. Package (0x04)
  496. {
  497. 0x001BFFFF,
  498. Zero,
  499. LNK0,
  500. Zero
  501. },
  502.  
  503. Package (0x04)
  504. {
  505. 0x0001FFFF,
  506. Zero,
  507. LNKA,
  508. Zero
  509. },
  510.  
  511. Package (0x04)
  512. {
  513. 0x0001FFFF,
  514. One,
  515. LNKB,
  516. Zero
  517. },
  518.  
  519. Package (0x04)
  520. {
  521. 0x0001FFFF,
  522. 0x02,
  523. LNKC,
  524. Zero
  525. },
  526.  
  527. Package (0x04)
  528. {
  529. 0x0001FFFF,
  530. 0x03,
  531. LNKD,
  532. Zero
  533. },
  534.  
  535. Package (0x04)
  536. {
  537. 0x001CFFFF,
  538. Zero,
  539. LNKA,
  540. Zero
  541. },
  542.  
  543. Package (0x04)
  544. {
  545. 0x001CFFFF,
  546. One,
  547. LNKB,
  548. Zero
  549. },
  550.  
  551. Package (0x04)
  552. {
  553. 0x001CFFFF,
  554. 0x02,
  555. LNKC,
  556. Zero
  557. },
  558.  
  559. Package (0x04)
  560. {
  561. 0x001CFFFF,
  562. 0x03,
  563. LNKD,
  564. Zero
  565. },
  566.  
  567. Package (0x04)
  568. {
  569. 0x001CFFFF,
  570. Zero,
  571. LNKA,
  572. Zero
  573. },
  574.  
  575. Package (0x04)
  576. {
  577. 0x001CFFFF,
  578. One,
  579. LNKB,
  580. Zero
  581. },
  582.  
  583. Package (0x04)
  584. {
  585. 0x001DFFFF,
  586. Zero,
  587. LNK1,
  588. Zero
  589. },
  590.  
  591. Package (0x04)
  592. {
  593. 0x001DFFFF,
  594. One,
  595. LNKD,
  596. Zero
  597. },
  598.  
  599. Package (0x04)
  600. {
  601. 0x001DFFFF,
  602. 0x02,
  603. LNKC,
  604. Zero
  605. },
  606.  
  607. Package (0x04)
  608. {
  609. 0x001DFFFF,
  610. 0x03,
  611. LNKA,
  612. Zero
  613. },
  614.  
  615. Package (0x04)
  616. {
  617. 0x001FFFFF,
  618. One,
  619. LNKD,
  620. Zero
  621. },
  622.  
  623. Package (0x04)
  624. {
  625. 0x001FFFFF,
  626. One,
  627. LNKD,
  628. Zero
  629. },
  630.  
  631. Package (0x04)
  632. {
  633. 0x001FFFFF,
  634. 0x02,
  635. LNKC,
  636. Zero
  637. },
  638.  
  639. Package (0x04)
  640. {
  641. 0x001AFFFF,
  642. Zero,
  643. LNKA,
  644. Zero
  645. },
  646.  
  647. Package (0x04)
  648. {
  649. 0x001AFFFF,
  650. One,
  651. LNKF,
  652. Zero
  653. },
  654.  
  655. Package (0x04)
  656. {
  657. 0x001AFFFF,
  658. 0x02,
  659. LNKC,
  660. Zero
  661. },
  662.  
  663. Package (0x04)
  664. {
  665. 0x001AFFFF,
  666. 0x02,
  667. LNKC,
  668. Zero
  669. }
  670. })
  671. Name (APIC, Package (0x16)
  672. {
  673. Package (0x04)
  674. {
  675. 0x001BFFFF,
  676. Zero,
  677. Zero,
  678. 0x16
  679. },
  680.  
  681. Package (0x04)
  682. {
  683. 0x0001FFFF,
  684. Zero,
  685. Zero,
  686. 0x10
  687. },
  688.  
  689. Package (0x04)
  690. {
  691. 0x0001FFFF,
  692. One,
  693. Zero,
  694. 0x11
  695. },
  696.  
  697. Package (0x04)
  698. {
  699. 0x0001FFFF,
  700. 0x02,
  701. Zero,
  702. 0x12
  703. },
  704.  
  705. Package (0x04)
  706. {
  707. 0x0001FFFF,
  708. 0x03,
  709. Zero,
  710. 0x13
  711. },
  712.  
  713. Package (0x04)
  714. {
  715. 0x001CFFFF,
  716. Zero,
  717. Zero,
  718. 0x10
  719. },
  720.  
  721. Package (0x04)
  722. {
  723. 0x001CFFFF,
  724. One,
  725. Zero,
  726. 0x11
  727. },
  728.  
  729. Package (0x04)
  730. {
  731. 0x001CFFFF,
  732. 0x02,
  733. Zero,
  734. 0x12
  735. },
  736.  
  737. Package (0x04)
  738. {
  739. 0x001CFFFF,
  740. 0x03,
  741. Zero,
  742. 0x13
  743. },
  744.  
  745. Package (0x04)
  746. {
  747. 0x001CFFFF,
  748. Zero,
  749. Zero,
  750. 0x10
  751. },
  752.  
  753. Package (0x04)
  754. {
  755. 0x001CFFFF,
  756. One,
  757. Zero,
  758. 0x11
  759. },
  760.  
  761. Package (0x04)
  762. {
  763. 0x001DFFFF,
  764. Zero,
  765. Zero,
  766. 0x17
  767. },
  768.  
  769. Package (0x04)
  770. {
  771. 0x001DFFFF,
  772. One,
  773. Zero,
  774. 0x13
  775. },
  776.  
  777. Package (0x04)
  778. {
  779. 0x001DFFFF,
  780. 0x02,
  781. Zero,
  782. 0x12
  783. },
  784.  
  785. Package (0x04)
  786. {
  787. 0x001DFFFF,
  788. 0x03,
  789. Zero,
  790. 0x10
  791. },
  792.  
  793. Package (0x04)
  794. {
  795. 0x001FFFFF,
  796. One,
  797. Zero,
  798. 0x13
  799. },
  800.  
  801. Package (0x04)
  802. {
  803. 0x001FFFFF,
  804. One,
  805. Zero,
  806. 0x13
  807. },
  808.  
  809. Package (0x04)
  810. {
  811. 0x001FFFFF,
  812. 0x02,
  813. Zero,
  814. 0x12
  815. },
  816.  
  817. Package (0x04)
  818. {
  819. 0x001AFFFF,
  820. Zero,
  821. Zero,
  822. 0x10
  823. },
  824.  
  825. Package (0x04)
  826. {
  827. 0x001AFFFF,
  828. One,
  829. Zero,
  830. 0x15
  831. },
  832.  
  833. Package (0x04)
  834. {
  835. 0x001AFFFF,
  836. 0x02,
  837. Zero,
  838. 0x12
  839. },
  840.  
  841. Package (0x04)
  842. {
  843. 0x001AFFFF,
  844. 0x02,
  845. Zero,
  846. 0x12
  847. }
  848. })
  849. Method (_PRT, 0, NotSerialized)
  850. {
  851. If (LNot (PICF))
  852. {
  853. Return (PICM)
  854. }
  855. Else
  856. {
  857. Return (APIC)
  858. }
  859. }
  860.  
  861. Device (PEX0)
  862. {
  863. Name (_ADR, 0x001C0000)
  864. Method (_STA, 0, NotSerialized)
  865. {
  866. Return (0x0F)
  867. }
  868.  
  869. Method (_PRW, 0, NotSerialized)
  870. {
  871. Return (Package (0x02)
  872. {
  873. 0x09,
  874. 0x05
  875. })
  876. }
  877.  
  878. Name (PIC0, Package (0x04)
  879. {
  880. Package (0x04)
  881. {
  882. 0xFFFF,
  883. Zero,
  884. LNKA,
  885. Zero
  886. },
  887.  
  888. Package (0x04)
  889. {
  890. 0xFFFF,
  891. One,
  892. LNKB,
  893. Zero
  894. },
  895.  
  896. Package (0x04)
  897. {
  898. 0xFFFF,
  899. 0x02,
  900. LNKC,
  901. Zero
  902. },
  903.  
  904. Package (0x04)
  905. {
  906. 0xFFFF,
  907. 0x03,
  908. LNKD,
  909. Zero
  910. }
  911. })
  912. Name (API0, Package (0x04)
  913. {
  914. Package (0x04)
  915. {
  916. 0xFFFF,
  917. Zero,
  918. Zero,
  919. 0x10
  920. },
  921.  
  922. Package (0x04)
  923. {
  924. 0xFFFF,
  925. One,
  926. Zero,
  927. 0x11
  928. },
  929.  
  930. Package (0x04)
  931. {
  932. 0xFFFF,
  933. 0x02,
  934. Zero,
  935. 0x12
  936. },
  937.  
  938. Package (0x04)
  939. {
  940. 0xFFFF,
  941. 0x03,
  942. Zero,
  943. 0x13
  944. }
  945. })
  946. Method (_PRT, 0, NotSerialized)
  947. {
  948. If (LNot (PICF))
  949. {
  950. Return (PIC0)
  951. }
  952. Else
  953. {
  954. Return (API0)
  955. }
  956. }
  957. }
  958.  
  959. Device (PEX1)
  960. {
  961. Name (_ADR, 0x001C0001)
  962. Method (_STA, 0, NotSerialized)
  963. {
  964. Return (0x0F)
  965. }
  966.  
  967. Method (_PRW, 0, NotSerialized)
  968. {
  969. Return (Package (0x02)
  970. {
  971. 0x09,
  972. 0x05
  973. })
  974. }
  975.  
  976. Name (PIC1, Package (0x04)
  977. {
  978. Package (0x04)
  979. {
  980. 0xFFFF,
  981. Zero,
  982. LNKB,
  983. Zero
  984. },
  985.  
  986. Package (0x04)
  987. {
  988. 0xFFFF,
  989. One,
  990. LNKC,
  991. Zero
  992. },
  993.  
  994. Package (0x04)
  995. {
  996. 0xFFFF,
  997. 0x02,
  998. LNKD,
  999. Zero
  1000. },
  1001.  
  1002. Package (0x04)
  1003. {
  1004. 0xFFFF,
  1005. 0x03,
  1006. LNKA,
  1007. Zero
  1008. }
  1009. })
  1010. Name (API1, Package (0x04)
  1011. {
  1012. Package (0x04)
  1013. {
  1014. 0xFFFF,
  1015. Zero,
  1016. Zero,
  1017. 0x11
  1018. },
  1019.  
  1020. Package (0x04)
  1021. {
  1022. 0xFFFF,
  1023. One,
  1024. Zero,
  1025. 0x12
  1026. },
  1027.  
  1028. Package (0x04)
  1029. {
  1030. 0xFFFF,
  1031. 0x02,
  1032. Zero,
  1033. 0x13
  1034. },
  1035.  
  1036. Package (0x04)
  1037. {
  1038. 0xFFFF,
  1039. 0x03,
  1040. Zero,
  1041. 0x10
  1042. }
  1043. })
  1044. Method (_PRT, 0, NotSerialized)
  1045. {
  1046. If (LNot (PICF))
  1047. {
  1048. Return (PIC1)
  1049. }
  1050. Else
  1051. {
  1052. Return (API1)
  1053. }
  1054. }
  1055. }
  1056.  
  1057. Device (PEX2)
  1058. {
  1059. Name (_ADR, 0x001C0002)
  1060. Method (_STA, 0, NotSerialized)
  1061. {
  1062. Return (0x0F)
  1063. }
  1064.  
  1065. Method (_PRW, 0, NotSerialized)
  1066. {
  1067. Return (Package (0x02)
  1068. {
  1069. 0x09,
  1070. 0x05
  1071. })
  1072. }
  1073.  
  1074. Name (PIC2, Package (0x04)
  1075. {
  1076. Package (0x04)
  1077. {
  1078. 0xFFFF,
  1079. Zero,
  1080. LNKC,
  1081. Zero
  1082. },
  1083.  
  1084. Package (0x04)
  1085. {
  1086. 0xFFFF,
  1087. One,
  1088. LNKD,
  1089. Zero
  1090. },
  1091.  
  1092. Package (0x04)
  1093. {
  1094. 0xFFFF,
  1095. 0x02,
  1096. LNKA,
  1097. Zero
  1098. },
  1099.  
  1100. Package (0x04)
  1101. {
  1102. 0xFFFF,
  1103. 0x03,
  1104. LNKB,
  1105. Zero
  1106. }
  1107. })
  1108. Name (API2, Package (0x04)
  1109. {
  1110. Package (0x04)
  1111. {
  1112. 0xFFFF,
  1113. Zero,
  1114. Zero,
  1115. 0x12
  1116. },
  1117.  
  1118. Package (0x04)
  1119. {
  1120. 0xFFFF,
  1121. One,
  1122. Zero,
  1123. 0x13
  1124. },
  1125.  
  1126. Package (0x04)
  1127. {
  1128. 0xFFFF,
  1129. 0x02,
  1130. Zero,
  1131. 0x10
  1132. },
  1133.  
  1134. Package (0x04)
  1135. {
  1136. 0xFFFF,
  1137. 0x03,
  1138. Zero,
  1139. 0x11
  1140. }
  1141. })
  1142. Method (_PRT, 0, NotSerialized)
  1143. {
  1144. If (LNot (PICF))
  1145. {
  1146. Return (PIC2)
  1147. }
  1148. Else
  1149. {
  1150. Return (API2)
  1151. }
  1152. }
  1153. }
  1154.  
  1155. Device (PEX3)
  1156. {
  1157. Name (_ADR, 0x001C0003)
  1158. Method (_STA, 0, NotSerialized)
  1159. {
  1160. Return (0x0F)
  1161. }
  1162.  
  1163. Method (_PRW, 0, NotSerialized)
  1164. {
  1165. Return (Package (0x02)
  1166. {
  1167. 0x09,
  1168. 0x05
  1169. })
  1170. }
  1171.  
  1172. Name (PIC3, Package (0x04)
  1173. {
  1174. Package (0x04)
  1175. {
  1176. 0xFFFF,
  1177. Zero,
  1178. LNKD,
  1179. Zero
  1180. },
  1181.  
  1182. Package (0x04)
  1183. {
  1184. 0xFFFF,
  1185. One,
  1186. LNKA,
  1187. Zero
  1188. },
  1189.  
  1190. Package (0x04)
  1191. {
  1192. 0xFFFF,
  1193. 0x02,
  1194. LNKB,
  1195. Zero
  1196. },
  1197.  
  1198. Package (0x04)
  1199. {
  1200. 0xFFFF,
  1201. 0x03,
  1202. LNKC,
  1203. Zero
  1204. }
  1205. })
  1206. Name (API3, Package (0x04)
  1207. {
  1208. Package (0x04)
  1209. {
  1210. 0xFFFF,
  1211. Zero,
  1212. Zero,
  1213. 0x13
  1214. },
  1215.  
  1216. Package (0x04)
  1217. {
  1218. 0xFFFF,
  1219. One,
  1220. Zero,
  1221. 0x10
  1222. },
  1223.  
  1224. Package (0x04)
  1225. {
  1226. 0xFFFF,
  1227. 0x02,
  1228. Zero,
  1229. 0x11
  1230. },
  1231.  
  1232. Package (0x04)
  1233. {
  1234. 0xFFFF,
  1235. 0x03,
  1236. Zero,
  1237. 0x12
  1238. }
  1239. })
  1240. Method (_PRT, 0, NotSerialized)
  1241. {
  1242. If (LNot (PICF))
  1243. {
  1244. Return (PIC3)
  1245. }
  1246. Else
  1247. {
  1248. Return (API3)
  1249. }
  1250. }
  1251. }
  1252.  
  1253. Device (PEX4)
  1254. {
  1255. Name (_ADR, 0x001C0004)
  1256. Method (_STA, 0, NotSerialized)
  1257. {
  1258. Return (0x0F)
  1259. }
  1260.  
  1261. Method (_PRW, 0, NotSerialized)
  1262. {
  1263. Return (Package (0x02)
  1264. {
  1265. 0x09,
  1266. 0x05
  1267. })
  1268. }
  1269.  
  1270. Name (PIC4, Package (0x04)
  1271. {
  1272. Package (0x04)
  1273. {
  1274. 0xFFFF,
  1275. Zero,
  1276. LNKA,
  1277. Zero
  1278. },
  1279.  
  1280. Package (0x04)
  1281. {
  1282. 0xFFFF,
  1283. One,
  1284. LNKB,
  1285. Zero
  1286. },
  1287.  
  1288. Package (0x04)
  1289. {
  1290. 0xFFFF,
  1291. 0x02,
  1292. LNKC,
  1293. Zero
  1294. },
  1295.  
  1296. Package (0x04)
  1297. {
  1298. 0xFFFF,
  1299. 0x03,
  1300. LNKD,
  1301. Zero
  1302. }
  1303. })
  1304. Name (API4, Package (0x04)
  1305. {
  1306. Package (0x04)
  1307. {
  1308. 0xFFFF,
  1309. Zero,
  1310. Zero,
  1311. 0x10
  1312. },
  1313.  
  1314. Package (0x04)
  1315. {
  1316. 0xFFFF,
  1317. One,
  1318. Zero,
  1319. 0x11
  1320. },
  1321.  
  1322. Package (0x04)
  1323. {
  1324. 0xFFFF,
  1325. 0x02,
  1326. Zero,
  1327. 0x12
  1328. },
  1329.  
  1330. Package (0x04)
  1331. {
  1332. 0xFFFF,
  1333. 0x03,
  1334. Zero,
  1335. 0x13
  1336. }
  1337. })
  1338. Method (_PRT, 0, NotSerialized)
  1339. {
  1340. If (LNot (PICF))
  1341. {
  1342. Return (PIC4)
  1343. }
  1344. Else
  1345. {
  1346. Return (API4)
  1347. }
  1348. }
  1349. }
  1350.  
  1351. Device (PEX5)
  1352. {
  1353. Name (_ADR, 0x001C0005)
  1354. Method (_STA, 0, NotSerialized)
  1355. {
  1356. Return (0x0F)
  1357. }
  1358.  
  1359. Method (_PRW, 0, NotSerialized)
  1360. {
  1361. Return (Package (0x02)
  1362. {
  1363. 0x09,
  1364. 0x05
  1365. })
  1366. }
  1367.  
  1368. Name (PIC5, Package (0x04)
  1369. {
  1370. Package (0x04)
  1371. {
  1372. 0xFFFF,
  1373. Zero,
  1374. LNKB,
  1375. Zero
  1376. },
  1377.  
  1378. Package (0x04)
  1379. {
  1380. 0xFFFF,
  1381. One,
  1382. LNKC,
  1383. Zero
  1384. },
  1385.  
  1386. Package (0x04)
  1387. {
  1388. 0xFFFF,
  1389. 0x02,
  1390. LNKD,
  1391. Zero
  1392. },
  1393.  
  1394. Package (0x04)
  1395. {
  1396. 0xFFFF,
  1397. 0x03,
  1398. LNKA,
  1399. Zero
  1400. }
  1401. })
  1402. Name (API5, Package (0x04)
  1403. {
  1404. Package (0x04)
  1405. {
  1406. 0xFFFF,
  1407. Zero,
  1408. Zero,
  1409. 0x11
  1410. },
  1411.  
  1412. Package (0x04)
  1413. {
  1414. 0xFFFF,
  1415. One,
  1416. Zero,
  1417. 0x12
  1418. },
  1419.  
  1420. Package (0x04)
  1421. {
  1422. 0xFFFF,
  1423. 0x02,
  1424. Zero,
  1425. 0x13
  1426. },
  1427.  
  1428. Package (0x04)
  1429. {
  1430. 0xFFFF,
  1431. 0x03,
  1432. Zero,
  1433. 0x10
  1434. }
  1435. })
  1436. Method (_PRT, 0, NotSerialized)
  1437. {
  1438. If (LNot (PICF))
  1439. {
  1440. Return (PIC5)
  1441. }
  1442. Else
  1443. {
  1444. Return (API5)
  1445. }
  1446. }
  1447. }
  1448.  
  1449. Device (PEX3.JMB0)
  1450. {
  1451. Name (_ADR, Zero)
  1452. Name (PIOT, Package (0x05)
  1453. {
  1454. 0x0258,
  1455. 0x0186,
  1456. 0x014A,
  1457. 0xB4,
  1458. 0x78
  1459. })
  1460. Name (MDMA, Package (0x03)
  1461. {
  1462. 0x01E0,
  1463. 0x96,
  1464. 0x78
  1465. })
  1466. Name (UDMA, Package (0x07)
  1467. {
  1468. 0x78,
  1469. 0x50,
  1470. 0x3C,
  1471. 0x28,
  1472. 0x1E,
  1473. 0x14,
  1474. 0x0F
  1475. })
  1476. OperationRegion (CF40, PCI_Config, 0x40, 0x04)
  1477. Field (CF40, ByteAcc, NoLock, Preserve)
  1478. {
  1479. , 3,
  1480. CAB0, 1,
  1481. , 18,
  1482. SWAP, 1,
  1483. CHN0, 1,
  1484. Offset (0x04)
  1485. }
  1486.  
  1487. OperationRegion (CF80, PCI_Config, 0x80, 0x04)
  1488. Field (CF80, ByteAcc, NoLock, Preserve)
  1489. {
  1490. , 19,
  1491. CAB1, 1,
  1492. Offset (0x03),
  1493. CHN1, 1,
  1494. Offset (0x04)
  1495. }
  1496.  
  1497. Name (IDEB, Buffer (0x14) {})
  1498. CreateDWordField (IDEB, Zero, GTM0)
  1499. CreateDWordField (IDEB, 0x04, GTM1)
  1500. CreateDWordField (IDEB, 0x08, GTM2)
  1501. CreateDWordField (IDEB, 0x0C, GTM3)
  1502. CreateDWordField (IDEB, 0x10, GTM4)
  1503. Name (PMIO, 0x04)
  1504. Name (PMDM, 0x06)
  1505. Name (PSIO, 0x04)
  1506. Name (PSDM, 0x06)
  1507. Name (SMIO, 0x04)
  1508. Name (SMDM, 0x06)
  1509. Name (SSIO, 0x04)
  1510. Name (SSDM, 0x06)
  1511. Name (MODP, 0x05)
  1512. Name (MODS, 0x05)
  1513. Device (SDE0)
  1514. {
  1515. Name (_ADR, Zero)
  1516. Method (_GTM, 0, NotSerialized)
  1517. {
  1518. Store (DerefOf (Index (PIOT, PMIO)), Local0)
  1519. Store (DerefOf (Index (PIOT, PSIO)), Local2)
  1520. Store (0x1A, Local4)
  1521. If (LAnd (MODP, One))
  1522. {
  1523. Store (DerefOf (Index (UDMA, PMDM)), Local1)
  1524. If (LGreater (PMDM, 0x02))
  1525. {
  1526. If (LAnd (LNotEqual (SWAP, One), LEqual (CHN1, One)))
  1527. {
  1528. If (CAB1)
  1529. {
  1530. Store (0x02, PMDM)
  1531. Store (DerefOf (Index (UDMA, PMDM)), Local1)
  1532. }
  1533. }
  1534.  
  1535. If (LAnd (LEqual (SWAP, One), LEqual (CHN0, One)))
  1536. {
  1537. If (CAB0)
  1538. {
  1539. Store (0x02, PMDM)
  1540. Store (DerefOf (Index (UDMA, PMDM)), Local1)
  1541. }
  1542. }
  1543. }
  1544.  
  1545. Or (Local4, One, Local4)
  1546. }
  1547. Else
  1548. {
  1549. Store (DerefOf (Index (MDMA, PMDM)), Local1)
  1550. }
  1551.  
  1552. If (LAnd (MODP, 0x04))
  1553. {
  1554. Store (DerefOf (Index (UDMA, PSDM)), Local3)
  1555. If (LGreater (PSDM, 0x02))
  1556. {
  1557. If (LAnd (LNotEqual (SWAP, One), LEqual (CHN1, One)))
  1558. {
  1559. If (CAB1)
  1560. {
  1561. Store (0x02, PSDM)
  1562. Store (DerefOf (Index (UDMA, PSDM)), Local3)
  1563. }
  1564. }
  1565.  
  1566. If (LAnd (LEqual (SWAP, One), LEqual (CHN0, One)))
  1567. {
  1568. If (CAB0)
  1569. {
  1570. Store (0x02, PSDM)
  1571. Store (DerefOf (Index (UDMA, PSDM)), Local3)
  1572. }
  1573. }
  1574. }
  1575.  
  1576. Or (Local4, 0x04, Local4)
  1577. }
  1578. Else
  1579. {
  1580. Store (DerefOf (Index (MDMA, PSDM)), Local3)
  1581. }
  1582.  
  1583. Store (Local0, GTM0)
  1584. Store (Local1, GTM1)
  1585. Store (Local2, GTM2)
  1586. Store (Local3, GTM3)
  1587. Store (Local4, GTM4)
  1588. Return (IDEB)
  1589. }
  1590.  
  1591. Method (_STM, 3, NotSerialized)
  1592. {
  1593. Store (Arg0, IDEB)
  1594. Store (GTM0, Local0)
  1595. Store (GTM1, Local1)
  1596. Store (GTM2, Local2)
  1597. Store (GTM3, Local3)
  1598. Store (GTM4, Local4)
  1599. If (LAnd (LNotEqual (Local0, Ones), LNotEqual (Local0, Zero)))
  1600. {
  1601. Store (Match (PIOT, MEQ, Local0, MTR, Zero, Zero), PMIO)
  1602. }
  1603.  
  1604. If (LAnd (LNotEqual (Local1, Ones), LNotEqual (Local1, Zero)))
  1605. {
  1606. If (LAnd (Local4, One))
  1607. {
  1608. Store (Match (UDMA, MEQ, Local1, MTR, Zero, Zero), PMDM)
  1609. }
  1610. Else
  1611. {
  1612. Store (Match (MDMA, MEQ, Local1, MTR, Zero, Zero), PMDM)
  1613. }
  1614. }
  1615.  
  1616. If (LAnd (LNotEqual (Local2, Ones), LNotEqual (Local2, Zero)))
  1617. {
  1618. Store (Match (PIOT, MEQ, Local2, MTR, Zero, Zero), PSIO)
  1619. }
  1620.  
  1621. If (LAnd (LNotEqual (Local3, Ones), LNotEqual (Local3, Zero)))
  1622. {
  1623. If (LAnd (Local4, 0x04))
  1624. {
  1625. Store (Match (UDMA, MEQ, Local3, MTR, Zero, Zero), PSDM)
  1626. }
  1627. Else
  1628. {
  1629. Store (Match (MDMA, MEQ, Local3, MTR, Zero, Zero), PSDM)
  1630. }
  1631. }
  1632.  
  1633. Store (Local4, MODP)
  1634. }
  1635.  
  1636. Device (DRV0)
  1637. {
  1638. Name (_ADR, Zero)
  1639. Method (_GTF, 0, NotSerialized)
  1640. {
  1641. Store (Buffer (0x07)
  1642. {
  1643. 0x03, 0x00, 0x00, 0x00, 0x00, 0xA0, 0xEF
  1644. }, Local0)
  1645. Store (Buffer (0x07)
  1646. {
  1647. 0x03, 0x00, 0x00, 0x00, 0x00, 0xA0, 0xEF
  1648. }, Local1)
  1649. CreateByteField (Local0, One, PIOM)
  1650. CreateByteField (Local1, One, DMAM)
  1651. Store (PMIO, PIOM)
  1652. Or (PIOM, 0x08, PIOM)
  1653. Store (PMDM, DMAM)
  1654. If (LAnd (MODP, One))
  1655. {
  1656. Or (DMAM, 0x40, DMAM)
  1657. }
  1658. Else
  1659. {
  1660. Or (DMAM, 0x20, DMAM)
  1661. }
  1662.  
  1663. Concatenate (Local0, Local1, Local2)
  1664. Return (Local2)
  1665. }
  1666. }
  1667.  
  1668. Device (DRV1)
  1669. {
  1670. Name (_ADR, One)
  1671. Method (_GTF, 0, NotSerialized)
  1672. {
  1673. Store (Buffer (0x07)
  1674. {
  1675. 0x03, 0x00, 0x00, 0x00, 0x00, 0xB0, 0xEF
  1676. }, Local0)
  1677. Store (Buffer (0x07)
  1678. {
  1679. 0x03, 0x00, 0x00, 0x00, 0x00, 0xB0, 0xEF
  1680. }, Local1)
  1681. CreateByteField (Local0, One, PIOM)
  1682. CreateByteField (Local1, One, DMAM)
  1683. Store (PSIO, PIOM)
  1684. Or (PIOM, 0x08, PIOM)
  1685. Store (PSDM, DMAM)
  1686. If (LAnd (MODP, 0x04))
  1687. {
  1688. Or (DMAM, 0x40, DMAM)
  1689. }
  1690. Else
  1691. {
  1692. Or (DMAM, 0x20, DMAM)
  1693. }
  1694.  
  1695. Concatenate (Local0, Local1, Local2)
  1696. Return (Local2)
  1697. }
  1698. }
  1699. }
  1700.  
  1701. Device (SDE1)
  1702. {
  1703. Name (_ADR, One)
  1704. Method (_GTM, 0, NotSerialized)
  1705. {
  1706. Store (DerefOf (Index (PIOT, SMIO)), Local0)
  1707. Store (DerefOf (Index (PIOT, SSIO)), Local2)
  1708. Store (0x1A, Local4)
  1709. If (LAnd (MODS, One))
  1710. {
  1711. Store (DerefOf (Index (UDMA, SMDM)), Local1)
  1712. If (LGreater (SMDM, 0x02))
  1713. {
  1714. If (LAnd (LNotEqual (SWAP, One), LEqual (CHN0, One)))
  1715. {
  1716. If (CAB0)
  1717. {
  1718. Store (0x02, SMDM)
  1719. Store (DerefOf (Index (UDMA, SMDM)), Local1)
  1720. }
  1721. }
  1722.  
  1723. If (LAnd (LEqual (SWAP, One), LEqual (CHN1, One)))
  1724. {
  1725. If (CAB1)
  1726. {
  1727. Store (0x02, SMDM)
  1728. Store (DerefOf (Index (UDMA, SMDM)), Local1)
  1729. }
  1730. }
  1731. }
  1732.  
  1733. Or (Local4, One, Local4)
  1734. }
  1735. Else
  1736. {
  1737. Store (DerefOf (Index (MDMA, SMDM)), Local1)
  1738. }
  1739.  
  1740. If (LAnd (MODS, 0x04))
  1741. {
  1742. Store (DerefOf (Index (UDMA, SSDM)), Local3)
  1743. If (LGreater (SSDM, 0x02))
  1744. {
  1745. If (LAnd (LNotEqual (SWAP, One), LEqual (CHN0, One)))
  1746. {
  1747. If (CAB0)
  1748. {
  1749. Store (0x02, SSDM)
  1750. Store (DerefOf (Index (UDMA, SSDM)), Local3)
  1751. }
  1752. }
  1753.  
  1754. If (LAnd (LEqual (SWAP, One), LEqual (CHN1, One)))
  1755. {
  1756. If (CAB1)
  1757. {
  1758. Store (0x02, SSDM)
  1759. Store (DerefOf (Index (UDMA, SSDM)), Local3)
  1760. }
  1761. }
  1762. }
  1763.  
  1764. Or (Local4, 0x04, Local4)
  1765. }
  1766. Else
  1767. {
  1768. Store (DerefOf (Index (MDMA, SSDM)), Local3)
  1769. }
  1770.  
  1771. Store (Local0, GTM0)
  1772. Store (Local1, GTM1)
  1773. Store (Local2, GTM2)
  1774. Store (Local3, GTM3)
  1775. Store (Local4, GTM4)
  1776. Return (IDEB)
  1777. }
  1778.  
  1779. Method (_STM, 3, NotSerialized)
  1780. {
  1781. Store (Arg0, IDEB)
  1782. Store (GTM0, Local0)
  1783. Store (GTM1, Local1)
  1784. Store (GTM2, Local2)
  1785. Store (GTM3, Local3)
  1786. Store (GTM4, Local4)
  1787. If (LAnd (LNotEqual (Local0, Ones), LNotEqual (Local0, Zero)))
  1788. {
  1789. Store (Match (PIOT, MEQ, Local0, MTR, Zero, Zero), SMIO)
  1790. }
  1791.  
  1792. If (LAnd (LNotEqual (Local1, Ones), LNotEqual (Local1, Zero)))
  1793. {
  1794. If (LAnd (Local4, One))
  1795. {
  1796. Store (Match (UDMA, MEQ, Local1, MTR, Zero, Zero), SMDM)
  1797. }
  1798. Else
  1799. {
  1800. Store (Match (MDMA, MEQ, Local1, MTR, Zero, Zero), SMDM)
  1801. }
  1802. }
  1803.  
  1804. If (LAnd (LNotEqual (Local2, Ones), LNotEqual (Local2, Zero)))
  1805. {
  1806. Store (Match (PIOT, MEQ, Local2, MTR, Zero, Zero), SSIO)
  1807. }
  1808.  
  1809. If (LAnd (LNotEqual (Local3, Ones), LNotEqual (Local3, Zero)))
  1810. {
  1811. If (LAnd (Local4, 0x04))
  1812. {
  1813. Store (Match (UDMA, MEQ, Local3, MTR, Zero, Zero), SSDM)
  1814. }
  1815. Else
  1816. {
  1817. Store (Match (MDMA, MEQ, Local3, MTR, Zero, Zero), SSDM)
  1818. }
  1819. }
  1820.  
  1821. Store (Local4, MODS)
  1822. }
  1823.  
  1824. Device (DRV0)
  1825. {
  1826. Name (_ADR, Zero)
  1827. Method (_GTF, 0, NotSerialized)
  1828. {
  1829. Store (Buffer (0x07)
  1830. {
  1831. 0x03, 0x00, 0x00, 0x00, 0x00, 0xA0, 0xEF
  1832. }, Local0)
  1833. Store (Buffer (0x07)
  1834. {
  1835. 0x03, 0x00, 0x00, 0x00, 0x00, 0xA0, 0xEF
  1836. }, Local1)
  1837. CreateByteField (Local0, One, PIOM)
  1838. CreateByteField (Local1, One, DMAM)
  1839. Store (SMIO, PIOM)
  1840. Or (PIOM, 0x08, PIOM)
  1841. Store (SMDM, DMAM)
  1842. If (LAnd (MODS, One))
  1843. {
  1844. Or (DMAM, 0x40, DMAM)
  1845. }
  1846. Else
  1847. {
  1848. Or (DMAM, 0x20, DMAM)
  1849. }
  1850.  
  1851. Concatenate (Local0, Local1, Local2)
  1852. Return (Local2)
  1853. }
  1854. }
  1855.  
  1856. Device (DRV1)
  1857. {
  1858. Name (_ADR, One)
  1859. Method (_GTF, 0, NotSerialized)
  1860. {
  1861. Store (Buffer (0x07)
  1862. {
  1863. 0x03, 0x00, 0x00, 0x00, 0x00, 0xB0, 0xEF
  1864. }, Local0)
  1865. Store (Buffer (0x07)
  1866. {
  1867. 0x03, 0x00, 0x00, 0x00, 0x00, 0xB0, 0xEF
  1868. }, Local1)
  1869. CreateByteField (Local0, One, PIOM)
  1870. CreateByteField (Local1, One, DMAM)
  1871. Store (SSIO, PIOM)
  1872. Or (PIOM, 0x08, PIOM)
  1873. Store (SSDM, DMAM)
  1874. If (LAnd (MODS, 0x04))
  1875. {
  1876. Or (DMAM, 0x40, DMAM)
  1877. }
  1878. Else
  1879. {
  1880. Or (DMAM, 0x20, DMAM)
  1881. }
  1882.  
  1883. Concatenate (Local0, Local1, Local2)
  1884. Return (Local2)
  1885. }
  1886. }
  1887. }
  1888. }
  1889.  
  1890. Device (PEX3.JMB1)
  1891. {
  1892. Name (_ADR, One)
  1893. Name (PIOT, Package (0x05)
  1894. {
  1895. 0x0258,
  1896. 0x0186,
  1897. 0x014A,
  1898. 0xB4,
  1899. 0x78
  1900. })
  1901. Name (MDMA, Package (0x03)
  1902. {
  1903. 0x01E0,
  1904. 0x96,
  1905. 0x78
  1906. })
  1907. Name (UDMA, Package (0x07)
  1908. {
  1909. 0x78,
  1910. 0x50,
  1911. 0x3C,
  1912. 0x28,
  1913. 0x1E,
  1914. 0x14,
  1915. 0x0F
  1916. })
  1917. OperationRegion (CF40, PCI_Config, 0x40, 0x04)
  1918. Field (CF40, ByteAcc, NoLock, Preserve)
  1919. {
  1920. , 3,
  1921. CAB0, 1,
  1922. , 18,
  1923. SWAP, 1,
  1924. CHN0, 1,
  1925. Offset (0x04)
  1926. }
  1927.  
  1928. OperationRegion (CF80, PCI_Config, 0x80, 0x04)
  1929. Field (CF80, ByteAcc, NoLock, Preserve)
  1930. {
  1931. , 19,
  1932. CAB1, 1,
  1933. Offset (0x03),
  1934. CHN1, 1,
  1935. Offset (0x04)
  1936. }
  1937.  
  1938. Name (IDEB, Buffer (0x14) {})
  1939. CreateDWordField (IDEB, Zero, GTM0)
  1940. CreateDWordField (IDEB, 0x04, GTM1)
  1941. CreateDWordField (IDEB, 0x08, GTM2)
  1942. CreateDWordField (IDEB, 0x0C, GTM3)
  1943. CreateDWordField (IDEB, 0x10, GTM4)
  1944. Name (PMIO, 0x04)
  1945. Name (PMDM, 0x06)
  1946. Name (PSIO, 0x04)
  1947. Name (PSDM, 0x06)
  1948. Name (SMIO, 0x04)
  1949. Name (SMDM, 0x06)
  1950. Name (SSIO, 0x04)
  1951. Name (SSDM, 0x06)
  1952. Name (MODP, 0x05)
  1953. Name (MODS, 0x05)
  1954. Device (SDE0)
  1955. {
  1956. Name (_ADR, Zero)
  1957. Method (_GTM, 0, NotSerialized)
  1958. {
  1959. Store (DerefOf (Index (PIOT, PMIO)), Local0)
  1960. Store (DerefOf (Index (PIOT, PSIO)), Local2)
  1961. Store (0x1A, Local4)
  1962. If (LAnd (MODP, One))
  1963. {
  1964. Store (DerefOf (Index (UDMA, PMDM)), Local1)
  1965. If (LGreater (PMDM, 0x02))
  1966. {
  1967. If (LAnd (LNotEqual (SWAP, One), LEqual (CHN1, One)))
  1968. {
  1969. If (CAB1)
  1970. {
  1971. Store (0x02, PMDM)
  1972. Store (DerefOf (Index (UDMA, PMDM)), Local1)
  1973. }
  1974. }
  1975.  
  1976. If (LAnd (LEqual (SWAP, One), LEqual (CHN0, One)))
  1977. {
  1978. If (CAB0)
  1979. {
  1980. Store (0x02, PMDM)
  1981. Store (DerefOf (Index (UDMA, PMDM)), Local1)
  1982. }
  1983. }
  1984. }
  1985.  
  1986. Or (Local4, One, Local4)
  1987. }
  1988. Else
  1989. {
  1990. Store (DerefOf (Index (MDMA, PMDM)), Local1)
  1991. }
  1992.  
  1993. If (LAnd (MODP, 0x04))
  1994. {
  1995. Store (DerefOf (Index (UDMA, PSDM)), Local3)
  1996. If (LGreater (PSDM, 0x02))
  1997. {
  1998. If (LAnd (LNotEqual (SWAP, One), LEqual (CHN1, One)))
  1999. {
  2000. If (CAB1)
  2001. {
  2002. Store (0x02, PSDM)
  2003. Store (DerefOf (Index (UDMA, PSDM)), Local3)
  2004. }
  2005. }
  2006.  
  2007. If (LAnd (LEqual (SWAP, One), LEqual (CHN0, One)))
  2008. {
  2009. If (CAB0)
  2010. {
  2011. Store (0x02, PSDM)
  2012. Store (DerefOf (Index (UDMA, PSDM)), Local3)
  2013. }
  2014. }
  2015. }
  2016.  
  2017. Or (Local4, 0x04, Local4)
  2018. }
  2019. Else
  2020. {
  2021. Store (DerefOf (Index (MDMA, PSDM)), Local3)
  2022. }
  2023.  
  2024. Store (Local0, GTM0)
  2025. Store (Local1, GTM1)
  2026. Store (Local2, GTM2)
  2027. Store (Local3, GTM3)
  2028. Store (Local4, GTM4)
  2029. Return (IDEB)
  2030. }
  2031.  
  2032. Method (_STM, 3, NotSerialized)
  2033. {
  2034. Store (Arg0, IDEB)
  2035. Store (GTM0, Local0)
  2036. Store (GTM1, Local1)
  2037. Store (GTM2, Local2)
  2038. Store (GTM3, Local3)
  2039. Store (GTM4, Local4)
  2040. If (LAnd (LNotEqual (Local0, Ones), LNotEqual (Local0, Zero)))
  2041. {
  2042. Store (Match (PIOT, MEQ, Local0, MTR, Zero, Zero), PMIO)
  2043. }
  2044.  
  2045. If (LAnd (LNotEqual (Local1, Ones), LNotEqual (Local1, Zero)))
  2046. {
  2047. If (LAnd (Local4, One))
  2048. {
  2049. Store (Match (UDMA, MEQ, Local1, MTR, Zero, Zero), PMDM)
  2050. }
  2051. Else
  2052. {
  2053. Store (Match (MDMA, MEQ, Local1, MTR, Zero, Zero), PMDM)
  2054. }
  2055. }
  2056.  
  2057. If (LAnd (LNotEqual (Local2, Ones), LNotEqual (Local2, Zero)))
  2058. {
  2059. Store (Match (PIOT, MEQ, Local2, MTR, Zero, Zero), PSIO)
  2060. }
  2061.  
  2062. If (LAnd (LNotEqual (Local3, Ones), LNotEqual (Local3, Zero)))
  2063. {
  2064. If (LAnd (Local4, 0x04))
  2065. {
  2066. Store (Match (UDMA, MEQ, Local3, MTR, Zero, Zero), PSDM)
  2067. }
  2068. Else
  2069. {
  2070. Store (Match (MDMA, MEQ, Local3, MTR, Zero, Zero), PSDM)
  2071. }
  2072. }
  2073.  
  2074. Store (Local4, MODP)
  2075. }
  2076.  
  2077. Device (DRV0)
  2078. {
  2079. Name (_ADR, Zero)
  2080. Method (_GTF, 0, NotSerialized)
  2081. {
  2082. Store (Buffer (0x07)
  2083. {
  2084. 0x03, 0x00, 0x00, 0x00, 0x00, 0xA0, 0xEF
  2085. }, Local0)
  2086. Store (Buffer (0x07)
  2087. {
  2088. 0x03, 0x00, 0x00, 0x00, 0x00, 0xA0, 0xEF
  2089. }, Local1)
  2090. CreateByteField (Local0, One, PIOM)
  2091. CreateByteField (Local1, One, DMAM)
  2092. Store (PMIO, PIOM)
  2093. Or (PIOM, 0x08, PIOM)
  2094. Store (PMDM, DMAM)
  2095. If (LAnd (MODP, One))
  2096. {
  2097. Or (DMAM, 0x40, DMAM)
  2098. }
  2099. Else
  2100. {
  2101. Or (DMAM, 0x20, DMAM)
  2102. }
  2103.  
  2104. Concatenate (Local0, Local1, Local2)
  2105. Return (Local2)
  2106. }
  2107. }
  2108.  
  2109. Device (DRV1)
  2110. {
  2111. Name (_ADR, One)
  2112. Method (_GTF, 0, NotSerialized)
  2113. {
  2114. Store (Buffer (0x07)
  2115. {
  2116. 0x03, 0x00, 0x00, 0x00, 0x00, 0xB0, 0xEF
  2117. }, Local0)
  2118. Store (Buffer (0x07)
  2119. {
  2120. 0x03, 0x00, 0x00, 0x00, 0x00, 0xB0, 0xEF
  2121. }, Local1)
  2122. CreateByteField (Local0, One, PIOM)
  2123. CreateByteField (Local1, One, DMAM)
  2124. Store (PSIO, PIOM)
  2125. Or (PIOM, 0x08, PIOM)
  2126. Store (PSDM, DMAM)
  2127. If (LAnd (MODP, 0x04))
  2128. {
  2129. Or (DMAM, 0x40, DMAM)
  2130. }
  2131. Else
  2132. {
  2133. Or (DMAM, 0x20, DMAM)
  2134. }
  2135.  
  2136. Concatenate (Local0, Local1, Local2)
  2137. Return (Local2)
  2138. }
  2139. }
  2140. }
  2141.  
  2142. Device (SDE1)
  2143. {
  2144. Name (_ADR, One)
  2145. Method (_GTM, 0, NotSerialized)
  2146. {
  2147. Store (DerefOf (Index (PIOT, SMIO)), Local0)
  2148. Store (DerefOf (Index (PIOT, SSIO)), Local2)
  2149. Store (0x1A, Local4)
  2150. If (LAnd (MODS, One))
  2151. {
  2152. Store (DerefOf (Index (UDMA, SMDM)), Local1)
  2153. If (LGreater (SMDM, 0x02))
  2154. {
  2155. If (LAnd (LNotEqual (SWAP, One), LEqual (CHN0, One)))
  2156. {
  2157. If (CAB0)
  2158. {
  2159. Store (0x02, SMDM)
  2160. Store (DerefOf (Index (UDMA, SMDM)), Local1)
  2161. }
  2162. }
  2163.  
  2164. If (LAnd (LEqual (SWAP, One), LEqual (CHN1, One)))
  2165. {
  2166. If (CAB1)
  2167. {
  2168. Store (0x02, SMDM)
  2169. Store (DerefOf (Index (UDMA, SMDM)), Local1)
  2170. }
  2171. }
  2172. }
  2173.  
  2174. Or (Local4, One, Local4)
  2175. }
  2176. Else
  2177. {
  2178. Store (DerefOf (Index (MDMA, SMDM)), Local1)
  2179. }
  2180.  
  2181. If (LAnd (MODS, 0x04))
  2182. {
  2183. Store (DerefOf (Index (UDMA, SSDM)), Local3)
  2184. If (LGreater (SSDM, 0x02))
  2185. {
  2186. If (LAnd (LNotEqual (SWAP, One), LEqual (CHN0, One)))
  2187. {
  2188. If (CAB0)
  2189. {
  2190. Store (0x02, SSDM)
  2191. Store (DerefOf (Index (UDMA, SSDM)), Local3)
  2192. }
  2193. }
  2194.  
  2195. If (LAnd (LEqual (SWAP, One), LEqual (CHN1, One)))
  2196. {
  2197. If (CAB1)
  2198. {
  2199. Store (0x02, SSDM)
  2200. Store (DerefOf (Index (UDMA, SSDM)), Local3)
  2201. }
  2202. }
  2203. }
  2204.  
  2205. Or (Local4, 0x04, Local4)
  2206. }
  2207. Else
  2208. {
  2209. Store (DerefOf (Index (MDMA, SSDM)), Local3)
  2210. }
  2211.  
  2212. Store (Local0, GTM0)
  2213. Store (Local1, GTM1)
  2214. Store (Local2, GTM2)
  2215. Store (Local3, GTM3)
  2216. Store (Local4, GTM4)
  2217. Return (IDEB)
  2218. }
  2219.  
  2220. Method (_STM, 3, NotSerialized)
  2221. {
  2222. Store (Arg0, IDEB)
  2223. Store (GTM0, Local0)
  2224. Store (GTM1, Local1)
  2225. Store (GTM2, Local2)
  2226. Store (GTM3, Local3)
  2227. Store (GTM4, Local4)
  2228. If (LAnd (LNotEqual (Local0, Ones), LNotEqual (Local0, Zero)))
  2229. {
  2230. Store (Match (PIOT, MEQ, Local0, MTR, Zero, Zero), SMIO)
  2231. }
  2232.  
  2233. If (LAnd (LNotEqual (Local1, Ones), LNotEqual (Local1, Zero)))
  2234. {
  2235. If (LAnd (Local4, One))
  2236. {
  2237. Store (Match (UDMA, MEQ, Local1, MTR, Zero, Zero), SMDM)
  2238. }
  2239. Else
  2240. {
  2241. Store (Match (MDMA, MEQ, Local1, MTR, Zero, Zero), SMDM)
  2242. }
  2243. }
  2244.  
  2245. If (LAnd (LNotEqual (Local2, Ones), LNotEqual (Local2, Zero)))
  2246. {
  2247. Store (Match (PIOT, MEQ, Local2, MTR, Zero, Zero), SSIO)
  2248. }
  2249.  
  2250. If (LAnd (LNotEqual (Local3, Ones), LNotEqual (Local3, Zero)))
  2251. {
  2252. If (LAnd (Local4, 0x04))
  2253. {
  2254. Store (Match (UDMA, MEQ, Local3, MTR, Zero, Zero), SSDM)
  2255. }
  2256. Else
  2257. {
  2258. Store (Match (MDMA, MEQ, Local3, MTR, Zero, Zero), SSDM)
  2259. }
  2260. }
  2261.  
  2262. Store (Local4, MODS)
  2263. }
  2264.  
  2265. Device (DRV0)
  2266. {
  2267. Name (_ADR, Zero)
  2268. Method (_GTF, 0, NotSerialized)
  2269. {
  2270. Store (Buffer (0x07)
  2271. {
  2272. 0x03, 0x00, 0x00, 0x00, 0x00, 0xA0, 0xEF
  2273. }, Local0)
  2274. Store (Buffer (0x07)
  2275. {
  2276. 0x03, 0x00, 0x00, 0x00, 0x00, 0xA0, 0xEF
  2277. }, Local1)
  2278. CreateByteField (Local0, One, PIOM)
  2279. CreateByteField (Local1, One, DMAM)
  2280. Store (SMIO, PIOM)
  2281. Or (PIOM, 0x08, PIOM)
  2282. Store (SMDM, DMAM)
  2283. If (LAnd (MODS, One))
  2284. {
  2285. Or (DMAM, 0x40, DMAM)
  2286. }
  2287. Else
  2288. {
  2289. Or (DMAM, 0x20, DMAM)
  2290. }
  2291.  
  2292. Concatenate (Local0, Local1, Local2)
  2293. Return (Local2)
  2294. }
  2295. }
  2296.  
  2297. Device (DRV1)
  2298. {
  2299. Name (_ADR, One)
  2300. Method (_GTF, 0, NotSerialized)
  2301. {
  2302. Store (Buffer (0x07)
  2303. {
  2304. 0x03, 0x00, 0x00, 0x00, 0x00, 0xB0, 0xEF
  2305. }, Local0)
  2306. Store (Buffer (0x07)
  2307. {
  2308. 0x03, 0x00, 0x00, 0x00, 0x00, 0xB0, 0xEF
  2309. }, Local1)
  2310. CreateByteField (Local0, One, PIOM)
  2311. CreateByteField (Local1, One, DMAM)
  2312. Store (SSIO, PIOM)
  2313. Or (PIOM, 0x08, PIOM)
  2314. Store (SSDM, DMAM)
  2315. If (LAnd (MODS, 0x04))
  2316. {
  2317. Or (DMAM, 0x40, DMAM)
  2318. }
  2319. Else
  2320. {
  2321. Or (DMAM, 0x20, DMAM)
  2322. }
  2323.  
  2324. Concatenate (Local0, Local1, Local2)
  2325. Return (Local2)
  2326. }
  2327. }
  2328. }
  2329. }
  2330.  
  2331. Device (HUB0)
  2332. {
  2333. Name (_ADR, 0x001E0000)
  2334. Method (_STA, 0, NotSerialized)
  2335. {
  2336. Return (0x0F)
  2337. }
  2338.  
  2339. Name (PICM, Package (0x0C)
  2340. {
  2341. Package (0x04)
  2342. {
  2343. 0xFFFF,
  2344. Zero,
  2345. LNKE,
  2346. Zero
  2347. },
  2348.  
  2349. Package (0x04)
  2350. {
  2351. 0xFFFF,
  2352. One,
  2353. LNKD,
  2354. Zero
  2355. },
  2356.  
  2357. Package (0x04)
  2358. {
  2359. 0xFFFF,
  2360. 0x02,
  2361. LNKC,
  2362. Zero
  2363. },
  2364.  
  2365. Package (0x04)
  2366. {
  2367. 0xFFFF,
  2368. 0x03,
  2369. LNKA,
  2370. Zero
  2371. },
  2372.  
  2373. Package (0x04)
  2374. {
  2375. 0x0001FFFF,
  2376. Zero,
  2377. LNKD,
  2378. Zero
  2379. },
  2380.  
  2381. Package (0x04)
  2382. {
  2383. 0x0001FFFF,
  2384. One,
  2385. LNKC,
  2386. Zero
  2387. },
  2388.  
  2389. Package (0x04)
  2390. {
  2391. 0x0001FFFF,
  2392. 0x02,
  2393. LNKA,
  2394. Zero
  2395. },
  2396.  
  2397. Package (0x04)
  2398. {
  2399. 0x0001FFFF,
  2400. 0x03,
  2401. LNKE,
  2402. Zero
  2403. },
  2404.  
  2405. Package (0x04)
  2406. {
  2407. 0x0002FFFF,
  2408. Zero,
  2409. LNKC,
  2410. Zero
  2411. },
  2412.  
  2413. Package (0x04)
  2414. {
  2415. 0x0002FFFF,
  2416. One,
  2417. LNKA,
  2418. Zero
  2419. },
  2420.  
  2421. Package (0x04)
  2422. {
  2423. 0x0002FFFF,
  2424. 0x02,
  2425. LNKE,
  2426. Zero
  2427. },
  2428.  
  2429. Package (0x04)
  2430. {
  2431. 0x0002FFFF,
  2432. 0x03,
  2433. LNKD,
  2434. Zero
  2435. }
  2436. })
  2437. Name (APIC, Package (0x0C)
  2438. {
  2439. Package (0x04)
  2440. {
  2441. 0xFFFF,
  2442. Zero,
  2443. Zero,
  2444. 0x14
  2445. },
  2446.  
  2447. Package (0x04)
  2448. {
  2449. 0xFFFF,
  2450. One,
  2451. Zero,
  2452. 0x13
  2453. },
  2454.  
  2455. Package (0x04)
  2456. {
  2457. 0xFFFF,
  2458. 0x02,
  2459. Zero,
  2460. 0x12
  2461. },
  2462.  
  2463. Package (0x04)
  2464. {
  2465. 0xFFFF,
  2466. 0x03,
  2467. Zero,
  2468. 0x10
  2469. },
  2470.  
  2471. Package (0x04)
  2472. {
  2473. 0x0001FFFF,
  2474. Zero,
  2475. Zero,
  2476. 0x13
  2477. },
  2478.  
  2479. Package (0x04)
  2480. {
  2481. 0x0001FFFF,
  2482. One,
  2483. Zero,
  2484. 0x12
  2485. },
  2486.  
  2487. Package (0x04)
  2488. {
  2489. 0x0001FFFF,
  2490. 0x02,
  2491. Zero,
  2492. 0x10
  2493. },
  2494.  
  2495. Package (0x04)
  2496. {
  2497. 0x0001FFFF,
  2498. 0x03,
  2499. Zero,
  2500. 0x14
  2501. },
  2502.  
  2503. Package (0x04)
  2504. {
  2505. 0x0002FFFF,
  2506. Zero,
  2507. Zero,
  2508. 0x12
  2509. },
  2510.  
  2511. Package (0x04)
  2512. {
  2513. 0x0002FFFF,
  2514. One,
  2515. Zero,
  2516. 0x10
  2517. },
  2518.  
  2519. Package (0x04)
  2520. {
  2521. 0x0002FFFF,
  2522. 0x02,
  2523. Zero,
  2524. 0x14
  2525. },
  2526.  
  2527. Package (0x04)
  2528. {
  2529. 0x0002FFFF,
  2530. 0x03,
  2531. Zero,
  2532. 0x13
  2533. }
  2534. })
  2535. Method (_PRT, 0, NotSerialized)
  2536. {
  2537. If (LNot (PICF))
  2538. {
  2539. Return (PICM)
  2540. }
  2541. Else
  2542. {
  2543. Return (APIC)
  2544. }
  2545. }
  2546.  
  2547. Method (_PRW, 0, NotSerialized)
  2548. {
  2549. Return (Package (0x02)
  2550. {
  2551. 0x0B,
  2552. 0x05
  2553. })
  2554. }
  2555. }
  2556.  
  2557. Device (PX40)
  2558. {
  2559. Name (_ADR, 0x001F0000)
  2560. OperationRegion (PREV, PCI_Config, 0x08, One)
  2561. Scope (\)
  2562. {
  2563. Field (\_SB.PCI0.PX40.PREV, ByteAcc, NoLock, Preserve)
  2564. {
  2565. REV0, 8
  2566. }
  2567. }
  2568.  
  2569. OperationRegion (PIRQ, PCI_Config, 0x60, 0x04)
  2570. Scope (\)
  2571. {
  2572. Field (\_SB.PCI0.PX40.PIRQ, ByteAcc, NoLock, Preserve)
  2573. {
  2574. PIRA, 8,
  2575. PIRB, 8,
  2576. PIRC, 8,
  2577. PIRD, 8
  2578. }
  2579. }
  2580.  
  2581. OperationRegion (PIR2, PCI_Config, 0x68, 0x04)
  2582. Scope (\)
  2583. {
  2584. Field (\_SB.PCI0.PX40.PIR2, ByteAcc, NoLock, Preserve)
  2585. {
  2586. PIRE, 8,
  2587. PIRF, 8,
  2588. PIRG, 8,
  2589. PIRH, 8
  2590. }
  2591. }
  2592.  
  2593. OperationRegion (LPIO, PCI_Config, 0x80, 0x0E)
  2594. Scope (\)
  2595. {
  2596. Field (\_SB.PCI0.PX40.LPIO, ByteAcc, NoLock, Preserve)
  2597. {
  2598. UAIO, 8,
  2599. PRIO, 8,
  2600. LPE1, 8,
  2601. LPE2, 8,
  2602. GN1L, 8,
  2603. GN1H, 8,
  2604. GN2L, 8,
  2605. GN2H, 8
  2606. }
  2607.  
  2608. Method (DISD, 1, NotSerialized)
  2609. {
  2610. If (LEqual (Arg0, Zero))
  2611. {
  2612. And (LPE1, 0xFE, LPE1)
  2613. }
  2614.  
  2615. If (LEqual (Arg0, One))
  2616. {
  2617. And (LPE1, 0xFD, LPE1)
  2618. }
  2619.  
  2620. If (LEqual (Arg0, 0x02))
  2621. {
  2622. And (LPE1, 0xFB, LPE1)
  2623. }
  2624.  
  2625. If (LEqual (Arg0, 0x03))
  2626. {
  2627. And (LPE1, 0xF7, LPE1)
  2628. }
  2629.  
  2630. If (LEqual (Arg0, 0x04))
  2631. {
  2632. And (LPE2, 0xFC, LPE2)
  2633. }
  2634.  
  2635. If (LEqual (Arg0, 0x05))
  2636. {
  2637. And (LPE1, 0xDF, LPE1)
  2638. }
  2639.  
  2640. If (LEqual (Arg0, 0x06))
  2641. {
  2642. And (GN2L, 0xFE, GN2L)
  2643. }
  2644. }
  2645.  
  2646. Method (CKIO, 2, NotSerialized)
  2647. {
  2648. If (LEqual (Arg1, Zero))
  2649. {
  2650. Or (LPE1, One, LPE1)
  2651. And (UAIO, 0xF0, Local0)
  2652. If (LEqual (Arg0, 0x03F8))
  2653. {
  2654. Or (Local0, Zero, UAIO)
  2655. }
  2656.  
  2657. If (LEqual (Arg0, 0x02F8))
  2658. {
  2659. Or (Local0, One, UAIO)
  2660. }
  2661.  
  2662. If (LEqual (Arg0, 0x02E8))
  2663. {
  2664. Or (Local0, 0x05, UAIO)
  2665. }
  2666.  
  2667. If (LEqual (Arg0, 0x03E8))
  2668. {
  2669. Or (Local0, 0x07, UAIO)
  2670. }
  2671. }
  2672.  
  2673. If (LEqual (Arg1, One))
  2674. {
  2675. Or (LPE1, 0x02, LPE1)
  2676. And (UAIO, 0x0F, Local0)
  2677. If (LEqual (Arg0, 0x03F8))
  2678. {
  2679. Or (Local0, Zero, UAIO)
  2680. }
  2681.  
  2682. If (LEqual (Arg0, 0x02F8))
  2683. {
  2684. Or (Local0, 0x10, UAIO)
  2685. }
  2686.  
  2687. If (LEqual (Arg0, 0x02E8))
  2688. {
  2689. Or (Local0, 0x50, UAIO)
  2690. }
  2691.  
  2692. If (LEqual (Arg0, 0x03E8))
  2693. {
  2694. Or (Local0, 0x70, UAIO)
  2695. }
  2696. }
  2697.  
  2698. If (LEqual (Arg1, 0x02))
  2699. {
  2700. Or (LPE1, 0x04, LPE1)
  2701. And (PRIO, 0xFC, Local0)
  2702. If (LEqual (Arg0, 0x0378))
  2703. {
  2704. Or (Local0, Zero, PRIO)
  2705. }
  2706.  
  2707. If (LEqual (Arg0, 0x0278))
  2708. {
  2709. Or (Local0, One, PRIO)
  2710. }
  2711.  
  2712. If (LEqual (Arg0, 0x03BC))
  2713. {
  2714. Or (Local0, 0x02, PRIO)
  2715. }
  2716. }
  2717.  
  2718. If (LEqual (Arg1, 0x03))
  2719. {
  2720. Or (LPE1, 0x08, LPE1)
  2721. }
  2722.  
  2723. If (LEqual (Arg1, 0x04))
  2724. {
  2725. If (LEqual (Arg0, 0x0201))
  2726. {
  2727. Or (LPE2, One, LPE2)
  2728. }
  2729.  
  2730. If (LEqual (Arg0, 0x0209))
  2731. {
  2732. Or (LPE2, 0x02, LPE2)
  2733. }
  2734. }
  2735.  
  2736. If (LEqual (Arg1, 0x06))
  2737. {
  2738. If (LNotEqual (Arg0, 0xFFFF))
  2739. {
  2740. And (Arg0, 0xFF, Local0)
  2741. Or (Local0, One, GN2L)
  2742. ShiftRight (Arg0, 0x08, GN2H)
  2743. }
  2744. Else
  2745. {
  2746. Store (Zero, GN2H)
  2747. Store (Zero, GN2L)
  2748. }
  2749. }
  2750. }
  2751. }
  2752.  
  2753. Scope (\)
  2754. {
  2755. Method (SLDM, 2, NotSerialized)
  2756. {
  2757. }
  2758. }
  2759.  
  2760. Scope (\)
  2761. {
  2762. OperationRegion (SCPP, SystemIO, 0xB2, One)
  2763. Field (SCPP, ByteAcc, NoLock, Preserve)
  2764. {
  2765. SMIP, 8
  2766. }
  2767. }
  2768.  
  2769. Method (^_INI, 0, NotSerialized)
  2770. {
  2771. If (STRC (_OS, "Microsoft Windows"))
  2772. {
  2773. Store (0x56, SMIP)
  2774. }
  2775. Else
  2776. {
  2777. If (STRC (_OS, "Microsoft Windows NT"))
  2778. {
  2779. If (CondRefOf (\_OSI, Local0))
  2780. {
  2781. If (_OSI ("Windows 2001"))
  2782. {
  2783. Store (0x59, SMIP)
  2784. Store (Zero, OSFL)
  2785. Store (0x03, OSFX)
  2786. }
  2787. }
  2788. Else
  2789. {
  2790. Store (0x58, SMIP)
  2791. Store (Zero, OSFL)
  2792. }
  2793. }
  2794. Else
  2795. {
  2796. Store (0x57, SMIP)
  2797. Store (0x02, OSFL)
  2798. }
  2799. }
  2800. }
  2801.  
  2802. Scope (\)
  2803. {
  2804. Method (OSTP, 0, NotSerialized)
  2805. {
  2806. If (LEqual (OSFL, One))
  2807. {
  2808. Store (0x56, SMIP)
  2809. }
  2810.  
  2811. If (LEqual (OSFL, 0x02))
  2812. {
  2813. Store (0x57, SMIP)
  2814. }
  2815.  
  2816. If (LEqual (OSFL, Zero))
  2817. {
  2818. If (LEqual (OSFX, 0x03))
  2819. {
  2820. Store (0x59, SMIP)
  2821. }
  2822. Else
  2823. {
  2824. Store (0x58, SMIP)
  2825. }
  2826. }
  2827.  
  2828. If (LEqual (OSFX, 0x03))
  2829. {
  2830. Store (0x59, SMIP)
  2831. }
  2832. }
  2833. }
  2834.  
  2835. Device (SYSR)
  2836. {
  2837. Name (_HID, EisaId ("PNP0C02"))
  2838. Name (_UID, One)
  2839. Name (_CRS, ResourceTemplate ()
  2840. {
  2841. IO (Decode16,
  2842. 0x0010, // Range Minimum
  2843. 0x0010, // Range Maximum
  2844. 0x01, // Alignment
  2845. 0x10, // Length
  2846. )
  2847. IO (Decode16,
  2848. 0x0022, // Range Minimum
  2849. 0x0022, // Range Maximum
  2850. 0x01, // Alignment
  2851. 0x1E, // Length
  2852. )
  2853. IO (Decode16,
  2854. 0x0044, // Range Minimum
  2855. 0x0044, // Range Maximum
  2856. 0x01, // Alignment
  2857. 0x1C, // Length
  2858. )
  2859. IO (Decode16,
  2860. 0x0062, // Range Minimum
  2861. 0x0062, // Range Maximum
  2862. 0x01, // Alignment
  2863. 0x02, // Length
  2864. )
  2865. IO (Decode16,
  2866. 0x0065, // Range Minimum
  2867. 0x0065, // Range Maximum
  2868. 0x01, // Alignment
  2869. 0x0B, // Length
  2870. )
  2871. IO (Decode16,
  2872. 0x0074, // Range Minimum
  2873. 0x0074, // Range Maximum
  2874. 0x01, // Alignment
  2875. 0x0C, // Length
  2876. )
  2877. IO (Decode16,
  2878. 0x0091, // Range Minimum
  2879. 0x0091, // Range Maximum
  2880. 0x01, // Alignment
  2881. 0x03, // Length
  2882. )
  2883. IO (Decode16,
  2884. 0x00A2, // Range Minimum
  2885. 0x00A2, // Range Maximum
  2886. 0x01, // Alignment
  2887. 0x1E, // Length
  2888. )
  2889. IO (Decode16,
  2890. 0x00E0, // Range Minimum
  2891. 0x00E0, // Range Maximum
  2892. 0x01, // Alignment
  2893. 0x10, // Length
  2894. )
  2895. IO (Decode16,
  2896. 0x04D0, // Range Minimum
  2897. 0x04D0, // Range Maximum
  2898. 0x01, // Alignment
  2899. 0x02, // Length
  2900. )
  2901. IO (Decode16,
  2902. 0x0290, // Range Minimum
  2903. 0x0290, // Range Maximum
  2904. 0x01, // Alignment
  2905. 0x10, // Length
  2906. )
  2907. IO (Decode16,
  2908. 0x0800, // Range Minimum
  2909. 0x0800, // Range Maximum
  2910. 0x01, // Alignment
  2911. 0x80, // Length
  2912. )
  2913. IO (Decode16,
  2914. 0x0290, // Range Minimum
  2915. 0x0290, // Range Maximum
  2916. 0x01, // Alignment
  2917. 0x05, // Length
  2918. )
  2919. IO (Decode16,
  2920. 0x0880, // Range Minimum
  2921. 0x0880, // Range Maximum
  2922. 0x01, // Alignment
  2923. 0x10, // Length
  2924. )
  2925. })
  2926. }
  2927.  
  2928. Device (PIC)
  2929. {
  2930. Name (_HID, EisaId ("PNP0000"))
  2931. Name (_CRS, ResourceTemplate ()
  2932. {
  2933. IO (Decode16,
  2934. 0x0020, // Range Minimum
  2935. 0x0020, // Range Maximum
  2936. 0x01, // Alignment
  2937. 0x02, // Length
  2938. )
  2939. IO (Decode16,
  2940. 0x00A0, // Range Minimum
  2941. 0x00A0, // Range Maximum
  2942. 0x01, // Alignment
  2943. 0x02, // Length
  2944. )
  2945. })
  2946. }
  2947.  
  2948. Device (DMA1)
  2949. {
  2950. Name (_HID, EisaId ("PNP0200"))
  2951. Name (_CRS, ResourceTemplate ()
  2952. {
  2953. DMA (Compatibility, BusMaster, Transfer8, )
  2954. {4}
  2955. IO (Decode16,
  2956. 0x0000, // Range Minimum
  2957. 0x0000, // Range Maximum
  2958. 0x01, // Alignment
  2959. 0x10, // Length
  2960. )
  2961. IO (Decode16,
  2962. 0x0080, // Range Minimum
  2963. 0x0080, // Range Maximum
  2964. 0x01, // Alignment
  2965. 0x11, // Length
  2966. )
  2967. IO (Decode16,
  2968. 0x0094, // Range Minimum
  2969. 0x0094, // Range Maximum
  2970. 0x01, // Alignment
  2971. 0x0C, // Length
  2972. )
  2973. IO (Decode16,
  2974. 0x00C0, // Range Minimum
  2975. 0x00C0, // Range Maximum
  2976. 0x01, // Alignment
  2977. 0x20, // Length
  2978. )
  2979. })
  2980. }
  2981.  
  2982. Device (TMR)
  2983. {
  2984. Name (_HID, EisaId ("PNP0100"))
  2985. Name (ATT5, ResourceTemplate ()
  2986. {
  2987. IO (Decode16,
  2988. 0x0040, // Range Minimum
  2989. 0x0040, // Range Maximum
  2990. 0x00, // Alignment
  2991. 0x04, // Length
  2992. )
  2993. })
  2994. Name (ATT6, ResourceTemplate ()
  2995. {
  2996. IO (Decode16,
  2997. 0x0040, // Range Minimum
  2998. 0x0040, // Range Maximum
  2999. 0x00, // Alignment
  3000. 0x04, // Length
  3001. )
  3002. })
  3003. Method (_CRS, 0, NotSerialized)
  3004. {
  3005. If (LGreaterEqual (OSFX, 0x03))
  3006. {
  3007. If (HPTF)
  3008. {
  3009. Return (ATT6)
  3010. }
  3011. Else
  3012. {
  3013. Return (ATT5)
  3014. }
  3015. }
  3016. Else
  3017. {
  3018. Return (ATT5)
  3019. }
  3020. }
  3021. }
  3022.  
  3023. Device (HPET)
  3024. {
  3025. Name (_HID, EisaId ("PNP0103"))
  3026. Name (ATT3, ResourceTemplate ()
  3027. {
  3028. IRQNoFlags ()
  3029. {0}
  3030. IRQNoFlags ()
  3031. {8}
  3032. Memory32Fixed (ReadWrite,
  3033. 0xFED00000, // Address Base
  3034. 0x00000400, // Address Length
  3035. )
  3036. })
  3037. Name (ATT4, ResourceTemplate ()
  3038. {
  3039. })
  3040. Method (_STA, 0, NotSerialized)
  3041. {
  3042. Return (0x0F)
  3043. }
  3044.  
  3045. Method (_CRS, 0, NotSerialized)
  3046. {
  3047. Return (ATT3)
  3048. }
  3049. }
  3050.  
  3051. Device (RTC)
  3052. {
  3053. Name (_HID, EisaId ("PNP0B00"))
  3054. Name (ATT0, ResourceTemplate ()
  3055. {
  3056. IO (Decode16,
  3057. 0x0070, // Range Minimum
  3058. 0x0070, // Range Maximum
  3059. 0x00, // Alignment
  3060. 0x02, // Length
  3061. )
  3062. })
  3063. Name (ATT1, ResourceTemplate ()
  3064. {
  3065. IO (Decode16,
  3066. 0x0070, // Range Minimum
  3067. 0x0070, // Range Maximum
  3068. 0x00, // Alignment
  3069. 0x04, // Length
  3070. )
  3071. })
  3072. Method (_CRS, 0, NotSerialized)
  3073. {
  3074. If (LGreaterEqual (OSFX, 0x03))
  3075. {
  3076. If (HPTF)
  3077. {
  3078. Return (ATT1)
  3079. }
  3080. Else
  3081. {
  3082. Return (ATT0)
  3083. }
  3084. }
  3085. Else
  3086. {
  3087. Return (ATT0)
  3088. }
  3089. }
  3090. }
  3091.  
  3092. Device (COPR)
  3093. {
  3094. Name (_HID, EisaId ("PNP0C04"))
  3095. Name (_CRS, ResourceTemplate ()
  3096. {
  3097. IO (Decode16,
  3098. 0x00F0, // Range Minimum
  3099. 0x00F0, // Range Maximum
  3100. 0x01, // Alignment
  3101. 0x10, // Length
  3102. )
  3103. IRQNoFlags ()
  3104. {13}
  3105. })
  3106. }
  3107.  
  3108. Scope (\)
  3109. {
  3110. OperationRegion (WIN1, SystemIO, 0x2E, 0x02)
  3111. Field (WIN1, ByteAcc, NoLock, Preserve)
  3112. {
  3113. INDP, 8,
  3114. DATP, 8
  3115. }
  3116.  
  3117. OperationRegion (GPIO, SystemIO, 0x0800, 0x05)
  3118. Field (GPIO, ByteAcc, NoLock, Preserve)
  3119. {
  3120. GO01, 8,
  3121. GO02, 8,
  3122. GO03, 8,
  3123. GO04, 8,
  3124. GO05, 8
  3125. }
  3126.  
  3127. IndexField (INDP, DATP, ByteAcc, NoLock, Preserve)
  3128. {
  3129. Offset (0x02),
  3130. CFG, 8,
  3131. Offset (0x07),
  3132. LDN, 8,
  3133. Offset (0x20),
  3134. IDHI, 8,
  3135. IDLO, 8,
  3136. POWC, 8,
  3137. Offset (0x30),
  3138. ACTR, 8,
  3139. Offset (0x60),
  3140. IOAH, 8,
  3141. IOAL, 8,
  3142. IO2H, 8,
  3143. IO2L, 8,
  3144. Offset (0x70),
  3145. INTR, 8,
  3146. Offset (0x72),
  3147. INT1, 8,
  3148. Offset (0x74),
  3149. DMCH, 8,
  3150. Offset (0xC0),
  3151. GP40, 8,
  3152. Offset (0xF0),
  3153. OPT1, 8,
  3154. OPT2, 8,
  3155. OPT3, 8,
  3156. OPT4, 8
  3157. }
  3158.  
  3159. Method (ENFG, 0, NotSerialized)
  3160. {
  3161. Store (0x87, INDP)
  3162. Store (One, INDP)
  3163. Store (0x55, INDP)
  3164. Store (0x55, INDP)
  3165. }
  3166.  
  3167. Method (EXFG, 0, NotSerialized)
  3168. {
  3169. Store (0x02, CFG)
  3170. }
  3171.  
  3172. Method (GSRG, 1, NotSerialized)
  3173. {
  3174. Store (Arg0, INDP)
  3175. Return (DATP)
  3176. }
  3177.  
  3178. Method (SSRG, 2, NotSerialized)
  3179. {
  3180. Store (Arg0, INDP)
  3181. Store (Arg1, DATP)
  3182. }
  3183. }
  3184.  
  3185. Device (UAR1)
  3186. {
  3187. Name (_HID, EisaId ("PNP0501"))
  3188. Name (_UID, One)
  3189. Method (_STA, 0, NotSerialized)
  3190. {
  3191. ENFG ()
  3192. Store (One, LDN)
  3193. If (ACTR)
  3194. {
  3195. EXFG ()
  3196. Return (0x0F)
  3197. }
  3198. Else
  3199. {
  3200. If (LOr (IOAH, IOAL))
  3201. {
  3202. EXFG ()
  3203. Return (0x0D)
  3204. }
  3205. Else
  3206. {
  3207. EXFG ()
  3208. Return (Zero)
  3209. }
  3210. }
  3211.  
  3212. EXFG ()
  3213. }
  3214.  
  3215. Method (_DIS, 0, NotSerialized)
  3216. {
  3217. ENFG ()
  3218. Store (One, LDN)
  3219. Store (Zero, ACTR)
  3220. EXFG ()
  3221. DISD (Zero)
  3222. }
  3223.  
  3224. Method (_CRS, 0, NotSerialized)
  3225. {
  3226. Name (BUF1, ResourceTemplate ()
  3227. {
  3228. IO (Decode16,
  3229. 0x0000, // Range Minimum
  3230. 0x0000, // Range Maximum
  3231. 0x01, // Alignment
  3232. 0x08, // Length
  3233. _Y01)
  3234. IRQNoFlags (_Y02)
  3235. {}
  3236. })
  3237. CreateByteField (BUF1, \_SB.PCI0.PX40.UAR1._CRS._Y01._MIN, IOLO)
  3238. CreateByteField (BUF1, 0x03, IOHI)
  3239. CreateByteField (BUF1, \_SB.PCI0.PX40.UAR1._CRS._Y01._MAX, IORL)
  3240. CreateByteField (BUF1, 0x05, IORH)
  3241. CreateWordField (BUF1, \_SB.PCI0.PX40.UAR1._CRS._Y02._INT, IRQW)
  3242. ENFG ()
  3243. Store (One, LDN)
  3244. Store (IOAL, IOLO)
  3245. Store (IOAL, IORL)
  3246. Store (IOAH, IOHI)
  3247. Store (IOAH, IORH)
  3248. Store (One, Local0)
  3249. ShiftLeft (Local0, INTR, IRQW)
  3250. EXFG ()
  3251. Return (BUF1)
  3252. }
  3253.  
  3254. Name (_PRS, ResourceTemplate ()
  3255. {
  3256. StartDependentFnNoPri ()
  3257. {
  3258. IO (Decode16,
  3259. 0x03F8, // Range Minimum
  3260. 0x03F8, // Range Maximum
  3261. 0x01, // Alignment
  3262. 0x08, // Length
  3263. )
  3264. IRQNoFlags ()
  3265. {3,4,5,7,9,10,11,12}
  3266. }
  3267. StartDependentFnNoPri ()
  3268. {
  3269. IO (Decode16,
  3270. 0x02F8, // Range Minimum
  3271. 0x02F8, // Range Maximum
  3272. 0x01, // Alignment
  3273. 0x08, // Length
  3274. )
  3275. IRQNoFlags ()
  3276. {3,4,5,7,9,10,11,12}
  3277. }
  3278. StartDependentFnNoPri ()
  3279. {
  3280. IO (Decode16,
  3281. 0x03E8, // Range Minimum
  3282. 0x03E8, // Range Maximum
  3283. 0x01, // Alignment
  3284. 0x08, // Length
  3285. )
  3286. IRQNoFlags ()
  3287. {3,4,5,7,9,10,11,12}
  3288. }
  3289. StartDependentFnNoPri ()
  3290. {
  3291. IO (Decode16,
  3292. 0x02E8, // Range Minimum
  3293. 0x02E8, // Range Maximum
  3294. 0x01, // Alignment
  3295. 0x08, // Length
  3296. )
  3297. IRQNoFlags ()
  3298. {3,4,5,7,9,10,11,12}
  3299. }
  3300. EndDependentFn ()
  3301. })
  3302. Method (_SRS, 1, NotSerialized)
  3303. {
  3304. CreateByteField (Arg0, 0x02, IOLO)
  3305. CreateByteField (Arg0, 0x03, IOHI)
  3306. CreateWordField (Arg0, 0x02, IOAD)
  3307. CreateWordField (Arg0, 0x09, IRQW)
  3308. ENFG ()
  3309. Store (One, LDN)
  3310. Store (One, ACTR)
  3311. Store (IOLO, IOAL)
  3312. Store (IOHI, IOAH)
  3313. FindSetRightBit (IRQW, Local0)
  3314. Subtract (Local0, One, INTR)
  3315. EXFG ()
  3316. CKIO (IOAD, Zero)
  3317. }
  3318.  
  3319. Method (_PRW, 0, NotSerialized)
  3320. {
  3321. If (SUSF)
  3322. {
  3323. Return (Package (0x02)
  3324. {
  3325. 0x08,
  3326. 0x03
  3327. })
  3328. }
  3329. Else
  3330. {
  3331. Return (Package (0x02)
  3332. {
  3333. 0x08,
  3334. One
  3335. })
  3336. }
  3337. }
  3338.  
  3339. Method (_PSW, 1, NotSerialized)
  3340. {
  3341. If (Arg0)
  3342. {
  3343. Or (G2C2, One, G2C2)
  3344. }
  3345. Else
  3346. {
  3347. And (G2C2, 0xFE, G2C2)
  3348. }
  3349. }
  3350. }
  3351.  
  3352. OperationRegion (KBCT, SystemIO, 0x60, 0x05)
  3353. Field (KBCT, ByteAcc, NoLock, Preserve)
  3354. {
  3355. P060, 8,
  3356. Offset (0x04),
  3357. P064, 8
  3358. }
  3359.  
  3360. Device (PS2M)
  3361. {
  3362. Name (_HID, EisaId ("PNP0F13"))
  3363. Method (_STA, 0, NotSerialized)
  3364. {
  3365. If (LEqual (PS2F, Zero))
  3366. {
  3367. Return (0x0F)
  3368. }
  3369. Else
  3370. {
  3371. Return (Zero)
  3372. }
  3373. }
  3374.  
  3375. Method (_CRS, 0, NotSerialized)
  3376. {
  3377. Name (BUF1, ResourceTemplate ()
  3378. {
  3379. IRQNoFlags ()
  3380. {12}
  3381. })
  3382. Name (BUF2, ResourceTemplate ()
  3383. {
  3384. IO (Decode16,
  3385. 0x0060, // Range Minimum
  3386. 0x0060, // Range Maximum
  3387. 0x01, // Alignment
  3388. 0x01, // Length
  3389. )
  3390. IO (Decode16,
  3391. 0x0064, // Range Minimum
  3392. 0x0064, // Range Maximum
  3393. 0x01, // Alignment
  3394. 0x01, // Length
  3395. )
  3396. IRQNoFlags ()
  3397. {12}
  3398. })
  3399. If (LEqual (KBDI, One))
  3400. {
  3401. If (LEqual (OSFL, 0x02))
  3402. {
  3403. Return (BUF1)
  3404. }
  3405.  
  3406. If (LEqual (OSFL, One))
  3407. {
  3408. Return (BUF1)
  3409. }
  3410. Else
  3411. {
  3412. Return (BUF2)
  3413. }
  3414. }
  3415. Else
  3416. {
  3417. Return (BUF1)
  3418. }
  3419. }
  3420. }
  3421.  
  3422. Device (PS2K)
  3423. {
  3424. Name (_HID, EisaId ("PNP0303"))
  3425. Method (_STA, 0, NotSerialized)
  3426. {
  3427. If (LEqual (KBDI, One))
  3428. {
  3429. Return (Zero)
  3430. }
  3431. Else
  3432. {
  3433. Return (0x0F)
  3434. }
  3435. }
  3436.  
  3437. Name (_CRS, ResourceTemplate ()
  3438. {
  3439. IO (Decode16,
  3440. 0x0060, // Range Minimum
  3441. 0x0060, // Range Maximum
  3442. 0x01, // Alignment
  3443. 0x01, // Length
  3444. )
  3445. IO (Decode16,
  3446. 0x0064, // Range Minimum
  3447. 0x0064, // Range Maximum
  3448. 0x01, // Alignment
  3449. 0x01, // Length
  3450. )
  3451. IRQNoFlags ()
  3452. {1}
  3453. })
  3454. }
  3455.  
  3456. Device (PSMR)
  3457. {
  3458. Name (_HID, EisaId ("PNP0C02"))
  3459. Name (_UID, 0x03)
  3460. Method (_STA, 0, NotSerialized)
  3461. {
  3462. If (LEqual (KBDI, Zero))
  3463. {
  3464. Return (Zero)
  3465. }
  3466.  
  3467. If (LEqual (PS2F, Zero))
  3468. {
  3469. If (LEqual (OSFL, 0x02))
  3470. {
  3471. Return (0x0F)
  3472. }
  3473.  
  3474. If (LEqual (OSFL, One))
  3475. {
  3476. Return (0x0F)
  3477. }
  3478.  
  3479. Return (Zero)
  3480. }
  3481.  
  3482. Return (Zero)
  3483. }
  3484.  
  3485. Name (_CRS, ResourceTemplate ()
  3486. {
  3487. IO (Decode16,
  3488. 0x0060, // Range Minimum
  3489. 0x0060, // Range Maximum
  3490. 0x01, // Alignment
  3491. 0x01, // Length
  3492. )
  3493. IO (Decode16,
  3494. 0x0064, // Range Minimum
  3495. 0x0064, // Range Maximum
  3496. 0x01, // Alignment
  3497. 0x01, // Length
  3498. )
  3499. })
  3500. }
  3501.  
  3502. Device (PMIO)
  3503. {
  3504. Name (_HID, EisaId ("PNP0C02"))
  3505. Name (_UID, 0x02)
  3506. Method (_CRS, 0, NotSerialized)
  3507. {
  3508. Name (BUF0, ResourceTemplate ()
  3509. {
  3510. IO (Decode16,
  3511. 0x0400, // Range Minimum
  3512. 0x0400, // Range Maximum
  3513. 0x01, // Alignment
  3514. 0xC0, // Length
  3515. )
  3516. })
  3517. Return (BUF0)
  3518. }
  3519. }
  3520.  
  3521. OperationRegion (LPC0, PCI_Config, 0xA4, 0x02)
  3522. Field (LPC0, ByteAcc, NoLock, Preserve)
  3523. {
  3524. AG3E, 1
  3525. }
  3526.  
  3527. Method (_DSM, 4, NotSerialized)
  3528. {
  3529. Store (Package (0x02)
  3530. {
  3531. "device-id",
  3532. Buffer (0x04)
  3533. {
  3534. 0x16, 0x29, 0x00, 0x00
  3535. }
  3536. }, Local0)
  3537. DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
  3538. Return (Local0)
  3539. }
  3540. }
  3541.  
  3542. Device (UHC1)
  3543. {
  3544. Name (_ADR, 0x001D0000)
  3545. Method (_S3D, 0, NotSerialized)
  3546. {
  3547. If (LEqual (OSFL, 0x02))
  3548. {
  3549. Return (0x02)
  3550. }
  3551.  
  3552. Return (0x03)
  3553. }
  3554.  
  3555. Name (_PRW, Package (0x02)
  3556. {
  3557. 0x03,
  3558. 0x03
  3559. })
  3560. Method (_DSM, 4, NotSerialized)
  3561. {
  3562. Store (Package (0x02)
  3563. {
  3564. "device-id",
  3565. Buffer (0x04)
  3566. {
  3567. 0x34, 0x3A, 0x00, 0x00
  3568. }
  3569. }, Local0)
  3570. DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
  3571. Return (Local0)
  3572. }
  3573. }
  3574.  
  3575. Device (UHC2)
  3576. {
  3577. Name (_ADR, 0x001D0001)
  3578. Method (_S3D, 0, NotSerialized)
  3579. {
  3580. If (LEqual (OSFL, 0x02))
  3581. {
  3582. Return (0x02)
  3583. }
  3584.  
  3585. Return (0x03)
  3586. }
  3587.  
  3588. Name (_PRW, Package (0x02)
  3589. {
  3590. 0x04,
  3591. 0x03
  3592. })
  3593. Method (_DSM, 4, NotSerialized)
  3594. {
  3595. Store (Package (0x02)
  3596. {
  3597. "device-id",
  3598. Buffer (0x04)
  3599. {
  3600. 0x35, 0x3A, 0x00, 0x00
  3601. }
  3602. }, Local0)
  3603. DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
  3604. Return (Local0)
  3605. }
  3606. }
  3607.  
  3608. Device (UHC3)
  3609. {
  3610. Name (_ADR, 0x001D0002)
  3611. Method (_S3D, 0, NotSerialized)
  3612. {
  3613. If (LEqual (OSFL, 0x02))
  3614. {
  3615. Return (0x02)
  3616. }
  3617.  
  3618. Return (0x03)
  3619. }
  3620.  
  3621. Name (_PRW, Package (0x02)
  3622. {
  3623. 0x0C,
  3624. 0x03
  3625. })
  3626. Method (_DSM, 4, NotSerialized)
  3627. {
  3628. Store (Package (0x02)
  3629. {
  3630. "device-id",
  3631. Buffer (0x04)
  3632. {
  3633. 0x36, 0x3A, 0x00, 0x00
  3634. }
  3635. }, Local0)
  3636. DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
  3637. Return (Local0)
  3638. }
  3639. }
  3640.  
  3641. Device (UHC4)
  3642. {
  3643. Name (_ADR, 0x001D0003)
  3644. Method (_S3D, 0, NotSerialized)
  3645. {
  3646. If (LEqual (OSFL, 0x02))
  3647. {
  3648. Return (0x02)
  3649. }
  3650.  
  3651. Return (0x03)
  3652. }
  3653.  
  3654. Name (_PRW, Package (0x02)
  3655. {
  3656. 0x0E,
  3657. 0x03
  3658. })
  3659. Method (_DSM, 4, NotSerialized)
  3660. {
  3661. Store (Package (0x02)
  3662. {
  3663. "device-id",
  3664. Buffer (0x04)
  3665. {
  3666. 0x37, 0x3A, 0x00, 0x00
  3667. }
  3668. }, Local0)
  3669. DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
  3670. Return (Local0)
  3671. }
  3672. }
  3673.  
  3674. Device (US31)
  3675. {
  3676. Name (_ADR, 0x001A0000)
  3677. Method (_S3D, 0, NotSerialized)
  3678. {
  3679. If (LEqual (OSFL, 0x02))
  3680. {
  3681. Return (0x02)
  3682. }
  3683.  
  3684. Return (0x03)
  3685. }
  3686.  
  3687. Name (_PRW, Package (0x02)
  3688. {
  3689. 0x0E,
  3690. 0x03
  3691. })
  3692. Method (_DSM, 4, NotSerialized)
  3693. {
  3694. Store (Package (0x02)
  3695. {
  3696. "device-id",
  3697. Buffer (0x04)
  3698. {
  3699. 0x37, 0x3A, 0x00, 0x00
  3700. }
  3701. }, Local0)
  3702. DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
  3703. Return (Local0)
  3704. }
  3705. }
  3706.  
  3707. Device (UHC5)
  3708. {
  3709. Name (_ADR, 0x001A0001)
  3710. Method (_S3D, 0, NotSerialized)
  3711. {
  3712. If (LEqual (OSFL, 0x02))
  3713. {
  3714. Return (0x02)
  3715. }
  3716.  
  3717. Return (0x03)
  3718. }
  3719.  
  3720. Name (_PRW, Package (0x02)
  3721. {
  3722. 0x05,
  3723. 0x03
  3724. })
  3725. Method (_DSM, 4, NotSerialized)
  3726. {
  3727. Store (Package (0x02)
  3728. {
  3729. "device-id",
  3730. Buffer (0x04)
  3731. {
  3732. 0x38, 0x3A, 0x00, 0x00
  3733. }
  3734. }, Local0)
  3735. DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
  3736. Return (Local0)
  3737. }
  3738. }
  3739.  
  3740. Device (UHC6)
  3741. {
  3742. Name (_ADR, 0x001A0002)
  3743. Method (_S3D, 0, NotSerialized)
  3744. {
  3745. If (LEqual (OSFL, 0x02))
  3746. {
  3747. Return (0x02)
  3748. }
  3749.  
  3750. Return (0x03)
  3751. }
  3752.  
  3753. Name (_PRW, Package (0x02)
  3754. {
  3755. 0x20,
  3756. 0x03
  3757. })
  3758. Method (_DSM, 4, NotSerialized)
  3759. {
  3760. Store (Package (0x02)
  3761. {
  3762. "device-id",
  3763. Buffer (0x04)
  3764. {
  3765. 0x39, 0x3A, 0x00, 0x00
  3766. }
  3767. }, Local0)
  3768. DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
  3769. Return (Local0)
  3770. }
  3771. }
  3772.  
  3773. Device (EHC1)
  3774. {
  3775. Name (_ADR, 0x001D0007)
  3776. Method (_S3D, 0, NotSerialized)
  3777. {
  3778. If (LEqual (OSFL, 0x02))
  3779. {
  3780. Return (0x02)
  3781. }
  3782.  
  3783. Return (0x03)
  3784. }
  3785.  
  3786. Name (_PRW, Package (0x02)
  3787. {
  3788. 0x0D,
  3789. 0x03
  3790. })
  3791. Method (_DSM, 4, NotSerialized)
  3792. {
  3793. Store (Package (0x04)
  3794. {
  3795. "device-id",
  3796. Buffer (0x04)
  3797. {
  3798. 0x3A, 0x3A, 0x00, 0x00
  3799. },
  3800.  
  3801. "AAPL,clock-id",
  3802. Buffer (One)
  3803. {
  3804. 0x01
  3805. }
  3806. }, Local0)
  3807. DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
  3808. Return (Local0)
  3809. }
  3810. }
  3811.  
  3812. Device (EHC2)
  3813. {
  3814. Name (_ADR, 0x001A0007)
  3815. Method (_S3D, 0, NotSerialized)
  3816. {
  3817. If (LEqual (OSFL, 0x02))
  3818. {
  3819. Return (0x02)
  3820. }
  3821.  
  3822. Return (0x03)
  3823. }
  3824.  
  3825. Name (_PRW, Package (0x02)
  3826. {
  3827. 0x0D,
  3828. 0x03
  3829. })
  3830. Method (_DSM, 4, NotSerialized)
  3831. {
  3832. Store (Package (0x04)
  3833. {
  3834. "device-id",
  3835. Buffer (0x04)
  3836. {
  3837. 0x3C, 0x3A, 0x00, 0x00
  3838. },
  3839.  
  3840. "AAPL,clock-id",
  3841. Buffer (One)
  3842. {
  3843. 0x02
  3844. }
  3845. }, Local0)
  3846. DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
  3847. Return (Local0)
  3848. }
  3849. }
  3850.  
  3851. Device (SATA)
  3852. {
  3853. Name (_ADR, 0x001F0002)
  3854. OperationRegion (PCI, PCI_Config, 0x40, 0x20)
  3855. Field (PCI, DWordAcc, NoLock, Preserve)
  3856. {
  3857. ITM0, 16,
  3858. ITM1, 16,
  3859. SIT0, 4,
  3860. SIT1, 4,
  3861. Offset (0x08),
  3862. UDC0, 2,
  3863. UDC1, 2,
  3864. Offset (0x0A),
  3865. UDT0, 8,
  3866. UDT1, 8,
  3867. Offset (0x14),
  3868. ICF0, 2,
  3869. ICF1, 2,
  3870. , 6,
  3871. WPPE, 1,
  3872. , 1,
  3873. FAS0, 2,
  3874. FAS1, 2
  3875. }
  3876.  
  3877. Device (PRIM)
  3878. {
  3879. Name (_ADR, Zero)
  3880. Method (_GTM, 0, NotSerialized)
  3881. {
  3882. Store (GTM (ITM0, SIT0, UDC0, UDT0, ICF0, FAS0), Local0)
  3883. Return (Local0)
  3884. }
  3885.  
  3886. Method (_STM, 3, NotSerialized)
  3887. {
  3888. Store (STM (Arg0, Arg1, Arg2), Local0)
  3889. CreateDWordField (Local0, Zero, ITM)
  3890. CreateDWordField (Local0, 0x04, SIT)
  3891. CreateDWordField (Local0, 0x08, UDC)
  3892. CreateDWordField (Local0, 0x0C, UDT)
  3893. CreateDWordField (Local0, 0x10, ICF)
  3894. CreateDWordField (Local0, 0x14, FAS)
  3895. Store (UDC, UDC0)
  3896. Store (UDT, UDT0)
  3897. Store (ICF, ICF0)
  3898. Store (FAS, FAS0)
  3899. }
  3900.  
  3901. Device (DRV0)
  3902. {
  3903. Name (_ADR, Zero)
  3904. Name (H15F, Zero)
  3905. Method (_GTF, 0, NotSerialized)
  3906. {
  3907. Store (GTF0 (ITM0, SIT0, UDC0, UDT0, ICF0, H15F, FAS0), Local0)
  3908. Return (Local0)
  3909. }
  3910. }
  3911.  
  3912. Device (DRV1)
  3913. {
  3914. Name (_ADR, One)
  3915. Name (H15F, Zero)
  3916. Method (_GTF, 0, NotSerialized)
  3917. {
  3918. Store (GTF1 (ITM0, SIT0, UDC0, UDT0, ICF0, H15F, FAS0), Local0)
  3919. Return (Local0)
  3920. }
  3921. }
  3922. }
  3923.  
  3924. Device (SECD)
  3925. {
  3926. Name (_ADR, One)
  3927. Method (_GTM, 0, NotSerialized)
  3928. {
  3929. Store (GTM (ITM1, SIT1, UDC1, UDT1, ICF1, FAS1), Local0)
  3930. Return (Local0)
  3931. }
  3932.  
  3933. Method (_STM, 3, NotSerialized)
  3934. {
  3935. Store (STM (Arg0, Arg1, Arg2), Local0)
  3936. CreateDWordField (Local0, Zero, ITM)
  3937. CreateDWordField (Local0, 0x04, SIT)
  3938. CreateDWordField (Local0, 0x08, UDC)
  3939. CreateDWordField (Local0, 0x0C, UDT)
  3940. CreateDWordField (Local0, 0x10, ICF)
  3941. CreateDWordField (Local0, 0x14, FAS)
  3942. Store (UDC, UDC1)
  3943. Store (UDT, UDT1)
  3944. Store (ICF, ICF1)
  3945. Store (FAS, FAS1)
  3946. }
  3947.  
  3948. Device (DRV0)
  3949. {
  3950. Name (_ADR, Zero)
  3951. Name (H15F, Zero)
  3952. Method (_GTF, 0, NotSerialized)
  3953. {
  3954. Store (GTF0 (ITM1, SIT1, UDC1, UDT1, ICF1, H15F, FAS1), Local0)
  3955. Return (Local0)
  3956. }
  3957. }
  3958.  
  3959. Device (DRV1)
  3960. {
  3961. Name (_ADR, One)
  3962. Name (H15F, Zero)
  3963. Method (_GTF, 0, NotSerialized)
  3964. {
  3965. Store (GTF1 (ITM1, SIT1, UDC1, UDT1, ICF1, H15F, FAS1), Local0)
  3966. Return (Local0)
  3967. }
  3968. }
  3969. }
  3970. }
  3971.  
  3972. Device (IDE2)
  3973. {
  3974. Name (_ADR, 0x001F0005)
  3975. OperationRegion (PCI, PCI_Config, 0x40, 0x20)
  3976. Field (PCI, DWordAcc, NoLock, Preserve)
  3977. {
  3978. ITM0, 16,
  3979. ITM1, 16,
  3980. SIT0, 4,
  3981. SIT1, 4,
  3982. Offset (0x08),
  3983. UDC0, 1,
  3984. , 1,
  3985. UDC1, 1,
  3986. Offset (0x0A),
  3987. UDT0, 8,
  3988. UDT1, 8,
  3989. Offset (0x14),
  3990. ICF0, 2,
  3991. ICF1, 2,
  3992. , 6,
  3993. WPPE, 1,
  3994. , 1,
  3995. FAS0, 2,
  3996. FAS1, 2
  3997. }
  3998.  
  3999. Device (PRIM)
  4000. {
  4001. Name (_ADR, Zero)
  4002. Method (_GTM, 0, NotSerialized)
  4003. {
  4004. Store (GTM (ITM0, SIT0, UDC0, UDT0, ICF0, FAS0), Local0)
  4005. Return (Local0)
  4006. }
  4007.  
  4008. Method (_STM, 3, NotSerialized)
  4009. {
  4010. Store (STM (Arg0, Arg1, Arg2), Local0)
  4011. CreateDWordField (Local0, Zero, ITM)
  4012. CreateDWordField (Local0, 0x04, SIT)
  4013. CreateDWordField (Local0, 0x08, UDC)
  4014. CreateDWordField (Local0, 0x0C, UDT)
  4015. CreateDWordField (Local0, 0x10, ICF)
  4016. CreateDWordField (Local0, 0x14, FAS)
  4017. Store (UDC, UDC0)
  4018. Store (UDT, UDT0)
  4019. Store (ICF, ICF0)
  4020. Store (FAS, FAS0)
  4021. }
  4022.  
  4023. Device (DRV0)
  4024. {
  4025. Name (_ADR, Zero)
  4026. Name (H15F, Zero)
  4027. Method (_GTF, 0, NotSerialized)
  4028. {
  4029. Store (GTF0 (ITM0, SIT0, UDC0, UDT0, ICF0, H15F, FAS0), Local0)
  4030. Return (Local0)
  4031. }
  4032. }
  4033.  
  4034. Device (DRV1)
  4035. {
  4036. Name (_ADR, One)
  4037. Name (H15F, Zero)
  4038. Method (_GTF, 0, NotSerialized)
  4039. {
  4040. Store (GTF1 (ITM0, SIT0, UDC0, UDT0, ICF0, H15F, FAS0), Local0)
  4041. Return (Local0)
  4042. }
  4043. }
  4044. }
  4045.  
  4046. Device (SECD)
  4047. {
  4048. Name (_ADR, One)
  4049. Method (_GTM, 0, NotSerialized)
  4050. {
  4051. Store (GTM (ITM1, SIT1, UDC1, UDT1, ICF1, FAS1), Local0)
  4052. Return (Local0)
  4053. }
  4054.  
  4055. Method (_STM, 3, NotSerialized)
  4056. {
  4057. Store (STM (Arg0, Arg1, Arg2), Local0)
  4058. CreateDWordField (Local0, Zero, ITM)
  4059. CreateDWordField (Local0, 0x04, SIT)
  4060. CreateDWordField (Local0, 0x08, UDC)
  4061. CreateDWordField (Local0, 0x0C, UDT)
  4062. CreateDWordField (Local0, 0x10, ICF)
  4063. CreateDWordField (Local0, 0x14, FAS)
  4064. Store (UDC, UDC1)
  4065. Store (UDT, UDT1)
  4066. Store (ICF, ICF1)
  4067. Store (FAS, FAS1)
  4068. }
  4069.  
  4070. Device (DRV0)
  4071. {
  4072. Name (_ADR, Zero)
  4073. Name (H15F, Zero)
  4074. Method (_GTF, 0, NotSerialized)
  4075. {
  4076. Store (GTF0 (ITM1, SIT1, UDC1, UDT1, ICF1, H15F, FAS1), Local0)
  4077. Return (Local0)
  4078. }
  4079. }
  4080.  
  4081. Device (DRV1)
  4082. {
  4083. Name (_ADR, One)
  4084. Name (H15F, Zero)
  4085. Method (_GTF, 0, NotSerialized)
  4086. {
  4087. Store (GTF1 (ITM1, SIT1, UDC1, UDT1, ICF1, H15F, FAS1), Local0)
  4088. Return (Local0)
  4089. }
  4090. }
  4091. }
  4092. }
  4093.  
  4094. Method (GTM, 6, NotSerialized)
  4095. {
  4096. Store (Buffer (0x14) {}, Local0)
  4097. CreateDWordField (Local0, Zero, PIO0)
  4098. CreateDWordField (Local0, 0x04, DMA0)
  4099. CreateDWordField (Local0, 0x08, PIO1)
  4100. CreateDWordField (Local0, 0x0C, DMA1)
  4101. CreateDWordField (Local0, 0x10, FLAG)
  4102. Store (0x10, FLAG)
  4103. If (LOr (And (Arg0, 0x08), LNot (And (Arg0, One
  4104. ))))
  4105. {
  4106. Store (0x0384, PIO0)
  4107. }
  4108. Else
  4109. {
  4110. Add (ShiftRight (And (Arg0, 0x0300), 0x08), ShiftRight (And (
  4111. Arg0, 0x3000), 0x0C), Local1)
  4112. Multiply (Subtract (0x09, Local1), 0x1E, PIO0)
  4113. }
  4114.  
  4115. If (LOr (LAnd (Arg0, 0x4000), LAnd (Arg2, One)))
  4116. {
  4117. If (LOr (And (Arg0, 0x80), LNot (And (Arg0, 0x10
  4118. ))))
  4119. {
  4120. Store (0x0384, PIO1)
  4121. }
  4122. Else
  4123. {
  4124. Add (And (Arg1, 0x03), ShiftRight (And (Arg1, 0x0C),
  4125. 0x02), Local1)
  4126. Multiply (Subtract (0x09, Local1), 0x1E, PIO1)
  4127. }
  4128. }
  4129. Else
  4130. {
  4131. Store (PIO0, PIO1)
  4132. }
  4133.  
  4134. If (And (Arg2, One))
  4135. {
  4136. Subtract (0x04, And (Arg3, 0x03), Local1)
  4137. If (And (Arg5, One))
  4138. {
  4139. Store (0x14, DMA0)
  4140. }
  4141. Else
  4142. {
  4143. If (And (Arg4, One))
  4144. {
  4145. Multiply (Local1, 0x0F, DMA0)
  4146. }
  4147. Else
  4148. {
  4149. Multiply (Local1, 0x1E, DMA0)
  4150. }
  4151. }
  4152. }
  4153. Else
  4154. {
  4155. Store (PIO0, DMA0)
  4156. }
  4157.  
  4158. If (LOr (LAnd (Arg0, 0x4000), LAnd (Arg2, One)))
  4159. {
  4160. If (And (Arg2, 0x02))
  4161. {
  4162. Subtract (0x04, ShiftRight (And (Arg3, 0x30), 0x04), Local1)
  4163. If (And (Arg5, 0x02))
  4164. {
  4165. Store (0x14, DMA1)
  4166. }
  4167. Else
  4168. {
  4169. If (And (Arg4, 0x02))
  4170. {
  4171. Multiply (Local1, 0x0F, DMA1)
  4172. }
  4173. Else
  4174. {
  4175. Multiply (Local1, 0x1E, DMA1)
  4176. }
  4177. }
  4178. }
  4179. Else
  4180. {
  4181. Store (PIO1, DMA1)
  4182. }
  4183. }
  4184. Else
  4185. {
  4186. Store (DMA0, DMA1)
  4187. }
  4188.  
  4189. Store (Zero, FLAG)
  4190. If (And (Arg0, One))
  4191. {
  4192. Or (FLAG, 0x10, FLAG)
  4193. }
  4194.  
  4195. If (And (Arg2, One))
  4196. {
  4197. Or (FLAG, One, FLAG)
  4198. }
  4199.  
  4200. If (And (Arg0, 0x02))
  4201. {
  4202. Or (FLAG, 0x02, FLAG)
  4203. }
  4204.  
  4205. If (And (Arg2, 0x02))
  4206. {
  4207. Or (FLAG, 0x04, FLAG)
  4208. }
  4209.  
  4210. If (And (Arg0, 0x20))
  4211. {
  4212. Or (FLAG, 0x08, FLAG)
  4213. }
  4214.  
  4215. Return (Local0)
  4216. }
  4217.  
  4218. Method (STM, 3, NotSerialized)
  4219. {
  4220. Store (Buffer (0x18) {}, Local7)
  4221. CreateDWordField (Local7, Zero, ITM)
  4222. CreateDWordField (Local7, 0x04, SIT)
  4223. CreateDWordField (Local7, 0x08, UDC)
  4224. CreateDWordField (Local7, 0x0C, UDT)
  4225. CreateDWordField (Local7, 0x10, ICF)
  4226. CreateDWordField (Local7, 0x14, FAS)
  4227. CreateDWordField (Arg0, Zero, PIO0)
  4228. CreateDWordField (Arg0, 0x04, DMA0)
  4229. CreateDWordField (Arg0, 0x08, PIO1)
  4230. CreateDWordField (Arg0, 0x0C, DMA1)
  4231. CreateDWordField (Arg0, 0x10, FLAG)
  4232. Store (FLAG, Local4)
  4233. Store (0x8000, Local0)
  4234. If (And (Local4, 0x02))
  4235. {
  4236. Or (Local0, 0x07, Local0)
  4237. }
  4238.  
  4239. If (And (Local4, 0x08))
  4240. {
  4241. Or (Local0, 0x4000, Local0)
  4242. Or (Local0, 0x70, Local0)
  4243. }
  4244.  
  4245. If (LAnd (LLess (DMA0, PIO0), LNot (And (Local4, One))))
  4246. {
  4247. Or (Local0, 0x08, Local0)
  4248. }
  4249.  
  4250. If (LAnd (LLess (DMA1, PIO1), LNot (And (Local4, 0x04))))
  4251. {
  4252. Or (Local0, 0x80, Local0)
  4253. }
  4254.  
  4255. If (PIO0)
  4256. {
  4257. If (LLess (PIO0, 0x0384))
  4258. {
  4259. Or (Local0, One, Local0)
  4260. }
  4261. }
  4262.  
  4263. If (PIO1)
  4264. {
  4265. If (LLess (PIO1, 0x0384))
  4266. {
  4267. Or (Local0, 0x10, Local0)
  4268. }
  4269. }
  4270.  
  4271. If (And (Local4, One))
  4272. {
  4273. Store (PIO0, Local1)
  4274. }
  4275. Else
  4276. {
  4277. Store (DMA0, Local1)
  4278. }
  4279.  
  4280. If (Local1)
  4281. {
  4282. If (LLessEqual (Local1, 0x78))
  4283. {
  4284. Or (Local0, 0x2300, Local0)
  4285. }
  4286. Else
  4287. {
  4288. If (LLessEqual (Local1, 0xB4))
  4289. {
  4290. Or (Local0, 0x2100, Local0)
  4291. }
  4292. Else
  4293. {
  4294. If (LLessEqual (Local1, 0xF0))
  4295. {
  4296. Or (Local0, 0x1000, Local0)
  4297. }
  4298. }
  4299. }
  4300. }
  4301.  
  4302. Store (Local0, ITM)
  4303. Store (Zero, Local0)
  4304. If (And (Local4, 0x04))
  4305. {
  4306. Store (PIO1, Local1)
  4307. }
  4308. Else
  4309. {
  4310. Store (DMA1, Local1)
  4311. }
  4312.  
  4313. If (Local1)
  4314. {
  4315. If (LLessEqual (Local1, 0x78))
  4316. {
  4317. Store (0x0B, Local0)
  4318. }
  4319. Else
  4320. {
  4321. If (LLessEqual (Local1, 0xB4))
  4322. {
  4323. Store (0x09, Local0)
  4324. }
  4325. Else
  4326. {
  4327. If (LLessEqual (Local1, 0xF0))
  4328. {
  4329. Store (0x04, Local0)
  4330. }
  4331. }
  4332. }
  4333. }
  4334.  
  4335. Store (Local0, SIT)
  4336. Store (Zero, Local0)
  4337. If (And (Local4, One))
  4338. {
  4339. Or (Local0, One, Local0)
  4340. }
  4341.  
  4342. If (And (Local4, 0x04))
  4343. {
  4344. Or (Local0, 0x02, Local0)
  4345. }
  4346.  
  4347. Store (Local0, UDC)
  4348. Store (Zero, Local0)
  4349. If (And (Local4, One))
  4350. {
  4351. If (LEqual (DMA0, 0x14))
  4352. {
  4353. Store (One, Local0)
  4354. }
  4355. Else
  4356. {
  4357. If (LLess (DMA0, 0x3C))
  4358. {
  4359. Divide (DMA0, 0x0F, , Local1)
  4360. }
  4361. Else
  4362. {
  4363. Divide (DMA0, 0x1E, , Local1)
  4364. }
  4365.  
  4366. Subtract (0x04, Local1, Local0)
  4367. }
  4368. }
  4369.  
  4370. If (And (Local4, 0x04))
  4371. {
  4372. If (LEqual (DMA1, 0x14))
  4373. {
  4374. Store (One, Local1)
  4375. }
  4376. Else
  4377. {
  4378. If (LLess (DMA1, 0x3C))
  4379. {
  4380. Divide (DMA1, 0x0F, , Local1)
  4381. }
  4382. Else
  4383. {
  4384. Divide (DMA1, 0x1E, , Local1)
  4385. }
  4386.  
  4387. Subtract (0x04, Local1, Local1)
  4388. }
  4389.  
  4390. ShiftLeft (Local1, 0x04, Local1)
  4391. Or (Local0, Local1, Local0)
  4392. }
  4393.  
  4394. Store (Local0, UDT)
  4395. Store (Zero, Local0)
  4396. If (DMA0)
  4397. {
  4398. If (LGreater (DMA0, 0x14))
  4399. {
  4400. If (LLess (DMA0, 0x3C))
  4401. {
  4402. Or (Local0, One, Local0)
  4403. }
  4404. }
  4405. }
  4406.  
  4407. If (DMA1)
  4408. {
  4409. If (LGreater (DMA1, 0x14))
  4410. {
  4411. If (LLess (DMA1, 0x3C))
  4412. {
  4413. Or (Local0, 0x02, Local0)
  4414. }
  4415. }
  4416. }
  4417.  
  4418. Store (Local0, ICF)
  4419. Store (Zero, Local0)
  4420. If (LEqual (DMA0, 0x14))
  4421. {
  4422. Or (Local0, One, Local0)
  4423. }
  4424.  
  4425. If (LEqual (DMA1, 0x14))
  4426. {
  4427. Or (Local0, 0x02, Local0)
  4428. }
  4429.  
  4430. Store (Local0, FAS)
  4431. Return (Local7)
  4432. }
  4433.  
  4434. Method (H15P, 1, NotSerialized)
  4435. {
  4436. Name (BUFF, Buffer (0x08)
  4437. {
  4438. /* 0000 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
  4439. })
  4440. Store (Arg0, Local0)
  4441. Store (BUFF, Local1)
  4442. Concatenate (Local0, Local1, Local7)
  4443. CreateWordField (Local7, 0x02, CYL)
  4444. CreateWordField (Local7, 0x06, HEAD)
  4445. CreateWordField (Local7, 0x0C, SPT)
  4446. If (LAnd (LGreaterEqual (HEAD, 0x10), LGreaterEqual (CYL, 0x2000)))
  4447. {
  4448. Return (SPT)
  4449. }
  4450. Else
  4451. {
  4452. Return (Zero)
  4453. }
  4454. }
  4455.  
  4456. Method (GTF0, 7, NotSerialized)
  4457. {
  4458. Store (Buffer (0x07)
  4459. {
  4460. 0x03, 0x00, 0x00, 0x00, 0x00, 0xA0, 0xEF
  4461. }, Local7)
  4462. CreateByteField (Local7, One, MODE)
  4463. If (And (Arg2, One))
  4464. {
  4465. And (Arg3, 0x03, Local0)
  4466. If (And (Arg6, One))
  4467. {
  4468. Add (Local0, 0x04, Local0)
  4469. }
  4470. Else
  4471. {
  4472. If (And (Arg4, One))
  4473. {
  4474. Add (Local0, 0x02, Local0)
  4475. }
  4476. }
  4477.  
  4478. Or (Local0, 0x40, MODE)
  4479. }
  4480. Else
  4481. {
  4482. Add (ShiftRight (And (Arg0, 0x0300), 0x08), ShiftRight (And (
  4483. Arg0, 0x3000), 0x0C), Local0)
  4484. If (LGreaterEqual (Local0, 0x05))
  4485. {
  4486. Store (0x22, MODE)
  4487. }
  4488. Else
  4489. {
  4490. If (LGreaterEqual (Local0, 0x03))
  4491. {
  4492. Store (0x21, MODE)
  4493. }
  4494. Else
  4495. {
  4496. Store (0x20, MODE)
  4497. }
  4498. }
  4499. }
  4500.  
  4501. Concatenate (Local7, Local7, Local6)
  4502. If (LOr (And (Arg0, 0x08), LNot (And (Arg0, One
  4503. ))))
  4504. {
  4505. If (And (Arg0, 0x02))
  4506. {
  4507. Store (Zero, MODE)
  4508. }
  4509. Else
  4510. {
  4511. Store (One, MODE)
  4512. }
  4513. }
  4514. Else
  4515. {
  4516. Add (ShiftRight (And (Arg0, 0x0300), 0x08), ShiftRight (And (
  4517. Arg0, 0x3000), 0x0C), Local0)
  4518. If (LGreaterEqual (Local0, 0x05))
  4519. {
  4520. Store (0x0C, MODE)
  4521. }
  4522. Else
  4523. {
  4524. If (LGreaterEqual (Local0, 0x03))
  4525. {
  4526. Store (0x0B, MODE)
  4527. }
  4528. Else
  4529. {
  4530. Store (0x0A, MODE)
  4531. }
  4532. }
  4533. }
  4534.  
  4535. Concatenate (Local6, Local7, Local5)
  4536. If (Arg5)
  4537. {
  4538. Store (Buffer (0x07)
  4539. {
  4540. 0x00, 0x00, 0x00, 0x00, 0x00, 0xAE, 0x91
  4541. }, Local4)
  4542. CreateByteField (Local4, One, SPT)
  4543. Store (Arg5, SPT)
  4544. Concatenate (Local5, Local4, Local6)
  4545. Return (Local6)
  4546. }
  4547. Else
  4548. {
  4549. Return (Local5)
  4550. }
  4551. }
  4552.  
  4553. Method (GTF1, 7, NotSerialized)
  4554. {
  4555. Store (Buffer (0x07)
  4556. {
  4557. 0x03, 0x00, 0x00, 0x00, 0x00, 0xB0, 0xEF
  4558. }, Local7)
  4559. CreateByteField (Local7, One, MODE)
  4560. If (And (Arg2, 0x02))
  4561. {
  4562. ShiftRight (And (Arg3, 0x30), 0x04, Local0)
  4563. If (And (Arg6, 0x02))
  4564. {
  4565. Add (Local0, 0x04, Local0)
  4566. }
  4567. Else
  4568. {
  4569. If (And (Arg4, 0x02))
  4570. {
  4571. Add (Local0, 0x02, Local0)
  4572. }
  4573. }
  4574.  
  4575. Or (Local0, 0x40, MODE)
  4576. }
  4577. Else
  4578. {
  4579. Add (ShiftRight (And (Arg1, 0x03), 0x02), And (Arg1,
  4580. 0x0C), Local0)
  4581. If (LGreaterEqual (Local0, 0x05))
  4582. {
  4583. Store (0x22, MODE)
  4584. }
  4585. Else
  4586. {
  4587. If (LGreaterEqual (Local0, 0x03))
  4588. {
  4589. Store (0x21, MODE)
  4590. }
  4591. Else
  4592. {
  4593. Store (0x20, MODE)
  4594. }
  4595. }
  4596. }
  4597.  
  4598. Concatenate (Local7, Local7, Local6)
  4599. If (LOr (And (Arg0, 0x80), LNot (And (Arg0, 0x10
  4600. ))))
  4601. {
  4602. If (And (Arg0, 0x20))
  4603. {
  4604. Store (Zero, MODE)
  4605. }
  4606. Else
  4607. {
  4608. Store (One, MODE)
  4609. }
  4610. }
  4611. Else
  4612. {
  4613. Add (ShiftRight (And (Arg1, 0x03), 0x02), And (Arg1,
  4614. 0x0C), Local0)
  4615. If (LGreaterEqual (Local0, 0x05))
  4616. {
  4617. Store (0x0C, MODE)
  4618. }
  4619. Else
  4620. {
  4621. If (LGreaterEqual (Local0, 0x03))
  4622. {
  4623. Store (0x0B, MODE)
  4624. }
  4625. Else
  4626. {
  4627. Store (0x0A, MODE)
  4628. }
  4629. }
  4630. }
  4631.  
  4632. Concatenate (Local6, Local7, Local5)
  4633. If (Arg5)
  4634. {
  4635. Store (Buffer (0x07)
  4636. {
  4637. 0x00, 0x00, 0x00, 0x00, 0x00, 0xBE, 0x91
  4638. }, Local4)
  4639. CreateByteField (Local4, One, SPT)
  4640. Store (Arg5, SPT)
  4641. Concatenate (Local5, Local4, Local6)
  4642. Return (Local6)
  4643. }
  4644. Else
  4645. {
  4646. Return (Local5)
  4647. }
  4648. }
  4649.  
  4650. Device (PX43)
  4651. {
  4652. Name (_ADR, 0x001F0003)
  4653. OperationRegion (PBAS, PCI_Config, 0x20, 0x02)
  4654. Field (PBAS, ByteAcc, NoLock, Preserve)
  4655. {
  4656. BAS0, 16
  4657. }
  4658.  
  4659. Method (SMBB, 0, NotSerialized)
  4660. {
  4661. And (BAS0, 0xFFFE, Local0)
  4662. Return (Local0)
  4663. }
  4664.  
  4665. Device (BUS0)
  4666. {
  4667. Name (_CID, "smbus")
  4668. Name (_ADR, Zero)
  4669. Device (DVL0)
  4670. {
  4671. Name (_ADR, 0x57)
  4672. Name (_CID, "diagsvault")
  4673. Method (_DSM, 4, NotSerialized)
  4674. {
  4675. Store (Package (0x02)
  4676. {
  4677. "address",
  4678. 0x57
  4679. }, Local0)
  4680. DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
  4681. Return (Local0)
  4682. }
  4683. }
  4684. }
  4685. }
  4686.  
  4687. Device (HDEF)
  4688. {
  4689. Name (_ADR, 0x001B0000)
  4690. Method (_PRW, 0, NotSerialized)
  4691. {
  4692. Return (Package (0x02)
  4693. {
  4694. 0x0D,
  4695. 0x05
  4696. })
  4697. }
  4698.  
  4699. Method (_DSM, 4, NotSerialized)
  4700. {
  4701. Store (Package (0x04)
  4702. {
  4703. "layout-id",
  4704. Buffer (0x04)
  4705. {
  4706. 0x0C, 0x00, 0x00, 0x00
  4707. },
  4708.  
  4709. "PinConfigurations",
  4710. Buffer (Zero) {}
  4711. }, Local0)
  4712. DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
  4713. Return (Local0)
  4714. }
  4715. }
  4716.  
  4717. Name (BUFA, ResourceTemplate ()
  4718. {
  4719. IRQ (Level, ActiveLow, Shared, )
  4720. {3,4,5,6,7,9,10,11,12,14,15}
  4721. })
  4722. Name (BUFB, ResourceTemplate ()
  4723. {
  4724. IRQ (Level, ActiveLow, Shared, )
  4725. {}
  4726. })
  4727. CreateWordField (BUFB, One, IRQV)
  4728. Device (LNKA)
  4729. {
  4730. Name (_HID, EisaId ("PNP0C0F"))
  4731. Name (_UID, One)
  4732. Method (_STA, 0, NotSerialized)
  4733. {
  4734. And (PIRA, 0x80, Local0)
  4735. If (LEqual (Local0, 0x80))
  4736. {
  4737. Return (0x09)
  4738. }
  4739. Else
  4740. {
  4741. Return (0x0B)
  4742. }
  4743. }
  4744.  
  4745. Method (_PRS, 0, NotSerialized)
  4746. {
  4747. Return (BUFA)
  4748. }
  4749.  
  4750. Method (_DIS, 0, NotSerialized)
  4751. {
  4752. Or (PIRA, 0x80, PIRA)
  4753. }
  4754.  
  4755. Method (_CRS, 0, NotSerialized)
  4756. {
  4757. And (PIRA, 0x0F, Local0)
  4758. ShiftLeft (One, Local0, IRQV)
  4759. Return (BUFB)
  4760. }
  4761.  
  4762. Method (_SRS, 1, NotSerialized)
  4763. {
  4764. CreateWordField (Arg0, One, IRQ1)
  4765. FindSetRightBit (IRQ1, Local0)
  4766. Decrement (Local0)
  4767. Store (Local0, PIRA)
  4768. }
  4769. }
  4770.  
  4771. Device (LNKB)
  4772. {
  4773. Name (_HID, EisaId ("PNP0C0F"))
  4774. Name (_UID, 0x02)
  4775. Method (_STA, 0, NotSerialized)
  4776. {
  4777. And (PIRB, 0x80, Local0)
  4778. If (LEqual (Local0, 0x80))
  4779. {
  4780. Return (0x09)
  4781. }
  4782. Else
  4783. {
  4784. Return (0x0B)
  4785. }
  4786. }
  4787.  
  4788. Method (_PRS, 0, NotSerialized)
  4789. {
  4790. Return (BUFA)
  4791. }
  4792.  
  4793. Method (_DIS, 0, NotSerialized)
  4794. {
  4795. Or (PIRB, 0x80, PIRB)
  4796. }
  4797.  
  4798. Method (_CRS, 0, NotSerialized)
  4799. {
  4800. And (PIRB, 0x0F, Local0)
  4801. ShiftLeft (One, Local0, IRQV)
  4802. Return (BUFB)
  4803. }
  4804.  
  4805. Method (_SRS, 1, NotSerialized)
  4806. {
  4807. CreateWordField (Arg0, One, IRQ1)
  4808. FindSetRightBit (IRQ1, Local0)
  4809. Decrement (Local0)
  4810. Store (Local0, PIRB)
  4811. }
  4812. }
  4813.  
  4814. Device (LNKC)
  4815. {
  4816. Name (_HID, EisaId ("PNP0C0F"))
  4817. Name (_UID, 0x03)
  4818. Method (_STA, 0, NotSerialized)
  4819. {
  4820. And (PIRC, 0x80, Local0)
  4821. If (LEqual (Local0, 0x80))
  4822. {
  4823. Return (0x09)
  4824. }
  4825. Else
  4826. {
  4827. Return (0x0B)
  4828. }
  4829. }
  4830.  
  4831. Method (_PRS, 0, NotSerialized)
  4832. {
  4833. Return (BUFA)
  4834. }
  4835.  
  4836. Method (_DIS, 0, NotSerialized)
  4837. {
  4838. Or (PIRC, 0x80, PIRC)
  4839. }
  4840.  
  4841. Method (_CRS, 0, NotSerialized)
  4842. {
  4843. And (PIRC, 0x0F, Local0)
  4844. ShiftLeft (One, Local0, IRQV)
  4845. Return (BUFB)
  4846. }
  4847.  
  4848. Method (_SRS, 1, NotSerialized)
  4849. {
  4850. CreateWordField (Arg0, One, IRQ1)
  4851. FindSetRightBit (IRQ1, Local0)
  4852. Decrement (Local0)
  4853. Store (Local0, PIRC)
  4854. }
  4855. }
  4856.  
  4857. Device (LNKD)
  4858. {
  4859. Name (_HID, EisaId ("PNP0C0F"))
  4860. Name (_UID, 0x04)
  4861. Method (_STA, 0, NotSerialized)
  4862. {
  4863. And (PIRD, 0x80, Local0)
  4864. If (LEqual (Local0, 0x80))
  4865. {
  4866. Return (0x09)
  4867. }
  4868. Else
  4869. {
  4870. Return (0x0B)
  4871. }
  4872. }
  4873.  
  4874. Method (_PRS, 0, NotSerialized)
  4875. {
  4876. Return (BUFA)
  4877. }
  4878.  
  4879. Method (_DIS, 0, NotSerialized)
  4880. {
  4881. Or (PIRD, 0x80, PIRD)
  4882. }
  4883.  
  4884. Method (_CRS, 0, NotSerialized)
  4885. {
  4886. And (PIRD, 0x0F, Local0)
  4887. ShiftLeft (One, Local0, IRQV)
  4888. Return (BUFB)
  4889. }
  4890.  
  4891. Method (_SRS, 1, NotSerialized)
  4892. {
  4893. CreateWordField (Arg0, One, IRQ1)
  4894. FindSetRightBit (IRQ1, Local0)
  4895. Decrement (Local0)
  4896. Store (Local0, PIRD)
  4897. }
  4898. }
  4899.  
  4900. Device (LNKE)
  4901. {
  4902. Name (_HID, EisaId ("PNP0C0F"))
  4903. Name (_UID, 0x05)
  4904. Method (_STA, 0, NotSerialized)
  4905. {
  4906. And (PIRE, 0x80, Local0)
  4907. If (LEqual (Local0, 0x80))
  4908. {
  4909. Return (0x09)
  4910. }
  4911. Else
  4912. {
  4913. Return (0x0B)
  4914. }
  4915. }
  4916.  
  4917. Method (_PRS, 0, NotSerialized)
  4918. {
  4919. Return (BUFA)
  4920. }
  4921.  
  4922. Method (_DIS, 0, NotSerialized)
  4923. {
  4924. Or (PIRE, 0x80, PIRE)
  4925. }
  4926.  
  4927. Method (_CRS, 0, NotSerialized)
  4928. {
  4929. And (PIRE, 0x0F, Local0)
  4930. ShiftLeft (One, Local0, IRQV)
  4931. Return (BUFB)
  4932. }
  4933.  
  4934. Method (_SRS, 1, NotSerialized)
  4935. {
  4936. CreateWordField (Arg0, One, IRQ1)
  4937. FindSetRightBit (IRQ1, Local0)
  4938. Decrement (Local0)
  4939. Store (Local0, PIRE)
  4940. }
  4941. }
  4942.  
  4943. Device (LNKF)
  4944. {
  4945. Name (_HID, EisaId ("PNP0C0F"))
  4946. Name (_UID, 0x06)
  4947. Method (_STA, 0, NotSerialized)
  4948. {
  4949. And (PIRF, 0x80, Local0)
  4950. If (LEqual (Local0, 0x80))
  4951. {
  4952. Return (0x09)
  4953. }
  4954. Else
  4955. {
  4956. Return (0x0B)
  4957. }
  4958. }
  4959.  
  4960. Method (_PRS, 0, NotSerialized)
  4961. {
  4962. Return (BUFA)
  4963. }
  4964.  
  4965. Method (_DIS, 0, NotSerialized)
  4966. {
  4967. Or (PIRF, 0x80, PIRF)
  4968. }
  4969.  
  4970. Method (_CRS, 0, NotSerialized)
  4971. {
  4972. And (PIRF, 0x0F, Local0)
  4973. ShiftLeft (One, Local0, IRQV)
  4974. Return (BUFB)
  4975. }
  4976.  
  4977. Method (_SRS, 1, NotSerialized)
  4978. {
  4979. CreateWordField (Arg0, One, IRQ1)
  4980. FindSetRightBit (IRQ1, Local0)
  4981. Decrement (Local0)
  4982. Store (Local0, PIRF)
  4983. }
  4984. }
  4985.  
  4986. Device (LNK0)
  4987. {
  4988. Name (_HID, EisaId ("PNP0C0F"))
  4989. Name (_UID, 0x07)
  4990. Method (_STA, 0, NotSerialized)
  4991. {
  4992. And (PIRG, 0x80, Local0)
  4993. If (LEqual (Local0, 0x80))
  4994. {
  4995. Return (0x09)
  4996. }
  4997. Else
  4998. {
  4999. Return (0x0B)
  5000. }
  5001. }
  5002.  
  5003. Method (_PRS, 0, NotSerialized)
  5004. {
  5005. Return (BUFA)
  5006. }
  5007.  
  5008. Method (_DIS, 0, NotSerialized)
  5009. {
  5010. Or (PIRG, 0x80, PIRG)
  5011. }
  5012.  
  5013. Method (_CRS, 0, NotSerialized)
  5014. {
  5015. And (PIRG, 0x0F, Local0)
  5016. ShiftLeft (One, Local0, IRQV)
  5017. Return (BUFB)
  5018. }
  5019.  
  5020. Method (_SRS, 1, NotSerialized)
  5021. {
  5022. CreateWordField (Arg0, One, IRQ1)
  5023. FindSetRightBit (IRQ1, Local0)
  5024. Decrement (Local0)
  5025. Store (Local0, PIRG)
  5026. }
  5027. }
  5028.  
  5029. Device (LNK1)
  5030. {
  5031. Name (_HID, EisaId ("PNP0C0F"))
  5032. Name (_UID, 0x08)
  5033. Method (_STA, 0, NotSerialized)
  5034. {
  5035. And (PIRH, 0x80, Local0)
  5036. If (LEqual (Local0, 0x80))
  5037. {
  5038. Return (0x09)
  5039. }
  5040. Else
  5041. {
  5042. Return (0x0B)
  5043. }
  5044. }
  5045.  
  5046. Method (_PRS, 0, NotSerialized)
  5047. {
  5048. Return (BUFA)
  5049. }
  5050.  
  5051. Method (_DIS, 0, NotSerialized)
  5052. {
  5053. Or (PIRH, 0x80, PIRH)
  5054. }
  5055.  
  5056. Method (_CRS, 0, NotSerialized)
  5057. {
  5058. And (PIRH, 0x0F, Local0)
  5059. ShiftLeft (One, Local0, IRQV)
  5060. Return (BUFB)
  5061. }
  5062.  
  5063. Method (_SRS, 1, NotSerialized)
  5064. {
  5065. CreateWordField (Arg0, One, IRQ1)
  5066. FindSetRightBit (IRQ1, Local0)
  5067. Decrement (Local0)
  5068. Store (Local0, PIRH)
  5069. }
  5070. }
  5071.  
  5072. Method (_PRW, 0, NotSerialized)
  5073. {
  5074. Return (Package (0x02)
  5075. {
  5076. 0x0B,
  5077. 0x05
  5078. })
  5079. }
  5080. }
  5081.  
  5082. Device (FWH)
  5083. {
  5084. Name (_HID, EisaId ("INT0800"))
  5085. Method (_CRS, 0, NotSerialized)
  5086. {
  5087. Name (FWH0, ResourceTemplate ()
  5088. {
  5089. Memory32Fixed (ReadWrite,
  5090. 0xFFB80000, // Address Base
  5091. 0x00080000, // Address Length
  5092. )
  5093. })
  5094. Return (FWH0)
  5095. }
  5096. }
  5097.  
  5098. Device (PCI0.EXPL)
  5099. {
  5100. Name (_HID, EisaId ("PNP0C02"))
  5101. Name (_UID, 0x04)
  5102. Method (_CRS, 0, NotSerialized)
  5103. {
  5104. Name (BUF0, ResourceTemplate ()
  5105. {
  5106. Memory32Fixed (ReadWrite,
  5107. 0xF0000000, // Address Base
  5108. 0x04000000, // Address Length
  5109. )
  5110. })
  5111. Return (BUF0)
  5112. }
  5113. }
  5114.  
  5115. Device (MCEH)
  5116. {
  5117. Name (_HID, EisaId ("APP0006"))
  5118. Name (_STA, 0x0B)
  5119. }
  5120. }
  5121.  
  5122. Method (DTGP, 5, NotSerialized)
  5123. {
  5124. If (LEqual (Arg0, Buffer (0x10)
  5125. {
  5126. /* 0000 */ 0xC6, 0xB7, 0xB5, 0xA0, 0x18, 0x13, 0x1C, 0x44,
  5127. /* 0008 */ 0xB0, 0xC9, 0xFE, 0x69, 0x5E, 0xAF, 0x94, 0x9B
  5128. }))
  5129. {
  5130. If (LEqual (Arg1, One))
  5131. {
  5132. If (LEqual (Arg2, Zero))
  5133. {
  5134. Store (Buffer (One)
  5135. {
  5136. 0x03
  5137. }, Arg4)
  5138. Return (One)
  5139. }
  5140.  
  5141. If (LEqual (Arg2, One))
  5142. {
  5143. Return (One)
  5144. }
  5145. }
  5146. }
  5147.  
  5148. Store (Buffer (One)
  5149. {
  5150. 0x00
  5151. }, Arg4)
  5152. Return (Zero)
  5153. }
  5154.  
  5155. OperationRegion (PMRS, SystemIO, 0x0430, One)
  5156. Field (PMRS, ByteAcc, NoLock, Preserve)
  5157. {
  5158. , 4,
  5159. SLPE, 1
  5160. }
  5161. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement