Guest User

Untitled

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