Advertisement
Guest User

Untitled

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