Advertisement
Guest User

Untitled

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