Advertisement
Guest User

dsdt of toshiba nb100

a guest
Sep 28th, 2013
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 203.81 KB | None | 0 0
  1. /*
  2. * Intel ACPI Component Architecture
  3. * AML Disassembler version 20100528
  4. *
  5. * Disassembly of dsdt.aml, Sat Sep 28 11:53:40 2013
  6. *
  7. *
  8. * Original Table Header:
  9. * Signature "DSDT"
  10. * Length 0x000055BB (21947)
  11. * Revision 0x01 **** ACPI 1.0, no 64-bit math support
  12. * Checksum 0x9F
  13. * OEM ID "TOSINV"
  14. * OEM Table ID "TOSINV00"
  15. * OEM Revision 0x00000001 (1)
  16. * Compiler ID "MSFT"
  17. * Compiler Version 0x01000013 (16777235)
  18. */
  19. DefinitionBlock ("dsdt.aml", "DSDT", 1, "TOSINV", "TOSINV00", 0x00000001)
  20. {
  21. OperationRegion (PORT, SystemIO, 0x80, One)
  22. Field (PORT, ByteAcc, NoLock, Preserve)
  23. {
  24. P80H, 8
  25. }
  26.  
  27. OperationRegion (GPIO, SystemIO, 0x0500, 0x3F)
  28. Field (GPIO, ByteAcc, NoLock, Preserve)
  29. {
  30. Offset (0x0F),
  31. , 3,
  32. GP27, 1,
  33. Offset (0x10),
  34. Offset (0x38),
  35. , 1,
  36. , 1,
  37. CPEN, 1,
  38. Offset (0x39)
  39. }
  40.  
  41. OperationRegion (PMBA, SystemIO, 0x0400, 0x80)
  42. Field (PMBA, ByteAcc, NoLock, Preserve)
  43. {
  44. Offset (0x10),
  45. THRL, 8,
  46. Offset (0x28),
  47. , 2,
  48. SPST, 1,
  49. Offset (0x30),
  50. , 4,
  51. SSMI, 1,
  52. Offset (0x42),
  53. , 1,
  54. GPEC, 1
  55. }
  56.  
  57. OperationRegion (RCRB, SystemMemory, 0xFED1C000, 0x4000)
  58. Field (RCRB, DWordAcc, Lock, Preserve)
  59. {
  60. Offset (0x1000),
  61. Offset (0x3000),
  62. Offset (0x3404),
  63. HPAS, 2,
  64. , 5,
  65. HPAE, 1,
  66. Offset (0x3418),
  67. , 1,
  68. PATD, 1,
  69. SATD, 1,
  70. SMBD, 1,
  71. AZAD, 1,
  72. A97D, 1,
  73. Offset (0x341A),
  74. RP1D, 1,
  75. RP2D, 1,
  76. RP3D, 1,
  77. RP4D, 1
  78. }
  79.  
  80. OperationRegion (MBOX, SystemMemory, 0x3F63EE10, 0x000000F9)
  81. Field (MBOX, AnyAcc, NoLock, Preserve)
  82. {
  83. PCI1, 8,
  84. PCI2, 8,
  85. PCI3, 8,
  86. PCI4, 8,
  87. PCI5, 8,
  88. PCI6, 8,
  89. PCI7, 8,
  90. PCI8, 8,
  91. NLCK, 8,
  92. ZIPE, 8,
  93. COMA, 8,
  94. CAIO, 8,
  95. CAIP, 8,
  96. CAMD, 8,
  97. CADA, 8,
  98. COMB, 8,
  99. CBIO, 8,
  100. CBIP, 8,
  101. CBMD, 8,
  102. CBDA, 8,
  103. COMC, 8,
  104. CCIO, 8,
  105. CCIP, 8,
  106. CCMD, 8,
  107. CCDA, 8,
  108. COMD, 8,
  109. CDIO, 8,
  110. CDIP, 8,
  111. CDMD, 8,
  112. CDDA, 8,
  113. LPT1, 8,
  114. L1IO, 8,
  115. L1IP, 8,
  116. L1MD, 8,
  117. L1DA, 8,
  118. LPT2, 8,
  119. L2IO, 8,
  120. L2IP, 8,
  121. L2MD, 8,
  122. L2DA, 8,
  123. LPT3, 8,
  124. L3IO, 8,
  125. L3IP, 8,
  126. L3MD, 8,
  127. L3DA, 8,
  128. FDDC, 8,
  129. FDWP, 8,
  130. HGMP, 8,
  131. LGMP, 8,
  132. MIDI, 8,
  133. AZLA, 8,
  134. AUDO, 8,
  135. MODM, 8,
  136. IDEC, 8,
  137. PACT, 8,
  138. SCFG, 8,
  139. AIBT, 8,
  140. AMOD, 8,
  141. P0HP, 8,
  142. P2HP, 8,
  143. P0IL, 8,
  144. P2IL, 8,
  145. IDLY, 8,
  146. PMTP, 8,
  147. PMIO, 8,
  148. PMBM, 8,
  149. PMTM, 8,
  150. PSTP, 8,
  151. PSIO, 8,
  152. PSBM, 8,
  153. PSTM, 8,
  154. SMTP, 8,
  155. SMIO, 8,
  156. SMBM, 8,
  157. SMTM, 8,
  158. SSTP, 8,
  159. SSIO, 8,
  160. SSBM, 8,
  161. SSTM, 8,
  162. IDE0, 8,
  163. IDE1, 8,
  164. IDE2, 8,
  165. IDE3, 8,
  166. IDE4, 8,
  167. IDE5, 8,
  168. IDE6, 8,
  169. IDE7, 8,
  170. PEGS, 8,
  171. D2F1, 8,
  172. IGMT, 8,
  173. DTSZ, 8,
  174. BOTT, 8,
  175. TVTP, 8,
  176. HIUB, 8,
  177. LUBS, 8,
  178. EDCG, 8,
  179. SDFY, 8,
  180. SDTC, 8,
  181. SDRP, 8,
  182. SDCL, 8,
  183. SDRC, 8,
  184. SDRE, 8,
  185. FC2L, 8,
  186. FC3L, 8,
  187. FCS4, 8,
  188. APIM, 8,
  189. HPTS, 8,
  190. HPTA, 8,
  191. EMAS, 8,
  192. MASF, 8,
  193. ASFB, 8,
  194. MBTX, 8,
  195. XPRO, 8,
  196. IDER, 8,
  197. SOLE, 8,
  198. EYLS, 8,
  199. EYLH, 8,
  200. TPMD, 8,
  201. TPMO, 8,
  202. TPMC, 8,
  203. TPMM, 8,
  204. TPCC, 8,
  205. TPLC, 8,
  206. TPLR, 32,
  207. ISTC, 8,
  208. TRML, 8,
  209. TRON, 8,
  210. NXMD, 8,
  211. PCRR, 8,
  212. C4EN, 8,
  213. C43D, 8,
  214. EMTT, 8,
  215. PROH, 8,
  216. DFSB, 8,
  217. TUBM, 8,
  218. TSTE, 8,
  219. DAS3, 8,
  220. WKPM, 8,
  221. WKMD, 8,
  222. WKS5, 8,
  223. HOUR, 8,
  224. MINS, 8,
  225. SECS, 8,
  226. DOFM, 8,
  227. QKS4, 8,
  228. POPU, 8,
  229. POPD, 8,
  230. NXFE, 8,
  231. VTST, 8,
  232. VTFE, 8,
  233. S5FG, 8,
  234. CSTS, 8,
  235. ENCS, 8,
  236. DEC4, 8,
  237. HC4E, 8,
  238. ENC6, 8,
  239. CSTR, 8,
  240. CMPE, 8,
  241. DTSE, 8,
  242. DTSC, 8,
  243. QBOT, 8,
  244. QEBT, 8,
  245. PBOT, 8,
  246. OSYS, 16,
  247. PSD0, 8,
  248. PSD1, 8,
  249. D2DX, 8,
  250. F12M, 8,
  251. MLMB, 8,
  252. PEGF, 8,
  253. BTMT, 8,
  254. BTNP, 8,
  255. LNMT, 8,
  256. NBTO, 8,
  257. NOBD, 64,
  258. NABD, 8,
  259. NEBD, 8,
  260. NLBD, 8,
  261. BTTO, 64,
  262. DFBT, 16,
  263. NPOP, 16,
  264. LNGG, 8,
  265. SVPW, 16,
  266. POPW, 16,
  267. UASL, 8,
  268. URPW, 16,
  269. STUP, 8,
  270. DVET, 8,
  271. HDPW, 16,
  272. S3RS, 8,
  273. SAHP, 16,
  274. SHPF, 8,
  275. SVFG, 8,
  276. URFG, 8,
  277. VGOD, 8,
  278. SFOF, 8,
  279. KBPO, 8,
  280. MSPO, 8,
  281. PRST, 8,
  282. PSHM, 8,
  283. UBBT, 8,
  284. EPSC, 8,
  285. DSFT, 8,
  286. ISYS, 16,
  287. ENTL, 8,
  288. SYBE, 8,
  289. EVLC, 8,
  290. ACP3, 8,
  291. PTDV, 8,
  292. LANX, 8,
  293. WKOL, 8,
  294. CBTW, 8,
  295. AKWU, 8,
  296. USCM, 8,
  297. SSVP, 8,
  298. HDD0, 16,
  299. HDD1, 8,
  300. HDD2, 8,
  301. HDD3, 8,
  302. HDD4, 8,
  303. HDD5, 8,
  304. HDD6, 8
  305. }
  306.  
  307. OperationRegion (CMS1, SystemIO, 0x72, 0x02)
  308. Field (CMS1, ByteAcc, NoLock, Preserve)
  309. {
  310. CMSI, 8,
  311. CMSD, 8
  312. }
  313.  
  314. Method (CMSW, 2, NotSerialized)
  315. {
  316. Store (Arg0, CMSI)
  317. Store (Arg1, CMSD)
  318. }
  319.  
  320. OperationRegion (IO_T, SystemIO, 0x0800, 0x10)
  321. Field (IO_T, ByteAcc, NoLock, Preserve)
  322. {
  323. Offset (0x02),
  324. Offset (0x04),
  325. Offset (0x06),
  326. Offset (0x08),
  327. TRP1, 8,
  328. Offset (0x0A),
  329. Offset (0x0B),
  330. Offset (0x0C),
  331. Offset (0x0D),
  332. Offset (0x0E),
  333. Offset (0x0F),
  334. Offset (0x10)
  335. }
  336.  
  337. OperationRegion (IO_D, SystemIO, 0x0810, 0x08)
  338. Field (IO_D, ByteAcc, NoLock, Preserve)
  339. {
  340. TRPD, 8
  341. }
  342.  
  343. OperationRegion (NVST, SystemMemory, 0x3F63EF09, 0x000000D1)
  344. Field (NVST, AnyAcc, Lock, Preserve)
  345. {
  346. SMIF, 8,
  347. PRM0, 8,
  348. PRM1, 8,
  349. BRTL, 8,
  350. TLST, 8,
  351. IGDS, 8,
  352. LCDA, 16,
  353. CSTE, 16,
  354. NSTE, 16,
  355. CADL, 16,
  356. PADL, 16,
  357. LIDS, 8,
  358. PWRS, 8,
  359. BVAL, 32,
  360. CMPF, 8,
  361. CSTF, 8,
  362. GTF0, 56,
  363. GTF2, 56,
  364. IDEM, 8,
  365. DTS1, 8,
  366. DTS2, 8,
  367. DTSF, 8,
  368. PPMF, 32,
  369. NDID, 8,
  370. DID1, 32,
  371. DID2, 32,
  372. DID3, 32,
  373. DID4, 32,
  374. DID5, 32,
  375. USBM, 32,
  376. Offset (0x80),
  377. ACPS, 8,
  378. CPUS, 8,
  379. CPUL, 8
  380. }
  381.  
  382. Name (PWBS, Zero)
  383. Mutex (MUTS, 0x00)
  384. Mutex (MUTE, 0x00)
  385. Mutex (MUTV, 0x00)
  386. OperationRegion (PSMI, SystemIO, 0xB2, 0x02)
  387. Field (PSMI, ByteAcc, NoLock, Preserve)
  388. {
  389. APMC, 8,
  390. APMD, 8
  391. }
  392.  
  393. Field (NVST, AnyAcc, Lock, Preserve)
  394. {
  395. Offset (0x88),
  396. EGST, 8,
  397. LCDS, 4,
  398. CECS, 1,
  399. CECP, 1,
  400. HDMI, 1,
  401. HKMD, 1,
  402. TSBK, 1,
  403. SDAT, 1,
  404. DCIR, 1,
  405. DBTN, 2,
  406. HKEM, 1,
  407. HSEM, 1,
  408. IECC, 1,
  409. FNF3, 8,
  410. LCMD, 8,
  411. SVCF, 8,
  412. SWB0, 32,
  413. SWB1, 32,
  414. SWB2, 32,
  415. SWB3, 32,
  416. SWB4, 32,
  417. SWB5, 32,
  418. SWB6, 32,
  419. SWB7, 32,
  420. KYB0, 32,
  421. KYB1, 32,
  422. KYB2, 32,
  423. KYB3, 32,
  424. KYB4, 32,
  425. KYB5, 32,
  426. KYB6, 32,
  427. KYB7, 32,
  428. IEC0, 8,
  429. IEC1, 8,
  430. IEC2, 8
  431. }
  432.  
  433. OperationRegion (ECMB, SystemIO, 0x0600, 0x02)
  434. Field (ECMB, ByteAcc, Lock, Preserve)
  435. {
  436. MIDX, 8,
  437. MDAT, 8
  438. }
  439.  
  440. IndexField (MIDX, MDAT, ByteAcc, Lock, Preserve)
  441. {
  442. Offset (0x84),
  443. PHKY, 8,
  444. Offset (0x88),
  445. EIDL, 8,
  446. Offset (0x8E),
  447. , 1,
  448. , 1,
  449. OSEC, 1,
  450. THEN, 1,
  451. THLV, 4,
  452. FKST, 1,
  453. Offset (0x90),
  454. Offset (0xA1),
  455. ECMD, 8,
  456. IND0, 8,
  457. IND1, 8,
  458. DAT0, 8,
  459. DAT1, 8,
  460. Offset (0xA7),
  461. , 2,
  462. OS07, 1,
  463. CRIT, 1,
  464. Offset (0xAA),
  465. EVCT, 8
  466. }
  467.  
  468. Method (FLNK, 2, Serialized)
  469. {
  470. If (LEqual (IECC, Zero))
  471. {
  472. Add (IEC2, 0x03, IEC2)
  473. Decrement (IEC1)
  474. Subtract (IEC0, 0x0B, IEC0)
  475. Store (One, IECC)
  476. }
  477.  
  478. If (LEqual (Arg0, 0xFF))
  479. {
  480. Store (Arg1, SVCF)
  481. }
  482. Else
  483. {
  484. Store (Arg1, SWB0)
  485. }
  486.  
  487. Store (Arg0, LCMD)
  488. Store (0xFF, APMD)
  489. Store (0xE3, APMC)
  490. Return (And (SWB0, 0xFF))
  491. }
  492.  
  493. Device (_SB.FWEX)
  494. {
  495. Name (_HID, "TOS1901")
  496. Method (FWES, 1, NotSerialized)
  497. {
  498. Acquire (MUTS, 0xFFFF)
  499. Name (FWEB, Buffer (0x20) {})
  500. Store (DerefOf (Index (Arg0, Zero)), Local4)
  501. Store (Zero, Local7)
  502. If (LEqual (Local4, 0x81))
  503. {
  504. Store (DerefOf (Index (Arg0, One)), Local0)
  505. If (LEqual (Local0, 0xFF))
  506. {
  507. Store (EVCT, Local0)
  508. Store (Local0, Index (FWEB, Zero))
  509. Release (MUTS)
  510. Return (FWEB)
  511. }
  512. Else
  513. {
  514. If (LEqual (Local0, 0xFE))
  515. {
  516. Store (FKST, Local0)
  517. Store (Local0, Index (FWEB, Zero))
  518. Release (MUTS)
  519. Return (FWEB)
  520. }
  521. Else
  522. {
  523. Store (One, Local7)
  524. }
  525. }
  526. }
  527.  
  528. Store (0x20, Local0)
  529. Store (One, Local1)
  530. Store (Zero, Local3)
  531. While (Local0)
  532. {
  533. Store (ShiftLeft (DerefOf (Index (Arg0, Local1)), 0x18), Local2)
  534. Add (And (ShiftRight (Local3, 0x08), 0x00FFFFFF), Local2, Local3)
  535. If (LEqual (Local1, 0x04))
  536. {
  537. Store (Local3, Local5)
  538. Store (Local3, SWB0)
  539. }
  540. Else
  541. {
  542. If (LEqual (Local1, 0x08))
  543. {
  544. Store (Local3, SWB1)
  545. }
  546. Else
  547. {
  548. If (LEqual (Local1, 0x0C))
  549. {
  550. Store (Local3, SWB2)
  551. }
  552. Else
  553. {
  554. If (LEqual (Local1, 0x10))
  555. {
  556. Store (Local3, SWB3)
  557. }
  558. Else
  559. {
  560. If (LEqual (Local1, 0x14))
  561. {
  562. Store (Local3, SWB4)
  563. }
  564. Else
  565. {
  566. If (LEqual (Local1, 0x18))
  567. {
  568. Store (Local3, SWB5)
  569. }
  570. Else
  571. {
  572. If (LEqual (Local1, 0x1C))
  573. {
  574. Store (Local3, SWB6)
  575. }
  576. Else
  577. {
  578. If (LEqual (Local1, 0x20))
  579. {
  580. Store (Local3, SWB7)
  581. }
  582. }
  583. }
  584. }
  585. }
  586. }
  587. }
  588. }
  589.  
  590. Decrement (Local0)
  591. Add (Local1, One, Local1)
  592. }
  593.  
  594. If (LEqual (Local7, One))
  595. {
  596. Store (0x11, Local4)
  597. Store (EVCT, Local5)
  598. }
  599.  
  600. FLNK (Local4, Local5)
  601. Store (SWB0, Local1)
  602. Store (Zero, Local2)
  603. While (LNotEqual (Local2, 0x20))
  604. {
  605. If (LEqual (Local2, 0x04))
  606. {
  607. Store (SWB1, Local1)
  608. }
  609. Else
  610. {
  611. If (LEqual (Local2, 0x08))
  612. {
  613. Store (SWB2, Local1)
  614. }
  615. Else
  616. {
  617. If (LEqual (Local2, 0x0C))
  618. {
  619. Store (SWB3, Local1)
  620. }
  621. Else
  622. {
  623. If (LEqual (Local2, 0x10))
  624. {
  625. Store (SWB4, Local1)
  626. }
  627. Else
  628. {
  629. If (LEqual (Local2, 0x14))
  630. {
  631. Store (SWB5, Local1)
  632. }
  633. Else
  634. {
  635. If (LEqual (Local2, 0x18))
  636. {
  637. Store (SWB6, Local1)
  638. }
  639. Else
  640. {
  641. If (LEqual (Local2, 0x1C))
  642. {
  643. Store (SWB7, Local1)
  644. }
  645. }
  646. }
  647. }
  648. }
  649. }
  650. }
  651.  
  652. Store (Local1, Index (FWEB, Local2))
  653. Divide (Local1, 0x0100, Local0, Local1)
  654. Add (Local2, One, Local2)
  655. }
  656.  
  657. Store (Zero, Local0)
  658. If (LNotEqual (LCMD, Zero))
  659. {
  660. Store (Zero, Local2)
  661. While (LNotEqual (Local2, 0x20))
  662. {
  663. Store (0xFF, Index (FWEB, Local2))
  664. Add (Local2, One, Local2)
  665. }
  666. }
  667.  
  668. Store (Local0, SWB0)
  669. Store (Local0, SWB1)
  670. Store (Local0, SWB2)
  671. Store (Local0, SWB3)
  672. Store (Local0, SWB4)
  673. Store (Local0, SWB5)
  674. Store (Local0, SWB6)
  675. Store (Local0, SWB7)
  676. If (LEqual (Local7, One))
  677. {
  678. Store (EVCT, Index (FWEB, 0x1F))
  679. }
  680.  
  681. Release (MUTS)
  682. Return (FWEB)
  683. }
  684.  
  685. Method (_STA, 0, NotSerialized)
  686. {
  687. If (LLess (OSYS, 0x07D6))
  688. {
  689. Return (0x0B)
  690. }
  691. Else
  692. {
  693. Return (Zero)
  694. }
  695. }
  696. }
  697.  
  698. Method (WFNK, 1, NotSerialized)
  699. {
  700. Acquire (MUTS, 0xFFFF)
  701. FLNK (0xFF, 0x30)
  702. Release (MUTS)
  703. If (LOr (LEqual (Arg0, 0x03), LEqual (Arg0, 0x04)))
  704. {
  705. Store (\_SB.PCI0.LPC.EC0.PWBN, Local0)
  706. If (LNotEqual (Local0, PWBS))
  707. {
  708. Store (PWBS, \_SB.PCI0.LPC.EC0.PWBN)
  709. }
  710. }
  711.  
  712. If (\_SB.PCI0.LPC.EC0.BTON)
  713. {
  714. Store (Zero, \_SB.PCI0.LPC.EC0.BTRT)
  715. Store (One, \_SB.PCI0.LPC.EC0.BTON)
  716. Store (One, \_SB.PCI0.LPC.EC0.BION)
  717. Store (One, \_SB.PCI0.LPC.EC0.BTRT)
  718. }
  719.  
  720. Notify (\_SB.BT, Zero)
  721. Store (One, SSMI)
  722. }
  723.  
  724. Method (SFNK, 1, NotSerialized)
  725. {
  726. Acquire (MUTS, 0xFFFF)
  727. If (LOr (LEqual (Arg0, 0x03), LEqual (Arg0, 0x04)))
  728. {
  729. Store (\_SB.PCI0.LPC.EC0.PWBN, PWBS)
  730. }
  731.  
  732. Release (MUTS)
  733. }
  734.  
  735. Scope (_PR)
  736. {
  737. Processor (CPU0, 0x01, 0x00000410, 0x06) {}
  738. Processor (CPU1, 0x02, 0x00000410, 0x06) {}
  739. }
  740.  
  741. Name (ECON, Zero)
  742. Name (CTYP, Zero)
  743. Name (DSEN, One)
  744. Method (_PTS, 1, NotSerialized)
  745. {
  746. Acquire (MUTS, 0xFFFF)
  747. \_SB.OSMI (0xFF)
  748. Release (MUTS)
  749. If (LEqual (Arg0, 0x03))
  750. {
  751. Store (0x53, P80H)
  752. }
  753.  
  754. If (LEqual (Arg0, 0x04))
  755. {
  756. Store (0x54, P80H)
  757. If (LGreater (OSYS, 0x07D6))
  758. {
  759. Acquire (MUTS, 0xFFFF)
  760. Store (0x26, APMD)
  761. Store (0xC0, APMC)
  762. Release (MUTS)
  763. }
  764. }
  765.  
  766. SFNK (Arg0)
  767. If (LEqual (Arg0, 0x05))
  768. {
  769. If (LEqual (OS07, Zero))
  770. {
  771. Acquire (MUTS, 0xFFFF)
  772. \_SB.OSMI (0xFE)
  773. Release (MUTS)
  774. }
  775.  
  776. Sleep (0x1388)
  777. }
  778.  
  779. Return (Zero)
  780. }
  781.  
  782. Method (_WAK, 1, NotSerialized)
  783. {
  784. If (LGreater (OSYS, 0x07D6))
  785. {
  786. Store (One, OS07)
  787. }
  788. Else
  789. {
  790. Store (Zero, OS07)
  791. }
  792.  
  793. Store (One, OSEC)
  794. If (LEqual (Arg0, 0x03))
  795. {
  796. Acquire (MUTS, 0xFFFF)
  797. \_SB.OSMI (0xC1)
  798. If (THEN)
  799. {
  800. Or (0x10, THLV, THRL)
  801. }
  802. Else
  803. {
  804. Store (Zero, THRL)
  805. }
  806.  
  807. Release (MUTS)
  808. If (\_SB.PCI0.LPC.EC0.WKSV)
  809. {
  810. Notify (\_SB.PWRB, 0x02)
  811. }
  812.  
  813. Notify (\_SB.PCI0.EXP2, Zero)
  814. Store (0xE3, P80H)
  815. }
  816.  
  817. Notify (\_SB.BAT0, 0x81)
  818. If (LEqual (Arg0, 0x04))
  819. {
  820. If (\_SB.PCI0.LPC.EC0.WKSV)
  821. {
  822. Notify (\_SB.PWRB, 0x02)
  823. }
  824.  
  825. Notify (\_SB.PCI0.EXP2, Zero)
  826. Acquire (MUTS, 0xFFFF)
  827. \_SB.OSMI (0xC1)
  828. If (THEN)
  829. {
  830. Or (0x10, THLV, THRL)
  831. }
  832. Else
  833. {
  834. Store (Zero, THRL)
  835. }
  836.  
  837. Release (MUTS)
  838. Store (0xE4, P80H)
  839. }
  840.  
  841. WFNK (Arg0)
  842. Return (Zero)
  843. }
  844.  
  845. Name (_S0, Package (0x04)
  846. {
  847. Zero,
  848. Zero,
  849. Zero,
  850. Zero
  851. })
  852. Name (_S3, Package (0x04)
  853. {
  854. 0x05,
  855. 0x05,
  856. Zero,
  857. Zero
  858. })
  859. Name (_S4, Package (0x04)
  860. {
  861. 0x06,
  862. 0x06,
  863. Zero,
  864. Zero
  865. })
  866. Name (_S5, Package (0x04)
  867. {
  868. 0x07,
  869. 0x07,
  870. Zero,
  871. Zero
  872. })
  873. Scope (_GPE)
  874. {
  875. Method (_L02, 0, NotSerialized)
  876. {
  877. Store (Zero, GPEC)
  878. Notify (\_TZ.THRM, 0x80)
  879. }
  880.  
  881. Method (_L03, 0, NotSerialized)
  882. {
  883. Notify (\_SB.PCI0.UHC1, 0x02)
  884. }
  885.  
  886. Method (_L04, 0, NotSerialized)
  887. {
  888. Notify (\_SB.PCI0.UHC2, 0x02)
  889. }
  890.  
  891. Method (_L05, 0, NotSerialized)
  892. {
  893. }
  894.  
  895. Method (_L09, 0, NotSerialized)
  896. {
  897. Notify (\_SB.PCI0.EXP1, 0x02)
  898. Notify (\_SB.PCI0.EXP2, 0x02)
  899. }
  900.  
  901. Method (_L0B, 0, NotSerialized)
  902. {
  903. Notify (\_SB.PCI0.P32, 0x02)
  904. }
  905.  
  906. Method (_L0C, 0, NotSerialized)
  907. {
  908. Notify (\_SB.PCI0.UHC3, 0x02)
  909. }
  910.  
  911. Method (_L0D, 0, NotSerialized)
  912. {
  913. Notify (\_SB.PCI0.ECHI, 0x02)
  914. }
  915.  
  916. Method (_L0E, 0, NotSerialized)
  917. {
  918. Notify (\_SB.PCI0.UHC4, 0x02)
  919. }
  920.  
  921. Method (_L1D, 0, NotSerialized)
  922. {
  923. Notify (\_SB.PWRB, 0x02)
  924. }
  925. }
  926.  
  927. Name (GPIC, Zero)
  928. Method (_PIC, 1, NotSerialized)
  929. {
  930. Store (Arg0, GPIC)
  931. }
  932.  
  933. Scope (_TZ)
  934. {
  935. PowerResource (FN00, 0x00, 0x0000)
  936. {
  937. Method (_STA, 0, Serialized)
  938. {
  939. Return (One)
  940. }
  941.  
  942. Method (_ON, 0, Serialized)
  943. {
  944. }
  945.  
  946. Method (_OFF, 0, Serialized)
  947. {
  948. }
  949. }
  950.  
  951. Device (FAN)
  952. {
  953. Name (_HID, EisaId ("PNP0C0B"))
  954. Name (_UID, Zero)
  955. Name (_PR0, Package (0x01)
  956. {
  957. FN00
  958. })
  959. }
  960.  
  961. ThermalZone (THRM)
  962. {
  963. Method (_TMP, 0, Serialized)
  964. {
  965. If (\_SB.PCI0.LPC.EC0.ECOK)
  966. {
  967. Store (\_SB.PCI0.LPC.EC0.CCTV, Local0)
  968. Return (Add (0x0AAC, Multiply (Local0, 0x0A)))
  969. }
  970.  
  971. Return (0x0BB8)
  972. }
  973.  
  974. Method (_AC0, 0, Serialized)
  975. {
  976. Return (Add (0x0AAC, Multiply (TRON, 0x0A)))
  977. }
  978.  
  979. Method (_PSV, 0, Serialized)
  980. {
  981. If (LLess (TRON, 0x64))
  982. {
  983. Return (0x0E44)
  984. }
  985. Else
  986. {
  987. Return (0x0ED0)
  988. }
  989. }
  990.  
  991. Method (_CRT, 0, Serialized)
  992. {
  993. If (LLess (TRON, 0x64))
  994. {
  995. Return (0x0E44)
  996. }
  997. Else
  998. {
  999. Return (0x0ED0)
  1000. }
  1001. }
  1002.  
  1003. Method (_SCP, 1, Serialized)
  1004. {
  1005. Store (Arg0, CTYP)
  1006. }
  1007.  
  1008. Name (_AL0, Package (0x01)
  1009. {
  1010. FAN
  1011. })
  1012. Method (_PSL, 0, Serialized)
  1013. {
  1014. If (CMPE)
  1015. {
  1016. Return (Package (0x02)
  1017. {
  1018. \_PR.CPU0,
  1019. \_PR.CPU1
  1020. })
  1021. }
  1022.  
  1023. Return (Package (0x01)
  1024. {
  1025. \_PR.CPU0
  1026. })
  1027. }
  1028.  
  1029. Name (_TC1, 0x02)
  1030. Name (_TC2, 0x05)
  1031. Name (_TSP, 0x012C)
  1032. }
  1033. }
  1034.  
  1035. Method (SCMP, 2, NotSerialized)
  1036. {
  1037. Name (STG1, Buffer (0x50) {})
  1038. Name (STG2, Buffer (0x50) {})
  1039. Store (Arg0, STG1)
  1040. Store (Arg1, STG2)
  1041. If (LNotEqual (SizeOf (Arg0), SizeOf (Arg1)))
  1042. {
  1043. Return (Zero)
  1044. }
  1045.  
  1046. Store (Zero, Local0)
  1047. While (LLess (Local0, SizeOf (Arg0)))
  1048. {
  1049. If (LNotEqual (DerefOf (Index (STG1, Local0)), DerefOf (Index (
  1050. STG2, Local0))))
  1051. {
  1052. Return (Zero)
  1053. }
  1054.  
  1055. Increment (Local0)
  1056. }
  1057.  
  1058. Return (One)
  1059. }
  1060.  
  1061. Method (GETP, 1, Serialized)
  1062. {
  1063. If (LEqual (And (Arg0, 0x09), Zero))
  1064. {
  1065. Return (Ones)
  1066. }
  1067.  
  1068. If (LEqual (And (Arg0, 0x09), 0x08))
  1069. {
  1070. Return (0x0384)
  1071. }
  1072.  
  1073. ShiftRight (And (Arg0, 0x0300), 0x08, Local0)
  1074. ShiftRight (And (Arg0, 0x3000), 0x0C, Local1)
  1075. Return (Multiply (0x1E, Subtract (0x09, Add (Local0, Local1))
  1076. ))
  1077. }
  1078.  
  1079. Method (GDMA, 5, Serialized)
  1080. {
  1081. If (Arg0)
  1082. {
  1083. If (LAnd (Arg1, Arg4))
  1084. {
  1085. Return (0x14)
  1086. }
  1087.  
  1088. If (LAnd (Arg2, Arg4))
  1089. {
  1090. Return (Multiply (Subtract (0x04, Arg3), 0x0F))
  1091. }
  1092.  
  1093. Return (Multiply (Subtract (0x04, Arg3), 0x1E))
  1094. }
  1095.  
  1096. Return (Ones)
  1097. }
  1098.  
  1099. Method (GETT, 1, Serialized)
  1100. {
  1101. Return (Multiply (0x1E, Subtract (0x09, Add (And (ShiftRight (Arg0, 0x02
  1102. ), 0x03), And (Arg0, 0x03)))))
  1103. }
  1104.  
  1105. Method (GETF, 3, Serialized)
  1106. {
  1107. Name (TMPF, Zero)
  1108. If (Arg0)
  1109. {
  1110. Or (TMPF, One, TMPF)
  1111. }
  1112.  
  1113. If (And (Arg2, 0x02))
  1114. {
  1115. Or (TMPF, 0x02, TMPF)
  1116. }
  1117.  
  1118. If (Arg1)
  1119. {
  1120. Or (TMPF, 0x04, TMPF)
  1121. }
  1122.  
  1123. If (And (Arg2, 0x20))
  1124. {
  1125. Or (TMPF, 0x08, TMPF)
  1126. }
  1127.  
  1128. If (And (Arg2, 0x4000))
  1129. {
  1130. Or (TMPF, 0x10, TMPF)
  1131. }
  1132.  
  1133. Return (TMPF)
  1134. }
  1135.  
  1136. Method (SETP, 3, Serialized)
  1137. {
  1138. If (LGreater (Arg0, 0xF0))
  1139. {
  1140. Return (0x08)
  1141. }
  1142. Else
  1143. {
  1144. If (And (Arg1, 0x02))
  1145. {
  1146. If (LAnd (LLessEqual (Arg0, 0x78), And (Arg2, 0x02)))
  1147. {
  1148. Return (0x2301)
  1149. }
  1150.  
  1151. If (LAnd (LLessEqual (Arg0, 0xB4), And (Arg2, One)))
  1152. {
  1153. Return (0x2101)
  1154. }
  1155. }
  1156.  
  1157. Return (0x1001)
  1158. }
  1159. }
  1160.  
  1161. Method (SDMA, 1, Serialized)
  1162. {
  1163. If (LLessEqual (Arg0, 0x14))
  1164. {
  1165. Return (One)
  1166. }
  1167.  
  1168. If (LLessEqual (Arg0, 0x1E))
  1169. {
  1170. Return (0x02)
  1171. }
  1172.  
  1173. If (LLessEqual (Arg0, 0x2D))
  1174. {
  1175. Return (One)
  1176. }
  1177.  
  1178. If (LLessEqual (Arg0, 0x3C))
  1179. {
  1180. Return (0x02)
  1181. }
  1182.  
  1183. If (LLessEqual (Arg0, 0x5A))
  1184. {
  1185. Return (One)
  1186. }
  1187.  
  1188. Return (Zero)
  1189. }
  1190.  
  1191. Method (SETT, 3, Serialized)
  1192. {
  1193. If (And (Arg1, 0x02))
  1194. {
  1195. If (LAnd (LLessEqual (Arg0, 0x78), And (Arg2, 0x02)))
  1196. {
  1197. Return (0x0B)
  1198. }
  1199.  
  1200. If (LAnd (LLessEqual (Arg0, 0xB4), And (Arg2, One)))
  1201. {
  1202. Return (0x09)
  1203. }
  1204. }
  1205.  
  1206. Return (0x04)
  1207. }
  1208.  
  1209. Scope (_SB)
  1210. {
  1211. Device (PWRB)
  1212. {
  1213. Name (_HID, EisaId ("PNP0C0C"))
  1214. }
  1215.  
  1216. Device (LID0)
  1217. {
  1218. Name (_HID, EisaId ("PNP0C0D"))
  1219. Method (_LID, 0, NotSerialized)
  1220. {
  1221. If (^^PCI0.LPC.EC0.ECOK)
  1222. {
  1223. If (^^PCI0.LPC.EC0.LIDE)
  1224. {
  1225. Return (Zero)
  1226. }
  1227. Else
  1228. {
  1229. Return (One)
  1230. }
  1231. }
  1232. Else
  1233. {
  1234. Return (One)
  1235. }
  1236. }
  1237.  
  1238. Method (_PRW, 0, NotSerialized)
  1239. {
  1240. If (LGreater (OSYS, 0x07D6))
  1241. {
  1242. Return (Package (0x02)
  1243. {
  1244. One,
  1245. 0x04
  1246. })
  1247. }
  1248. Else
  1249. {
  1250. Return (Package (0x02)
  1251. {
  1252. 0x0D,
  1253. 0x04
  1254. })
  1255. }
  1256. }
  1257.  
  1258. Method (_PSW, 1, NotSerialized)
  1259. {
  1260. If (Arg0)
  1261. {
  1262. If (^^PCI0.LPC.EC0.LIDE)
  1263. {
  1264. Store (One, ^^PCI0.LPC.EC0.WKLD)
  1265. }
  1266. Else
  1267. {
  1268. Store (Zero, ^^PCI0.LPC.EC0.WKLD)
  1269. }
  1270. }
  1271. Else
  1272. {
  1273. Store (Zero, ^^PCI0.LPC.EC0.WKLD)
  1274. }
  1275. }
  1276. }
  1277.  
  1278. Device (ADP0)
  1279. {
  1280. Name (_PCL, Package (0x01)
  1281. {
  1282. _SB
  1283. })
  1284. Name (_HID, "ACPI0003")
  1285. Method (_PSR, 0, NotSerialized)
  1286. {
  1287. If (^^PCI0.LPC.EC0.ECOK)
  1288. {
  1289. Store (^^PCI0.LPC.EC0.ACST, Local0)
  1290. If (Local0)
  1291. {
  1292. Return (One)
  1293. }
  1294. Else
  1295. {
  1296. Return (Zero)
  1297. }
  1298. }
  1299. Else
  1300. {
  1301. Return (One)
  1302. }
  1303. }
  1304.  
  1305. Method (_STA, 0, NotSerialized)
  1306. {
  1307. Return (0x0F)
  1308. }
  1309. }
  1310.  
  1311. Device (BAT0)
  1312. {
  1313. Name (_HID, EisaId ("PNP0C0A"))
  1314. Name (_UID, One)
  1315. Name (_PCL, Package (0x01)
  1316. {
  1317. _SB
  1318. })
  1319. Name (BIF1, Package (0x0D)
  1320. {
  1321. One,
  1322. 0x10CC,
  1323. 0x10CC,
  1324. One,
  1325. 0x3A98,
  1326. 0x01AE,
  1327. 0x56,
  1328. 0x2B,
  1329. 0x2B,
  1330. "PA3478U-1BAS/BRS",
  1331. "0000",
  1332. "Li-ion",
  1333. "TOSHIBA"
  1334. })
  1335. Method (_STA, 0, NotSerialized)
  1336. {
  1337. If (^^PCI0.LPC.EC0.ECOK)
  1338. {
  1339. If (^^PCI0.LPC.EC0.B1EX)
  1340. {
  1341. Return (0x1F)
  1342. }
  1343. Else
  1344. {
  1345. Return (0x0F)
  1346. }
  1347. }
  1348. Else
  1349. {
  1350. Return (0x0F)
  1351. }
  1352. }
  1353.  
  1354. Name (BST1, Package (0x04)
  1355. {
  1356. One,
  1357. 0x0A90,
  1358. 0x1000,
  1359. 0x23A0
  1360. })
  1361. Method (_BIF, 0, NotSerialized)
  1362. {
  1363. If (^^PCI0.LPC.EC0.ECOK)
  1364. {
  1365. Store (^^PCI0.LPC.EC0.B1VL, Local0)
  1366. Store (^^PCI0.LPC.EC0.B1VH, Local5)
  1367. ShiftLeft (Local5, 0x08, Local5)
  1368. Add (Local0, Local5, Local0)
  1369. Store (Local0, Index (BIF1, 0x04))
  1370. Store (^^PCI0.LPC.EC0.B1FL, Local0)
  1371. Store (^^PCI0.LPC.EC0.B1FH, Local5)
  1372. ShiftLeft (Local5, 0x08, Local5)
  1373. Add (Local0, Local5, Local0)
  1374. Store (Local0, Index (BIF1, 0x02))
  1375. Store (^^PCI0.LPC.EC0.B1DL, Local1)
  1376. Store (^^PCI0.LPC.EC0.B1DH, Local5)
  1377. ShiftLeft (Local5, 0x08, Local5)
  1378. Add (Local1, Local5, Local1)
  1379. Store (Local1, Index (BIF1, One))
  1380. Divide (Local1, 0x0A, Local0, Local2)
  1381. Store (Local2, Index (BIF1, 0x05))
  1382. Divide (Local1, 0x32, Local0, Local2)
  1383. Store (Local2, Index (BIF1, 0x06))
  1384. Store (^^PCI0.LPC.EC0.BCEL, Local0)
  1385. Store (^^PCI0.LPC.EC0.BCNS, Index (BIF1, 0x09))
  1386. Store (^^PCI0.LPC.EC0.BVEN, Local0)
  1387. If (LEqual (Local0, One))
  1388. {
  1389. Store ("SIMPO", Index (BIF1, 0x0C))
  1390. }
  1391.  
  1392. If (LEqual (Local0, 0x02))
  1393. {
  1394. Store ("SONY", Index (BIF1, 0x0C))
  1395. }
  1396.  
  1397. If (LEqual (Local0, 0x03))
  1398. {
  1399. Store ("SANYO", Index (BIF1, 0x0C))
  1400. }
  1401.  
  1402. If (LEqual (Local0, 0x04))
  1403. {
  1404. Store ("PASONIC", Index (BIF1, 0x0C))
  1405. }
  1406.  
  1407. If (LEqual (Local0, 0x52))
  1408. {
  1409. Store ("LG", Index (BIF1, 0x0C))
  1410. }
  1411.  
  1412. Store (^^PCI0.LPC.EC0.B1SL, Local0)
  1413. Store (^^PCI0.LPC.EC0.B1SH, Local5)
  1414. ShiftLeft (Local5, 0x08, Local5)
  1415. Add (Local0, Local5, Local0)
  1416. Store (ITOS (Local0), Local1)
  1417. Store (Local1, Index (BIF1, 0x0A))
  1418. }
  1419. Else
  1420. {
  1421. Store (Ones, Index (BIF1, One))
  1422. Store (Ones, Index (BIF1, 0x04))
  1423. }
  1424.  
  1425. Return (BIF1)
  1426. }
  1427.  
  1428. Method (_BST, 0, NotSerialized)
  1429. {
  1430. If (^^PCI0.LPC.EC0.ECOK)
  1431. {
  1432. Store (^^PCI0.LPC.EC0.B1CG, Local1)
  1433. Store (^^PCI0.LPC.EC0.B1DC, Local0)
  1434. ShiftLeft (Local1, One, Local2)
  1435. Or (Local0, Local2, Local3)
  1436. Store (^^PCI0.LPC.EC0.BPRH, Local2)
  1437. Multiply (Local2, 0x0100, Local1)
  1438. Store (^^PCI0.LPC.EC0.BPRL, Local0)
  1439. Add (Local1, Local0, Local1)
  1440. Store (Local1, Index (BST1, One))
  1441. Store (^^PCI0.LPC.EC0.B1PT, Local0)
  1442. If (CRIT)
  1443. {
  1444. Or (Local3, 0x04, Local3)
  1445. }
  1446. Else
  1447. {
  1448. And (Local3, 0xFFFFFFFB, Local3)
  1449. }
  1450.  
  1451. Store (Local3, Index (BST1, Zero))
  1452. Store (DerefOf (Index (BIF1, 0x02)), Local1)
  1453. Multiply (Local1, Local0, Local2)
  1454. Divide (Local2, 0x64, Local3, Local2)
  1455. Add (Local2, One, Local2)
  1456. Store (Local2, Index (BST1, 0x02))
  1457. Store (DerefOf (Index (BIF1, 0x04)), Local3)
  1458. Store (Local3, Index (BST1, 0x03))
  1459. }
  1460. Else
  1461. {
  1462. Store (One, Index (BST1, Zero))
  1463. Store (Ones, Index (BST1, One))
  1464. Store (Ones, Index (BST1, 0x02))
  1465. Store (Ones, Index (BST1, 0x03))
  1466. }
  1467.  
  1468. Return (BST1)
  1469. }
  1470. }
  1471.  
  1472. Method (ITOS, 1, NotSerialized)
  1473. {
  1474. Store ("", Local0)
  1475. Store (0x04, Local1)
  1476. While (Local1)
  1477. {
  1478. Decrement (Local1)
  1479. And (ShiftRight (Arg0, ShiftLeft (Local1, 0x02)), 0x0F, Local4)
  1480. Store (DerefOf (Index (CHAR, Local4)), Local2)
  1481. Concatenate (Local0, Local2, Local5)
  1482. Store (Local5, Local0)
  1483. }
  1484.  
  1485. Return (Local0)
  1486. }
  1487.  
  1488. Name (CHAR, Package (0x10)
  1489. {
  1490. "0",
  1491. "1",
  1492. "2",
  1493. "3",
  1494. "4",
  1495. "5",
  1496. "6",
  1497. "7",
  1498. "8",
  1499. "9",
  1500. "A",
  1501. "B",
  1502. "C",
  1503. "D",
  1504. "E",
  1505. "F"
  1506. })
  1507. Device (BT)
  1508. {
  1509. Name (_HID, "TOS6205")
  1510. Method (_STA, 0, NotSerialized)
  1511. {
  1512. Acquire (MUTS, 0xFFFF)
  1513. Store (FLNK (0x16, 0xFE), Local2)
  1514. Release (MUTS)
  1515. Store (Zero, Local0)
  1516. If (Local2)
  1517. {
  1518. Store (0x0F, Local0)
  1519. }
  1520.  
  1521. Return (Local0)
  1522. }
  1523.  
  1524. Method (BTST, 0, NotSerialized)
  1525. {
  1526. Acquire (MUTS, 0xFFFF)
  1527. Store (FLNK (0x16, 0xFD), Local0)
  1528. Release (MUTS)
  1529. Return (Local0)
  1530. }
  1531.  
  1532. Method (AUSB, 0, NotSerialized)
  1533. {
  1534. }
  1535.  
  1536. Method (DUSB, 0, NotSerialized)
  1537. {
  1538. Store (Zero, ^^PCI0.LPC.EC0.BTRT)
  1539. Acquire (MUTS, 0xFFFF)
  1540. FLNK (0x16, 0xFC)
  1541. Release (MUTS)
  1542. Sleep (0x96)
  1543. }
  1544.  
  1545. Method (BTPO, 0, NotSerialized)
  1546. {
  1547. Store (^^PCI0.LPC.EC0.BTST, Local2)
  1548. If (Local2)
  1549. {
  1550. Store (^^PCI0.LPC.EC0.KSST, Local3)
  1551. If (Local3)
  1552. {
  1553. Store (One, ^^PCI0.LPC.EC0.BTON)
  1554. Store (One, ^^PCI0.LPC.EC0.BION)
  1555. Acquire (MUTS, 0xFFFF)
  1556. FLNK (0x16, 0xFA)
  1557. Release (MUTS)
  1558. Store (One, ^^PCI0.LPC.EC0.BTRT)
  1559. }
  1560. }
  1561. }
  1562.  
  1563. Method (BTPF, 0, NotSerialized)
  1564. {
  1565. If (^^PCI0.LPC.EC0.ECOK)
  1566. {
  1567. Store (^^PCI0.LPC.EC0.BTST, Local2)
  1568. If (Local2)
  1569. {
  1570. Sleep (0xFA)
  1571. }
  1572. }
  1573. }
  1574. }
  1575.  
  1576. OperationRegion (PSMI, SystemIO, 0xB2, 0x02)
  1577. Field (PSMI, ByteAcc, NoLock, Preserve)
  1578. {
  1579. APMC, 8,
  1580. APMD, 8
  1581. }
  1582.  
  1583. Method (GSMI, 1, NotSerialized)
  1584. {
  1585. Store (Arg0, APMD)
  1586. Store (0xE4, APMC)
  1587. Stall (0xFF)
  1588. Stall (0xFF)
  1589. Stall (0xFF)
  1590. Stall (0xFF)
  1591. Stall (0xFF)
  1592. Stall (0xFF)
  1593. }
  1594.  
  1595. Method (S80H, 1, NotSerialized)
  1596. {
  1597. Store (Arg0, APMD)
  1598. Store (0xE5, APMC)
  1599. Stall (0xFF)
  1600. Stall (0xFF)
  1601. Stall (0xFF)
  1602. Stall (0xFF)
  1603. Stall (0xFF)
  1604. Stall (0xFF)
  1605. }
  1606.  
  1607. Method (OSMI, 1, NotSerialized)
  1608. {
  1609. Store (Arg0, APMD)
  1610. Store (0xBE, APMC)
  1611. Stall (0xFF)
  1612. Stall (0xFF)
  1613. Stall (0xFF)
  1614. Stall (0xFF)
  1615. Stall (0xFF)
  1616. Stall (0xFF)
  1617. }
  1618.  
  1619. Device (PCI0)
  1620. {
  1621. Name (_HID, EisaId ("PNP0A08"))
  1622. Name (_CID, EisaId ("PNP0A03"))
  1623. Name (_ADR, Zero)
  1624. Method (_INI, 0, NotSerialized)
  1625. {
  1626. If (CondRefOf (_OSI, Local0))
  1627. {
  1628. If (_OSI ("Linux"))
  1629. {
  1630. Store (0x07D8, OSYS)
  1631. Store (One, OS07)
  1632. }
  1633. Else
  1634. {
  1635. Store (0x07D1, OSYS)
  1636. If (_OSI ("Windows 2001 SP2"))
  1637. {
  1638. Store (0x07D2, OSYS)
  1639. }
  1640. Else
  1641. {
  1642. If (_OSI ("Windows 2001 SP3"))
  1643. {
  1644. Store (0x07D2, OSYS)
  1645. }
  1646. }
  1647.  
  1648. If (_OSI ("Windows 2006"))
  1649. {
  1650. Store (0x07D6, OSYS)
  1651. }
  1652.  
  1653. If (LNotEqual (OSYS, 0x07D6))
  1654. {
  1655. If (_OSI ("Windows 2006 SP1"))
  1656. {
  1657. Store (0x07D6, OSYS)
  1658. }
  1659. Else
  1660. {
  1661. If (_OSI ("Windows 2006 SP2"))
  1662. {
  1663. Store (0x07D6, OSYS)
  1664. }
  1665. }
  1666. }
  1667.  
  1668. If (LEqual (OSYS, 0x07D6))
  1669. {
  1670. Acquire (MUTS, 0xFFFF)
  1671. OSMI (0x29)
  1672. Release (MUTS)
  1673. }
  1674.  
  1675. If (OS07)
  1676. {
  1677. Store (0x07D8, OSYS)
  1678. }
  1679.  
  1680. If (LLess (OSYS, 0x07D8))
  1681. {
  1682. Acquire (MUTS, 0xFFFF)
  1683. OSMI (0x28)
  1684. Release (MUTS)
  1685. }
  1686.  
  1687. Store (One, OSEC)
  1688. }
  1689. }
  1690. Else
  1691. {
  1692. Store (0x07D0, OSYS)
  1693. }
  1694. }
  1695.  
  1696. Method (_OSC, 4, NotSerialized)
  1697. {
  1698. Store (Arg2, Local0)
  1699. Multiply (Local0, 0x04, Local1)
  1700. Name (BUF1, Buffer (Local1) {})
  1701. Store (Arg3, BUF1)
  1702. Store (Zero, Local1)
  1703. Store (Zero, Local2)
  1704. While (Local0)
  1705. {
  1706. Multiply (Local1, 0x04, Local2)
  1707. CreateDWordField (BUF1, Local2, CAPB)
  1708. If (Arg1)
  1709. {
  1710. If (LEqual (Local1, Zero))
  1711. {
  1712. And (CAPB, 0xFFFFFFFC, CAPB)
  1713. }
  1714. }
  1715. Else
  1716. {
  1717. }
  1718.  
  1719. Increment (Local1)
  1720. Decrement (Local0)
  1721. }
  1722.  
  1723. Return (BUF1)
  1724. }
  1725.  
  1726. Name (_BBN, Zero)
  1727. OperationRegion (HBUS, PCI_Config, 0x40, 0xC0)
  1728. Field (HBUS, DWordAcc, NoLock, Preserve)
  1729. {
  1730. Offset (0x50),
  1731. , 4,
  1732. PM0H, 2,
  1733. Offset (0x51),
  1734. PM1L, 2,
  1735. , 2,
  1736. PM1H, 2,
  1737. Offset (0x52),
  1738. PM2L, 2,
  1739. , 2,
  1740. PM2H, 2,
  1741. Offset (0x53),
  1742. PM3L, 2,
  1743. , 2,
  1744. PM3H, 2,
  1745. Offset (0x54),
  1746. PM4L, 2,
  1747. , 2,
  1748. PM4H, 2,
  1749. Offset (0x55),
  1750. PM5L, 2,
  1751. , 2,
  1752. PM5H, 2,
  1753. Offset (0x56),
  1754. PM6L, 2,
  1755. , 2,
  1756. PM6H, 2,
  1757. Offset (0x57),
  1758. , 7,
  1759. HENA, 1,
  1760. Offset (0x5C),
  1761. , 3,
  1762. TOUD, 5
  1763. }
  1764.  
  1765. Name (BUF0, ResourceTemplate ()
  1766. {
  1767. WordBusNumber (ResourceProducer, MinFixed, MaxFixed, PosDecode,
  1768. 0x0000, // Granularity
  1769. 0x0000, // Range Minimum
  1770. 0x00FF, // Range Maximum
  1771. 0x0000, // Translation Offset
  1772. 0x0100, // Length
  1773. 0x00,, )
  1774. DWordIO (ResourceProducer, MinFixed, MaxFixed, PosDecode, EntireRange,
  1775. 0x00000000, // Granularity
  1776. 0x00000000, // Range Minimum
  1777. 0x00000CF7, // Range Maximum
  1778. 0x00000000, // Translation Offset
  1779. 0x00000CF8, // Length
  1780. 0x00,, , TypeStatic)
  1781. IO (Decode16,
  1782. 0x0CF8, // Range Minimum
  1783. 0x0CF8, // Range Maximum
  1784. 0x01, // Alignment
  1785. 0x08, // Length
  1786. )
  1787. DWordIO (ResourceProducer, MinFixed, MaxFixed, PosDecode, EntireRange,
  1788. 0x00000000, // Granularity
  1789. 0x00000D00, // Range Minimum
  1790. 0x0000FFFF, // Range Maximum
  1791. 0x00000000, // Translation Offset
  1792. 0x0000F300, // Length
  1793. 0x00,, , TypeStatic)
  1794. DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
  1795. 0x00000000, // Granularity
  1796. 0x000A0000, // Range Minimum
  1797. 0x000BFFFF, // Range Maximum
  1798. 0x00000000, // Translation Offset
  1799. 0x00020000, // Length
  1800. 0x00,, , AddressRangeMemory, TypeStatic)
  1801. DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
  1802. 0x00000000, // Granularity
  1803. 0x000C0000, // Range Minimum
  1804. 0x000C3FFF, // Range Maximum
  1805. 0x00000000, // Translation Offset
  1806. 0x00004000, // Length
  1807. 0x00,, _Y00, AddressRangeMemory, TypeStatic)
  1808. DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
  1809. 0x00000000, // Granularity
  1810. 0x000C4000, // Range Minimum
  1811. 0x000C7FFF, // Range Maximum
  1812. 0x00000000, // Translation Offset
  1813. 0x00004000, // Length
  1814. 0x00,, _Y01, AddressRangeMemory, TypeStatic)
  1815. DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
  1816. 0x00000000, // Granularity
  1817. 0x000C8000, // Range Minimum
  1818. 0x000CBFFF, // Range Maximum
  1819. 0x00000000, // Translation Offset
  1820. 0x00004000, // Length
  1821. 0x00,, _Y02, AddressRangeMemory, TypeStatic)
  1822. DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
  1823. 0x00000000, // Granularity
  1824. 0x000CC000, // Range Minimum
  1825. 0x000CFFFF, // Range Maximum
  1826. 0x00000000, // Translation Offset
  1827. 0x00004000, // Length
  1828. 0x00,, _Y03, AddressRangeMemory, TypeStatic)
  1829. DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
  1830. 0x00000000, // Granularity
  1831. 0x000D0000, // Range Minimum
  1832. 0x000D3FFF, // Range Maximum
  1833. 0x00000000, // Translation Offset
  1834. 0x00004000, // Length
  1835. 0x00,, _Y04, AddressRangeMemory, TypeStatic)
  1836. DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
  1837. 0x00000000, // Granularity
  1838. 0x000D4000, // Range Minimum
  1839. 0x000D7FFF, // Range Maximum
  1840. 0x00000000, // Translation Offset
  1841. 0x00004000, // Length
  1842. 0x00,, _Y05, AddressRangeMemory, TypeStatic)
  1843. DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
  1844. 0x00000000, // Granularity
  1845. 0x000D8000, // Range Minimum
  1846. 0x000DBFFF, // Range Maximum
  1847. 0x00000000, // Translation Offset
  1848. 0x00004000, // Length
  1849. 0x00,, _Y06, AddressRangeMemory, TypeStatic)
  1850. DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
  1851. 0x00000000, // Granularity
  1852. 0x000DC000, // Range Minimum
  1853. 0x000DFFFF, // Range Maximum
  1854. 0x00000000, // Translation Offset
  1855. 0x00004000, // Length
  1856. 0x00,, _Y07, AddressRangeMemory, TypeStatic)
  1857. DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
  1858. 0x00000000, // Granularity
  1859. 0x000E0000, // Range Minimum
  1860. 0x000E3FFF, // Range Maximum
  1861. 0x00000000, // Translation Offset
  1862. 0x00004000, // Length
  1863. 0x00,, _Y08, AddressRangeMemory, TypeStatic)
  1864. DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
  1865. 0x00000000, // Granularity
  1866. 0x000E4000, // Range Minimum
  1867. 0x000E7FFF, // Range Maximum
  1868. 0x00000000, // Translation Offset
  1869. 0x00004000, // Length
  1870. 0x00,, _Y09, AddressRangeMemory, TypeStatic)
  1871. DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
  1872. 0x00000000, // Granularity
  1873. 0x000E8000, // Range Minimum
  1874. 0x000EBFFF, // Range Maximum
  1875. 0x00000000, // Translation Offset
  1876. 0x00004000, // Length
  1877. 0x00,, _Y0A, AddressRangeMemory, TypeStatic)
  1878. DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
  1879. 0x00000000, // Granularity
  1880. 0x000EC000, // Range Minimum
  1881. 0x000EFFFF, // Range Maximum
  1882. 0x00000000, // Translation Offset
  1883. 0x00004000, // Length
  1884. 0x00,, _Y0B, AddressRangeMemory, TypeStatic)
  1885. DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
  1886. 0x00000000, // Granularity
  1887. 0x000F0000, // Range Minimum
  1888. 0x000FFFFF, // Range Maximum
  1889. 0x00000000, // Translation Offset
  1890. 0x00010000, // Length
  1891. 0x00,, _Y0C, AddressRangeMemory, TypeStatic)
  1892. DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
  1893. 0x00000000, // Granularity
  1894. 0x00000000, // Range Minimum
  1895. 0xFEBFFFFF, // Range Maximum
  1896. 0x00000000, // Translation Offset
  1897. 0x00000000, // Length
  1898. 0x00,, _Y0D, AddressRangeMemory, TypeStatic)
  1899. })
  1900. Method (_CRS, 0, Serialized)
  1901. {
  1902. If (PM1L)
  1903. {
  1904. CreateDWordField (BUF0, \_SB.PCI0._Y00._LEN, C0LN)
  1905. Store (Zero, C0LN)
  1906. }
  1907.  
  1908. If (LEqual (PM1L, One))
  1909. {
  1910. CreateBitField (BUF0, \_SB.PCI0._Y00._RW, C0RW)
  1911. Store (Zero, C0RW)
  1912. }
  1913.  
  1914. If (PM1H)
  1915. {
  1916. CreateDWordField (BUF0, \_SB.PCI0._Y01._LEN, C4LN)
  1917. Store (Zero, C4LN)
  1918. }
  1919.  
  1920. If (LEqual (PM1H, One))
  1921. {
  1922. CreateBitField (BUF0, \_SB.PCI0._Y01._RW, C4RW)
  1923. Store (Zero, C4RW)
  1924. }
  1925.  
  1926. If (PM2L)
  1927. {
  1928. CreateDWordField (BUF0, \_SB.PCI0._Y02._LEN, C8LN)
  1929. Store (Zero, C8LN)
  1930. }
  1931.  
  1932. If (LEqual (PM2L, One))
  1933. {
  1934. CreateBitField (BUF0, \_SB.PCI0._Y02._RW, C8RW)
  1935. Store (Zero, C8RW)
  1936. }
  1937.  
  1938. If (PM2H)
  1939. {
  1940. CreateDWordField (BUF0, \_SB.PCI0._Y03._LEN, CCLN)
  1941. Store (Zero, CCLN)
  1942. }
  1943.  
  1944. If (LEqual (PM2H, One))
  1945. {
  1946. CreateBitField (BUF0, \_SB.PCI0._Y03._RW, CCRW)
  1947. Store (Zero, CCRW)
  1948. }
  1949.  
  1950. If (PM3L)
  1951. {
  1952. CreateDWordField (BUF0, \_SB.PCI0._Y04._LEN, D0LN)
  1953. Store (Zero, D0LN)
  1954. }
  1955.  
  1956. If (LEqual (PM3L, One))
  1957. {
  1958. CreateBitField (BUF0, \_SB.PCI0._Y04._RW, D0RW)
  1959. Store (Zero, D0RW)
  1960. }
  1961.  
  1962. If (PM3H)
  1963. {
  1964. CreateDWordField (BUF0, \_SB.PCI0._Y05._LEN, D4LN)
  1965. Store (Zero, D4LN)
  1966. }
  1967.  
  1968. If (LEqual (PM3H, One))
  1969. {
  1970. CreateBitField (BUF0, \_SB.PCI0._Y05._RW, D4RW)
  1971. Store (Zero, D4RW)
  1972. }
  1973.  
  1974. If (PM4L)
  1975. {
  1976. CreateDWordField (BUF0, \_SB.PCI0._Y06._LEN, D8LN)
  1977. Store (Zero, D8LN)
  1978. }
  1979.  
  1980. If (LEqual (PM4L, One))
  1981. {
  1982. CreateBitField (BUF0, \_SB.PCI0._Y06._RW, D8RW)
  1983. Store (Zero, D8RW)
  1984. }
  1985.  
  1986. If (PM4H)
  1987. {
  1988. CreateDWordField (BUF0, \_SB.PCI0._Y07._LEN, DCLN)
  1989. Store (Zero, DCLN)
  1990. }
  1991.  
  1992. If (LEqual (PM4H, One))
  1993. {
  1994. CreateBitField (BUF0, \_SB.PCI0._Y07._RW, DCRW)
  1995. Store (Zero, DCRW)
  1996. }
  1997.  
  1998. If (PM5L)
  1999. {
  2000. CreateDWordField (BUF0, \_SB.PCI0._Y08._LEN, E0LN)
  2001. Store (Zero, E0LN)
  2002. }
  2003.  
  2004. If (LEqual (PM5L, One))
  2005. {
  2006. CreateBitField (BUF0, \_SB.PCI0._Y08._RW, E0RW)
  2007. Store (Zero, E0RW)
  2008. }
  2009.  
  2010. If (PM5H)
  2011. {
  2012. CreateDWordField (BUF0, \_SB.PCI0._Y09._LEN, E4LN)
  2013. Store (Zero, E4LN)
  2014. }
  2015.  
  2016. If (LEqual (PM5H, One))
  2017. {
  2018. CreateBitField (BUF0, \_SB.PCI0._Y09._RW, E4RW)
  2019. Store (Zero, E4RW)
  2020. }
  2021.  
  2022. If (PM6L)
  2023. {
  2024. CreateDWordField (BUF0, \_SB.PCI0._Y0A._LEN, E8LN)
  2025. Store (Zero, E8LN)
  2026. }
  2027.  
  2028. If (LEqual (PM6L, One))
  2029. {
  2030. CreateBitField (BUF0, \_SB.PCI0._Y0A._RW, E8RW)
  2031. Store (Zero, E8RW)
  2032. }
  2033.  
  2034. If (PM6H)
  2035. {
  2036. CreateDWordField (BUF0, \_SB.PCI0._Y0B._LEN, ECLN)
  2037. Store (Zero, ECLN)
  2038. }
  2039.  
  2040. If (LEqual (PM6H, One))
  2041. {
  2042. CreateBitField (BUF0, \_SB.PCI0._Y0B._RW, ECRW)
  2043. Store (Zero, ECRW)
  2044. }
  2045.  
  2046. If (PM0H)
  2047. {
  2048. CreateDWordField (BUF0, \_SB.PCI0._Y0C._LEN, F0LN)
  2049. Store (Zero, F0LN)
  2050. }
  2051.  
  2052. If (LEqual (PM0H, One))
  2053. {
  2054. CreateBitField (BUF0, \_SB.PCI0._Y0C._RW, F0RW)
  2055. Store (Zero, F0RW)
  2056. }
  2057.  
  2058. CreateDWordField (BUF0, \_SB.PCI0._Y0D._MIN, M1MN)
  2059. CreateDWordField (BUF0, \_SB.PCI0._Y0D._MAX, M1MX)
  2060. CreateDWordField (BUF0, \_SB.PCI0._Y0D._LEN, M1LN)
  2061. ShiftLeft (TOUD, 0x1B, M1MN)
  2062. Add (Subtract (M1MX, M1MN), One, M1LN)
  2063. Return (BUF0)
  2064. }
  2065.  
  2066. Method (_PRT, 0, NotSerialized)
  2067. {
  2068. If (LEqual (GPIC, Zero))
  2069. {
  2070. If (LGreater (OSYS, 0x07D6))
  2071. {
  2072. Return (Package (0x10)
  2073. {
  2074. Package (0x04)
  2075. {
  2076. 0x0001FFFF,
  2077. Zero,
  2078. ^LPC.LNKB,
  2079. Zero
  2080. },
  2081.  
  2082. Package (0x04)
  2083. {
  2084. 0x0002FFFF,
  2085. Zero,
  2086. ^LPC.LNKB,
  2087. Zero
  2088. },
  2089.  
  2090. Package (0x04)
  2091. {
  2092. 0x001BFFFF,
  2093. Zero,
  2094. ^LPC.LNKH,
  2095. Zero
  2096. },
  2097.  
  2098. Package (0x04)
  2099. {
  2100. 0x001CFFFF,
  2101. Zero,
  2102. ^LPC.LNKC,
  2103. Zero
  2104. },
  2105.  
  2106. Package (0x04)
  2107. {
  2108. 0x001CFFFF,
  2109. One,
  2110. ^LPC.LNKD,
  2111. Zero
  2112. },
  2113.  
  2114. Package (0x04)
  2115. {
  2116. 0x001CFFFF,
  2117. 0x02,
  2118. ^LPC.LNKA,
  2119. Zero
  2120. },
  2121.  
  2122. Package (0x04)
  2123. {
  2124. 0x001CFFFF,
  2125. 0x03,
  2126. ^LPC.LNKB,
  2127. Zero
  2128. },
  2129.  
  2130. Package (0x04)
  2131. {
  2132. 0x001DFFFF,
  2133. Zero,
  2134. ^LPC.LNKF,
  2135. Zero
  2136. },
  2137.  
  2138. Package (0x04)
  2139. {
  2140. 0x001DFFFF,
  2141. One,
  2142. ^LPC.LNKG,
  2143. Zero
  2144. },
  2145.  
  2146. Package (0x04)
  2147. {
  2148. 0x001DFFFF,
  2149. 0x02,
  2150. ^LPC.LNKE,
  2151. Zero
  2152. },
  2153.  
  2154. Package (0x04)
  2155. {
  2156. 0x001DFFFF,
  2157. 0x03,
  2158. ^LPC.LNKH,
  2159. Zero
  2160. },
  2161.  
  2162. Package (0x04)
  2163. {
  2164. 0x001EFFFF,
  2165. Zero,
  2166. ^LPC.LNKE,
  2167. Zero
  2168. },
  2169.  
  2170. Package (0x04)
  2171. {
  2172. 0x001EFFFF,
  2173. One,
  2174. ^LPC.LNKH,
  2175. Zero
  2176. },
  2177.  
  2178. Package (0x04)
  2179. {
  2180. 0x001FFFFF,
  2181. One,
  2182. ^LPC.LNKA,
  2183. Zero
  2184. },
  2185.  
  2186. Package (0x04)
  2187. {
  2188. 0x001FFFFF,
  2189. 0x02,
  2190. ^LPC.LNKE,
  2191. Zero
  2192. },
  2193.  
  2194. Package (0x04)
  2195. {
  2196. 0x001FFFFF,
  2197. 0x03,
  2198. ^LPC.LNKC,
  2199. Zero
  2200. }
  2201. })
  2202. }
  2203. Else
  2204. {
  2205. Return (Package (0x10)
  2206. {
  2207. Package (0x04)
  2208. {
  2209. 0x0001FFFF,
  2210. Zero,
  2211. ^LPC.LNKB,
  2212. Zero
  2213. },
  2214.  
  2215. Package (0x04)
  2216. {
  2217. 0x0002FFFF,
  2218. Zero,
  2219. ^LPC.LNKB,
  2220. Zero
  2221. },
  2222.  
  2223. Package (0x04)
  2224. {
  2225. 0x001BFFFF,
  2226. Zero,
  2227. ^LPC.LNKH,
  2228. Zero
  2229. },
  2230.  
  2231. Package (0x04)
  2232. {
  2233. 0x001CFFFF,
  2234. Zero,
  2235. ^LPC.LNKC,
  2236. Zero
  2237. },
  2238.  
  2239. Package (0x04)
  2240. {
  2241. 0x001CFFFF,
  2242. One,
  2243. ^LPC.LNKD,
  2244. Zero
  2245. },
  2246.  
  2247. Package (0x04)
  2248. {
  2249. 0x001CFFFF,
  2250. 0x02,
  2251. ^LPC.LNKA,
  2252. Zero
  2253. },
  2254.  
  2255. Package (0x04)
  2256. {
  2257. 0x001CFFFF,
  2258. 0x03,
  2259. ^LPC.LNKB,
  2260. Zero
  2261. },
  2262.  
  2263. Package (0x04)
  2264. {
  2265. 0x001DFFFF,
  2266. Zero,
  2267. ^LPC.LNKF,
  2268. Zero
  2269. },
  2270.  
  2271. Package (0x04)
  2272. {
  2273. 0x001DFFFF,
  2274. One,
  2275. ^LPC.LNKG,
  2276. Zero
  2277. },
  2278.  
  2279. Package (0x04)
  2280. {
  2281. 0x001DFFFF,
  2282. 0x02,
  2283. ^LPC.LNKE,
  2284. Zero
  2285. },
  2286.  
  2287. Package (0x04)
  2288. {
  2289. 0x001DFFFF,
  2290. 0x03,
  2291. ^LPC.LNKH,
  2292. Zero
  2293. },
  2294.  
  2295. Package (0x04)
  2296. {
  2297. 0x001EFFFF,
  2298. Zero,
  2299. ^LPC.LNKE,
  2300. Zero
  2301. },
  2302.  
  2303. Package (0x04)
  2304. {
  2305. 0x001EFFFF,
  2306. One,
  2307. ^LPC.LNKH,
  2308. Zero
  2309. },
  2310.  
  2311. Package (0x04)
  2312. {
  2313. 0x001FFFFF,
  2314. Zero,
  2315. ^LPC.LNKA,
  2316. Zero
  2317. },
  2318.  
  2319. Package (0x04)
  2320. {
  2321. 0x001FFFFF,
  2322. One,
  2323. ^LPC.LNKE,
  2324. Zero
  2325. },
  2326.  
  2327. Package (0x04)
  2328. {
  2329. 0x001FFFFF,
  2330. 0x02,
  2331. ^LPC.LNKC,
  2332. Zero
  2333. }
  2334. })
  2335. }
  2336. }
  2337. Else
  2338. {
  2339. If (LGreater (OSYS, 0x07D6))
  2340. {
  2341. Return (Package (0x10)
  2342. {
  2343. Package (0x04)
  2344. {
  2345. 0x0001FFFF,
  2346. Zero,
  2347. Zero,
  2348. 0x11
  2349. },
  2350.  
  2351. Package (0x04)
  2352. {
  2353. 0x0002FFFF,
  2354. Zero,
  2355. Zero,
  2356. 0x11
  2357. },
  2358.  
  2359. Package (0x04)
  2360. {
  2361. 0x001BFFFF,
  2362. Zero,
  2363. Zero,
  2364. 0x17
  2365. },
  2366.  
  2367. Package (0x04)
  2368. {
  2369. 0x001CFFFF,
  2370. Zero,
  2371. Zero,
  2372. 0x12
  2373. },
  2374.  
  2375. Package (0x04)
  2376. {
  2377. 0x001CFFFF,
  2378. One,
  2379. Zero,
  2380. 0x13
  2381. },
  2382.  
  2383. Package (0x04)
  2384. {
  2385. 0x001CFFFF,
  2386. 0x02,
  2387. Zero,
  2388. 0x10
  2389. },
  2390.  
  2391. Package (0x04)
  2392. {
  2393. 0x001CFFFF,
  2394. 0x03,
  2395. Zero,
  2396. 0x11
  2397. },
  2398.  
  2399. Package (0x04)
  2400. {
  2401. 0x001DFFFF,
  2402. Zero,
  2403. Zero,
  2404. 0x15
  2405. },
  2406.  
  2407. Package (0x04)
  2408. {
  2409. 0x001DFFFF,
  2410. One,
  2411. Zero,
  2412. 0x16
  2413. },
  2414.  
  2415. Package (0x04)
  2416. {
  2417. 0x001DFFFF,
  2418. 0x02,
  2419. Zero,
  2420. 0x14
  2421. },
  2422.  
  2423. Package (0x04)
  2424. {
  2425. 0x001DFFFF,
  2426. 0x03,
  2427. Zero,
  2428. 0x17
  2429. },
  2430.  
  2431. Package (0x04)
  2432. {
  2433. 0x001EFFFF,
  2434. Zero,
  2435. Zero,
  2436. 0x14
  2437. },
  2438.  
  2439. Package (0x04)
  2440. {
  2441. 0x001EFFFF,
  2442. One,
  2443. Zero,
  2444. 0x17
  2445. },
  2446.  
  2447. Package (0x04)
  2448. {
  2449. 0x001FFFFF,
  2450. One,
  2451. Zero,
  2452. 0x10
  2453. },
  2454.  
  2455. Package (0x04)
  2456. {
  2457. 0x001FFFFF,
  2458. 0x02,
  2459. Zero,
  2460. 0x14
  2461. },
  2462.  
  2463. Package (0x04)
  2464. {
  2465. 0x001FFFFF,
  2466. 0x03,
  2467. Zero,
  2468. 0x12
  2469. }
  2470. })
  2471. }
  2472. Else
  2473. {
  2474. Return (Package (0x10)
  2475. {
  2476. Package (0x04)
  2477. {
  2478. 0x0001FFFF,
  2479. Zero,
  2480. Zero,
  2481. 0x11
  2482. },
  2483.  
  2484. Package (0x04)
  2485. {
  2486. 0x0002FFFF,
  2487. Zero,
  2488. Zero,
  2489. 0x11
  2490. },
  2491.  
  2492. Package (0x04)
  2493. {
  2494. 0x001BFFFF,
  2495. Zero,
  2496. Zero,
  2497. 0x17
  2498. },
  2499.  
  2500. Package (0x04)
  2501. {
  2502. 0x001CFFFF,
  2503. Zero,
  2504. Zero,
  2505. 0x12
  2506. },
  2507.  
  2508. Package (0x04)
  2509. {
  2510. 0x001CFFFF,
  2511. One,
  2512. Zero,
  2513. 0x13
  2514. },
  2515.  
  2516. Package (0x04)
  2517. {
  2518. 0x001CFFFF,
  2519. 0x02,
  2520. Zero,
  2521. 0x10
  2522. },
  2523.  
  2524. Package (0x04)
  2525. {
  2526. 0x001CFFFF,
  2527. 0x03,
  2528. Zero,
  2529. 0x11
  2530. },
  2531.  
  2532. Package (0x04)
  2533. {
  2534. 0x001DFFFF,
  2535. Zero,
  2536. Zero,
  2537. 0x15
  2538. },
  2539.  
  2540. Package (0x04)
  2541. {
  2542. 0x001DFFFF,
  2543. One,
  2544. Zero,
  2545. 0x16
  2546. },
  2547.  
  2548. Package (0x04)
  2549. {
  2550. 0x001DFFFF,
  2551. 0x02,
  2552. Zero,
  2553. 0x14
  2554. },
  2555.  
  2556. Package (0x04)
  2557. {
  2558. 0x001DFFFF,
  2559. 0x03,
  2560. Zero,
  2561. 0x17
  2562. },
  2563.  
  2564. Package (0x04)
  2565. {
  2566. 0x001EFFFF,
  2567. Zero,
  2568. Zero,
  2569. 0x14
  2570. },
  2571.  
  2572. Package (0x04)
  2573. {
  2574. 0x001EFFFF,
  2575. One,
  2576. Zero,
  2577. 0x17
  2578. },
  2579.  
  2580. Package (0x04)
  2581. {
  2582. 0x001FFFFF,
  2583. Zero,
  2584. Zero,
  2585. 0x10
  2586. },
  2587.  
  2588. Package (0x04)
  2589. {
  2590. 0x001FFFFF,
  2591. One,
  2592. Zero,
  2593. 0x14
  2594. },
  2595.  
  2596. Package (0x04)
  2597. {
  2598. 0x001FFFFF,
  2599. 0x02,
  2600. Zero,
  2601. 0x12
  2602. }
  2603. })
  2604. }
  2605. }
  2606. }
  2607.  
  2608. Device (P32)
  2609. {
  2610. Name (_ADR, 0x001E0000)
  2611. Method (_PRW, 0, NotSerialized)
  2612. {
  2613. If (LEqual (WKPM, One))
  2614. {
  2615. Return (Package (0x02)
  2616. {
  2617. 0x0B,
  2618. 0x04
  2619. })
  2620. }
  2621. Else
  2622. {
  2623. Return (Package (0x02)
  2624. {
  2625. 0x0B,
  2626. Zero
  2627. })
  2628. }
  2629. }
  2630. }
  2631.  
  2632. Device (LPC)
  2633. {
  2634. Name (_ADR, 0x001F0000)
  2635. OperationRegion (PRR0, PCI_Config, 0x60, 0x04)
  2636. Field (PRR0, AnyAcc, NoLock, Preserve)
  2637. {
  2638. PIRA, 8,
  2639. PIRB, 8,
  2640. PIRC, 8,
  2641. PIRD, 8
  2642. }
  2643.  
  2644. OperationRegion (PRR1, PCI_Config, 0x68, 0x04)
  2645. Field (PRR1, AnyAcc, NoLock, Preserve)
  2646. {
  2647. PIRE, 8,
  2648. PIRF, 8,
  2649. PIRG, 8,
  2650. PIRH, 8
  2651. }
  2652.  
  2653. OperationRegion (PRR2, PCI_Config, 0x80, 0x02)
  2654. Field (PRR2, AnyAcc, NoLock, Preserve)
  2655. {
  2656. IODL, 8,
  2657. IODH, 8
  2658. }
  2659.  
  2660. Device (LNKA)
  2661. {
  2662. Name (_HID, EisaId ("PNP0C0F"))
  2663. Name (_UID, One)
  2664. Method (_STA, 0, NotSerialized)
  2665. {
  2666. If (And (PIRA, 0x80))
  2667. {
  2668. Return (0x09)
  2669. }
  2670. Else
  2671. {
  2672. Return (0x0B)
  2673. }
  2674. }
  2675.  
  2676. Method (_DIS, 0, NotSerialized)
  2677. {
  2678. Or (PIRA, 0x80, PIRA)
  2679. }
  2680.  
  2681. Method (_CRS, 0, NotSerialized)
  2682. {
  2683. Name (BUF0, ResourceTemplate ()
  2684. {
  2685. IRQ (Level, ActiveLow, Shared, )
  2686. {0}
  2687. })
  2688. CreateWordField (BUF0, One, IRQW)
  2689. If (And (PIRA, 0x80))
  2690. {
  2691. Store (Zero, Local0)
  2692. }
  2693. Else
  2694. {
  2695. Store (One, Local0)
  2696. }
  2697.  
  2698. ShiftLeft (Local0, And (PIRA, 0x0F), IRQW)
  2699. Return (BUF0)
  2700. }
  2701.  
  2702. Name (_PRS, ResourceTemplate ()
  2703. {
  2704. IRQ (Level, ActiveLow, Shared, )
  2705. {3,4,5,7,9,10,11,12}
  2706. })
  2707. Method (_SRS, 1, NotSerialized)
  2708. {
  2709. CreateWordField (Arg0, One, IRQW)
  2710. FindSetRightBit (IRQW, Local0)
  2711. If (LNotEqual (IRQW, Zero))
  2712. {
  2713. And (Local0, 0x7F, Local0)
  2714. Decrement (Local0)
  2715. }
  2716. Else
  2717. {
  2718. Or (Local0, 0x80, Local0)
  2719. }
  2720.  
  2721. Store (Local0, PIRA)
  2722. }
  2723. }
  2724.  
  2725. Device (LNKB)
  2726. {
  2727. Name (_HID, EisaId ("PNP0C0F"))
  2728. Name (_UID, 0x02)
  2729. Method (_STA, 0, NotSerialized)
  2730. {
  2731. If (And (PIRB, 0x80))
  2732. {
  2733. Return (0x09)
  2734. }
  2735. Else
  2736. {
  2737. Return (0x0B)
  2738. }
  2739. }
  2740.  
  2741. Method (_DIS, 0, NotSerialized)
  2742. {
  2743. Or (PIRB, 0x80, PIRB)
  2744. }
  2745.  
  2746. Method (_CRS, 0, NotSerialized)
  2747. {
  2748. Name (BUF0, ResourceTemplate ()
  2749. {
  2750. IRQ (Level, ActiveLow, Shared, )
  2751. {0}
  2752. })
  2753. CreateWordField (BUF0, One, IRQW)
  2754. If (And (PIRB, 0x80))
  2755. {
  2756. Store (Zero, Local0)
  2757. }
  2758. Else
  2759. {
  2760. Store (One, Local0)
  2761. }
  2762.  
  2763. ShiftLeft (Local0, And (PIRB, 0x0F), IRQW)
  2764. Return (BUF0)
  2765. }
  2766.  
  2767. Name (_PRS, ResourceTemplate ()
  2768. {
  2769. IRQ (Level, ActiveLow, Shared, )
  2770. {3,4,5,7,9,10,11,12}
  2771. })
  2772. Method (_SRS, 1, NotSerialized)
  2773. {
  2774. CreateWordField (Arg0, One, IRQW)
  2775. FindSetRightBit (IRQW, Local0)
  2776. If (LNotEqual (IRQW, Zero))
  2777. {
  2778. And (Local0, 0x7F, Local0)
  2779. Decrement (Local0)
  2780. }
  2781. Else
  2782. {
  2783. Or (Local0, 0x80, Local0)
  2784. }
  2785.  
  2786. Store (Local0, PIRB)
  2787. }
  2788. }
  2789.  
  2790. Device (LNKC)
  2791. {
  2792. Name (_HID, EisaId ("PNP0C0F"))
  2793. Name (_UID, 0x03)
  2794. Method (_STA, 0, NotSerialized)
  2795. {
  2796. If (And (PIRC, 0x80))
  2797. {
  2798. Return (0x09)
  2799. }
  2800. Else
  2801. {
  2802. Return (0x0B)
  2803. }
  2804. }
  2805.  
  2806. Method (_DIS, 0, NotSerialized)
  2807. {
  2808. Or (PIRC, 0x80, PIRC)
  2809. }
  2810.  
  2811. Method (_CRS, 0, NotSerialized)
  2812. {
  2813. Name (BUF0, ResourceTemplate ()
  2814. {
  2815. IRQ (Level, ActiveLow, Shared, )
  2816. {0}
  2817. })
  2818. CreateWordField (BUF0, One, IRQW)
  2819. If (And (PIRC, 0x80))
  2820. {
  2821. Store (Zero, Local0)
  2822. }
  2823. Else
  2824. {
  2825. Store (One, Local0)
  2826. }
  2827.  
  2828. ShiftLeft (Local0, And (PIRC, 0x0F), IRQW)
  2829. Return (BUF0)
  2830. }
  2831.  
  2832. Name (_PRS, ResourceTemplate ()
  2833. {
  2834. IRQ (Level, ActiveLow, Shared, )
  2835. {3,4,5,7,9,10,11,12}
  2836. })
  2837. Method (_SRS, 1, NotSerialized)
  2838. {
  2839. CreateWordField (Arg0, One, IRQW)
  2840. FindSetRightBit (IRQW, Local0)
  2841. If (LNotEqual (IRQW, Zero))
  2842. {
  2843. And (Local0, 0x7F, Local0)
  2844. Decrement (Local0)
  2845. }
  2846. Else
  2847. {
  2848. Or (Local0, 0x80, Local0)
  2849. }
  2850.  
  2851. Store (Local0, PIRC)
  2852. }
  2853. }
  2854.  
  2855. Device (LNKD)
  2856. {
  2857. Name (_HID, EisaId ("PNP0C0F"))
  2858. Name (_UID, 0x04)
  2859. Method (_STA, 0, NotSerialized)
  2860. {
  2861. If (And (PIRD, 0x80))
  2862. {
  2863. Return (0x09)
  2864. }
  2865. Else
  2866. {
  2867. Return (0x0B)
  2868. }
  2869. }
  2870.  
  2871. Method (_DIS, 0, NotSerialized)
  2872. {
  2873. Or (PIRD, 0x80, PIRD)
  2874. }
  2875.  
  2876. Method (_CRS, 0, NotSerialized)
  2877. {
  2878. Name (BUF0, ResourceTemplate ()
  2879. {
  2880. IRQ (Level, ActiveLow, Shared, )
  2881. {0}
  2882. })
  2883. CreateWordField (BUF0, One, IRQW)
  2884. If (And (PIRD, 0x80))
  2885. {
  2886. Store (Zero, Local0)
  2887. }
  2888. Else
  2889. {
  2890. Store (One, Local0)
  2891. }
  2892.  
  2893. ShiftLeft (Local0, And (PIRD, 0x0F), IRQW)
  2894. Return (BUF0)
  2895. }
  2896.  
  2897. Name (_PRS, ResourceTemplate ()
  2898. {
  2899. IRQ (Level, ActiveLow, Shared, )
  2900. {3,4,5,7,9,10,11,12}
  2901. })
  2902. Method (_SRS, 1, NotSerialized)
  2903. {
  2904. CreateWordField (Arg0, One, IRQW)
  2905. FindSetRightBit (IRQW, Local0)
  2906. If (LNotEqual (IRQW, Zero))
  2907. {
  2908. And (Local0, 0x7F, Local0)
  2909. Decrement (Local0)
  2910. }
  2911. Else
  2912. {
  2913. Or (Local0, 0x80, Local0)
  2914. }
  2915.  
  2916. Store (Local0, PIRD)
  2917. }
  2918. }
  2919.  
  2920. Device (LNKE)
  2921. {
  2922. Name (_HID, EisaId ("PNP0C0F"))
  2923. Name (_UID, 0x05)
  2924. Method (_STA, 0, NotSerialized)
  2925. {
  2926. If (And (PIRE, 0x80))
  2927. {
  2928. Return (0x09)
  2929. }
  2930. Else
  2931. {
  2932. Return (0x0B)
  2933. }
  2934. }
  2935.  
  2936. Method (_DIS, 0, NotSerialized)
  2937. {
  2938. Or (PIRE, 0x80, PIRE)
  2939. }
  2940.  
  2941. Method (_CRS, 0, NotSerialized)
  2942. {
  2943. Name (BUF0, ResourceTemplate ()
  2944. {
  2945. IRQ (Level, ActiveLow, Shared, )
  2946. {0}
  2947. })
  2948. CreateWordField (BUF0, One, IRQW)
  2949. If (And (PIRE, 0x80))
  2950. {
  2951. Store (Zero, Local0)
  2952. }
  2953. Else
  2954. {
  2955. Store (One, Local0)
  2956. }
  2957.  
  2958. ShiftLeft (Local0, And (PIRE, 0x0F), IRQW)
  2959. Return (BUF0)
  2960. }
  2961.  
  2962. Name (_PRS, ResourceTemplate ()
  2963. {
  2964. IRQ (Level, ActiveLow, Shared, )
  2965. {3,4,5,7,9,10,11,12}
  2966. })
  2967. Method (_SRS, 1, NotSerialized)
  2968. {
  2969. CreateWordField (Arg0, One, IRQW)
  2970. FindSetRightBit (IRQW, Local0)
  2971. If (LNotEqual (IRQW, Zero))
  2972. {
  2973. And (Local0, 0x7F, Local0)
  2974. Decrement (Local0)
  2975. }
  2976. Else
  2977. {
  2978. Or (Local0, 0x80, Local0)
  2979. }
  2980.  
  2981. Store (Local0, PIRE)
  2982. }
  2983. }
  2984.  
  2985. Device (LNKF)
  2986. {
  2987. Name (_HID, EisaId ("PNP0C0F"))
  2988. Name (_UID, 0x06)
  2989. Method (_STA, 0, NotSerialized)
  2990. {
  2991. If (And (PIRF, 0x80))
  2992. {
  2993. Return (0x09)
  2994. }
  2995. Else
  2996. {
  2997. Return (0x0B)
  2998. }
  2999. }
  3000.  
  3001. Method (_DIS, 0, NotSerialized)
  3002. {
  3003. Or (PIRF, 0x80, PIRF)
  3004. }
  3005.  
  3006. Method (_CRS, 0, NotSerialized)
  3007. {
  3008. Name (BUF0, ResourceTemplate ()
  3009. {
  3010. IRQ (Level, ActiveLow, Shared, )
  3011. {0}
  3012. })
  3013. CreateWordField (BUF0, One, IRQW)
  3014. If (And (PIRF, 0x80))
  3015. {
  3016. Store (Zero, Local0)
  3017. }
  3018. Else
  3019. {
  3020. Store (One, Local0)
  3021. }
  3022.  
  3023. ShiftLeft (Local0, And (PIRF, 0x0F), IRQW)
  3024. Return (BUF0)
  3025. }
  3026.  
  3027. Name (_PRS, ResourceTemplate ()
  3028. {
  3029. IRQ (Level, ActiveLow, Shared, )
  3030. {3,4,5,7,9,10,11,12}
  3031. })
  3032. Method (_SRS, 1, NotSerialized)
  3033. {
  3034. CreateWordField (Arg0, One, IRQW)
  3035. FindSetRightBit (IRQW, Local0)
  3036. If (LNotEqual (IRQW, Zero))
  3037. {
  3038. And (Local0, 0x7F, Local0)
  3039. Decrement (Local0)
  3040. }
  3041. Else
  3042. {
  3043. Or (Local0, 0x80, Local0)
  3044. }
  3045.  
  3046. Store (Local0, PIRF)
  3047. }
  3048. }
  3049.  
  3050. Device (LNKG)
  3051. {
  3052. Name (_HID, EisaId ("PNP0C0F"))
  3053. Name (_UID, 0x07)
  3054. Method (_STA, 0, NotSerialized)
  3055. {
  3056. If (And (PIRG, 0x80))
  3057. {
  3058. Return (0x09)
  3059. }
  3060. Else
  3061. {
  3062. Return (0x0B)
  3063. }
  3064. }
  3065.  
  3066. Method (_DIS, 0, NotSerialized)
  3067. {
  3068. Or (PIRG, 0x80, PIRG)
  3069. }
  3070.  
  3071. Method (_CRS, 0, NotSerialized)
  3072. {
  3073. Name (BUF0, ResourceTemplate ()
  3074. {
  3075. IRQ (Level, ActiveLow, Shared, )
  3076. {0}
  3077. })
  3078. CreateWordField (BUF0, One, IRQW)
  3079. If (And (PIRG, 0x80))
  3080. {
  3081. Store (Zero, Local0)
  3082. }
  3083. Else
  3084. {
  3085. Store (One, Local0)
  3086. }
  3087.  
  3088. ShiftLeft (Local0, And (PIRG, 0x0F), IRQW)
  3089. Return (BUF0)
  3090. }
  3091.  
  3092. Name (_PRS, ResourceTemplate ()
  3093. {
  3094. IRQ (Level, ActiveLow, Shared, )
  3095. {3,4,5,7,9,10,11,12}
  3096. })
  3097. Method (_SRS, 1, NotSerialized)
  3098. {
  3099. CreateWordField (Arg0, One, IRQW)
  3100. FindSetRightBit (IRQW, Local0)
  3101. If (LNotEqual (IRQW, Zero))
  3102. {
  3103. And (Local0, 0x7F, Local0)
  3104. Decrement (Local0)
  3105. }
  3106. Else
  3107. {
  3108. Or (Local0, 0x80, Local0)
  3109. }
  3110.  
  3111. Store (Local0, PIRG)
  3112. }
  3113. }
  3114.  
  3115. Device (LNKH)
  3116. {
  3117. Name (_HID, EisaId ("PNP0C0F"))
  3118. Name (_UID, 0x08)
  3119. Method (_STA, 0, NotSerialized)
  3120. {
  3121. If (And (PIRH, 0x80))
  3122. {
  3123. Return (0x09)
  3124. }
  3125. Else
  3126. {
  3127. Return (0x0B)
  3128. }
  3129. }
  3130.  
  3131. Method (_DIS, 0, NotSerialized)
  3132. {
  3133. Or (PIRH, 0x80, PIRH)
  3134. }
  3135.  
  3136. Method (_CRS, 0, NotSerialized)
  3137. {
  3138. Name (BUF0, ResourceTemplate ()
  3139. {
  3140. IRQ (Level, ActiveLow, Shared, )
  3141. {0}
  3142. })
  3143. CreateWordField (BUF0, One, IRQW)
  3144. If (And (PIRH, 0x80))
  3145. {
  3146. Store (Zero, Local0)
  3147. }
  3148. Else
  3149. {
  3150. Store (One, Local0)
  3151. }
  3152.  
  3153. ShiftLeft (Local0, And (PIRH, 0x0F), IRQW)
  3154. Return (BUF0)
  3155. }
  3156.  
  3157. Name (_PRS, ResourceTemplate ()
  3158. {
  3159. IRQ (Level, ActiveLow, Shared, )
  3160. {3,4,5,7,9,10,11,12}
  3161. })
  3162. Method (_SRS, 1, NotSerialized)
  3163. {
  3164. CreateWordField (Arg0, One, IRQW)
  3165. FindSetRightBit (IRQW, Local0)
  3166. If (LNotEqual (IRQW, Zero))
  3167. {
  3168. And (Local0, 0x7F, Local0)
  3169. Decrement (Local0)
  3170. }
  3171. Else
  3172. {
  3173. Or (Local0, 0x80, Local0)
  3174. }
  3175.  
  3176. Store (Local0, PIRH)
  3177. }
  3178. }
  3179.  
  3180. Device (SYSR)
  3181. {
  3182. Name (_HID, EisaId ("PNP0C02"))
  3183. Name (_CRS, ResourceTemplate ()
  3184. {
  3185. IO (Decode16,
  3186. 0x164E, // Range Minimum
  3187. 0x164E, // Range Maximum
  3188. 0x01, // Alignment
  3189. 0x02, // Length
  3190. )
  3191. IO (Decode16,
  3192. 0x0061, // Range Minimum
  3193. 0x0061, // Range Maximum
  3194. 0x01, // Alignment
  3195. 0x01, // Length
  3196. )
  3197. IO (Decode16,
  3198. 0x0070, // Range Minimum
  3199. 0x0070, // Range Maximum
  3200. 0x01, // Alignment
  3201. 0x01, // Length
  3202. )
  3203. IO (Decode16,
  3204. 0x0080, // Range Minimum
  3205. 0x0080, // Range Maximum
  3206. 0x01, // Alignment
  3207. 0x01, // Length
  3208. )
  3209. IO (Decode16,
  3210. 0x0092, // Range Minimum
  3211. 0x0092, // Range Maximum
  3212. 0x01, // Alignment
  3213. 0x01, // Length
  3214. )
  3215. IO (Decode16,
  3216. 0x00B2, // Range Minimum
  3217. 0x00B2, // Range Maximum
  3218. 0x01, // Alignment
  3219. 0x02, // Length
  3220. )
  3221. IO (Decode16,
  3222. 0x0063, // Range Minimum
  3223. 0x0063, // Range Maximum
  3224. 0x01, // Alignment
  3225. 0x01, // Length
  3226. )
  3227. IO (Decode16,
  3228. 0x0065, // Range Minimum
  3229. 0x0065, // Range Maximum
  3230. 0x01, // Alignment
  3231. 0x01, // Length
  3232. )
  3233. IO (Decode16,
  3234. 0x0067, // Range Minimum
  3235. 0x0067, // Range Maximum
  3236. 0x01, // Alignment
  3237. 0x01, // Length
  3238. )
  3239. IO (Decode16,
  3240. 0x0600, // Range Minimum
  3241. 0x0600, // Range Maximum
  3242. 0x01, // Alignment
  3243. 0x02, // Length
  3244. )
  3245. IO (Decode16,
  3246. 0x0800, // Range Minimum
  3247. 0x0800, // Range Maximum
  3248. 0x01, // Alignment
  3249. 0x10, // Length
  3250. )
  3251. IO (Decode16,
  3252. 0x0400, // Range Minimum
  3253. 0x0400, // Range Maximum
  3254. 0x01, // Alignment
  3255. 0x80, // Length
  3256. )
  3257. IO (Decode16,
  3258. 0x0500, // Range Minimum
  3259. 0x0500, // Range Maximum
  3260. 0x01, // Alignment
  3261. 0x40, // Length
  3262. )
  3263. Memory32Fixed (ReadWrite,
  3264. 0xE0000000, // Address Base
  3265. 0x10000000, // Address Length
  3266. )
  3267. Memory32Fixed (ReadWrite,
  3268. 0xFED1C000, // Address Base
  3269. 0x00004000, // Address Length
  3270. )
  3271. Memory32Fixed (ReadWrite,
  3272. 0xFED14000, // Address Base
  3273. 0x00004000, // Address Length
  3274. )
  3275. Memory32Fixed (ReadWrite,
  3276. 0xFED18000, // Address Base
  3277. 0x00001000, // Address Length
  3278. )
  3279. Memory32Fixed (ReadWrite,
  3280. 0xFED19000, // Address Base
  3281. 0x00001000, // Address Length
  3282. )
  3283. Memory32Fixed (ReadWrite,
  3284. 0xFEC00000, // Address Base
  3285. 0x00001000, // Address Length
  3286. )
  3287. Memory32Fixed (ReadWrite,
  3288. 0xFEE00000, // Address Base
  3289. 0x00001000, // Address Length
  3290. )
  3291. })
  3292. }
  3293.  
  3294. Device (DMAC)
  3295. {
  3296. Name (_HID, EisaId ("PNP0200"))
  3297. Name (_CRS, ResourceTemplate ()
  3298. {
  3299. IO (Decode16,
  3300. 0x0000, // Range Minimum
  3301. 0x0000, // Range Maximum
  3302. 0x01, // Alignment
  3303. 0x20, // Length
  3304. )
  3305. IO (Decode16,
  3306. 0x0081, // Range Minimum
  3307. 0x0081, // Range Maximum
  3308. 0x01, // Alignment
  3309. 0x11, // Length
  3310. )
  3311. IO (Decode16,
  3312. 0x0093, // Range Minimum
  3313. 0x0093, // Range Maximum
  3314. 0x01, // Alignment
  3315. 0x0D, // Length
  3316. )
  3317. IO (Decode16,
  3318. 0x00C0, // Range Minimum
  3319. 0x00C0, // Range Maximum
  3320. 0x01, // Alignment
  3321. 0x20, // Length
  3322. )
  3323. DMA (Compatibility, NotBusMaster, Transfer8_16, )
  3324. {4}
  3325. })
  3326. }
  3327.  
  3328. Device (RTC)
  3329. {
  3330. Name (_HID, EisaId ("PNP0B00"))
  3331. Name (BUF0, ResourceTemplate ()
  3332. {
  3333. IO (Decode16,
  3334. 0x0070, // Range Minimum
  3335. 0x0070, // Range Maximum
  3336. 0x01, // Alignment
  3337. 0x08, // Length
  3338. )
  3339. })
  3340. Name (BUF1, ResourceTemplate ()
  3341. {
  3342. IO (Decode16,
  3343. 0x0070, // Range Minimum
  3344. 0x0070, // Range Maximum
  3345. 0x01, // Alignment
  3346. 0x08, // Length
  3347. )
  3348. IRQNoFlags ()
  3349. {8}
  3350. })
  3351. Method (_CRS, 0, Serialized)
  3352. {
  3353. If (LEqual (HPTS, One))
  3354. {
  3355. Return (BUF0)
  3356. }
  3357. Else
  3358. {
  3359. Return (BUF1)
  3360. }
  3361. }
  3362. }
  3363.  
  3364. Device (HPET)
  3365. {
  3366. Name (_HID, EisaId ("PNP0103"))
  3367. Name (BUF0, ResourceTemplate ()
  3368. {
  3369. IRQNoFlags ()
  3370. {0}
  3371. IRQNoFlags ()
  3372. {8}
  3373. Memory32Fixed (ReadOnly,
  3374. 0xFED00000, // Address Base
  3375. 0x00000400, // Address Length
  3376. _Y0E)
  3377. })
  3378. Method (_STA, 0, NotSerialized)
  3379. {
  3380. If (LGreaterEqual (OSYS, 0x07D1))
  3381. {
  3382. If (LEqual (HPTS, One))
  3383. {
  3384. Return (0x0F)
  3385. }
  3386. Else
  3387. {
  3388. Return (Zero)
  3389. }
  3390. }
  3391. Else
  3392. {
  3393. If (HPTS)
  3394. {
  3395. Return (0x0B)
  3396. }
  3397. Else
  3398. {
  3399. Return (Zero)
  3400. }
  3401. }
  3402. }
  3403.  
  3404. Method (_CRS, 0, Serialized)
  3405. {
  3406. If (LEqual (HPTS, One))
  3407. {
  3408. CreateDWordField (BUF0, \_SB.PCI0.LPC.HPET._Y0E._BAS, HPT0)
  3409. If (LEqual (HPTA, One))
  3410. {
  3411. Store (0xFED01000, HPT0)
  3412. }
  3413.  
  3414. If (LEqual (HPTA, 0x02))
  3415. {
  3416. Store (0xFED02000, HPT0)
  3417. }
  3418.  
  3419. If (LEqual (HPTA, 0x03))
  3420. {
  3421. Store (0xFED03000, HPT0)
  3422. }
  3423. }
  3424.  
  3425. Return (BUF0)
  3426. }
  3427. }
  3428.  
  3429. Device (PIC)
  3430. {
  3431. Name (_HID, EisaId ("PNP0000"))
  3432. Name (_CRS, ResourceTemplate ()
  3433. {
  3434. IO (Decode16,
  3435. 0x0020, // Range Minimum
  3436. 0x0020, // Range Maximum
  3437. 0x01, // Alignment
  3438. 0x02, // Length
  3439. )
  3440. IO (Decode16,
  3441. 0x0024, // Range Minimum
  3442. 0x0024, // Range Maximum
  3443. 0x01, // Alignment
  3444. 0x02, // Length
  3445. )
  3446. IO (Decode16,
  3447. 0x0028, // Range Minimum
  3448. 0x0028, // Range Maximum
  3449. 0x01, // Alignment
  3450. 0x02, // Length
  3451. )
  3452. IO (Decode16,
  3453. 0x002C, // Range Minimum
  3454. 0x002C, // Range Maximum
  3455. 0x01, // Alignment
  3456. 0x02, // Length
  3457. )
  3458. IO (Decode16,
  3459. 0x0030, // Range Minimum
  3460. 0x0030, // Range Maximum
  3461. 0x01, // Alignment
  3462. 0x02, // Length
  3463. )
  3464. IO (Decode16,
  3465. 0x0034, // Range Minimum
  3466. 0x0034, // Range Maximum
  3467. 0x01, // Alignment
  3468. 0x02, // Length
  3469. )
  3470. IO (Decode16,
  3471. 0x0038, // Range Minimum
  3472. 0x0038, // Range Maximum
  3473. 0x01, // Alignment
  3474. 0x02, // Length
  3475. )
  3476. IO (Decode16,
  3477. 0x003C, // Range Minimum
  3478. 0x003C, // Range Maximum
  3479. 0x01, // Alignment
  3480. 0x02, // Length
  3481. )
  3482. IO (Decode16,
  3483. 0x00A0, // Range Minimum
  3484. 0x00A0, // Range Maximum
  3485. 0x01, // Alignment
  3486. 0x02, // Length
  3487. )
  3488. IO (Decode16,
  3489. 0x00A4, // Range Minimum
  3490. 0x00A4, // Range Maximum
  3491. 0x01, // Alignment
  3492. 0x02, // Length
  3493. )
  3494. IO (Decode16,
  3495. 0x00A8, // Range Minimum
  3496. 0x00A8, // Range Maximum
  3497. 0x01, // Alignment
  3498. 0x02, // Length
  3499. )
  3500. IO (Decode16,
  3501. 0x00AC, // Range Minimum
  3502. 0x00AC, // Range Maximum
  3503. 0x01, // Alignment
  3504. 0x02, // Length
  3505. )
  3506. IO (Decode16,
  3507. 0x00B0, // Range Minimum
  3508. 0x00B0, // Range Maximum
  3509. 0x01, // Alignment
  3510. 0x02, // Length
  3511. )
  3512. IO (Decode16,
  3513. 0x00B4, // Range Minimum
  3514. 0x00B4, // Range Maximum
  3515. 0x01, // Alignment
  3516. 0x02, // Length
  3517. )
  3518. IO (Decode16,
  3519. 0x00B8, // Range Minimum
  3520. 0x00B8, // Range Maximum
  3521. 0x01, // Alignment
  3522. 0x02, // Length
  3523. )
  3524. IO (Decode16,
  3525. 0x00BC, // Range Minimum
  3526. 0x00BC, // Range Maximum
  3527. 0x01, // Alignment
  3528. 0x02, // Length
  3529. )
  3530. IO (Decode16,
  3531. 0x04D0, // Range Minimum
  3532. 0x04D0, // Range Maximum
  3533. 0x01, // Alignment
  3534. 0x02, // Length
  3535. )
  3536. IRQNoFlags ()
  3537. {2}
  3538. })
  3539. }
  3540.  
  3541. Device (FPU)
  3542. {
  3543. Name (_HID, EisaId ("PNP0C04"))
  3544. Name (_CRS, ResourceTemplate ()
  3545. {
  3546. IO (Decode16,
  3547. 0x00F0, // Range Minimum
  3548. 0x00F0, // Range Maximum
  3549. 0x01, // Alignment
  3550. 0x01, // Length
  3551. )
  3552. IRQNoFlags ()
  3553. {13}
  3554. })
  3555. }
  3556.  
  3557. Device (TIMR)
  3558. {
  3559. Name (_HID, EisaId ("PNP0100"))
  3560. Name (BUF0, ResourceTemplate ()
  3561. {
  3562. IO (Decode16,
  3563. 0x0040, // Range Minimum
  3564. 0x0040, // Range Maximum
  3565. 0x01, // Alignment
  3566. 0x04, // Length
  3567. )
  3568. IO (Decode16,
  3569. 0x0050, // Range Minimum
  3570. 0x0050, // Range Maximum
  3571. 0x10, // Alignment
  3572. 0x04, // Length
  3573. )
  3574. })
  3575. Name (BUF1, ResourceTemplate ()
  3576. {
  3577. IO (Decode16,
  3578. 0x0040, // Range Minimum
  3579. 0x0040, // Range Maximum
  3580. 0x01, // Alignment
  3581. 0x04, // Length
  3582. )
  3583. IO (Decode16,
  3584. 0x0050, // Range Minimum
  3585. 0x0050, // Range Maximum
  3586. 0x10, // Alignment
  3587. 0x04, // Length
  3588. )
  3589. IRQNoFlags ()
  3590. {0}
  3591. })
  3592. Method (_CRS, 0, Serialized)
  3593. {
  3594. If (HPTS)
  3595. {
  3596. Return (BUF0)
  3597. }
  3598.  
  3599. Return (BUF1)
  3600. }
  3601. }
  3602.  
  3603. Device (FWHD)
  3604. {
  3605. Name (_HID, EisaId ("INT0800"))
  3606. Name (_CRS, ResourceTemplate ()
  3607. {
  3608. Memory32Fixed (ReadOnly,
  3609. 0xFF800000, // Address Base
  3610. 0x00800000, // Address Length
  3611. )
  3612. })
  3613. }
  3614.  
  3615. Device (KBC)
  3616. {
  3617. Name (_HID, EisaId ("PNP0303"))
  3618. Name (_CRS, ResourceTemplate ()
  3619. {
  3620. IO (Decode16,
  3621. 0x0060, // Range Minimum
  3622. 0x0060, // Range Maximum
  3623. 0x01, // Alignment
  3624. 0x01, // Length
  3625. )
  3626. IO (Decode16,
  3627. 0x0064, // Range Minimum
  3628. 0x0064, // Range Maximum
  3629. 0x01, // Alignment
  3630. 0x01, // Length
  3631. )
  3632. IRQ (Edge, ActiveHigh, Exclusive, )
  3633. {1}
  3634. })
  3635. Method (_STA, 0, NotSerialized)
  3636. {
  3637. Return (0x0F)
  3638. }
  3639. }
  3640.  
  3641. Device (MOUE)
  3642. {
  3643. Name (_HID, EisaId ("SYN1913"))
  3644. Name (_CID, Package (0x03)
  3645. {
  3646. EisaId ("SYN1900"),
  3647. EisaId ("SYN0002"),
  3648. EisaId ("PNP0F13")
  3649. })
  3650. Name (_CRS, ResourceTemplate ()
  3651. {
  3652. IRQ (Edge, ActiveHigh, Exclusive, )
  3653. {12}
  3654. })
  3655. Method (_STA, 0, NotSerialized)
  3656. {
  3657. Return (0x0F)
  3658. }
  3659. }
  3660.  
  3661. Device (EC0)
  3662. {
  3663. Name (_HID, EisaId ("PNP0C09"))
  3664. Name (_GPE, 0x17)
  3665. Name (ECOK, Zero)
  3666. Method (_REG, 2, NotSerialized)
  3667. {
  3668. If (LEqual (Arg0, 0x03))
  3669. {
  3670. If (LEqual (Arg1, One))
  3671. {
  3672. Store (One, ECOK)
  3673. Store (KSST, Local0)
  3674. If (LGreater (OSYS, 0x07D6))
  3675. {
  3676. Store (One, OS07)
  3677. }
  3678. Else
  3679. {
  3680. Store (Zero, OS07)
  3681. }
  3682.  
  3683. Notify (ADP0, Zero)
  3684. Notify (BAT0, 0x80)
  3685. Acquire (MUTS, 0xFFFF)
  3686. If (LLess (OSYS, 0x07D6))
  3687. {
  3688. Store (Zero, VKEY)
  3689. FLNK (0x15, 0xFF)
  3690. }
  3691.  
  3692. Release (MUTS)
  3693. Acquire (MUTS, 0xFFFF)
  3694. OSMI (0xC1)
  3695. If (THEN)
  3696. {
  3697. Or (0x10, THLV, THRL)
  3698. }
  3699. Else
  3700. {
  3701. Store (Zero, THRL)
  3702. }
  3703.  
  3704. Release (MUTS)
  3705. }
  3706. Else
  3707. {
  3708. Store (Zero, ECOK)
  3709. }
  3710. }
  3711.  
  3712. Acquire (MUTS, 0xFFFF)
  3713. FLNK (0x30, Zero)
  3714. Release (MUTS)
  3715. }
  3716.  
  3717. Name (_CRS, ResourceTemplate ()
  3718. {
  3719. IO (Decode16,
  3720. 0x0062, // Range Minimum
  3721. 0x0062, // Range Maximum
  3722. 0x01, // Alignment
  3723. 0x01, // Length
  3724. )
  3725. IO (Decode16,
  3726. 0x0066, // Range Minimum
  3727. 0x0066, // Range Maximum
  3728. 0x01, // Alignment
  3729. 0x01, // Length
  3730. )
  3731. })
  3732. OperationRegion (ERAM, EmbeddedControl, Zero, 0xFF)
  3733. Field (ERAM, ByteAcc, Lock, Preserve)
  3734. {
  3735. Offset (0x90),
  3736. Offset (0x91),
  3737. Offset (0x92),
  3738. LIDE, 1,
  3739. DOCK, 1,
  3740. FNST, 1,
  3741. ACST, 1,
  3742. , 1,
  3743. , 1,
  3744. , 1,
  3745. Offset (0x93),
  3746. SMIE, 1,
  3747. WLST, 1,
  3748. BTRT, 1,
  3749. WLIF, 1,
  3750. KSST, 1,
  3751. BTST, 1,
  3752. BION, 1,
  3753. BTON, 1,
  3754. B1EX, 1,
  3755. , 3,
  3756. B1CG, 1,
  3757. Offset (0x95),
  3758. B1DC, 1,
  3759. , 3,
  3760. B1CF, 1,
  3761. Offset (0x96),
  3762. L1B1, 1,
  3763. , 3,
  3764. L1B2, 1,
  3765. Offset (0x97),
  3766. CPTO, 8,
  3767. Offset (0x99),
  3768. BL1P, 7,
  3769. Offset (0x9A),
  3770. BL2P, 7,
  3771. Offset (0x9B),
  3772. Offset (0x9C),
  3773. CCTV, 8,
  3774. CCLT, 8,
  3775. CCHT, 8,
  3776. CCST, 8,
  3777. CFAS, 8,
  3778. Offset (0xA2),
  3779. WKSV, 8,
  3780. BNDT, 8,
  3781. B1PT, 8,
  3782. Offset (0xA7),
  3783. BLEC, 1,
  3784. Offset (0xA8),
  3785. B1RL, 8,
  3786. B1RH, 8,
  3787. B1FL, 8,
  3788. B1FH, 8,
  3789. B1DL, 8,
  3790. B1DH, 8,
  3791. B1VL, 8,
  3792. B1VH, 8,
  3793. Offset (0xB4),
  3794. OTCD, 8,
  3795. Offset (0xB6),
  3796. WKLD, 1,
  3797. WKKY, 1,
  3798. WKLN, 1,
  3799. PWBN, 1,
  3800. Offset (0xB8),
  3801. , 1,
  3802. SWI4, 1,
  3803. SDPF, 1,
  3804. Offset (0xB9),
  3805. B1SL, 8,
  3806. B1SH, 8,
  3807. POHV, 8,
  3808. Offset (0xBD),
  3809. B1PL, 8,
  3810. B1PH, 8,
  3811. Offset (0xC1),
  3812. THOF, 8,
  3813. THON, 8,
  3814. VFON, 8,
  3815. VFOF, 8,
  3816. BPRL, 8,
  3817. BPRH, 8,
  3818. Offset (0xC8),
  3819. BUT0, 1,
  3820. BUT1, 1,
  3821. BUT2, 1,
  3822. BUT3, 1,
  3823. BUT4, 1,
  3824. BUT5, 1,
  3825. , 1,
  3826. Offset (0xC9),
  3827. BU0W, 1,
  3828. BU1W, 1,
  3829. BU2W, 1,
  3830. BU3W, 1,
  3831. BU4W, 1,
  3832. BU5W, 1,
  3833. , 1,
  3834. Offset (0xCA),
  3835. PDSE, 8,
  3836. VGAL, 8,
  3837. ECTR, 8,
  3838. Offset (0xCF),
  3839. VGAR, 8,
  3840. Offset (0xD1),
  3841. VGAS, 8,
  3842. Offset (0xD7),
  3843. CPUT, 8,
  3844. Offset (0xD9),
  3845. PANT, 8,
  3846. Offset (0xDB),
  3847. VKEY, 1,
  3848. , 3,
  3849. KEMU, 1,
  3850. HEMU, 1,
  3851. Offset (0xDD),
  3852. BVEN, 8,
  3853. Offset (0xDF),
  3854. BCEL, 8,
  3855. BCNS, 96
  3856. }
  3857.  
  3858. Method (_Q11, 0, NotSerialized)
  3859. {
  3860. Store (0x11, P80H)
  3861. Acquire (MUTS, 0xFFFF)
  3862. OSMI (0xC2)
  3863. If (THEN)
  3864. {
  3865. Or (0x10, THLV, THRL)
  3866. }
  3867. Else
  3868. {
  3869. Store (Zero, THRL)
  3870. }
  3871.  
  3872. Release (MUTS)
  3873. Notify (\_TZ.THRM, 0x81)
  3874. }
  3875.  
  3876. Method (_Q13, 0, NotSerialized)
  3877. {
  3878. Store (0x13, P80H)
  3879. Notify (ADP0, Zero)
  3880. Notify (BAT0, 0x80)
  3881. Notify (BAT0, 0x81)
  3882. }
  3883.  
  3884. Method (_Q14, 0, NotSerialized)
  3885. {
  3886. Notify (LID0, 0x80)
  3887. }
  3888.  
  3889. Method (_Q19, 0, NotSerialized)
  3890. {
  3891. Store (0x19, P80H)
  3892. Notify (ADP0, Zero)
  3893. Notify (BAT0, 0x80)
  3894. Notify (BAT0, 0x81)
  3895. }
  3896.  
  3897. Method (_Q25, 0, NotSerialized)
  3898. {
  3899. If (DSEN) {}
  3900. Else
  3901. {
  3902. Acquire (MUTV, 0xFFFF)
  3903. Acquire (MUTS, 0xFFFF)
  3904. OSMI (0x27)
  3905. Release (MUTS)
  3906. Notify (OVGA, 0x80)
  3907. Sleep (0x07D0)
  3908. Release (MUTV)
  3909. }
  3910. }
  3911.  
  3912. Method (_Q26, 0, NotSerialized)
  3913. {
  3914. If (DSEN) {}
  3915. Else
  3916. {
  3917. Acquire (MUTV, 0xFFFF)
  3918. Store (0x04, NSTE)
  3919. Notify (OVGA, 0x80)
  3920. Sleep (0x07D0)
  3921. Release (MUTV)
  3922. }
  3923. }
  3924.  
  3925. Method (_Q27, 0, NotSerialized)
  3926. {
  3927. Notify (OVGA, 0x80)
  3928. }
  3929.  
  3930. Method (_Q28, 0, NotSerialized)
  3931. {
  3932. If (ECOK)
  3933. {
  3934. If (BTST)
  3935. {
  3936. If (KSST)
  3937. {
  3938. Store (One, BTON)
  3939. Store (One, BION)
  3940. Store (One, BTRT)
  3941. }
  3942. }
  3943. }
  3944.  
  3945. Notify (BT, Zero)
  3946. }
  3947.  
  3948. Method (_Q29, 0, NotSerialized)
  3949. {
  3950. If (ECOK)
  3951. {
  3952. If (BTST)
  3953. {
  3954. If (KSST)
  3955. {
  3956. Store (Zero, BTON)
  3957. Store (Zero, BION)
  3958. Store (Zero, BTRT)
  3959. }
  3960. }
  3961. }
  3962.  
  3963. Notify (BT, Zero)
  3964. }
  3965.  
  3966. Method (_Q31, 0, NotSerialized)
  3967. {
  3968. Acquire (MUTS, 0xFFFF)
  3969. OSMI (0xC0)
  3970. If (THEN)
  3971. {
  3972. Or (0x10, THLV, THRL)
  3973. }
  3974. Else
  3975. {
  3976. Store (Zero, THRL)
  3977. }
  3978.  
  3979. Release (MUTS)
  3980. Notify (\_TZ.THRM, 0x81)
  3981. }
  3982.  
  3983. Method (_Q33, 0, NotSerialized)
  3984. {
  3985. FLNK (0xFF, 0x43)
  3986. }
  3987.  
  3988. Method (_Q36, 0, NotSerialized)
  3989. {
  3990. If (LGreater (OSYS, 0x07D6))
  3991. {
  3992. Store (0x36, P80H)
  3993. Notify (BAT0, 0x81)
  3994. }
  3995. }
  3996.  
  3997. Method (_Q37, 0, NotSerialized)
  3998. {
  3999. Store (0x37, P80H)
  4000. Notify (BAT0, 0x80)
  4001. If (LGreater (OSYS, 0x07D6))
  4002. {
  4003. Notify (BAT0, 0x83)
  4004. }
  4005. }
  4006.  
  4007. Method (_Q59, 0, NotSerialized)
  4008. {
  4009. Acquire (MUTS, 0xFFFF)
  4010. FLNK (0xFF, 0x41)
  4011. If (LEqual (FNF3, One))
  4012. {
  4013. Sleep (0x64)
  4014. FLNK (0xFF, 0x42)
  4015. }
  4016.  
  4017. FLNK (0x16, 0xFB)
  4018. Release (MUTS)
  4019. If (LEqual (FNF3, One))
  4020. {
  4021. _Q28 ()
  4022. }
  4023. }
  4024.  
  4025. Method (_Q60, 0, NotSerialized)
  4026. {
  4027. If (LLess (OSYS, 0x07D6))
  4028. {
  4029. Notify (FWEX, 0x80)
  4030. }
  4031. Else
  4032. {
  4033. If (LNotEqual (EVCT, Zero))
  4034. {
  4035. Acquire (MUTS, 0xFFFF)
  4036. FLNK (0x11, EVCT)
  4037. Store (And (KYB0, 0xFF), Local0)
  4038. Store (Zero, KYB0)
  4039. Release (MUTS)
  4040. }
  4041. }
  4042. }
  4043.  
  4044. Method (_Q63, 0, NotSerialized)
  4045. {
  4046. Notify (^^^OVGA.LCD, 0x86)
  4047. }
  4048.  
  4049. Method (_Q64, 0, NotSerialized)
  4050. {
  4051. Notify (^^^OVGA.LCD, 0x87)
  4052. }
  4053.  
  4054. Method (_Q71, 0, NotSerialized)
  4055. {
  4056. Acquire (MUTS, 0xFFFF)
  4057. OSMI (0xFD)
  4058. Release (MUTS)
  4059. }
  4060.  
  4061. Method (_Q80, 0, NotSerialized)
  4062. {
  4063. }
  4064.  
  4065. Method (_Q81, 0, NotSerialized)
  4066. {
  4067. }
  4068.  
  4069. Method (_Q17, 0, NotSerialized)
  4070. {
  4071. Notify (\_PR.CPU0, 0x80)
  4072. If (CMPE)
  4073. {
  4074. Sleep (0x64)
  4075. Notify (\_PR.CPU1, 0x80)
  4076. }
  4077.  
  4078. Acquire (MUTS, 0xFFFF)
  4079. OSMI (0xC1)
  4080. If (THEN)
  4081. {
  4082. Or (0x10, THLV, THRL)
  4083. }
  4084. Else
  4085. {
  4086. Store (Zero, THRL)
  4087. }
  4088.  
  4089. Release (MUTS)
  4090. Notify (\_TZ.THRM, 0x81)
  4091. }
  4092.  
  4093. Method (_QF9, 0, NotSerialized)
  4094. {
  4095. FLNK (0xFF, 0x40)
  4096. Notify (\_PR.CPU0, 0x80)
  4097. If (CMPE)
  4098. {
  4099. Sleep (0x64)
  4100. Notify (\_PR.CPU1, 0x80)
  4101. }
  4102.  
  4103. Acquire (MUTS, 0xFFFF)
  4104. OSMI (0xC1)
  4105. If (THEN)
  4106. {
  4107. Or (0x10, THLV, THRL)
  4108. }
  4109. Else
  4110. {
  4111. Store (Zero, THRL)
  4112. }
  4113.  
  4114. Release (MUTS)
  4115. Notify (\_TZ.THRM, 0x81)
  4116. }
  4117. }
  4118. }
  4119.  
  4120. Device (UHC1)
  4121. {
  4122. Name (_ADR, 0x001D0000)
  4123. Name (_PRW, Package (0x02)
  4124. {
  4125. 0x03,
  4126. 0x03
  4127. })
  4128. OperationRegion (USBR, PCI_Config, 0xC4, One)
  4129. Field (USBR, AnyAcc, NoLock, Preserve)
  4130. {
  4131. URES, 8
  4132. }
  4133.  
  4134. Method (_PSW, 1, NotSerialized)
  4135. {
  4136. If (LEqual (Arg0, Zero))
  4137. {
  4138. Store (Zero, URES)
  4139. }
  4140.  
  4141. If (LEqual (Arg0, One))
  4142. {
  4143. Store (0x03, URES)
  4144. }
  4145. }
  4146. }
  4147.  
  4148. Device (UHC2)
  4149. {
  4150. Name (_ADR, 0x001D0001)
  4151. Name (_PRW, Package (0x02)
  4152. {
  4153. 0x04,
  4154. 0x03
  4155. })
  4156. OperationRegion (USBR, PCI_Config, 0xC4, One)
  4157. Field (USBR, AnyAcc, NoLock, Preserve)
  4158. {
  4159. URES, 8
  4160. }
  4161.  
  4162. Method (_PSW, 1, NotSerialized)
  4163. {
  4164. If (LEqual (Arg0, Zero))
  4165. {
  4166. Store (Zero, URES)
  4167. }
  4168.  
  4169. If (LEqual (Arg0, One))
  4170. {
  4171. Store (0x03, URES)
  4172. }
  4173. }
  4174. }
  4175.  
  4176. Device (UHC3)
  4177. {
  4178. Name (_ADR, 0x001D0002)
  4179. Name (_PRW, Package (0x02)
  4180. {
  4181. 0x0C,
  4182. 0x03
  4183. })
  4184. OperationRegion (USBR, PCI_Config, 0xC4, One)
  4185. Field (USBR, AnyAcc, NoLock, Preserve)
  4186. {
  4187. URES, 8
  4188. }
  4189.  
  4190. Method (_PSW, 1, NotSerialized)
  4191. {
  4192. If (LEqual (Arg0, Zero))
  4193. {
  4194. Store (Zero, URES)
  4195. }
  4196.  
  4197. If (LEqual (Arg0, One))
  4198. {
  4199. Store (0x03, URES)
  4200. }
  4201. }
  4202. }
  4203.  
  4204. Device (UHC4)
  4205. {
  4206. Name (_ADR, 0x001D0003)
  4207. Name (_PRW, Package (0x02)
  4208. {
  4209. 0x0E,
  4210. 0x03
  4211. })
  4212. OperationRegion (USBR, PCI_Config, 0xC4, One)
  4213. Field (USBR, AnyAcc, NoLock, Preserve)
  4214. {
  4215. URES, 8
  4216. }
  4217.  
  4218. Method (_PSW, 1, NotSerialized)
  4219. {
  4220. If (LEqual (Arg0, Zero))
  4221. {
  4222. Store (Zero, URES)
  4223. }
  4224.  
  4225. If (LEqual (Arg0, One))
  4226. {
  4227. Store (0x03, URES)
  4228. }
  4229. }
  4230. }
  4231.  
  4232. Device (ECHI)
  4233. {
  4234. Name (_ADR, 0x001D0007)
  4235. Name (_PRW, Package (0x02)
  4236. {
  4237. 0x0D,
  4238. 0x03
  4239. })
  4240. OperationRegion (USBR, PCI_Config, 0xC4, One)
  4241. Field (USBR, AnyAcc, NoLock, Preserve)
  4242. {
  4243. URES, 8
  4244. }
  4245.  
  4246. Method (_PSW, 1, NotSerialized)
  4247. {
  4248. If (LEqual (Arg0, Zero))
  4249. {
  4250. Store (Zero, URES)
  4251. }
  4252.  
  4253. If (LEqual (Arg0, One))
  4254. {
  4255. Store (0x03, URES)
  4256. }
  4257. }
  4258. }
  4259.  
  4260. Device (EXP1)
  4261. {
  4262. Name (_ADR, 0x001C0000)
  4263. OperationRegion (P1CS, PCI_Config, 0x40, 0x0100)
  4264. Field (P1CS, AnyAcc, NoLock, Preserve)
  4265. {
  4266. Offset (0x10),
  4267. , 4,
  4268. LKD1, 1,
  4269. Offset (0x1A),
  4270. ABP1, 1,
  4271. , 2,
  4272. PDC1, 1,
  4273. , 2,
  4274. PDS1, 1,
  4275. Offset (0x20),
  4276. RID1, 16,
  4277. PSP1, 1,
  4278. PPP1, 1,
  4279. Offset (0x9C),
  4280. , 30,
  4281. HPCS, 1,
  4282. PMCS, 1
  4283. }
  4284.  
  4285. Device (PXS1)
  4286. {
  4287. Name (_ADR, Zero)
  4288. }
  4289.  
  4290. Method (_PRW, 0, NotSerialized)
  4291. {
  4292. If (WKOL)
  4293. {
  4294. Return (Package (0x02)
  4295. {
  4296. 0x09,
  4297. 0x04
  4298. })
  4299. }
  4300.  
  4301. Return (Package (0x02)
  4302. {
  4303. 0x09,
  4304. Zero
  4305. })
  4306. }
  4307.  
  4308. Method (_PRT, 0, NotSerialized)
  4309. {
  4310. If (LEqual (GPIC, Zero))
  4311. {
  4312. Return (Package (0x04)
  4313. {
  4314. Package (0x04)
  4315. {
  4316. 0xFFFF,
  4317. Zero,
  4318. ^^LPC.LNKA,
  4319. Zero
  4320. },
  4321.  
  4322. Package (0x04)
  4323. {
  4324. 0xFFFF,
  4325. One,
  4326. ^^LPC.LNKB,
  4327. Zero
  4328. },
  4329.  
  4330. Package (0x04)
  4331. {
  4332. 0xFFFF,
  4333. 0x02,
  4334. ^^LPC.LNKC,
  4335. Zero
  4336. },
  4337.  
  4338. Package (0x04)
  4339. {
  4340. 0xFFFF,
  4341. 0x03,
  4342. ^^LPC.LNKD,
  4343. Zero
  4344. }
  4345. })
  4346. }
  4347. Else
  4348. {
  4349. Return (Package (0x04)
  4350. {
  4351. Package (0x04)
  4352. {
  4353. 0xFFFF,
  4354. Zero,
  4355. Zero,
  4356. 0x10
  4357. },
  4358.  
  4359. Package (0x04)
  4360. {
  4361. 0xFFFF,
  4362. One,
  4363. Zero,
  4364. 0x11
  4365. },
  4366.  
  4367. Package (0x04)
  4368. {
  4369. 0xFFFF,
  4370. 0x02,
  4371. Zero,
  4372. 0x12
  4373. },
  4374.  
  4375. Package (0x04)
  4376. {
  4377. 0xFFFF,
  4378. 0x03,
  4379. Zero,
  4380. 0x13
  4381. }
  4382. })
  4383. }
  4384. }
  4385. }
  4386.  
  4387. Device (EXP2)
  4388. {
  4389. Name (_ADR, 0x001C0001)
  4390. OperationRegion (P2CS, PCI_Config, 0x40, 0x0100)
  4391. Field (P2CS, AnyAcc, NoLock, Preserve)
  4392. {
  4393. Offset (0x10),
  4394. , 4,
  4395. LKD2, 1,
  4396. Offset (0x1A),
  4397. ABP2, 1,
  4398. , 2,
  4399. PDC2, 1,
  4400. , 2,
  4401. PDS2, 1,
  4402. Offset (0x20),
  4403. RID2, 16,
  4404. PSP2, 1,
  4405. PPP2, 1,
  4406. Offset (0x9C),
  4407. , 30,
  4408. HPCS, 1,
  4409. PMCS, 1
  4410. }
  4411.  
  4412. Device (PXS2)
  4413. {
  4414. Name (_ADR, Zero)
  4415. }
  4416.  
  4417. Name (_PRW, Package (0x02)
  4418. {
  4419. 0x09,
  4420. 0x04
  4421. })
  4422. Method (_PRT, 0, NotSerialized)
  4423. {
  4424. If (LEqual (GPIC, Zero))
  4425. {
  4426. Return (Package (0x04)
  4427. {
  4428. Package (0x04)
  4429. {
  4430. 0xFFFF,
  4431. Zero,
  4432. ^^LPC.LNKB,
  4433. Zero
  4434. },
  4435.  
  4436. Package (0x04)
  4437. {
  4438. 0xFFFF,
  4439. One,
  4440. ^^LPC.LNKC,
  4441. Zero
  4442. },
  4443.  
  4444. Package (0x04)
  4445. {
  4446. 0xFFFF,
  4447. 0x02,
  4448. ^^LPC.LNKD,
  4449. Zero
  4450. },
  4451.  
  4452. Package (0x04)
  4453. {
  4454. 0xFFFF,
  4455. 0x03,
  4456. ^^LPC.LNKA,
  4457. Zero
  4458. }
  4459. })
  4460. }
  4461. Else
  4462. {
  4463. Return (Package (0x04)
  4464. {
  4465. Package (0x04)
  4466. {
  4467. 0xFFFF,
  4468. Zero,
  4469. Zero,
  4470. 0x11
  4471. },
  4472.  
  4473. Package (0x04)
  4474. {
  4475. 0xFFFF,
  4476. One,
  4477. Zero,
  4478. 0x12
  4479. },
  4480.  
  4481. Package (0x04)
  4482. {
  4483. 0xFFFF,
  4484. 0x02,
  4485. Zero,
  4486. 0x13
  4487. },
  4488.  
  4489. Package (0x04)
  4490. {
  4491. 0xFFFF,
  4492. 0x03,
  4493. Zero,
  4494. 0x10
  4495. }
  4496. })
  4497. }
  4498. }
  4499. }
  4500.  
  4501. Device (AZAL)
  4502. {
  4503. Name (_ADR, 0x001B0000)
  4504. Method (_PRW, 0, NotSerialized)
  4505. {
  4506. If (LEqual (WKMD, One))
  4507. {
  4508. Return (Package (0x02)
  4509. {
  4510. 0x05,
  4511. 0x04
  4512. })
  4513. }
  4514. Else
  4515. {
  4516. Return (Package (0x02)
  4517. {
  4518. 0x05,
  4519. Zero
  4520. })
  4521. }
  4522. }
  4523. }
  4524.  
  4525. Device (AUDO)
  4526. {
  4527. Name (_ADR, 0x001E0002)
  4528. }
  4529.  
  4530. Device (MODM)
  4531. {
  4532. Name (_ADR, 0x001E0003)
  4533. Method (_PRW, 0, NotSerialized)
  4534. {
  4535. If (LEqual (WKMD, One))
  4536. {
  4537. Return (Package (0x02)
  4538. {
  4539. 0x05,
  4540. 0x04
  4541. })
  4542. }
  4543. Else
  4544. {
  4545. Return (Package (0x02)
  4546. {
  4547. 0x05,
  4548. Zero
  4549. })
  4550. }
  4551. }
  4552. }
  4553.  
  4554. Device (OVGA)
  4555. {
  4556. Name (_ADR, 0x00020000)
  4557. OperationRegion (VNVS, SystemMemory, 0x3F5F7010, 0x00010004)
  4558. Field (VNVS, AnyAcc, Lock, Preserve)
  4559. {
  4560. RSIZ, 32,
  4561. RBUF, 524288
  4562. }
  4563.  
  4564. Method (_DOS, 1, NotSerialized)
  4565. {
  4566. Store (And (Arg0, 0x03), DSEN)
  4567. }
  4568.  
  4569. Method (_DOD, 0, NotSerialized)
  4570. {
  4571. If (LEqual (NDID, One))
  4572. {
  4573. Name (TMP1, Package (0x01)
  4574. {
  4575. Ones
  4576. })
  4577. Store (Or (0x00010000, DID1), Index (TMP1, Zero))
  4578. Return (TMP1)
  4579. }
  4580.  
  4581. If (LEqual (NDID, 0x02))
  4582. {
  4583. Name (TMP2, Package (0x02)
  4584. {
  4585. Ones,
  4586. Ones
  4587. })
  4588. Store (Or (0x00010000, DID1), Index (TMP2, Zero))
  4589. Store (Or (0x00010000, DID2), Index (TMP2, One))
  4590. Return (TMP2)
  4591. }
  4592.  
  4593. If (LEqual (NDID, 0x03))
  4594. {
  4595. Name (TMP3, Package (0x03)
  4596. {
  4597. Ones,
  4598. Ones,
  4599. Ones
  4600. })
  4601. Store (Or (0x00010000, DID1), Index (TMP3, Zero))
  4602. Store (Or (0x00010000, DID2), Index (TMP3, One))
  4603. Store (Or (0x00010000, DID3), Index (TMP3, 0x02))
  4604. Return (TMP3)
  4605. }
  4606.  
  4607. If (LEqual (NDID, 0x04))
  4608. {
  4609. Name (TMP4, Package (0x04)
  4610. {
  4611. Ones,
  4612. Ones,
  4613. Ones,
  4614. Ones
  4615. })
  4616. Store (Or (0x00010000, DID1), Index (TMP4, Zero))
  4617. Store (Or (0x00010000, DID2), Index (TMP4, One))
  4618. Store (Or (0x00010000, DID3), Index (TMP4, 0x02))
  4619. Store (Or (0x00010000, DID4), Index (TMP4, 0x03))
  4620. Return (TMP4)
  4621. }
  4622.  
  4623. Name (TMP5, Package (0x05)
  4624. {
  4625. Ones,
  4626. Ones,
  4627. Ones,
  4628. Ones,
  4629. Ones
  4630. })
  4631. Store (Or (0x00010000, DID1), Index (TMP5, Zero))
  4632. Store (Or (0x00010000, DID2), Index (TMP5, One))
  4633. Store (Or (0x00010000, DID3), Index (TMP5, 0x02))
  4634. Store (Or (0x00010000, DID4), Index (TMP5, 0x03))
  4635. Store (Or (0x00010000, DID5), Index (TMP5, 0x04))
  4636. Return (TMP5)
  4637. }
  4638.  
  4639. Method (_ROM, 2, NotSerialized)
  4640. {
  4641. Store (Arg0, Local0)
  4642. Store (Arg1, Local1)
  4643. If (LGreater (Local1, 0x1000))
  4644. {
  4645. Store (0x1000, Local1)
  4646. }
  4647.  
  4648. If (LGreater (Add (Local0, Local1), RSIZ))
  4649. {
  4650. Store (Zero, Local0)
  4651. }
  4652.  
  4653. Multiply (Local0, 0x08, Local2)
  4654. Multiply (Local1, 0x08, Local3)
  4655. Name (ROM1, Buffer (RSIZ) {})
  4656. Name (ROM2, Buffer (Local1) {})
  4657. Store (RBUF, ROM1)
  4658. CreateField (ROM1, Local2, Local3, TMPB)
  4659. Store (TMPB, ROM2)
  4660. Return (ROM2)
  4661. }
  4662.  
  4663. Device (CRT1)
  4664. {
  4665. Method (_ADR, 0, NotSerialized)
  4666. {
  4667. Return (And (0xFFFF, DID1))
  4668. }
  4669.  
  4670. Method (_DCS, 0, NotSerialized)
  4671. {
  4672. If (And (CSTE, One))
  4673. {
  4674. Return (0x1F)
  4675. }
  4676.  
  4677. Return (0x1D)
  4678. }
  4679.  
  4680. Method (_DGS, 0, NotSerialized)
  4681. {
  4682. If (And (NSTE, One))
  4683. {
  4684. Return (One)
  4685. }
  4686.  
  4687. Return (Zero)
  4688. }
  4689.  
  4690. Method (_DSS, 1, NotSerialized)
  4691. {
  4692. If (LEqual (And (Arg0, 0xC0000000), 0xC0000000))
  4693. {
  4694. Store (NSTE, CSTE)
  4695. }
  4696. }
  4697. }
  4698.  
  4699. Device (DTV1)
  4700. {
  4701. Method (_ADR, 0, NotSerialized)
  4702. {
  4703. Return (And (0xFFFF, DID2))
  4704. }
  4705.  
  4706. Method (_DCS, 0, NotSerialized)
  4707. {
  4708. If (And (CSTE, 0x02))
  4709. {
  4710. Return (0x1F)
  4711. }
  4712.  
  4713. Return (0x1D)
  4714. }
  4715.  
  4716. Method (_DGS, 0, NotSerialized)
  4717. {
  4718. If (And (NSTE, 0x02))
  4719. {
  4720. Return (One)
  4721. }
  4722.  
  4723. Return (Zero)
  4724. }
  4725.  
  4726. Method (_DSS, 1, NotSerialized)
  4727. {
  4728. If (LEqual (And (Arg0, 0xC0000000), 0xC0000000))
  4729. {
  4730. Store (NSTE, CSTE)
  4731. }
  4732. }
  4733. }
  4734.  
  4735. Device (LCD)
  4736. {
  4737. Method (_ADR, 0, NotSerialized)
  4738. {
  4739. Return (And (0xFFFF, DID3))
  4740. }
  4741.  
  4742. Method (_DCS, 0, NotSerialized)
  4743. {
  4744. If (And (CSTE, 0x04))
  4745. {
  4746. Return (0x1F)
  4747. }
  4748.  
  4749. Return (0x1D)
  4750. }
  4751.  
  4752. Method (_DGS, 0, NotSerialized)
  4753. {
  4754. If (And (NSTE, 0x04))
  4755. {
  4756. Return (One)
  4757. }
  4758.  
  4759. Return (Zero)
  4760. }
  4761.  
  4762. Method (_DSS, 1, NotSerialized)
  4763. {
  4764. If (LEqual (And (Arg0, 0xC0000000), 0xC0000000))
  4765. {
  4766. Store (NSTE, CSTE)
  4767. }
  4768. }
  4769.  
  4770. Method (_BCL, 0, Serialized)
  4771. {
  4772. Return (Package (0x0A)
  4773. {
  4774. 0x06,
  4775. 0x03,
  4776. One,
  4777. 0x02,
  4778. 0x03,
  4779. 0x04,
  4780. 0x05,
  4781. 0x06,
  4782. 0x07,
  4783. 0x08
  4784. })
  4785. }
  4786.  
  4787. Method (_BCM, 1, Serialized)
  4788. {
  4789. Store (Arg0, Local0)
  4790. Decrement (Local0)
  4791. Acquire (MUTS, 0xFFFF)
  4792. FLNK (0x12, Local0)
  4793. Release (MUTS)
  4794. }
  4795.  
  4796. Method (_BQC, 0, Serialized)
  4797. {
  4798. Acquire (MUTS, 0xFFFF)
  4799. Store (FLNK (0x12, 0xFF), Local1)
  4800. Release (MUTS)
  4801. Increment (Local1)
  4802. Return (Local1)
  4803. }
  4804. }
  4805.  
  4806. Device (DTV2)
  4807. {
  4808. Method (_ADR, 0, NotSerialized)
  4809. {
  4810. Return (And (0xFFFF, DID4))
  4811. }
  4812.  
  4813. Method (_DCS, 0, NotSerialized)
  4814. {
  4815. If (And (CSTE, 0x08))
  4816. {
  4817. Return (0x1F)
  4818. }
  4819.  
  4820. Return (0x1D)
  4821. }
  4822.  
  4823. Method (_DGS, 0, NotSerialized)
  4824. {
  4825. If (And (NSTE, 0x08))
  4826. {
  4827. Return (One)
  4828. }
  4829.  
  4830. Return (Zero)
  4831. }
  4832.  
  4833. Method (_DSS, 1, NotSerialized)
  4834. {
  4835. If (LEqual (And (Arg0, 0xC0000000), 0xC0000000))
  4836. {
  4837. Store (NSTE, CSTE)
  4838. }
  4839. }
  4840. }
  4841.  
  4842. Device (DFP2)
  4843. {
  4844. Method (_ADR, 0, NotSerialized)
  4845. {
  4846. Return (And (0xFFFF, DID5))
  4847. }
  4848.  
  4849. Method (_DCS, 0, NotSerialized)
  4850. {
  4851. If (And (CSTE, 0x10))
  4852. {
  4853. Return (0x1F)
  4854. }
  4855.  
  4856. Return (0x1D)
  4857. }
  4858.  
  4859. Method (_DGS, 0, NotSerialized)
  4860. {
  4861. If (And (NSTE, 0x10))
  4862. {
  4863. Return (One)
  4864. }
  4865.  
  4866. Return (Zero)
  4867. }
  4868.  
  4869. Method (_DSS, 1, NotSerialized)
  4870. {
  4871. If (LEqual (And (Arg0, 0xC0000000), 0xC0000000))
  4872. {
  4873. Store (NSTE, CSTE)
  4874. }
  4875. }
  4876. }
  4877. }
  4878.  
  4879. Device (IDEC)
  4880. {
  4881. Name (_ADR, 0x001F0001)
  4882. OperationRegion (PACS, PCI_Config, 0x40, 0xC0)
  4883. Field (PACS, DWordAcc, NoLock, Preserve)
  4884. {
  4885. PRIT, 16,
  4886. Offset (0x04),
  4887. PSIT, 4,
  4888. Offset (0x08),
  4889. SYNC, 4,
  4890. Offset (0x0A),
  4891. SDT0, 2,
  4892. , 2,
  4893. SDT1, 2,
  4894. Offset (0x14),
  4895. ICR0, 4,
  4896. ICR1, 4,
  4897. ICR2, 4,
  4898. ICR3, 4,
  4899. ICR4, 4,
  4900. ICR5, 4
  4901. }
  4902.  
  4903. Device (PRID)
  4904. {
  4905. Name (_ADR, Zero)
  4906. Method (_GTM, 0, NotSerialized)
  4907. {
  4908. Name (PBUF, Buffer (0x14)
  4909. {
  4910. /* 0000 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  4911. /* 0008 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  4912. /* 0010 */ 0x00, 0x00, 0x00, 0x00
  4913. })
  4914. CreateDWordField (PBUF, Zero, PIO0)
  4915. CreateDWordField (PBUF, 0x04, DMA0)
  4916. CreateDWordField (PBUF, 0x08, PIO1)
  4917. CreateDWordField (PBUF, 0x0C, DMA1)
  4918. CreateDWordField (PBUF, 0x10, FLAG)
  4919. Store (GETP (PRIT), PIO0)
  4920. Store (GDMA (And (SYNC, One), And (ICR3, One),
  4921. And (ICR0, One), SDT0, And (ICR1, One)), DMA0)
  4922. If (LEqual (DMA0, Ones))
  4923. {
  4924. Store (PIO0, DMA0)
  4925. }
  4926.  
  4927. If (And (PRIT, 0x4000))
  4928. {
  4929. If (LEqual (And (PRIT, 0x90), 0x80))
  4930. {
  4931. Store (0x0384, PIO1)
  4932. }
  4933. Else
  4934. {
  4935. Store (GETT (PSIT), PIO1)
  4936. }
  4937. }
  4938. Else
  4939. {
  4940. Store (Ones, PIO1)
  4941. }
  4942.  
  4943. Store (GDMA (And (SYNC, 0x02), And (ICR3, 0x02),
  4944. And (ICR0, 0x02), SDT1, And (ICR1, 0x02)), DMA1)
  4945. If (LEqual (DMA1, Ones))
  4946. {
  4947. Store (PIO1, DMA1)
  4948. }
  4949.  
  4950. Store (GETF (And (SYNC, One), And (SYNC, 0x02),
  4951. PRIT), FLAG)
  4952. If (And (LEqual (PIO0, Ones), LEqual (DMA0, Ones)))
  4953. {
  4954. Store (0x78, PIO0)
  4955. Store (0x14, DMA0)
  4956. Store (0x03, FLAG)
  4957. }
  4958.  
  4959. Return (PBUF)
  4960. }
  4961.  
  4962. Method (_STM, 3, NotSerialized)
  4963. {
  4964. CreateDWordField (Arg0, Zero, PIO0)
  4965. CreateDWordField (Arg0, 0x04, DMA0)
  4966. CreateDWordField (Arg0, 0x08, PIO1)
  4967. CreateDWordField (Arg0, 0x0C, DMA1)
  4968. CreateDWordField (Arg0, 0x10, FLAG)
  4969. If (LEqual (SizeOf (Arg1), 0x0200))
  4970. {
  4971. And (PRIT, 0x40F0, PRIT)
  4972. And (SYNC, 0x02, SYNC)
  4973. Store (Zero, SDT0)
  4974. And (ICR0, 0x02, ICR0)
  4975. And (ICR1, 0x02, ICR1)
  4976. And (ICR3, 0x02, ICR3)
  4977. And (ICR5, 0x02, ICR5)
  4978. CreateWordField (Arg1, 0x62, W490)
  4979. CreateWordField (Arg1, 0x6A, W530)
  4980. CreateWordField (Arg1, 0x7E, W630)
  4981. CreateWordField (Arg1, 0x80, W640)
  4982. CreateWordField (Arg1, 0xB0, W880)
  4983. CreateWordField (Arg1, 0xBA, W930)
  4984. Or (PRIT, 0x8004, PRIT)
  4985. If (LAnd (And (FLAG, 0x02), And (W490, 0x0800)))
  4986. {
  4987. Or (PRIT, 0x02, PRIT)
  4988. }
  4989.  
  4990. Or (PRIT, SETP (PIO0, W530, W640), PRIT)
  4991. If (And (FLAG, One))
  4992. {
  4993. Or (SYNC, One, SYNC)
  4994. Store (SDMA (DMA0), SDT0)
  4995. If (LLess (DMA0, 0x1E))
  4996. {
  4997. Or (ICR3, One, ICR3)
  4998. }
  4999.  
  5000. If (LLess (DMA0, 0x3C))
  5001. {
  5002. Or (ICR0, One, ICR0)
  5003. }
  5004.  
  5005. If (And (W930, 0x2000))
  5006. {
  5007. Or (ICR1, One, ICR1)
  5008. }
  5009. }
  5010. }
  5011.  
  5012. If (LEqual (SizeOf (Arg2), 0x0200))
  5013. {
  5014. And (PRIT, 0x3F0F, PRIT)
  5015. Store (Zero, PSIT)
  5016. And (SYNC, One, SYNC)
  5017. Store (Zero, SDT1)
  5018. And (ICR0, One, ICR0)
  5019. And (ICR1, One, ICR1)
  5020. And (ICR3, One, ICR3)
  5021. And (ICR5, One, ICR5)
  5022. CreateWordField (Arg2, 0x62, W491)
  5023. CreateWordField (Arg2, 0x6A, W531)
  5024. CreateWordField (Arg2, 0x7E, W631)
  5025. CreateWordField (Arg2, 0x80, W641)
  5026. CreateWordField (Arg2, 0xB0, W881)
  5027. CreateWordField (Arg2, 0xBA, W931)
  5028. Or (PRIT, 0x8040, PRIT)
  5029. If (LAnd (And (FLAG, 0x08), And (W491, 0x0800)))
  5030. {
  5031. Or (PRIT, 0x20, PRIT)
  5032. }
  5033.  
  5034. If (And (FLAG, 0x10))
  5035. {
  5036. Or (PRIT, 0x4000, PRIT)
  5037. If (LGreater (PIO1, 0xF0))
  5038. {
  5039. Or (PRIT, 0x80, PRIT)
  5040. }
  5041. Else
  5042. {
  5043. Or (PRIT, 0x10, PRIT)
  5044. Store (SETT (PIO1, W531, W641), PSIT)
  5045. }
  5046. }
  5047.  
  5048. If (And (FLAG, 0x04))
  5049. {
  5050. Or (SYNC, 0x02, SYNC)
  5051. Store (SDMA (DMA1), SDT1)
  5052. If (LLess (DMA1, 0x1E))
  5053. {
  5054. Or (ICR3, 0x02, ICR3)
  5055. }
  5056.  
  5057. If (LLess (DMA1, 0x3C))
  5058. {
  5059. Or (ICR0, 0x02, ICR0)
  5060. }
  5061.  
  5062. If (And (W931, 0x2000))
  5063. {
  5064. Or (ICR1, 0x02, ICR1)
  5065. }
  5066. }
  5067. }
  5068. }
  5069.  
  5070. Device (P_D0)
  5071. {
  5072. Name (_ADR, Zero)
  5073. Method (_GTF, 0, NotSerialized)
  5074. {
  5075. Name (PIB0, Buffer (0x0E)
  5076. {
  5077. /* 0000 */ 0x03, 0x00, 0x00, 0x00, 0x00, 0xA0, 0xEF, 0x03,
  5078. /* 0008 */ 0x00, 0x00, 0x00, 0x00, 0xA0, 0xEF
  5079. })
  5080. CreateByteField (PIB0, One, PMD0)
  5081. CreateByteField (PIB0, 0x08, DMD0)
  5082. If (And (PRIT, 0x02))
  5083. {
  5084. If (LEqual (And (PRIT, 0x09), 0x08))
  5085. {
  5086. Store (0x08, PMD0)
  5087. }
  5088. Else
  5089. {
  5090. Store (0x0A, PMD0)
  5091. ShiftRight (And (PRIT, 0x0300), 0x08, Local0)
  5092. ShiftRight (And (PRIT, 0x3000), 0x0C, Local1)
  5093. Add (Local0, Local1, Local2)
  5094. If (LEqual (0x03, Local2))
  5095. {
  5096. Store (0x0B, PMD0)
  5097. }
  5098.  
  5099. If (LEqual (0x05, Local2))
  5100. {
  5101. Store (0x0C, PMD0)
  5102. }
  5103. }
  5104. }
  5105. Else
  5106. {
  5107. Store (One, PMD0)
  5108. }
  5109.  
  5110. If (And (SYNC, One))
  5111. {
  5112. Store (Or (SDT0, 0x40), DMD0)
  5113. If (And (ICR1, One))
  5114. {
  5115. If (And (ICR0, One))
  5116. {
  5117. Add (DMD0, 0x02, DMD0)
  5118. }
  5119.  
  5120. If (And (ICR3, One))
  5121. {
  5122. Store (0x45, DMD0)
  5123. }
  5124. }
  5125. }
  5126. Else
  5127. {
  5128. Or (Subtract (And (PMD0, 0x07), 0x02), 0x20, DMD0)
  5129. }
  5130.  
  5131. Return (PIB0)
  5132. }
  5133. }
  5134.  
  5135. Device (P_D1)
  5136. {
  5137. Name (_ADR, One)
  5138. Method (_GTF, 0, NotSerialized)
  5139. {
  5140. Name (PIB1, Buffer (0x0E)
  5141. {
  5142. /* 0000 */ 0x03, 0x00, 0x00, 0x00, 0x00, 0xB0, 0xEF, 0x03,
  5143. /* 0008 */ 0x00, 0x00, 0x00, 0x00, 0xB0, 0xEF
  5144. })
  5145. CreateByteField (PIB1, One, PMD1)
  5146. CreateByteField (PIB1, 0x08, DMD1)
  5147. If (And (PRIT, 0x20))
  5148. {
  5149. If (LEqual (And (PRIT, 0x90), 0x80))
  5150. {
  5151. Store (0x08, PMD1)
  5152. }
  5153. Else
  5154. {
  5155. Add (And (PSIT, 0x03), ShiftRight (And (PSIT, 0x0C),
  5156. 0x02), Local0)
  5157. If (LEqual (0x05, Local0))
  5158. {
  5159. Store (0x0C, PMD1)
  5160. }
  5161. Else
  5162. {
  5163. If (LEqual (0x03, Local0))
  5164. {
  5165. Store (0x0B, PMD1)
  5166. }
  5167. Else
  5168. {
  5169. Store (0x0A, PMD1)
  5170. }
  5171. }
  5172. }
  5173. }
  5174. Else
  5175. {
  5176. Store (One, PMD1)
  5177. }
  5178.  
  5179. If (And (SYNC, 0x02))
  5180. {
  5181. Store (Or (SDT1, 0x40), DMD1)
  5182. If (And (ICR1, 0x02))
  5183. {
  5184. If (And (ICR0, 0x02))
  5185. {
  5186. Add (DMD1, 0x02, DMD1)
  5187. }
  5188.  
  5189. If (And (ICR3, 0x02))
  5190. {
  5191. Store (0x45, DMD1)
  5192. }
  5193. }
  5194. }
  5195. Else
  5196. {
  5197. Or (Subtract (And (PMD1, 0x07), 0x02), 0x20, DMD1)
  5198. }
  5199.  
  5200. Return (PIB1)
  5201. }
  5202. }
  5203. }
  5204. }
  5205.  
  5206. Device (SATA)
  5207. {
  5208. Name (_ADR, 0x001F0002)
  5209. OperationRegion (SACS, PCI_Config, 0x40, 0xC0)
  5210. Field (SACS, DWordAcc, NoLock, Preserve)
  5211. {
  5212. PRIT, 16,
  5213. SECT, 16,
  5214. PSIT, 4,
  5215. SSIT, 4,
  5216. Offset (0x08),
  5217. SYNC, 4,
  5218. Offset (0x0A),
  5219. SDT0, 2,
  5220. , 2,
  5221. SDT1, 2,
  5222. Offset (0x0B),
  5223. SDT2, 2,
  5224. , 2,
  5225. SDT3, 2,
  5226. Offset (0x14),
  5227. ICR0, 4,
  5228. ICR1, 4,
  5229. ICR2, 4,
  5230. ICR3, 4,
  5231. ICR4, 4,
  5232. ICR5, 4,
  5233. Offset (0x50),
  5234. MAPV, 2
  5235. }
  5236.  
  5237. Device (PRID)
  5238. {
  5239. Name (_ADR, Zero)
  5240. Method (_GTM, 0, NotSerialized)
  5241. {
  5242. If (LNotEqual (SCFG, 0x04))
  5243. {
  5244. Name (PBUF, Buffer (0x14)
  5245. {
  5246. /* 0000 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  5247. /* 0008 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  5248. /* 0010 */ 0x00, 0x00, 0x00, 0x00
  5249. })
  5250. CreateDWordField (PBUF, Zero, PIO0)
  5251. CreateDWordField (PBUF, 0x04, DMA0)
  5252. CreateDWordField (PBUF, 0x08, PIO1)
  5253. CreateDWordField (PBUF, 0x0C, DMA1)
  5254. CreateDWordField (PBUF, 0x10, FLAG)
  5255. Store (GETP (PRIT), PIO0)
  5256. Store (GDMA (And (SYNC, One), And (ICR3, One),
  5257. And (ICR0, One), SDT0, And (ICR1, One)), DMA0)
  5258. If (LEqual (DMA0, Ones))
  5259. {
  5260. Store (PIO0, DMA0)
  5261. }
  5262.  
  5263. If (And (PRIT, 0x4000))
  5264. {
  5265. If (LEqual (And (PRIT, 0x90), 0x80))
  5266. {
  5267. Store (0x0384, PIO1)
  5268. }
  5269. Else
  5270. {
  5271. Store (GETT (PSIT), PIO1)
  5272. }
  5273. }
  5274. Else
  5275. {
  5276. Store (Ones, PIO1)
  5277. }
  5278.  
  5279. Store (GDMA (And (SYNC, 0x02), And (ICR3, 0x02),
  5280. And (ICR0, 0x02), SDT1, And (ICR1, 0x02)), DMA1)
  5281. If (LEqual (DMA1, Ones))
  5282. {
  5283. Store (PIO1, DMA1)
  5284. }
  5285.  
  5286. Store (GETF (And (SYNC, One), And (SYNC, 0x02),
  5287. PRIT), FLAG)
  5288. Return (PBUF)
  5289. }
  5290. }
  5291.  
  5292. Method (_STM, 3, NotSerialized)
  5293. {
  5294. If (LNotEqual (SCFG, 0x04))
  5295. {
  5296. CreateDWordField (Arg0, Zero, PIO0)
  5297. CreateDWordField (Arg0, 0x04, DMA0)
  5298. CreateDWordField (Arg0, 0x08, PIO1)
  5299. CreateDWordField (Arg0, 0x0C, DMA1)
  5300. CreateDWordField (Arg0, 0x10, FLAG)
  5301. If (LEqual (SizeOf (Arg1), 0x0200))
  5302. {
  5303. And (PRIT, 0x40F0, PRIT)
  5304. And (SYNC, 0x0E, SYNC)
  5305. Store (Zero, SDT0)
  5306. And (ICR0, 0x0E, ICR0)
  5307. And (ICR1, 0x0E, ICR1)
  5308. And (ICR3, 0x0E, ICR3)
  5309. And (ICR5, 0x0E, ICR5)
  5310. CreateWordField (Arg1, 0x62, W490)
  5311. CreateWordField (Arg1, 0x6A, W530)
  5312. CreateWordField (Arg1, 0x7E, W630)
  5313. CreateWordField (Arg1, 0x80, W640)
  5314. CreateWordField (Arg1, 0xB0, W880)
  5315. CreateWordField (Arg1, 0xBA, W930)
  5316. Or (PRIT, 0x8004, PRIT)
  5317. If (LAnd (And (FLAG, 0x02), And (W490, 0x0800)))
  5318. {
  5319. Or (PRIT, 0x02, PRIT)
  5320. }
  5321.  
  5322. Or (PRIT, SETP (PIO0, W530, W640), PRIT)
  5323. If (And (FLAG, One))
  5324. {
  5325. Or (SYNC, One, SYNC)
  5326. Store (SDMA (DMA0), SDT0)
  5327. If (LLess (DMA0, 0x1E))
  5328. {
  5329. Or (ICR3, One, ICR3)
  5330. }
  5331.  
  5332. If (LLess (DMA0, 0x3C))
  5333. {
  5334. Or (ICR0, One, ICR0)
  5335. }
  5336.  
  5337. Or (ICR1, One, ICR1)
  5338. }
  5339. }
  5340.  
  5341. If (LEqual (SizeOf (Arg2), 0x0200))
  5342. {
  5343. And (PRIT, 0x3F0F, PRIT)
  5344. Store (Zero, PSIT)
  5345. And (SYNC, 0x0D, SYNC)
  5346. Store (Zero, SDT1)
  5347. And (ICR0, 0x0D, ICR0)
  5348. And (ICR1, 0x0D, ICR1)
  5349. And (ICR3, 0x0D, ICR3)
  5350. And (ICR5, 0x0D, ICR5)
  5351. CreateWordField (Arg2, 0x62, W491)
  5352. CreateWordField (Arg2, 0x6A, W531)
  5353. CreateWordField (Arg2, 0x7E, W631)
  5354. CreateWordField (Arg2, 0x80, W641)
  5355. CreateWordField (Arg2, 0xB0, W881)
  5356. CreateWordField (Arg2, 0xBA, W931)
  5357. Or (PRIT, 0x8040, PRIT)
  5358. If (LAnd (And (FLAG, 0x08), And (W491, 0x0800)))
  5359. {
  5360. Or (PRIT, 0x20, PRIT)
  5361. }
  5362.  
  5363. If (And (FLAG, 0x10))
  5364. {
  5365. Or (PRIT, 0x4000, PRIT)
  5366. If (LGreater (PIO1, 0xF0))
  5367. {
  5368. Or (PRIT, 0x80, PRIT)
  5369. }
  5370. Else
  5371. {
  5372. Or (PRIT, 0x10, PRIT)
  5373. Store (SETT (PIO1, W531, W641), PSIT)
  5374. }
  5375. }
  5376.  
  5377. If (And (FLAG, 0x04))
  5378. {
  5379. Or (SYNC, 0x02, SYNC)
  5380. Store (SDMA (DMA1), SDT1)
  5381. If (LLess (DMA1, 0x1E))
  5382. {
  5383. Or (ICR3, 0x02, ICR3)
  5384. }
  5385.  
  5386. If (LLess (DMA1, 0x3C))
  5387. {
  5388. Or (ICR0, 0x02, ICR0)
  5389. }
  5390.  
  5391. Or (ICR1, 0x02, ICR1)
  5392. }
  5393. }
  5394. }
  5395. }
  5396.  
  5397. Device (P_D0)
  5398. {
  5399. Name (_ADR, Zero)
  5400. Method (_GTF, 0, NotSerialized)
  5401. {
  5402. If (LNotEqual (SCFG, 0x04))
  5403. {
  5404. Name (PIB0, Buffer (0x0E)
  5405. {
  5406. /* 0000 */ 0x03, 0x00, 0x00, 0x00, 0x00, 0xA0, 0xEF, 0x03,
  5407. /* 0008 */ 0x00, 0x00, 0x00, 0x00, 0xA0, 0xEF
  5408. })
  5409. CreateByteField (PIB0, One, PMD0)
  5410. CreateByteField (PIB0, 0x08, DMD0)
  5411. If (And (PRIT, 0x02))
  5412. {
  5413. If (LEqual (And (PRIT, 0x09), 0x08))
  5414. {
  5415. Store (0x08, PMD0)
  5416. }
  5417. Else
  5418. {
  5419. Store (0x0A, PMD0)
  5420. ShiftRight (And (PRIT, 0x0300), 0x08, Local0)
  5421. ShiftRight (And (PRIT, 0x3000), 0x0C, Local1)
  5422. Add (Local0, Local1, Local2)
  5423. If (LEqual (0x03, Local2))
  5424. {
  5425. Store (0x0B, PMD0)
  5426. }
  5427.  
  5428. If (LEqual (0x05, Local2))
  5429. {
  5430. Store (0x0C, PMD0)
  5431. }
  5432. }
  5433. }
  5434. Else
  5435. {
  5436. Store (One, PMD0)
  5437. }
  5438.  
  5439. If (And (SYNC, One))
  5440. {
  5441. Store (Or (SDT0, 0x40), DMD0)
  5442. If (And (ICR1, One))
  5443. {
  5444. If (And (ICR0, One))
  5445. {
  5446. Add (DMD0, 0x02, DMD0)
  5447. }
  5448.  
  5449. If (And (ICR3, One))
  5450. {
  5451. Store (0x45, DMD0)
  5452. }
  5453. }
  5454. }
  5455. Else
  5456. {
  5457. Or (Subtract (And (PMD0, 0x07), 0x02), 0x20, DMD0)
  5458. }
  5459.  
  5460. Return (PIB0)
  5461. }
  5462. }
  5463. }
  5464.  
  5465. Device (P_D1)
  5466. {
  5467. Name (_ADR, One)
  5468. Method (_GTF, 0, NotSerialized)
  5469. {
  5470. If (LNotEqual (SCFG, 0x04))
  5471. {
  5472. Name (PIB1, Buffer (0x0E)
  5473. {
  5474. /* 0000 */ 0x03, 0x00, 0x00, 0x00, 0x00, 0xB0, 0xEF, 0x03,
  5475. /* 0008 */ 0x00, 0x00, 0x00, 0x00, 0xB0, 0xEF
  5476. })
  5477. CreateByteField (PIB1, One, PMD1)
  5478. CreateByteField (PIB1, 0x08, DMD1)
  5479. If (And (PRIT, 0x20))
  5480. {
  5481. If (LEqual (And (PRIT, 0x90), 0x80))
  5482. {
  5483. Store (0x08, PMD1)
  5484. }
  5485. Else
  5486. {
  5487. Add (And (PSIT, 0x03), ShiftRight (And (PSIT, 0x0C),
  5488. 0x02), Local0)
  5489. If (LEqual (0x05, Local0))
  5490. {
  5491. Store (0x0C, PMD1)
  5492. }
  5493. Else
  5494. {
  5495. If (LEqual (0x03, Local0))
  5496. {
  5497. Store (0x0B, PMD1)
  5498. }
  5499. Else
  5500. {
  5501. Store (0x0A, PMD1)
  5502. }
  5503. }
  5504. }
  5505. }
  5506. Else
  5507. {
  5508. Store (One, PMD1)
  5509. }
  5510.  
  5511. If (And (SYNC, 0x02))
  5512. {
  5513. Store (Or (SDT1, 0x40), DMD1)
  5514. If (And (ICR1, 0x02))
  5515. {
  5516. If (And (ICR0, 0x02))
  5517. {
  5518. Add (DMD1, 0x02, DMD1)
  5519. }
  5520.  
  5521. If (And (ICR3, 0x02))
  5522. {
  5523. Store (0x45, DMD1)
  5524. }
  5525. }
  5526. }
  5527. Else
  5528. {
  5529. Or (Subtract (And (PMD1, 0x07), 0x02), 0x20, DMD1)
  5530. }
  5531.  
  5532. Return (PIB1)
  5533. }
  5534. }
  5535. }
  5536. }
  5537.  
  5538. Device (SECD)
  5539. {
  5540. Name (_ADR, One)
  5541. Method (_GTM, 0, NotSerialized)
  5542. {
  5543. If (LNotEqual (SCFG, 0x04))
  5544. {
  5545. Name (SBUF, Buffer (0x14)
  5546. {
  5547. /* 0000 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  5548. /* 0008 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  5549. /* 0010 */ 0x00, 0x00, 0x00, 0x00
  5550. })
  5551. CreateDWordField (SBUF, Zero, PIO0)
  5552. CreateDWordField (SBUF, 0x04, DMA0)
  5553. CreateDWordField (SBUF, 0x08, PIO1)
  5554. CreateDWordField (SBUF, 0x0C, DMA1)
  5555. CreateDWordField (SBUF, 0x10, FLAG)
  5556. Store (GETP (SECT), PIO0)
  5557. Store (GDMA (And (SYNC, 0x04), And (ICR3, 0x04),
  5558. And (ICR0, 0x04), SDT2, And (ICR1, 0x04)), DMA0)
  5559. If (LEqual (DMA0, Ones))
  5560. {
  5561. Store (PIO0, DMA0)
  5562. }
  5563.  
  5564. If (And (SECT, 0x4000))
  5565. {
  5566. If (LEqual (And (SECT, 0x90), 0x80))
  5567. {
  5568. Store (0x0384, PIO1)
  5569. }
  5570. Else
  5571. {
  5572. Store (GETT (SSIT), PIO1)
  5573. }
  5574. }
  5575. Else
  5576. {
  5577. Store (Ones, PIO1)
  5578. }
  5579.  
  5580. Store (GDMA (And (SYNC, 0x08), And (ICR3, 0x08),
  5581. And (ICR0, 0x08), SDT3, And (ICR1, 0x08)), DMA1)
  5582. If (LEqual (DMA1, Ones))
  5583. {
  5584. Store (PIO1, DMA1)
  5585. }
  5586.  
  5587. Store (GETF (And (SYNC, 0x04), And (SYNC, 0x08),
  5588. SECT), FLAG)
  5589. If (And (LEqual (PIO0, Ones), LEqual (DMA0, Ones)))
  5590. {
  5591. Store (0x78, PIO0)
  5592. Store (0x14, DMA0)
  5593. Store (0x03, FLAG)
  5594. }
  5595.  
  5596. Return (SBUF)
  5597. }
  5598. }
  5599.  
  5600. Method (_STM, 3, NotSerialized)
  5601. {
  5602. If (LNotEqual (SCFG, 0x04))
  5603. {
  5604. CreateDWordField (Arg0, Zero, PIO0)
  5605. CreateDWordField (Arg0, 0x04, DMA0)
  5606. CreateDWordField (Arg0, 0x08, PIO1)
  5607. CreateDWordField (Arg0, 0x0C, DMA1)
  5608. CreateDWordField (Arg0, 0x10, FLAG)
  5609. If (LEqual (SizeOf (Arg1), 0x0200))
  5610. {
  5611. And (SECT, 0x40F0, SECT)
  5612. And (SYNC, 0x0B, SYNC)
  5613. Store (Zero, SDT2)
  5614. And (ICR0, 0x0B, ICR0)
  5615. And (ICR1, 0x0B, ICR1)
  5616. And (ICR3, 0x0B, ICR3)
  5617. And (ICR5, 0x0B, ICR5)
  5618. CreateWordField (Arg1, 0x62, W490)
  5619. CreateWordField (Arg1, 0x6A, W530)
  5620. CreateWordField (Arg1, 0x7E, W630)
  5621. CreateWordField (Arg1, 0x80, W640)
  5622. CreateWordField (Arg1, 0xB0, W880)
  5623. CreateWordField (Arg1, 0xBA, W930)
  5624. Or (SECT, 0x8004, SECT)
  5625. If (LAnd (And (FLAG, 0x02), And (W490, 0x0800)))
  5626. {
  5627. Or (SECT, 0x02, SECT)
  5628. }
  5629.  
  5630. Or (SECT, SETP (PIO0, W530, W640), SECT)
  5631. If (And (FLAG, One))
  5632. {
  5633. Or (SYNC, 0x04, SYNC)
  5634. Store (SDMA (DMA0), SDT2)
  5635. If (LLess (DMA0, 0x1E))
  5636. {
  5637. Or (ICR3, 0x04, ICR3)
  5638. }
  5639.  
  5640. If (LLess (DMA0, 0x3C))
  5641. {
  5642. Or (ICR0, 0x04, ICR0)
  5643. }
  5644.  
  5645. If (And (W930, 0x2000))
  5646. {
  5647. Or (ICR1, 0x04, ICR1)
  5648. }
  5649. }
  5650. }
  5651.  
  5652. If (LEqual (SizeOf (Arg2), 0x0200))
  5653. {
  5654. And (SECT, 0x3F0F, SECT)
  5655. Store (Zero, SSIT)
  5656. And (SYNC, 0x07, SYNC)
  5657. Store (Zero, SDT3)
  5658. And (ICR0, 0x07, ICR0)
  5659. And (ICR1, 0x07, ICR1)
  5660. And (ICR3, 0x07, ICR3)
  5661. And (ICR5, 0x07, ICR5)
  5662. CreateWordField (Arg2, 0x62, W491)
  5663. CreateWordField (Arg2, 0x6A, W531)
  5664. CreateWordField (Arg2, 0x7E, W631)
  5665. CreateWordField (Arg2, 0x80, W641)
  5666. CreateWordField (Arg2, 0xB0, W881)
  5667. CreateWordField (Arg2, 0xBA, W931)
  5668. Or (SECT, 0x8040, SECT)
  5669. If (LAnd (And (FLAG, 0x08), And (W491, 0x0800)))
  5670. {
  5671. Or (SECT, 0x20, SECT)
  5672. }
  5673.  
  5674. If (And (FLAG, 0x10))
  5675. {
  5676. Or (SECT, 0x4000, SECT)
  5677. If (LGreater (PIO1, 0xF0))
  5678. {
  5679. Or (SECT, 0x80, SECT)
  5680. }
  5681. Else
  5682. {
  5683. Or (SECT, 0x10, SECT)
  5684. Store (SETT (PIO1, W531, W641), SSIT)
  5685. }
  5686. }
  5687.  
  5688. If (And (FLAG, 0x04))
  5689. {
  5690. Or (SYNC, 0x08, SYNC)
  5691. Store (SDMA (DMA1), SDT3)
  5692. If (LLess (DMA1, 0x1E))
  5693. {
  5694. Or (ICR3, 0x08, ICR3)
  5695. }
  5696.  
  5697. If (LLess (DMA1, 0x3C))
  5698. {
  5699. Or (ICR0, 0x08, ICR0)
  5700. }
  5701.  
  5702. If (And (W931, 0x2000))
  5703. {
  5704. Or (ICR1, 0x08, ICR1)
  5705. }
  5706. }
  5707. }
  5708. }
  5709. }
  5710.  
  5711. Device (S_D0)
  5712. {
  5713. Name (_ADR, Zero)
  5714. Method (_GTF, 0, NotSerialized)
  5715. {
  5716. If (LNotEqual (SCFG, 0x04))
  5717. {
  5718. Name (SIB0, Buffer (0x0E)
  5719. {
  5720. /* 0000 */ 0x03, 0x00, 0x00, 0x00, 0x00, 0xA0, 0xEF, 0x03,
  5721. /* 0008 */ 0x00, 0x00, 0x00, 0x00, 0xA0, 0xEF
  5722. })
  5723. CreateByteField (SIB0, One, PMD0)
  5724. CreateByteField (SIB0, 0x08, DMD0)
  5725. If (And (SECT, 0x02))
  5726. {
  5727. If (LEqual (And (SECT, 0x09), 0x08))
  5728. {
  5729. Store (0x08, PMD0)
  5730. }
  5731. Else
  5732. {
  5733. Store (0x0A, PMD0)
  5734. ShiftRight (And (SECT, 0x0300), 0x08, Local0)
  5735. ShiftRight (And (SECT, 0x3000), 0x0C, Local1)
  5736. Add (Local0, Local1, Local2)
  5737. If (LEqual (0x03, Local2))
  5738. {
  5739. Store (0x0B, PMD0)
  5740. }
  5741.  
  5742. If (LEqual (0x05, Local2))
  5743. {
  5744. Store (0x0C, PMD0)
  5745. }
  5746. }
  5747. }
  5748. Else
  5749. {
  5750. Store (One, PMD0)
  5751. }
  5752.  
  5753. If (And (SYNC, 0x04))
  5754. {
  5755. Store (Or (SDT2, 0x40), DMD0)
  5756. If (And (ICR1, 0x04))
  5757. {
  5758. If (And (ICR0, 0x04))
  5759. {
  5760. Add (DMD0, 0x02, DMD0)
  5761. }
  5762.  
  5763. If (And (ICR3, 0x04))
  5764. {
  5765. Store (0x45, DMD0)
  5766. }
  5767. }
  5768. }
  5769. Else
  5770. {
  5771. Or (Subtract (And (PMD0, 0x07), 0x02), 0x20, DMD0)
  5772. }
  5773.  
  5774. Return (SIB0)
  5775. }
  5776. }
  5777. }
  5778.  
  5779. Device (S_D1)
  5780. {
  5781. Name (_ADR, One)
  5782. Method (_GTF, 0, NotSerialized)
  5783. {
  5784. If (LNotEqual (SCFG, 0x04))
  5785. {
  5786. Name (SIB1, Buffer (0x0E)
  5787. {
  5788. /* 0000 */ 0x03, 0x00, 0x00, 0x00, 0x00, 0xB0, 0xEF, 0x03,
  5789. /* 0008 */ 0x00, 0x00, 0x00, 0x00, 0xB0, 0xEF
  5790. })
  5791. CreateByteField (SIB1, One, PMD1)
  5792. CreateByteField (SIB1, 0x08, DMD1)
  5793. If (And (SECT, 0x20))
  5794. {
  5795. If (LEqual (And (SECT, 0x90), 0x80))
  5796. {
  5797. Store (0x08, PMD1)
  5798. }
  5799. Else
  5800. {
  5801. Add (And (SSIT, 0x03), ShiftRight (And (SSIT, 0x0C),
  5802. 0x02), Local0)
  5803. If (LEqual (0x05, Local0))
  5804. {
  5805. Store (0x0C, PMD1)
  5806. }
  5807. Else
  5808. {
  5809. If (LEqual (0x03, Local0))
  5810. {
  5811. Store (0x0B, PMD1)
  5812. }
  5813. Else
  5814. {
  5815. Store (0x0A, PMD1)
  5816. }
  5817. }
  5818. }
  5819. }
  5820. Else
  5821. {
  5822. Store (One, PMD1)
  5823. }
  5824.  
  5825. If (And (SYNC, 0x08))
  5826. {
  5827. Store (Or (SDT3, 0x40), DMD1)
  5828. If (And (ICR1, 0x08))
  5829. {
  5830. If (And (ICR0, 0x08))
  5831. {
  5832. Add (DMD1, 0x02, DMD1)
  5833. }
  5834.  
  5835. If (And (ICR3, 0x08))
  5836. {
  5837. Store (0x45, DMD1)
  5838. }
  5839. }
  5840. }
  5841. Else
  5842. {
  5843. Or (Subtract (And (PMD1, 0x07), 0x02), 0x20, DMD1)
  5844. }
  5845.  
  5846. Return (SIB1)
  5847. }
  5848. }
  5849. }
  5850. }
  5851.  
  5852. Device (PRT0)
  5853. {
  5854. Name (_ADR, 0xFFFF)
  5855. Method (_SDD, 1, NotSerialized)
  5856. {
  5857. If (LEqual (SCFG, 0x04))
  5858. {
  5859. Name (GBU0, Buffer (0x07)
  5860. {
  5861. 0x00, 0x00, 0x00, 0x00, 0x00, 0xA0, 0x00
  5862. })
  5863. CreateByteField (GBU0, Zero, GB00)
  5864. CreateByteField (GBU0, One, GB01)
  5865. CreateByteField (GBU0, 0x02, GB02)
  5866. CreateByteField (GBU0, 0x03, GB03)
  5867. CreateByteField (GBU0, 0x04, GB04)
  5868. CreateByteField (GBU0, 0x05, GB05)
  5869. CreateByteField (GBU0, 0x06, GB06)
  5870. If (LEqual (SizeOf (Arg0), 0x0200))
  5871. {
  5872. CreateWordField (Arg0, 0x9C, W780)
  5873. CreateWordField (Arg0, 0x9E, W790)
  5874. If (LAnd (W780, 0x04))
  5875. {
  5876. If (LEqual (And (W790, 0x04), Zero))
  5877. {
  5878. Store (0x10, GB00)
  5879. Store (0x03, GB01)
  5880. Store (0xEF, GB06)
  5881. }
  5882. }
  5883. }
  5884.  
  5885. Store (GBU0, GTF0)
  5886. }
  5887. }
  5888.  
  5889. Method (_GTF, 0, NotSerialized)
  5890. {
  5891. If (LAnd (LEqual (SCFG, 0x04), LEqual (AIBT, Zero)))
  5892. {
  5893. Return (GTF0)
  5894. }
  5895. }
  5896. }
  5897.  
  5898. Device (PRT2)
  5899. {
  5900. Name (_ADR, 0x0002FFFF)
  5901. Method (_SDD, 1, NotSerialized)
  5902. {
  5903. If (LEqual (SCFG, 0x04))
  5904. {
  5905. Name (GBU2, Buffer (0x07)
  5906. {
  5907. 0x00, 0x00, 0x00, 0x00, 0x00, 0xA0, 0x00
  5908. })
  5909. CreateByteField (GBU2, Zero, GB20)
  5910. CreateByteField (GBU2, One, GB21)
  5911. CreateByteField (GBU2, 0x02, GB22)
  5912. CreateByteField (GBU2, 0x03, GB23)
  5913. CreateByteField (GBU2, 0x04, GB24)
  5914. CreateByteField (GBU2, 0x05, GB25)
  5915. CreateByteField (GBU2, 0x06, GB26)
  5916. If (LEqual (SizeOf (Arg0), 0x0200))
  5917. {
  5918. CreateWordField (Arg0, 0x9C, W782)
  5919. CreateWordField (Arg0, 0x9E, W792)
  5920. If (LAnd (W782, 0x04))
  5921. {
  5922. If (LEqual (And (W792, 0x04), Zero))
  5923. {
  5924. Store (0x10, GB20)
  5925. Store (0x03, GB21)
  5926. Store (0xEF, GB26)
  5927. }
  5928. }
  5929. }
  5930.  
  5931. Store (GBU2, GTF2)
  5932. }
  5933. }
  5934.  
  5935. Method (_GTF, 0, NotSerialized)
  5936. {
  5937. If (LAnd (LEqual (SCFG, 0x04), LEqual (AIBT, Zero)))
  5938. {
  5939. Return (GTF2)
  5940. }
  5941. }
  5942. }
  5943. }
  5944. }
  5945. }
  5946. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement