Advertisement
Guest User

dsdt.dsl

a guest
Aug 8th, 2013
415
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 405.44 KB | None | 0 0
  1. /*
  2. * Intel ACPI Component Architecture
  3. * AML Disassembler version 20130117-64 [Aug 8 2013]
  4. * Copyright (c) 2000 - 2013 Intel Corporation
  5. *
  6. * Disassembly of dsdt.dat, Thu Aug 8 19:04:42 2013
  7. *
  8. * Original Table Header:
  9. * Signature "DSDT"
  10. * Length 0x0000B80E (47118)
  11. * Revision 0x02
  12. * Checksum 0x5C
  13. * OEM ID "HPQOEM"
  14. * OEM Table ID "SLIC-MPC"
  15. * OEM Revision 0x00000001 (1)
  16. * Compiler ID "MSFT"
  17. * Compiler Version 0x01000013 (16777235)
  18. */
  19.  
  20. DefinitionBlock ("dsdt.aml", "DSDT", 2, "HPQOEM", "SLIC-MPC", 0x00000001)
  21. {
  22. External (_PR_.CPU0._PPC)
  23. External (_SB_.PCI0.GFX0.AFN6, MethodObj) // 0 Arguments
  24. External (_SB_.PCI0.GFX0.AGXA, IntObj)
  25. External (_SB_.PCI0.P0P2.PEGP.RSTR, MethodObj) // 0 Arguments
  26. External (HBRT, MethodObj) // 1 Arguments
  27. External (HDOS, MethodObj) // 0 Arguments
  28. External (HGLS, MethodObj) // 0 Arguments
  29. External (HNOT, MethodObj) // 1 Arguments
  30. External (IDAB, MethodObj) // 0 Arguments
  31. External (PDC0)
  32. External (PDC1)
  33. External (PDC2)
  34. External (PDC3)
  35. External (PDC4)
  36. External (PDC5)
  37. External (PDC6)
  38. External (PDC7)
  39. External (SNXD)
  40.  
  41. Name (SP2O, 0x4E)
  42. Name (SP1O, 0x2E)
  43. Name (IO1B, 0x0600)
  44. Name (IO1L, 0x70)
  45. Name (IO2B, 0x0600)
  46. Name (IO2L, 0x20)
  47. Name (IO3B, 0x0290)
  48. Name (IO3L, 0x10)
  49. Name (SP3O, 0x2E)
  50. Name (IO4B, 0x0A20)
  51. Name (IO4L, 0x20)
  52. Name (MCHB, 0xFED10000)
  53. Name (MCHL, 0x4000)
  54. Name (EGPB, 0xFED19000)
  55. Name (EGPL, 0x1000)
  56. Name (DMIB, 0xFED1B000)
  57. Name (DMIL, 0x1000)
  58. Name (IFPB, 0xFED14000)
  59. Name (IFPL, 0x1000)
  60. Name (PEBS, 0xF0000000)
  61. Name (PELN, 0x08000000)
  62. Name (TTTB, 0xFED20000)
  63. Name (TTTL, 0x00020000)
  64. Name (SMBS, 0xEFA0)
  65. Name (PBLK, 0x0410)
  66. Name (PMBS, 0x0400)
  67. Name (PMLN, 0x80)
  68. Name (LVL2, 0x0414)
  69. Name (LVL3, 0x0415)
  70. Name (LVL4, 0x0416)
  71. Name (SMIN, 0xB2)
  72. Name (GPBS, 0x0500)
  73. Name (GPLN, 0x80)
  74. Name (APCB, 0xFEC00000)
  75. Name (APCL, 0x1000)
  76. Name (PM30, 0x0430)
  77. Name (SRCB, 0xFED1C000)
  78. Name (SRCL, 0x4000)
  79. Name (SUSW, 0xFF)
  80. Name (HPTB, 0xFED00000)
  81. Name (HPTC, 0xFED1F404)
  82. Name (ACPH, 0xDE)
  83. Name (ASSB, Zero)
  84. Name (AOTB, Zero)
  85. Name (AAXB, Zero)
  86. Name (PEHP, Zero)
  87. Name (SHPC, One)
  88. Name (PEPM, Zero)
  89. Name (PEER, Zero)
  90. Name (PECS, Zero)
  91. Name (ITKE, Zero)
  92. Name (FHPP, One)
  93. Name (DSSP, Zero)
  94. Name (FMBL, One)
  95. Name (FDTP, 0x02)
  96. Name (BRF, One)
  97. Name (BPH, 0x02)
  98. Name (BLC, 0x03)
  99. Name (BRFS, 0x04)
  100. Name (BPHS, 0x05)
  101. Name (BLCT, 0x06)
  102. Name (BRF4, 0x07)
  103. Name (BEP, 0x08)
  104. Name (BBF, 0x09)
  105. Name (BOF, 0x0A)
  106. Name (BPT, 0x0B)
  107. Name (SRAF, 0x0C)
  108. Name (WWP, 0x0D)
  109. Name (SDOE, 0x0E)
  110. Name (TRTP, One)
  111. Name (TRTD, 0x02)
  112. Name (TRTI, 0x03)
  113. Name (GCDD, One)
  114. Name (DSTA, 0x0A)
  115. Name (DSLO, 0x0C)
  116. Name (DSLC, 0x0E)
  117. Name (PITS, 0x10)
  118. Name (SBCS, 0x12)
  119. Name (SALS, 0x13)
  120. Name (LSSS, 0x2A)
  121. Name (SOOT, 0x35)
  122. Name (PDBR, 0x4D)
  123. Name (SMBL, 0x10)
  124. Name (TCGM, One)
  125. Name (BCT0, Package (0x0D)
  126. {
  127. 0x57,
  128. 0x19,
  129. 0x06,
  130. 0x08,
  131. 0x0B,
  132. 0x0E,
  133. 0x13,
  134. 0x19,
  135. 0x21,
  136. 0x2C,
  137. 0x3A,
  138. 0x4D,
  139. 0x57
  140. })
  141. Name (BCT1, Package (0x0D)
  142. {
  143. 0x55,
  144. 0x18,
  145. 0x06,
  146. 0x08,
  147. 0x0B,
  148. 0x0E,
  149. 0x12,
  150. 0x18,
  151. 0x20,
  152. 0x2A,
  153. 0x37,
  154. 0x49,
  155. 0x55
  156. })
  157. Name (BCT2, Package (0x0D)
  158. {
  159. 0x55,
  160. 0x19,
  161. 0x06,
  162. 0x08,
  163. 0x0B,
  164. 0x0E,
  165. 0x13,
  166. 0x19,
  167. 0x21,
  168. 0x2C,
  169. 0x3A,
  170. 0x4D,
  171. 0x55
  172. })
  173. Name (BCT3, Package (0x0D)
  174. {
  175. 0x4E,
  176. 0x18,
  177. 0x06,
  178. 0x08,
  179. 0x0A,
  180. 0x0D,
  181. 0x12,
  182. 0x18,
  183. 0x1F,
  184. 0x29,
  185. 0x36,
  186. 0x47,
  187. 0x4E
  188. })
  189. Name (BCT4, Package (0x0D)
  190. {
  191. 0x4F,
  192. 0x16,
  193. 0x05,
  194. 0x07,
  195. 0x09,
  196. 0x0D,
  197. 0x10,
  198. 0x16,
  199. 0x1D,
  200. 0x26,
  201. 0x33,
  202. 0x44,
  203. 0x4F
  204. })
  205. Name (BCT5, Package (0x0D)
  206. {
  207. 0x4B,
  208. 0x15,
  209. 0x05,
  210. 0x07,
  211. 0x09,
  212. 0x0C,
  213. 0x10,
  214. 0x15,
  215. 0x1B,
  216. 0x24,
  217. 0x30,
  218. 0x40,
  219. 0x4B
  220. })
  221. Name (BCT6, Package (0x0D)
  222. {
  223. 0x64,
  224. 0x1E,
  225. 0x07,
  226. 0x0A,
  227. 0x0D,
  228. 0x11,
  229. 0x16,
  230. 0x1E,
  231. 0x28,
  232. 0x34,
  233. 0x45,
  234. 0x5B,
  235. 0x64
  236. })
  237. Name (BCT7, Package (0x0D)
  238. {
  239. 0x4E,
  240. 0x16,
  241. 0x05,
  242. 0x07,
  243. 0x09,
  244. 0x0D,
  245. 0x10,
  246. 0x16,
  247. 0x1D,
  248. 0x27,
  249. 0x33,
  250. 0x44,
  251. 0x4E
  252. })
  253. Name (BCTX, Package (0x0D)
  254. {
  255. 0x64,
  256. 0x32,
  257. 0x05,
  258. 0x0A,
  259. 0x14,
  260. 0x1E,
  261. 0x28,
  262. 0x32,
  263. 0x3C,
  264. 0x46,
  265. 0x50,
  266. 0x5A,
  267. 0x64
  268. })
  269. Name (TJMX, Zero)
  270. OperationRegion (GNVS, SystemMemory, 0x9B7AC018, 0x0000FD79)
  271. Field (GNVS, AnyAcc, Lock, Preserve)
  272. {
  273. OSYS, 16,
  274. SMIF, 8,
  275. PRM0, 8,
  276. PRM1, 8,
  277. SCIF, 8,
  278. PRM2, 8,
  279. PRM3, 8,
  280. LCKF, 8,
  281. PRM4, 8,
  282. PRM5, 8,
  283. P80D, 32,
  284. LIDS, 8,
  285. PWRS, 8,
  286. DBGS, 8,
  287. THOF, 8,
  288. ACT1, 8,
  289. ACTT, 8,
  290. PSVT, 8,
  291. TC1V, 8,
  292. TC2V, 8,
  293. TSPV, 8,
  294. CRTT, 8,
  295. DTSE, 8,
  296. DTS1, 8,
  297. DTS2, 8,
  298. DTSF, 8,
  299. BNUM, 8,
  300. B0SC, 8,
  301. Offset (0x25),
  302. REVN, 8,
  303. Offset (0x28),
  304. APIC, 8,
  305. TCNT, 8,
  306. PCP0, 8,
  307. PCP1, 8,
  308. PPCM, 8,
  309. PPMF, 32,
  310. Offset (0x32),
  311. NATP, 8,
  312. CMAP, 8,
  313. CMBP, 8,
  314. LPTP, 8,
  315. FDCP, 8,
  316. COMA, 8,
  317. COMB, 8,
  318. SMSC, 8,
  319. W381, 8,
  320. SMC1, 8,
  321. IGDS, 8,
  322. TLST, 8,
  323. CADL, 8,
  324. PADL, 8,
  325. CSTE, 16,
  326. NSTE, 16,
  327. SSTE, 16,
  328. NDID, 8,
  329. DID1, 32,
  330. DID2, 32,
  331. DID3, 32,
  332. DID4, 32,
  333. DID5, 32,
  334. KSV0, 32,
  335. KSV1, 8,
  336. Offset (0x67),
  337. BLCS, 8,
  338. BRTL, 8,
  339. ALSE, 8,
  340. ALAF, 8,
  341. LLOW, 8,
  342. LHIH, 8,
  343. Offset (0x6E),
  344. EMAE, 8,
  345. EMAP, 16,
  346. EMAL, 16,
  347. Offset (0x74),
  348. MEFE, 8,
  349. DSTS, 8,
  350. Offset (0x78),
  351. TPMP, 8,
  352. TPME, 8,
  353. MORD, 8,
  354. TCGP, 8,
  355. PPRP, 32,
  356. PPRQ, 8,
  357. LPPR, 8,
  358. GTF0, 56,
  359. GTF2, 56,
  360. IDEM, 8,
  361. GTF1, 56,
  362. BID, 8,
  363. Offset (0xAA),
  364. ASLB, 32,
  365. IBTT, 8,
  366. IPAT, 8,
  367. ITVF, 8,
  368. ITVM, 8,
  369. IPSC, 8,
  370. IBLC, 8,
  371. IBIA, 8,
  372. ISSC, 8,
  373. I409, 8,
  374. I509, 8,
  375. I609, 8,
  376. I709, 8,
  377. IPCF, 8,
  378. IDMS, 8,
  379. IF1E, 8,
  380. HVCO, 8,
  381. NXD1, 32,
  382. NXD2, 32,
  383. NXD3, 32,
  384. NXD4, 32,
  385. NXD5, 32,
  386. NXD6, 32,
  387. NXD7, 32,
  388. NXD8, 32,
  389. GSMI, 8,
  390. PAVP, 8,
  391. Offset (0xE1),
  392. OSCC, 8,
  393. NEXP, 8,
  394. SDGV, 8,
  395. SDDV, 8,
  396. Offset (0xEB),
  397. DSEN, 8,
  398. ECON, 8,
  399. GPIC, 8,
  400. CTYP, 8,
  401. L01C, 8,
  402. VFN0, 8,
  403. VFN1, 8,
  404. Offset (0x100),
  405. NVGA, 32,
  406. NVHA, 32,
  407. AMDA, 32,
  408. DID6, 32,
  409. DID7, 32,
  410. DID8, 32,
  411. EBAS, 32,
  412. CPSP, 32,
  413. EECP, 32,
  414. EVCP, 32,
  415. XBAS, 32,
  416. OBS1, 32,
  417. OBS2, 32,
  418. OBS3, 32,
  419. OBS4, 32,
  420. OBS5, 32,
  421. OBS6, 32,
  422. OBS7, 32,
  423. OBS8, 32,
  424. Offset (0x157),
  425. ATMC, 8,
  426. PTMC, 8,
  427. ATRA, 8,
  428. PTRA, 8,
  429. PNHM, 32,
  430. TBAB, 32,
  431. TBAH, 32,
  432. RTIP, 8,
  433. TSOD, 8,
  434. ATPC, 8,
  435. PTPC, 8,
  436. PFLV, 8,
  437. BREV, 8,
  438. DPBM, 8,
  439. DPCM, 8,
  440. DPDM, 8,
  441. ALFP, 8,
  442. IMON, 8,
  443. SMIA, 8,
  444. SROM, 32,
  445. VROM, 516096,
  446. S3DS, 8,
  447. PMEE, 8
  448. }
  449.  
  450. OperationRegion (OGNS, SystemMemory, 0x9B7BDE18, 0x000000BB)
  451. Field (OGNS, AnyAcc, Lock, Preserve)
  452. {
  453. OG00, 8,
  454. OG01, 8,
  455. OG02, 8,
  456. OG03, 8,
  457. OG04, 8,
  458. OG05, 8,
  459. OG06, 8,
  460. OG07, 8,
  461. OG08, 8,
  462. OG09, 8,
  463. OG10, 8,
  464. SMP0, 8,
  465. SMP1, 8,
  466. SMP2, 8,
  467. SMP3, 8,
  468. SMP4, 8,
  469. SMP5, 8,
  470. SMP6, 8,
  471. SMP7, 8,
  472. WLVD, 16,
  473. WLDD, 16,
  474. WLSV, 16,
  475. WLSS, 16,
  476. WWVD, 16,
  477. WWDD, 16,
  478. BTVD, 16,
  479. BTDD, 16,
  480. GPVD, 16,
  481. GPDD, 16,
  482. SMA4, 8,
  483. HWCT, 8,
  484. HWBC, 8,
  485. HWBF, 1024,
  486. CMTF, 8,
  487. CMTI, 32,
  488. CMTO, 8,
  489. YEAR, 32,
  490. MONT, 16,
  491. DAYS, 16,
  492. PTYP, 8,
  493. DVPS, 8,
  494. SGGP, 8
  495. }
  496.  
  497. OperationRegion (H1DA, SystemMemory, 0x9B7BEF98, 0x0000002E)
  498. Field (H1DA, AnyAcc, Lock, Preserve)
  499. {
  500. H1SG, 32,
  501. RCKP, 8,
  502. IAOR, 8,
  503. CDAT, 32,
  504. IOSE, 64,
  505. HDSM, 16,
  506. HD1H, 64,
  507. HD2H, 64,
  508. OD1H, 64,
  509. FACM, 16
  510. }
  511.  
  512. OperationRegion (EPRM, SystemMemory, 0x9B7BDF18, 0x00000099)
  513. Field (EPRM, AnyAcc, Lock, Preserve)
  514. {
  515. SERN, 80,
  516. MDID, 256,
  517. GUID, 64,
  518. UUID, 128,
  519. SKUN, 96,
  520. LCOD, 24,
  521. MACA, 48,
  522. KBMX, 8,
  523. CHID, 8,
  524. OSKU, 8,
  525. QKPM, 8,
  526. WPFL, 8,
  527. DBSW, 8,
  528. WPCR, 8,
  529. WINA, 8,
  530. GPSA, 8,
  531. MSME, 8,
  532. PREV, 24,
  533. ODDC, 8,
  534. WIN7, 8,
  535. IMID, 8,
  536. WSDY, 32,
  537. WSDM, 16,
  538. WSDD, 16,
  539. CTNU, 152,
  540. QKPS, 8,
  541. QKPV, 8,
  542. ESLG, 8,
  543. ASTG, 152,
  544. IMGD, 8
  545. }
  546.  
  547. OperationRegion (MBOX, SystemMemory, 0x9B7BCA98, 0x00000320)
  548. Field (MBOX, AnyAcc, NoLock, Preserve)
  549. {
  550. PCI1, 8,
  551. PCI2, 8,
  552. PCI3, 8,
  553. PCI4, 8,
  554. PCI5, 8,
  555. PCI6, 8,
  556. PCI7, 8,
  557. PCI8, 8,
  558. NLCK, 8,
  559. ZIPE, 8,
  560. COA1, 8,
  561. CAIO, 8,
  562. CAIP, 8,
  563. CAMD, 8,
  564. CADA, 8,
  565. COB1, 8,
  566. CBIO, 8,
  567. CBIP, 8,
  568. CBMD, 8,
  569. CBDA, 8,
  570. FHSD, 8,
  571. COMC, 8,
  572. CCIO, 8,
  573. CCIP, 8,
  574. CCMD, 8,
  575. CCDA, 8,
  576. COMD, 8,
  577. CDIO, 8,
  578. CDIP, 8,
  579. CDMD, 8,
  580. CDDA, 8,
  581. LPT1, 8,
  582. L1IO, 8,
  583. L1IP, 8,
  584. L1MD, 8,
  585. L1DA, 8,
  586. LPT2, 8,
  587. L2IO, 8,
  588. L2IP, 8,
  589. L2MD, 8,
  590. L2DA, 8,
  591. LPT3, 8,
  592. L3IO, 8,
  593. L3IP, 8,
  594. L3MD, 8,
  595. L3DA, 8,
  596. FDDC, 8,
  597. FDWP, 8,
  598. HGMP, 8,
  599. LGMP, 8,
  600. MIDI, 8,
  601. AZLA, 8,
  602. AUDO, 8,
  603. MODM, 8,
  604. IDEC, 8,
  605. SSED, 8,
  606. PACT, 8,
  607. SCFG, 8,
  608. AMOD, 8,
  609. IMOD, 8,
  610. LCFG, 8,
  611. IDLY, 8,
  612. PMTP, 8,
  613. PM32, 8,
  614. PMBM, 8,
  615. PMTM, 8,
  616. PSTP, 8,
  617. PSIO, 8,
  618. PSBM, 8,
  619. PSTM, 8,
  620. IDE0, 8,
  621. IDE1, 8,
  622. IDE2, 8,
  623. IDE3, 8,
  624. IDE4, 8,
  625. IDE5, 8,
  626. IDE6, 8,
  627. IDE7, 8,
  628. HIUB, 8,
  629. LUBS, 8,
  630. PLYT, 8,
  631. EDCG, 8,
  632. SDFY, 8,
  633. SDTC, 8,
  634. SDRP, 8,
  635. SDCL, 8,
  636. SDRC, 8,
  637. SDRE, 8,
  638. FC2L, 8,
  639. FC3L, 8,
  640. FCS4, 8,
  641. APIM, 8,
  642. HPTS, 8,
  643. HPTA, 8,
  644. EMAS, 8,
  645. VGAO, 8,
  646. SOFF, 8,
  647. KBPO, 8,
  648. MSPO, 8,
  649. USBB, 8,
  650. EVTL, 8,
  651. SYBE, 8,
  652. ETLC, 8,
  653. ACPV, 8,
  654. TPMD, 8,
  655. TPMO, 8,
  656. TPMC, 8,
  657. TPMM, 8,
  658. TPCC, 8,
  659. TPLC, 8,
  660. TPLR, 32,
  661. QBOT, 8,
  662. BOTQ, 8,
  663. PBOT, 8,
  664. M256, 8,
  665. PEGF, 8,
  666. OSY1, 16,
  667. BMTP, 8,
  668. BNPT, 8,
  669. LNMT, 8,
  670. NBTO, 8,
  671. NABD, 8,
  672. NEBD, 8,
  673. NLBD, 8,
  674. DFBT, 16,
  675. NPSP, 16,
  676. LANG, 8,
  677. UACL, 8,
  678. SUPS, 8,
  679. DVET, 8,
  680. S3RS, 8,
  681. DAS1, 8,
  682. DAS3, 8,
  683. WKPM, 8,
  684. WKMD, 8,
  685. WKS5, 8,
  686. HOUR, 8,
  687. MINS, 8,
  688. SECS, 8,
  689. DOFM, 8,
  690. NBTV, 64,
  691. BTOD, 64,
  692. SPVP, 16,
  693. POPW, 16,
  694. USPW, 16,
  695. HDPW, 16,
  696. SAHP, 16,
  697. SAHF, 8,
  698. SUVF, 8,
  699. USRF, 8,
  700. UMPW, 8,
  701. SMHP, 16,
  702. SAMP, 16,
  703. SAMF, 8,
  704. SPFA, 8,
  705. SPFB, 8,
  706. SPFC, 8,
  707. SPFD, 8,
  708. SPFE, 8,
  709. SPFF, 8,
  710. SPFG, 8,
  711. SPFH, 8,
  712. SPFI, 8,
  713. SPFJ, 8,
  714. SPFK, 8,
  715. SPFL, 8,
  716. SPFM, 8,
  717. SPFN, 8,
  718. SPFO, 8,
  719. SPFP, 8,
  720. SPFQ, 8,
  721. SPFR, 8,
  722. SPFS, 8,
  723. SPFT, 8,
  724. SPFU, 8,
  725. SPFV, 8,
  726. SPFW, 8,
  727. SPFX, 8,
  728. SPFY, 8,
  729. SPFZ, 8,
  730. SPF0, 8,
  731. SPF1, 8,
  732. SPF2, 8,
  733. SPF3, 8,
  734. SPF4, 8,
  735. SPF5, 8,
  736. KRSV, 136,
  737. LANE, 8,
  738. AORS, 8,
  739. P0HP, 8,
  740. P1HP, 8,
  741. P2HP, 8,
  742. P3HP, 8,
  743. P4HP, 8,
  744. P5HP, 8,
  745. P0IL, 8,
  746. P1IL, 8,
  747. P2IL, 8,
  748. CRS1, 8,
  749. DVPA, 8,
  750. DTGM, 8,
  751. Offset (0xF5),
  752. Offset (0xF6),
  753. BOTT, 8,
  754. PANT, 8,
  755. TVTP, 8,
  756. U201, 8,
  757. U202, 8,
  758. U111, 8,
  759. U112, 8,
  760. U113, 8,
  761. U114, 8,
  762. U115, 8,
  763. UPPC, 8,
  764. UP00, 8,
  765. UP01, 8,
  766. UP02, 8,
  767. UP03, 8,
  768. UP04, 8,
  769. UP05, 8,
  770. UP06, 8,
  771. UP07, 8,
  772. UP08, 8,
  773. UP09, 8,
  774. UP10, 8,
  775. UP11, 8,
  776. P80R, 8,
  777. WDOG, 8,
  778. WDTO, 16,
  779. WDTB, 16,
  780. MASF, 8,
  781. MAMT, 8,
  782. ABXP, 8,
  783. SPIL, 8,
  784. PWDW, 8,
  785. HETO, 8,
  786. AWTR, 16,
  787. EOPT, 8,
  788. ASFB, 8,
  789. MBTX, 8,
  790. IDER, 8,
  791. SOLE, 8,
  792. UCME, 8,
  793. MEDM, 8,
  794. PPDA, 8,
  795. PPCG, 8,
  796. PPBV, 8,
  797. PPV1, 8,
  798. PPPV, 8,
  799. PPMV, 8,
  800. PRE0, 8,
  801. PRE1, 8,
  802. PRE2, 8,
  803. PRE3, 8,
  804. PRE4, 8,
  805. PRE5, 8,
  806. PRE6, 8,
  807. PRE7, 8,
  808. PRA0, 8,
  809. PRA1, 8,
  810. PRA2, 8,
  811. PRA3, 8,
  812. PRA4, 8,
  813. PRA5, 8,
  814. PRA6, 8,
  815. PRA7, 8,
  816. PRU0, 8,
  817. PRU1, 8,
  818. PRU2, 8,
  819. PRU3, 8,
  820. PRU4, 8,
  821. PRU5, 8,
  822. PRU6, 8,
  823. PRU7, 8,
  824. PRF0, 8,
  825. PRF1, 8,
  826. PRF2, 8,
  827. PRF3, 8,
  828. PRF4, 8,
  829. PRF5, 8,
  830. PRF6, 8,
  831. PRF7, 8,
  832. PRN0, 8,
  833. PRN1, 8,
  834. PRN2, 8,
  835. PRN3, 8,
  836. PRN4, 8,
  837. PRN5, 8,
  838. PRN6, 8,
  839. PRN7, 8,
  840. PRC0, 8,
  841. PRC1, 8,
  842. PRC2, 8,
  843. PRC3, 8,
  844. PRC4, 8,
  845. PRC5, 8,
  846. PRC6, 8,
  847. PRC7, 8,
  848. CTD0, 8,
  849. CTD1, 8,
  850. CTD2, 8,
  851. CTD3, 8,
  852. CTD4, 8,
  853. CTD5, 8,
  854. CTD6, 8,
  855. CTD7, 8,
  856. PIE0, 8,
  857. PIE1, 8,
  858. PIE2, 8,
  859. PIE3, 8,
  860. PIE4, 8,
  861. PIE5, 8,
  862. PIE6, 8,
  863. PIE7, 8,
  864. SFE0, 8,
  865. SFE1, 8,
  866. SFE2, 8,
  867. SFE3, 8,
  868. SFE4, 8,
  869. SFE5, 8,
  870. SFE6, 8,
  871. SFE7, 8,
  872. SNE0, 8,
  873. SNE1, 8,
  874. SNE2, 8,
  875. SNE3, 8,
  876. SNE4, 8,
  877. SNE5, 8,
  878. SNE6, 8,
  879. SNE7, 8,
  880. SCE0, 8,
  881. SCE1, 8,
  882. SCE2, 8,
  883. SCE3, 8,
  884. SCE4, 8,
  885. SCE5, 8,
  886. SCE6, 8,
  887. SCE7, 8,
  888. PPS0, 8,
  889. PPS1, 8,
  890. PPS2, 8,
  891. PPS3, 8,
  892. PPS4, 8,
  893. PPS5, 8,
  894. PPS6, 8,
  895. PPS7, 8,
  896. PHP0, 8,
  897. PHP1, 8,
  898. PHP2, 8,
  899. PHP3, 8,
  900. PHP4, 8,
  901. PHP5, 8,
  902. PHP6, 8,
  903. PHP7, 8,
  904. PEGA, 8,
  905. PGAA, 8,
  906. PGL0, 8,
  907. PL0A, 8,
  908. PGL1, 8,
  909. Offset (0x196),
  910. PAV1, 8,
  911. ISTC, 8,
  912. TRML, 8,
  913. ATHF, 8,
  914. PTTP, 8,
  915. XDMD, 8,
  916. PCRR, 8,
  917. PROH, 8,
  918. TUBM, 8,
  919. TSTE, 8,
  920. BPST, 8,
  921. VTST, 8,
  922. CSTS, 8,
  923. ENCS, 8,
  924. ENC6, 8,
  925. CMPE, 8,
  926. MDST, 8,
  927. EXBR, 8,
  928. TXTE, 8,
  929. VTDE, 8,
  930. CART, 8,
  931. CATT, 8,
  932. STBE, 8,
  933. PEBE, 8,
  934. PCBE, 8,
  935. EHBE, 8,
  936. UHBE, 8,
  937. HABE, 8,
  938. ERS2, 8,
  939. GLPM, 8,
  940. GRTT, 8,
  941. CRID, 8,
  942. ATLF, 8,
  943. PTC1, 8,
  944. PTC2, 8,
  945. PTSP, 8,
  946. CTTP, 8,
  947. HTSP, 8,
  948. U116, 8,
  949. U117, 8,
  950. UP12, 8,
  951. UP13, 8,
  952. DALC, 8,
  953. ENC7, 8,
  954. CSIT, 8,
  955. CSIF, 8,
  956. CSL1, 8,
  957. MIRP, 8,
  958. MEMF, 8,
  959. CHIL, 8,
  960. RKIL, 8,
  961. QPIF, 8,
  962. DLMF, 8,
  963. GPPS, 8,
  964. AGLP, 8,
  965. EIPS, 8,
  966. MTUB, 8,
  967. CPEC, 8,
  968. IPSP, 8,
  969. CTLT, 8,
  970. CTLV, 16,
  971. MPLT, 8,
  972. MPLV, 16,
  973. PPLT, 8,
  974. PPLV, 16,
  975. CPLT, 8,
  976. CPLV, 16,
  977. RTIF, 8,
  978. DPPM, 8,
  979. RELT, 8,
  980. INTR, 8,
  981. PATD, 8,
  982. COHE, 8,
  983. CTBO, 8,
  984. FBOT, 8,
  985. CTRD, 8,
  986. CERD, 8,
  987. MTRD, 8,
  988. PTRD, 8,
  989. ALEL, 8,
  990. CALE, 8,
  991. MALE, 8,
  992. PALE, 8,
  993. DALE, 8,
  994. TODM, 8,
  995. D1TR, 8,
  996. D2TR, 8,
  997. D3TR, 8,
  998. D4TR, 8,
  999. LFPC, 8,
  1000. RMHM, 8,
  1001. METR, 8,
  1002. ECML, 8,
  1003. MPEC, 8,
  1004. TRTS, 8,
  1005. M30A, 64,
  1006. M30S, 16,
  1007. PPOL, 8,
  1008. HPSP, 8,
  1009. TVCC, 8,
  1010. PFLG, 8,
  1011. HYCM, 8,
  1012. HBDP, 8,
  1013. TVFC, 8,
  1014. DPMD, 8,
  1015. CACK, 8,
  1016. AZHI, 8,
  1017. IMEP, 8,
  1018. IMFE, 8,
  1019. SAG3, 8,
  1020. CRSV, 16,
  1021. BAT1, 8,
  1022. BAT2, 8,
  1023. SECH, 8,
  1024. BTSD, 8,
  1025. FNON, 8,
  1026. PHKD, 8,
  1027. IOSO, 8,
  1028. IOSN, 8,
  1029. IOST, 8,
  1030. CDRB, 8,
  1031. FPBT, 8,
  1032. SPOS, 8,
  1033. LNPS, 8,
  1034. ACKM, 8,
  1035. FLFG, 8,
  1036. PFFG, 8,
  1037. ORSV, 432,
  1038. ODFB, 8,
  1039. PFRV, 8,
  1040. C6SF, 8,
  1041. C7SF, 8,
  1042. DRSV, 768,
  1043. MEFD, 8,
  1044. FWVB, 8,
  1045. USBP, 8,
  1046. FWPR, 8,
  1047. MELF, 8,
  1048. MEFQ, 8,
  1049. HP0S, 8,
  1050. HP1S, 8,
  1051. HP2S, 8,
  1052. HP3S, 8,
  1053. HP4S, 8,
  1054. HP5S, 8,
  1055. TDTC, 8,
  1056. TDTP, 8,
  1057. TDTS, 8,
  1058. TXTS, 8,
  1059. PEG1, 8,
  1060. CPMD, 8,
  1061. ENIF, 8,
  1062. HTFL, 8,
  1063. TBMS, 8,
  1064. PRSV, 632
  1065. }
  1066.  
  1067. Scope (_SB)
  1068. {
  1069. Name (PR00, Package (0x2A)
  1070. {
  1071. Package (0x04)
  1072. {
  1073. 0x0001FFFF,
  1074. Zero,
  1075. LNKA,
  1076. Zero
  1077. },
  1078.  
  1079. Package (0x04)
  1080. {
  1081. 0x0001FFFF,
  1082. One,
  1083. LNKB,
  1084. Zero
  1085. },
  1086.  
  1087. Package (0x04)
  1088. {
  1089. 0x0001FFFF,
  1090. 0x02,
  1091. LNKC,
  1092. Zero
  1093. },
  1094.  
  1095. Package (0x04)
  1096. {
  1097. 0x0001FFFF,
  1098. 0x03,
  1099. LNKD,
  1100. Zero
  1101. },
  1102.  
  1103. Package (0x04)
  1104. {
  1105. 0x0002FFFF,
  1106. Zero,
  1107. LNKA,
  1108. Zero
  1109. },
  1110.  
  1111. Package (0x04)
  1112. {
  1113. 0x001FFFFF,
  1114. Zero,
  1115. LNKF,
  1116. Zero
  1117. },
  1118.  
  1119. Package (0x04)
  1120. {
  1121. 0x001FFFFF,
  1122. One,
  1123. LNKD,
  1124. Zero
  1125. },
  1126.  
  1127. Package (0x04)
  1128. {
  1129. 0x001FFFFF,
  1130. 0x02,
  1131. LNKD,
  1132. Zero
  1133. },
  1134.  
  1135. Package (0x04)
  1136. {
  1137. 0x001FFFFF,
  1138. 0x03,
  1139. LNKA,
  1140. Zero
  1141. },
  1142.  
  1143. Package (0x04)
  1144. {
  1145. 0x001DFFFF,
  1146. Zero,
  1147. LNKH,
  1148. Zero
  1149. },
  1150.  
  1151. Package (0x04)
  1152. {
  1153. 0x001DFFFF,
  1154. One,
  1155. LNKD,
  1156. Zero
  1157. },
  1158.  
  1159. Package (0x04)
  1160. {
  1161. 0x001DFFFF,
  1162. 0x02,
  1163. LNKC,
  1164. Zero
  1165. },
  1166.  
  1167. Package (0x04)
  1168. {
  1169. 0x001DFFFF,
  1170. 0x03,
  1171. LNKA,
  1172. Zero
  1173. },
  1174.  
  1175. Package (0x04)
  1176. {
  1177. 0x001AFFFF,
  1178. Zero,
  1179. LNKA,
  1180. Zero
  1181. },
  1182.  
  1183. Package (0x04)
  1184. {
  1185. 0x001AFFFF,
  1186. One,
  1187. LNKF,
  1188. Zero
  1189. },
  1190.  
  1191. Package (0x04)
  1192. {
  1193. 0x001AFFFF,
  1194. 0x02,
  1195. LNKD,
  1196. Zero
  1197. },
  1198.  
  1199. Package (0x04)
  1200. {
  1201. 0x001AFFFF,
  1202. 0x03,
  1203. LNKC,
  1204. Zero
  1205. },
  1206.  
  1207. Package (0x04)
  1208. {
  1209. 0x001BFFFF,
  1210. Zero,
  1211. LNKG,
  1212. Zero
  1213. },
  1214.  
  1215. Package (0x04)
  1216. {
  1217. 0x001CFFFF,
  1218. Zero,
  1219. LNKB,
  1220. Zero
  1221. },
  1222.  
  1223. Package (0x04)
  1224. {
  1225. 0x001CFFFF,
  1226. One,
  1227. LNKA,
  1228. Zero
  1229. },
  1230.  
  1231. Package (0x04)
  1232. {
  1233. 0x001CFFFF,
  1234. 0x02,
  1235. LNKC,
  1236. Zero
  1237. },
  1238.  
  1239. Package (0x04)
  1240. {
  1241. 0x001CFFFF,
  1242. 0x03,
  1243. LNKD,
  1244. Zero
  1245. },
  1246.  
  1247. Package (0x04)
  1248. {
  1249. 0x0016FFFF,
  1250. Zero,
  1251. LNKA,
  1252. Zero
  1253. },
  1254.  
  1255. Package (0x04)
  1256. {
  1257. 0x0016FFFF,
  1258. One,
  1259. LNKB,
  1260. Zero
  1261. },
  1262.  
  1263. Package (0x04)
  1264. {
  1265. 0x0016FFFF,
  1266. 0x02,
  1267. LNKC,
  1268. Zero
  1269. },
  1270.  
  1271. Package (0x04)
  1272. {
  1273. 0x0016FFFF,
  1274. 0x03,
  1275. LNKD,
  1276. Zero
  1277. },
  1278.  
  1279. Package (0x04)
  1280. {
  1281. 0x0003FFFF,
  1282. Zero,
  1283. LNKA,
  1284. Zero
  1285. },
  1286.  
  1287. Package (0x04)
  1288. {
  1289. 0x0003FFFF,
  1290. One,
  1291. LNKB,
  1292. Zero
  1293. },
  1294.  
  1295. Package (0x04)
  1296. {
  1297. 0x0003FFFF,
  1298. 0x02,
  1299. LNKC,
  1300. Zero
  1301. },
  1302.  
  1303. Package (0x04)
  1304. {
  1305. 0x0003FFFF,
  1306. 0x03,
  1307. LNKD,
  1308. Zero
  1309. },
  1310.  
  1311. Package (0x04)
  1312. {
  1313. 0x0004FFFF,
  1314. Zero,
  1315. LNKA,
  1316. Zero
  1317. },
  1318.  
  1319. Package (0x04)
  1320. {
  1321. 0x0004FFFF,
  1322. One,
  1323. LNKB,
  1324. Zero
  1325. },
  1326.  
  1327. Package (0x04)
  1328. {
  1329. 0x0004FFFF,
  1330. 0x02,
  1331. LNKC,
  1332. Zero
  1333. },
  1334.  
  1335. Package (0x04)
  1336. {
  1337. 0x0004FFFF,
  1338. 0x03,
  1339. LNKD,
  1340. Zero
  1341. },
  1342.  
  1343. Package (0x04)
  1344. {
  1345. 0x0005FFFF,
  1346. Zero,
  1347. LNKA,
  1348. Zero
  1349. },
  1350.  
  1351. Package (0x04)
  1352. {
  1353. 0x0005FFFF,
  1354. One,
  1355. LNKB,
  1356. Zero
  1357. },
  1358.  
  1359. Package (0x04)
  1360. {
  1361. 0x0005FFFF,
  1362. 0x02,
  1363. LNKC,
  1364. Zero
  1365. },
  1366.  
  1367. Package (0x04)
  1368. {
  1369. 0x0005FFFF,
  1370. 0x03,
  1371. LNKD,
  1372. Zero
  1373. },
  1374.  
  1375. Package (0x04)
  1376. {
  1377. 0x0006FFFF,
  1378. Zero,
  1379. LNKA,
  1380. Zero
  1381. },
  1382.  
  1383. Package (0x04)
  1384. {
  1385. 0x0006FFFF,
  1386. One,
  1387. LNKB,
  1388. Zero
  1389. },
  1390.  
  1391. Package (0x04)
  1392. {
  1393. 0x0006FFFF,
  1394. 0x02,
  1395. LNKC,
  1396. Zero
  1397. },
  1398.  
  1399. Package (0x04)
  1400. {
  1401. 0x0006FFFF,
  1402. 0x03,
  1403. LNKD,
  1404. Zero
  1405. }
  1406. })
  1407. Name (AR00, Package (0x2A)
  1408. {
  1409. Package (0x04)
  1410. {
  1411. 0x0001FFFF,
  1412. Zero,
  1413. Zero,
  1414. 0x10
  1415. },
  1416.  
  1417. Package (0x04)
  1418. {
  1419. 0x0001FFFF,
  1420. One,
  1421. Zero,
  1422. 0x11
  1423. },
  1424.  
  1425. Package (0x04)
  1426. {
  1427. 0x0001FFFF,
  1428. 0x02,
  1429. Zero,
  1430. 0x12
  1431. },
  1432.  
  1433. Package (0x04)
  1434. {
  1435. 0x0001FFFF,
  1436. 0x03,
  1437. Zero,
  1438. 0x13
  1439. },
  1440.  
  1441. Package (0x04)
  1442. {
  1443. 0x0002FFFF,
  1444. Zero,
  1445. Zero,
  1446. 0x10
  1447. },
  1448.  
  1449. Package (0x04)
  1450. {
  1451. 0x001FFFFF,
  1452. Zero,
  1453. Zero,
  1454. 0x15
  1455. },
  1456.  
  1457. Package (0x04)
  1458. {
  1459. 0x001FFFFF,
  1460. One,
  1461. Zero,
  1462. 0x13
  1463. },
  1464.  
  1465. Package (0x04)
  1466. {
  1467. 0x001FFFFF,
  1468. 0x02,
  1469. Zero,
  1470. 0x13
  1471. },
  1472.  
  1473. Package (0x04)
  1474. {
  1475. 0x001FFFFF,
  1476. 0x03,
  1477. Zero,
  1478. 0x10
  1479. },
  1480.  
  1481. Package (0x04)
  1482. {
  1483. 0x001DFFFF,
  1484. Zero,
  1485. Zero,
  1486. 0x17
  1487. },
  1488.  
  1489. Package (0x04)
  1490. {
  1491. 0x001DFFFF,
  1492. One,
  1493. Zero,
  1494. 0x13
  1495. },
  1496.  
  1497. Package (0x04)
  1498. {
  1499. 0x001DFFFF,
  1500. 0x02,
  1501. Zero,
  1502. 0x12
  1503. },
  1504.  
  1505. Package (0x04)
  1506. {
  1507. 0x001DFFFF,
  1508. 0x03,
  1509. Zero,
  1510. 0x10
  1511. },
  1512.  
  1513. Package (0x04)
  1514. {
  1515. 0x001AFFFF,
  1516. Zero,
  1517. Zero,
  1518. 0x10
  1519. },
  1520.  
  1521. Package (0x04)
  1522. {
  1523. 0x001AFFFF,
  1524. One,
  1525. Zero,
  1526. 0x15
  1527. },
  1528.  
  1529. Package (0x04)
  1530. {
  1531. 0x001AFFFF,
  1532. 0x02,
  1533. Zero,
  1534. 0x13
  1535. },
  1536.  
  1537. Package (0x04)
  1538. {
  1539. 0x001AFFFF,
  1540. 0x03,
  1541. Zero,
  1542. 0x12
  1543. },
  1544.  
  1545. Package (0x04)
  1546. {
  1547. 0x001BFFFF,
  1548. Zero,
  1549. Zero,
  1550. 0x16
  1551. },
  1552.  
  1553. Package (0x04)
  1554. {
  1555. 0x001CFFFF,
  1556. Zero,
  1557. Zero,
  1558. 0x11
  1559. },
  1560.  
  1561. Package (0x04)
  1562. {
  1563. 0x001CFFFF,
  1564. One,
  1565. Zero,
  1566. 0x10
  1567. },
  1568.  
  1569. Package (0x04)
  1570. {
  1571. 0x001CFFFF,
  1572. 0x02,
  1573. Zero,
  1574. 0x12
  1575. },
  1576.  
  1577. Package (0x04)
  1578. {
  1579. 0x001CFFFF,
  1580. 0x03,
  1581. Zero,
  1582. 0x13
  1583. },
  1584.  
  1585. Package (0x04)
  1586. {
  1587. 0x0016FFFF,
  1588. Zero,
  1589. Zero,
  1590. 0x10
  1591. },
  1592.  
  1593. Package (0x04)
  1594. {
  1595. 0x0016FFFF,
  1596. One,
  1597. Zero,
  1598. 0x11
  1599. },
  1600.  
  1601. Package (0x04)
  1602. {
  1603. 0x0016FFFF,
  1604. 0x02,
  1605. Zero,
  1606. 0x12
  1607. },
  1608.  
  1609. Package (0x04)
  1610. {
  1611. 0x0016FFFF,
  1612. 0x03,
  1613. Zero,
  1614. 0x13
  1615. },
  1616.  
  1617. Package (0x04)
  1618. {
  1619. 0x0003FFFF,
  1620. Zero,
  1621. Zero,
  1622. 0x10
  1623. },
  1624.  
  1625. Package (0x04)
  1626. {
  1627. 0x0003FFFF,
  1628. One,
  1629. Zero,
  1630. 0x11
  1631. },
  1632.  
  1633. Package (0x04)
  1634. {
  1635. 0x0003FFFF,
  1636. 0x02,
  1637. Zero,
  1638. 0x12
  1639. },
  1640.  
  1641. Package (0x04)
  1642. {
  1643. 0x0003FFFF,
  1644. 0x03,
  1645. Zero,
  1646. 0x13
  1647. },
  1648.  
  1649. Package (0x04)
  1650. {
  1651. 0x0004FFFF,
  1652. Zero,
  1653. Zero,
  1654. 0x10
  1655. },
  1656.  
  1657. Package (0x04)
  1658. {
  1659. 0x0004FFFF,
  1660. One,
  1661. Zero,
  1662. 0x11
  1663. },
  1664.  
  1665. Package (0x04)
  1666. {
  1667. 0x0004FFFF,
  1668. 0x02,
  1669. Zero,
  1670. 0x12
  1671. },
  1672.  
  1673. Package (0x04)
  1674. {
  1675. 0x0004FFFF,
  1676. 0x03,
  1677. Zero,
  1678. 0x13
  1679. },
  1680.  
  1681. Package (0x04)
  1682. {
  1683. 0x0005FFFF,
  1684. Zero,
  1685. Zero,
  1686. 0x10
  1687. },
  1688.  
  1689. Package (0x04)
  1690. {
  1691. 0x0005FFFF,
  1692. One,
  1693. Zero,
  1694. 0x11
  1695. },
  1696.  
  1697. Package (0x04)
  1698. {
  1699. 0x0005FFFF,
  1700. 0x02,
  1701. Zero,
  1702. 0x12
  1703. },
  1704.  
  1705. Package (0x04)
  1706. {
  1707. 0x0005FFFF,
  1708. 0x03,
  1709. Zero,
  1710. 0x13
  1711. },
  1712.  
  1713. Package (0x04)
  1714. {
  1715. 0x0006FFFF,
  1716. Zero,
  1717. Zero,
  1718. 0x10
  1719. },
  1720.  
  1721. Package (0x04)
  1722. {
  1723. 0x0006FFFF,
  1724. One,
  1725. Zero,
  1726. 0x11
  1727. },
  1728.  
  1729. Package (0x04)
  1730. {
  1731. 0x0006FFFF,
  1732. 0x02,
  1733. Zero,
  1734. 0x12
  1735. },
  1736.  
  1737. Package (0x04)
  1738. {
  1739. 0x0006FFFF,
  1740. 0x03,
  1741. Zero,
  1742. 0x13
  1743. }
  1744. })
  1745. Name (PR02, Package (0x04)
  1746. {
  1747. Package (0x04)
  1748. {
  1749. 0xFFFF,
  1750. Zero,
  1751. LNKA,
  1752. Zero
  1753. },
  1754.  
  1755. Package (0x04)
  1756. {
  1757. 0xFFFF,
  1758. One,
  1759. LNKB,
  1760. Zero
  1761. },
  1762.  
  1763. Package (0x04)
  1764. {
  1765. 0xFFFF,
  1766. 0x02,
  1767. LNKC,
  1768. Zero
  1769. },
  1770.  
  1771. Package (0x04)
  1772. {
  1773. 0xFFFF,
  1774. 0x03,
  1775. LNKD,
  1776. Zero
  1777. }
  1778. })
  1779. Name (AR02, Package (0x04)
  1780. {
  1781. Package (0x04)
  1782. {
  1783. 0xFFFF,
  1784. Zero,
  1785. Zero,
  1786. 0x10
  1787. },
  1788.  
  1789. Package (0x04)
  1790. {
  1791. 0xFFFF,
  1792. One,
  1793. Zero,
  1794. 0x11
  1795. },
  1796.  
  1797. Package (0x04)
  1798. {
  1799. 0xFFFF,
  1800. 0x02,
  1801. Zero,
  1802. 0x12
  1803. },
  1804.  
  1805. Package (0x04)
  1806. {
  1807. 0xFFFF,
  1808. 0x03,
  1809. Zero,
  1810. 0x13
  1811. }
  1812. })
  1813. Name (PR04, Package (0x04)
  1814. {
  1815. Package (0x04)
  1816. {
  1817. 0xFFFF,
  1818. Zero,
  1819. LNKA,
  1820. Zero
  1821. },
  1822.  
  1823. Package (0x04)
  1824. {
  1825. 0xFFFF,
  1826. One,
  1827. LNKB,
  1828. Zero
  1829. },
  1830.  
  1831. Package (0x04)
  1832. {
  1833. 0xFFFF,
  1834. 0x02,
  1835. LNKC,
  1836. Zero
  1837. },
  1838.  
  1839. Package (0x04)
  1840. {
  1841. 0xFFFF,
  1842. 0x03,
  1843. LNKD,
  1844. Zero
  1845. }
  1846. })
  1847. Name (AR04, Package (0x04)
  1848. {
  1849. Package (0x04)
  1850. {
  1851. 0xFFFF,
  1852. Zero,
  1853. Zero,
  1854. 0x10
  1855. },
  1856.  
  1857. Package (0x04)
  1858. {
  1859. 0xFFFF,
  1860. One,
  1861. Zero,
  1862. 0x11
  1863. },
  1864.  
  1865. Package (0x04)
  1866. {
  1867. 0xFFFF,
  1868. 0x02,
  1869. Zero,
  1870. 0x12
  1871. },
  1872.  
  1873. Package (0x04)
  1874. {
  1875. 0xFFFF,
  1876. 0x03,
  1877. Zero,
  1878. 0x13
  1879. }
  1880. })
  1881. Name (PR05, Package (0x04)
  1882. {
  1883. Package (0x04)
  1884. {
  1885. 0xFFFF,
  1886. Zero,
  1887. LNKB,
  1888. Zero
  1889. },
  1890.  
  1891. Package (0x04)
  1892. {
  1893. 0xFFFF,
  1894. One,
  1895. LNKC,
  1896. Zero
  1897. },
  1898.  
  1899. Package (0x04)
  1900. {
  1901. 0xFFFF,
  1902. 0x02,
  1903. LNKD,
  1904. Zero
  1905. },
  1906.  
  1907. Package (0x04)
  1908. {
  1909. 0xFFFF,
  1910. 0x03,
  1911. LNKA,
  1912. Zero
  1913. }
  1914. })
  1915. Name (AR05, Package (0x04)
  1916. {
  1917. Package (0x04)
  1918. {
  1919. 0xFFFF,
  1920. Zero,
  1921. Zero,
  1922. 0x11
  1923. },
  1924.  
  1925. Package (0x04)
  1926. {
  1927. 0xFFFF,
  1928. One,
  1929. Zero,
  1930. 0x12
  1931. },
  1932.  
  1933. Package (0x04)
  1934. {
  1935. 0xFFFF,
  1936. 0x02,
  1937. Zero,
  1938. 0x13
  1939. },
  1940.  
  1941. Package (0x04)
  1942. {
  1943. 0xFFFF,
  1944. 0x03,
  1945. Zero,
  1946. 0x10
  1947. }
  1948. })
  1949. Name (PR06, Package (0x04)
  1950. {
  1951. Package (0x04)
  1952. {
  1953. 0xFFFF,
  1954. Zero,
  1955. LNKC,
  1956. Zero
  1957. },
  1958.  
  1959. Package (0x04)
  1960. {
  1961. 0xFFFF,
  1962. One,
  1963. LNKD,
  1964. Zero
  1965. },
  1966.  
  1967. Package (0x04)
  1968. {
  1969. 0xFFFF,
  1970. 0x02,
  1971. LNKA,
  1972. Zero
  1973. },
  1974.  
  1975. Package (0x04)
  1976. {
  1977. 0xFFFF,
  1978. 0x03,
  1979. LNKB,
  1980. Zero
  1981. }
  1982. })
  1983. Name (AR06, Package (0x04)
  1984. {
  1985. Package (0x04)
  1986. {
  1987. 0xFFFF,
  1988. Zero,
  1989. Zero,
  1990. 0x12
  1991. },
  1992.  
  1993. Package (0x04)
  1994. {
  1995. 0xFFFF,
  1996. One,
  1997. Zero,
  1998. 0x13
  1999. },
  2000.  
  2001. Package (0x04)
  2002. {
  2003. 0xFFFF,
  2004. 0x02,
  2005. Zero,
  2006. 0x10
  2007. },
  2008.  
  2009. Package (0x04)
  2010. {
  2011. 0xFFFF,
  2012. 0x03,
  2013. Zero,
  2014. 0x11
  2015. }
  2016. })
  2017. Name (PR07, Package (0x04)
  2018. {
  2019. Package (0x04)
  2020. {
  2021. 0xFFFF,
  2022. Zero,
  2023. LNKD,
  2024. Zero
  2025. },
  2026.  
  2027. Package (0x04)
  2028. {
  2029. 0xFFFF,
  2030. One,
  2031. LNKA,
  2032. Zero
  2033. },
  2034.  
  2035. Package (0x04)
  2036. {
  2037. 0xFFFF,
  2038. 0x02,
  2039. LNKB,
  2040. Zero
  2041. },
  2042.  
  2043. Package (0x04)
  2044. {
  2045. 0xFFFF,
  2046. 0x03,
  2047. LNKC,
  2048. Zero
  2049. }
  2050. })
  2051. Name (AR07, Package (0x04)
  2052. {
  2053. Package (0x04)
  2054. {
  2055. 0xFFFF,
  2056. Zero,
  2057. Zero,
  2058. 0x13
  2059. },
  2060.  
  2061. Package (0x04)
  2062. {
  2063. 0xFFFF,
  2064. One,
  2065. Zero,
  2066. 0x10
  2067. },
  2068.  
  2069. Package (0x04)
  2070. {
  2071. 0xFFFF,
  2072. 0x02,
  2073. Zero,
  2074. 0x11
  2075. },
  2076.  
  2077. Package (0x04)
  2078. {
  2079. 0xFFFF,
  2080. 0x03,
  2081. Zero,
  2082. 0x12
  2083. }
  2084. })
  2085. Name (PR08, Package (0x04)
  2086. {
  2087. Package (0x04)
  2088. {
  2089. 0xFFFF,
  2090. Zero,
  2091. LNKA,
  2092. Zero
  2093. },
  2094.  
  2095. Package (0x04)
  2096. {
  2097. 0xFFFF,
  2098. One,
  2099. LNKB,
  2100. Zero
  2101. },
  2102.  
  2103. Package (0x04)
  2104. {
  2105. 0xFFFF,
  2106. 0x02,
  2107. LNKC,
  2108. Zero
  2109. },
  2110.  
  2111. Package (0x04)
  2112. {
  2113. 0xFFFF,
  2114. 0x03,
  2115. LNKD,
  2116. Zero
  2117. }
  2118. })
  2119. Name (AR08, Package (0x04)
  2120. {
  2121. Package (0x04)
  2122. {
  2123. 0xFFFF,
  2124. Zero,
  2125. Zero,
  2126. 0x10
  2127. },
  2128.  
  2129. Package (0x04)
  2130. {
  2131. 0xFFFF,
  2132. One,
  2133. Zero,
  2134. 0x11
  2135. },
  2136.  
  2137. Package (0x04)
  2138. {
  2139. 0xFFFF,
  2140. 0x02,
  2141. Zero,
  2142. 0x12
  2143. },
  2144.  
  2145. Package (0x04)
  2146. {
  2147. 0xFFFF,
  2148. 0x03,
  2149. Zero,
  2150. 0x13
  2151. }
  2152. })
  2153. Name (PR0A, Package (0x04)
  2154. {
  2155. Package (0x04)
  2156. {
  2157. 0xFFFF,
  2158. Zero,
  2159. LNKC,
  2160. Zero
  2161. },
  2162.  
  2163. Package (0x04)
  2164. {
  2165. 0xFFFF,
  2166. One,
  2167. LNKD,
  2168. Zero
  2169. },
  2170.  
  2171. Package (0x04)
  2172. {
  2173. 0xFFFF,
  2174. 0x02,
  2175. LNKA,
  2176. Zero
  2177. },
  2178.  
  2179. Package (0x04)
  2180. {
  2181. 0xFFFF,
  2182. 0x03,
  2183. LNKB,
  2184. Zero
  2185. }
  2186. })
  2187. Name (AR0A, Package (0x04)
  2188. {
  2189. Package (0x04)
  2190. {
  2191. 0xFFFF,
  2192. Zero,
  2193. Zero,
  2194. 0x12
  2195. },
  2196.  
  2197. Package (0x04)
  2198. {
  2199. 0xFFFF,
  2200. One,
  2201. Zero,
  2202. 0x13
  2203. },
  2204.  
  2205. Package (0x04)
  2206. {
  2207. 0xFFFF,
  2208. 0x02,
  2209. Zero,
  2210. 0x10
  2211. },
  2212.  
  2213. Package (0x04)
  2214. {
  2215. 0xFFFF,
  2216. 0x03,
  2217. Zero,
  2218. 0x11
  2219. }
  2220. })
  2221. Name (PR0B, Package (0x04)
  2222. {
  2223. Package (0x04)
  2224. {
  2225. 0xFFFF,
  2226. Zero,
  2227. LNKD,
  2228. Zero
  2229. },
  2230.  
  2231. Package (0x04)
  2232. {
  2233. 0xFFFF,
  2234. One,
  2235. LNKA,
  2236. Zero
  2237. },
  2238.  
  2239. Package (0x04)
  2240. {
  2241. 0xFFFF,
  2242. 0x02,
  2243. LNKB,
  2244. Zero
  2245. },
  2246.  
  2247. Package (0x04)
  2248. {
  2249. 0xFFFF,
  2250. 0x03,
  2251. LNKC,
  2252. Zero
  2253. }
  2254. })
  2255. Name (AR0B, Package (0x04)
  2256. {
  2257. Package (0x04)
  2258. {
  2259. 0xFFFF,
  2260. Zero,
  2261. Zero,
  2262. 0x13
  2263. },
  2264.  
  2265. Package (0x04)
  2266. {
  2267. 0xFFFF,
  2268. One,
  2269. Zero,
  2270. 0x10
  2271. },
  2272.  
  2273. Package (0x04)
  2274. {
  2275. 0xFFFF,
  2276. 0x02,
  2277. Zero,
  2278. 0x11
  2279. },
  2280.  
  2281. Package (0x04)
  2282. {
  2283. 0xFFFF,
  2284. 0x03,
  2285. Zero,
  2286. 0x12
  2287. }
  2288. })
  2289. Name (PR01, Package (0x0C)
  2290. {
  2291. Package (0x04)
  2292. {
  2293. 0xFFFF,
  2294. Zero,
  2295. LNKF,
  2296. Zero
  2297. },
  2298.  
  2299. Package (0x04)
  2300. {
  2301. 0xFFFF,
  2302. One,
  2303. LNKG,
  2304. Zero
  2305. },
  2306.  
  2307. Package (0x04)
  2308. {
  2309. 0xFFFF,
  2310. 0x02,
  2311. LNKH,
  2312. Zero
  2313. },
  2314.  
  2315. Package (0x04)
  2316. {
  2317. 0xFFFF,
  2318. 0x03,
  2319. LNKE,
  2320. Zero
  2321. },
  2322.  
  2323. Package (0x04)
  2324. {
  2325. 0x0001FFFF,
  2326. Zero,
  2327. LNKG,
  2328. Zero
  2329. },
  2330.  
  2331. Package (0x04)
  2332. {
  2333. 0x0001FFFF,
  2334. One,
  2335. LNKF,
  2336. Zero
  2337. },
  2338.  
  2339. Package (0x04)
  2340. {
  2341. 0x0001FFFF,
  2342. 0x02,
  2343. LNKE,
  2344. Zero
  2345. },
  2346.  
  2347. Package (0x04)
  2348. {
  2349. 0x0001FFFF,
  2350. 0x03,
  2351. LNKH,
  2352. Zero
  2353. },
  2354.  
  2355. Package (0x04)
  2356. {
  2357. 0x0005FFFF,
  2358. Zero,
  2359. LNKC,
  2360. Zero
  2361. },
  2362.  
  2363. Package (0x04)
  2364. {
  2365. 0x0005FFFF,
  2366. One,
  2367. LNKE,
  2368. Zero
  2369. },
  2370.  
  2371. Package (0x04)
  2372. {
  2373. 0x0005FFFF,
  2374. 0x02,
  2375. LNKG,
  2376. Zero
  2377. },
  2378.  
  2379. Package (0x04)
  2380. {
  2381. 0x0005FFFF,
  2382. 0x03,
  2383. LNKF,
  2384. Zero
  2385. }
  2386. })
  2387. Name (AR01, Package (0x0C)
  2388. {
  2389. Package (0x04)
  2390. {
  2391. 0xFFFF,
  2392. Zero,
  2393. Zero,
  2394. 0x15
  2395. },
  2396.  
  2397. Package (0x04)
  2398. {
  2399. 0xFFFF,
  2400. One,
  2401. Zero,
  2402. 0x16
  2403. },
  2404.  
  2405. Package (0x04)
  2406. {
  2407. 0xFFFF,
  2408. 0x02,
  2409. Zero,
  2410. 0x17
  2411. },
  2412.  
  2413. Package (0x04)
  2414. {
  2415. 0xFFFF,
  2416. 0x03,
  2417. Zero,
  2418. 0x14
  2419. },
  2420.  
  2421. Package (0x04)
  2422. {
  2423. 0x0001FFFF,
  2424. Zero,
  2425. Zero,
  2426. 0x16
  2427. },
  2428.  
  2429. Package (0x04)
  2430. {
  2431. 0x0001FFFF,
  2432. One,
  2433. Zero,
  2434. 0x15
  2435. },
  2436.  
  2437. Package (0x04)
  2438. {
  2439. 0x0001FFFF,
  2440. 0x02,
  2441. Zero,
  2442. 0x14
  2443. },
  2444.  
  2445. Package (0x04)
  2446. {
  2447. 0x0001FFFF,
  2448. 0x03,
  2449. Zero,
  2450. 0x17
  2451. },
  2452.  
  2453. Package (0x04)
  2454. {
  2455. 0x0005FFFF,
  2456. Zero,
  2457. Zero,
  2458. 0x12
  2459. },
  2460.  
  2461. Package (0x04)
  2462. {
  2463. 0x0005FFFF,
  2464. One,
  2465. Zero,
  2466. 0x14
  2467. },
  2468.  
  2469. Package (0x04)
  2470. {
  2471. 0x0005FFFF,
  2472. 0x02,
  2473. Zero,
  2474. 0x16
  2475. },
  2476.  
  2477. Package (0x04)
  2478. {
  2479. 0x0005FFFF,
  2480. 0x03,
  2481. Zero,
  2482. 0x15
  2483. }
  2484. })
  2485. Name (PR0C, Package (0x04)
  2486. {
  2487. Package (0x04)
  2488. {
  2489. 0xFFFF,
  2490. Zero,
  2491. LNKA,
  2492. Zero
  2493. },
  2494.  
  2495. Package (0x04)
  2496. {
  2497. 0xFFFF,
  2498. One,
  2499. LNKB,
  2500. Zero
  2501. },
  2502.  
  2503. Package (0x04)
  2504. {
  2505. 0xFFFF,
  2506. 0x02,
  2507. LNKC,
  2508. Zero
  2509. },
  2510.  
  2511. Package (0x04)
  2512. {
  2513. 0xFFFF,
  2514. 0x03,
  2515. LNKD,
  2516. Zero
  2517. }
  2518. })
  2519. Name (AR0C, Package (0x04)
  2520. {
  2521. Package (0x04)
  2522. {
  2523. 0xFFFF,
  2524. Zero,
  2525. Zero,
  2526. 0x10
  2527. },
  2528.  
  2529. Package (0x04)
  2530. {
  2531. 0xFFFF,
  2532. One,
  2533. Zero,
  2534. 0x11
  2535. },
  2536.  
  2537. Package (0x04)
  2538. {
  2539. 0xFFFF,
  2540. 0x02,
  2541. Zero,
  2542. 0x12
  2543. },
  2544.  
  2545. Package (0x04)
  2546. {
  2547. 0xFFFF,
  2548. 0x03,
  2549. Zero,
  2550. 0x13
  2551. }
  2552. })
  2553. Name (PRSA, ResourceTemplate ()
  2554. {
  2555. IRQ (Level, ActiveLow, Shared, )
  2556. {3,4,5,6,7,10,11,12,14,15}
  2557. })
  2558. Alias (PRSA, PRSB)
  2559. Alias (PRSA, PRSC)
  2560. Alias (PRSA, PRSD)
  2561. Alias (PRSA, PRSE)
  2562. Alias (PRSA, PRSF)
  2563. Alias (PRSA, PRSG)
  2564. Alias (PRSA, PRSH)
  2565. Device (PCI0)
  2566. {
  2567. Name (_HID, EisaId ("PNP0A08")) // _HID: Hardware ID
  2568. Name (_CID, EisaId ("PNP0A03")) // _CID: Compatible ID
  2569. Name (_ADR, Zero) // _ADR: Address
  2570. Method (^BN00, 0, NotSerialized)
  2571. {
  2572. Return (Zero)
  2573. }
  2574.  
  2575. Method (_BBN, 0, NotSerialized) // _BBN: BIOS Bus Number
  2576. {
  2577. Return (BN00 ())
  2578. }
  2579.  
  2580. Name (_UID, Zero) // _UID: Unique ID
  2581. Method (_PRT, 0, NotSerialized) // _PRT: PCI Routing Table
  2582. {
  2583. If (PICM)
  2584. {
  2585. Return (AR00)
  2586. }
  2587.  
  2588. Return (PR00)
  2589. }
  2590.  
  2591. OperationRegion (HBUS, PCI_Config, 0x40, 0xC0)
  2592. Field (HBUS, DWordAcc, NoLock, Preserve)
  2593. {
  2594. EPEN, 1,
  2595. , 11,
  2596. EPBR, 20,
  2597. Offset (0x08),
  2598. MHEN, 1,
  2599. , 13,
  2600. MHBR, 18,
  2601. Offset (0x10),
  2602. IIEN, 1,
  2603. , 11,
  2604. DIBI, 20,
  2605. Offset (0x28),
  2606. DIEN, 1,
  2607. , 11,
  2608. DIBR, 20,
  2609. Offset (0x30),
  2610. IPEN, 1,
  2611. , 11,
  2612. IPBR, 20,
  2613. Offset (0x62),
  2614. TUUD, 16,
  2615. Offset (0x70),
  2616. , 4,
  2617. TLUD, 12,
  2618. Offset (0x89),
  2619. , 3,
  2620. GTSE, 1,
  2621. Offset (0x8A)
  2622. }
  2623.  
  2624. OperationRegion (MCHT, SystemMemory, 0xFED10000, 0x1100)
  2625. Field (MCHT, ByteAcc, NoLock, Preserve)
  2626. {
  2627. Offset (0xD40),
  2628. ADVE, 1,
  2629. , 11,
  2630. ADVT, 20,
  2631. Offset (0x101E),
  2632. T0IS, 16,
  2633. Offset (0x105E),
  2634. T1IS, 16,
  2635. Offset (0x10EF),
  2636. ESCS, 8
  2637. }
  2638.  
  2639. Name (BUF0, ResourceTemplate ()
  2640. {
  2641. WordBusNumber (ResourceProducer, MinFixed, MaxFixed, PosDecode,
  2642. 0x0000, // Granularity
  2643. 0x0000, // Range Minimum
  2644. 0x007E, // Range Maximum
  2645. 0x0000, // Translation Offset
  2646. 0x007F, // Length
  2647. ,, _Y00)
  2648. DWordIO (ResourceProducer, MinFixed, MaxFixed, PosDecode, EntireRange,
  2649. 0x00000000, // Granularity
  2650. 0x00000000, // Range Minimum
  2651. 0x00000CF7, // Range Maximum
  2652. 0x00000000, // Translation Offset
  2653. 0x00000CF8, // Length
  2654. ,, , TypeStatic)
  2655. IO (Decode16,
  2656. 0x0CF8, // Range Minimum
  2657. 0x0CF8, // Range Maximum
  2658. 0x01, // Alignment
  2659. 0x08, // Length
  2660. )
  2661. DWordIO (ResourceProducer, MinFixed, MaxFixed, PosDecode, EntireRange,
  2662. 0x00000000, // Granularity
  2663. 0x00000D00, // Range Minimum
  2664. 0x0000FFFF, // Range Maximum
  2665. 0x00000000, // Translation Offset
  2666. 0x0000F300, // Length
  2667. ,, , TypeStatic)
  2668. DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
  2669. 0x00000000, // Granularity
  2670. 0x000A0000, // Range Minimum
  2671. 0x000BFFFF, // Range Maximum
  2672. 0x00000000, // Translation Offset
  2673. 0x00020000, // Length
  2674. ,, , AddressRangeMemory, TypeStatic)
  2675. DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
  2676. 0x00000000, // Granularity
  2677. 0x000C0000, // Range Minimum
  2678. 0x000C3FFF, // Range Maximum
  2679. 0x00000000, // Translation Offset
  2680. 0x00004000, // Length
  2681. ,, _Y01, AddressRangeMemory, TypeStatic)
  2682. DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
  2683. 0x00000000, // Granularity
  2684. 0x000C4000, // Range Minimum
  2685. 0x000C7FFF, // Range Maximum
  2686. 0x00000000, // Translation Offset
  2687. 0x00004000, // Length
  2688. ,, _Y02, AddressRangeMemory, TypeStatic)
  2689. DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
  2690. 0x00000000, // Granularity
  2691. 0x000C8000, // Range Minimum
  2692. 0x000CBFFF, // Range Maximum
  2693. 0x00000000, // Translation Offset
  2694. 0x00004000, // Length
  2695. ,, _Y03, AddressRangeMemory, TypeStatic)
  2696. DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
  2697. 0x00000000, // Granularity
  2698. 0x000CC000, // Range Minimum
  2699. 0x000CFFFF, // Range Maximum
  2700. 0x00000000, // Translation Offset
  2701. 0x00004000, // Length
  2702. ,, _Y04, AddressRangeMemory, TypeStatic)
  2703. DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
  2704. 0x00000000, // Granularity
  2705. 0x000D0000, // Range Minimum
  2706. 0x000D3FFF, // Range Maximum
  2707. 0x00000000, // Translation Offset
  2708. 0x00004000, // Length
  2709. ,, _Y05, AddressRangeMemory, TypeStatic)
  2710. DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
  2711. 0x00000000, // Granularity
  2712. 0x000D4000, // Range Minimum
  2713. 0x000D7FFF, // Range Maximum
  2714. 0x00000000, // Translation Offset
  2715. 0x00004000, // Length
  2716. ,, _Y06, AddressRangeMemory, TypeStatic)
  2717. DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
  2718. 0x00000000, // Granularity
  2719. 0x000D8000, // Range Minimum
  2720. 0x000DBFFF, // Range Maximum
  2721. 0x00000000, // Translation Offset
  2722. 0x00004000, // Length
  2723. ,, _Y07, AddressRangeMemory, TypeStatic)
  2724. DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
  2725. 0x00000000, // Granularity
  2726. 0x000DC000, // Range Minimum
  2727. 0x000DFFFF, // Range Maximum
  2728. 0x00000000, // Translation Offset
  2729. 0x00004000, // Length
  2730. ,, _Y08, AddressRangeMemory, TypeStatic)
  2731. DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
  2732. 0x00000000, // Granularity
  2733. 0x000E0000, // Range Minimum
  2734. 0x000E3FFF, // Range Maximum
  2735. 0x00000000, // Translation Offset
  2736. 0x00004000, // Length
  2737. ,, _Y09, AddressRangeMemory, TypeStatic)
  2738. DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
  2739. 0x00000000, // Granularity
  2740. 0x000E4000, // Range Minimum
  2741. 0x000E7FFF, // Range Maximum
  2742. 0x00000000, // Translation Offset
  2743. 0x00004000, // Length
  2744. ,, _Y0A, AddressRangeMemory, TypeStatic)
  2745. DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
  2746. 0x00000000, // Granularity
  2747. 0x000E8000, // Range Minimum
  2748. 0x000EBFFF, // Range Maximum
  2749. 0x00000000, // Translation Offset
  2750. 0x00004000, // Length
  2751. ,, _Y0B, AddressRangeMemory, TypeStatic)
  2752. DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
  2753. 0x00000000, // Granularity
  2754. 0x000EC000, // Range Minimum
  2755. 0x000EFFFF, // Range Maximum
  2756. 0x00000000, // Translation Offset
  2757. 0x00004000, // Length
  2758. ,, _Y0C, AddressRangeMemory, TypeStatic)
  2759. DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
  2760. 0x00000000, // Granularity
  2761. 0x000F0000, // Range Minimum
  2762. 0x000FFFFF, // Range Maximum
  2763. 0x00000000, // Translation Offset
  2764. 0x00010000, // Length
  2765. ,, _Y0D, AddressRangeMemory, TypeStatic)
  2766. DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
  2767. 0x00000000, // Granularity
  2768. 0x00000000, // Range Minimum
  2769. 0xFEAFFFFF, // Range Maximum
  2770. 0x00000000, // Translation Offset
  2771. 0xFEB00000, // Length
  2772. ,, _Y0E, AddressRangeMemory, TypeStatic)
  2773. DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
  2774. 0x00000000, // Granularity
  2775. 0xFED40000, // Range Minimum
  2776. 0xFED44FFF, // Range Maximum
  2777. 0x00000000, // Translation Offset
  2778. 0x00005000, // Length
  2779. ,, , AddressRangeMemory, TypeStatic)
  2780. })
  2781. Method (_CRS, 0, Serialized) // _CRS: Current Resource Settings
  2782. {
  2783. CreateWordField (BUF0, \_SB.PCI0._Y00._MAX, PBMX) // _MAX: Maximum Base Address
  2784. Store (Subtract (ShiftRight (PELN, 0x14), 0x02), PBMX)
  2785. CreateWordField (BUF0, \_SB.PCI0._Y00._LEN, PBLN) // _LEN: Length
  2786. Store (Subtract (ShiftRight (PELN, 0x14), One), PBLN)
  2787. If (^^CPBG.IMCH.PM1L)
  2788. {
  2789. CreateDWordField (BUF0, \_SB.PCI0._Y01._LEN, C0LN) // _LEN: Length
  2790. Store (Zero, C0LN)
  2791. }
  2792.  
  2793. If (LEqual (^^CPBG.IMCH.PM1L, One))
  2794. {
  2795. CreateBitField (BUF0, \_SB.PCI0._Y01._RW, C0RW) // _RW_: Read-Write Status
  2796. Store (Zero, C0RW)
  2797. }
  2798.  
  2799. If (^^CPBG.IMCH.PM1H)
  2800. {
  2801. CreateDWordField (BUF0, \_SB.PCI0._Y02._LEN, C4LN) // _LEN: Length
  2802. Store (Zero, C4LN)
  2803. }
  2804.  
  2805. If (LEqual (^^CPBG.IMCH.PM1H, One))
  2806. {
  2807. CreateBitField (BUF0, \_SB.PCI0._Y02._RW, C4RW) // _RW_: Read-Write Status
  2808. Store (Zero, C4RW)
  2809. }
  2810.  
  2811. If (^^CPBG.IMCH.PM2L)
  2812. {
  2813. CreateDWordField (BUF0, \_SB.PCI0._Y03._LEN, C8LN) // _LEN: Length
  2814. Store (Zero, C8LN)
  2815. }
  2816.  
  2817. If (LEqual (^^CPBG.IMCH.PM2L, One))
  2818. {
  2819. CreateBitField (BUF0, \_SB.PCI0._Y03._RW, C8RW) // _RW_: Read-Write Status
  2820. Store (Zero, C8RW)
  2821. }
  2822.  
  2823. If (^^CPBG.IMCH.PM2H)
  2824. {
  2825. CreateDWordField (BUF0, \_SB.PCI0._Y04._LEN, CCLN) // _LEN: Length
  2826. Store (Zero, CCLN)
  2827. }
  2828.  
  2829. If (LEqual (^^CPBG.IMCH.PM2H, One))
  2830. {
  2831. CreateBitField (BUF0, \_SB.PCI0._Y04._RW, CCRW) // _RW_: Read-Write Status
  2832. Store (Zero, CCRW)
  2833. }
  2834.  
  2835. If (^^CPBG.IMCH.PM3L)
  2836. {
  2837. CreateDWordField (BUF0, \_SB.PCI0._Y05._LEN, D0LN) // _LEN: Length
  2838. Store (Zero, D0LN)
  2839. }
  2840.  
  2841. If (LEqual (^^CPBG.IMCH.PM3L, One))
  2842. {
  2843. CreateBitField (BUF0, \_SB.PCI0._Y05._RW, D0RW) // _RW_: Read-Write Status
  2844. Store (Zero, D0RW)
  2845. }
  2846.  
  2847. If (^^CPBG.IMCH.PM3H)
  2848. {
  2849. CreateDWordField (BUF0, \_SB.PCI0._Y06._LEN, D4LN) // _LEN: Length
  2850. Store (Zero, D4LN)
  2851. }
  2852.  
  2853. If (LEqual (^^CPBG.IMCH.PM3H, One))
  2854. {
  2855. CreateBitField (BUF0, \_SB.PCI0._Y06._RW, D4RW) // _RW_: Read-Write Status
  2856. Store (Zero, D4RW)
  2857. }
  2858.  
  2859. If (^^CPBG.IMCH.PM4L)
  2860. {
  2861. CreateDWordField (BUF0, \_SB.PCI0._Y07._LEN, D8LN) // _LEN: Length
  2862. Store (Zero, D8LN)
  2863. }
  2864.  
  2865. If (LEqual (^^CPBG.IMCH.PM4L, One))
  2866. {
  2867. CreateBitField (BUF0, \_SB.PCI0._Y07._RW, D8RW) // _RW_: Read-Write Status
  2868. Store (Zero, D8RW)
  2869. }
  2870.  
  2871. If (^^CPBG.IMCH.PM4H)
  2872. {
  2873. CreateDWordField (BUF0, \_SB.PCI0._Y08._LEN, DCLN) // _LEN: Length
  2874. Store (Zero, DCLN)
  2875. }
  2876.  
  2877. If (LEqual (^^CPBG.IMCH.PM4H, One))
  2878. {
  2879. CreateBitField (BUF0, \_SB.PCI0._Y08._RW, DCRW) // _RW_: Read-Write Status
  2880. Store (Zero, DCRW)
  2881. }
  2882.  
  2883. If (^^CPBG.IMCH.PM5L)
  2884. {
  2885. CreateDWordField (BUF0, \_SB.PCI0._Y09._LEN, E0LN) // _LEN: Length
  2886. Store (Zero, E0LN)
  2887. }
  2888.  
  2889. If (LEqual (^^CPBG.IMCH.PM5L, One))
  2890. {
  2891. CreateBitField (BUF0, \_SB.PCI0._Y09._RW, E0RW) // _RW_: Read-Write Status
  2892. Store (Zero, E0RW)
  2893. }
  2894.  
  2895. If (^^CPBG.IMCH.PM5H)
  2896. {
  2897. CreateDWordField (BUF0, \_SB.PCI0._Y0A._LEN, E4LN) // _LEN: Length
  2898. Store (Zero, E4LN)
  2899. }
  2900.  
  2901. If (LEqual (^^CPBG.IMCH.PM5H, One))
  2902. {
  2903. CreateBitField (BUF0, \_SB.PCI0._Y0A._RW, E4RW) // _RW_: Read-Write Status
  2904. Store (Zero, E4RW)
  2905. }
  2906.  
  2907. If (^^CPBG.IMCH.PM6L)
  2908. {
  2909. CreateDWordField (BUF0, \_SB.PCI0._Y0B._LEN, E8LN) // _LEN: Length
  2910. Store (Zero, E8LN)
  2911. }
  2912.  
  2913. If (LEqual (^^CPBG.IMCH.PM6L, One))
  2914. {
  2915. CreateBitField (BUF0, \_SB.PCI0._Y0B._RW, E8RW) // _RW_: Read-Write Status
  2916. Store (Zero, E8RW)
  2917. }
  2918.  
  2919. If (^^CPBG.IMCH.PM6H)
  2920. {
  2921. CreateDWordField (BUF0, \_SB.PCI0._Y0C._LEN, ECLN) // _LEN: Length
  2922. Store (Zero, ECLN)
  2923. }
  2924.  
  2925. If (LEqual (^^CPBG.IMCH.PM6H, One))
  2926. {
  2927. CreateBitField (BUF0, \_SB.PCI0._Y0C._RW, ECRW) // _RW_: Read-Write Status
  2928. Store (Zero, ECRW)
  2929. }
  2930.  
  2931. If (^^CPBG.IMCH.PM0H)
  2932. {
  2933. CreateDWordField (BUF0, \_SB.PCI0._Y0D._LEN, F0LN) // _LEN: Length
  2934. Store (Zero, F0LN)
  2935. }
  2936.  
  2937. If (LEqual (^^CPBG.IMCH.PM0H, One))
  2938. {
  2939. CreateBitField (BUF0, \_SB.PCI0._Y0D._RW, F0RW) // _RW_: Read-Write Status
  2940. Store (Zero, F0RW)
  2941. }
  2942.  
  2943. CreateDWordField (BUF0, \_SB.PCI0._Y0E._MIN, M1MN) // _MIN: Minimum Base Address
  2944. CreateDWordField (BUF0, \_SB.PCI0._Y0E._MAX, M1MX) // _MAX: Maximum Base Address
  2945. CreateDWordField (BUF0, \_SB.PCI0._Y0E._LEN, M1LN) // _LEN: Length
  2946. If (Or (LEqual (And (PNHM, 0x000FFFF0), 0x000106E0), LEqual (And (
  2947. PNHM, 0x000FFFF0), 0x000106A0)))
  2948. {
  2949. If (LGreaterEqual (PNHM, 0x000106E1))
  2950. {
  2951. Store (^IO10.TOLM, Local0)
  2952. ShiftLeft (Increment (Local0), 0x1A, M1MN)
  2953. }
  2954. Else
  2955. {
  2956. Store (^IIO0.TOLM, Local0)
  2957. ShiftLeft (Increment (Local0), 0x1A, M1MN)
  2958. }
  2959. }
  2960. Else
  2961. {
  2962. ShiftLeft (TLUD, 0x14, M1MN)
  2963. }
  2964.  
  2965. Add (Subtract (M1MX, M1MN), One, M1LN)
  2966. Return (BUF0)
  2967. }
  2968.  
  2969. Name (GUID, Buffer (0x10)
  2970. {
  2971. /* 0000 */ 0x5B, 0x4D, 0xDB, 0x33, 0xF7, 0x1F, 0x1C, 0x40,
  2972. /* 0008 */ 0x96, 0x57, 0x74, 0x41, 0xC0, 0x3D, 0xD7, 0x66
  2973. })
  2974. Name (SUPP, Zero)
  2975. Name (CTRL, Zero)
  2976. Method (_OSC, 4, Serialized) // _OSC: Operating System Capabilities
  2977. {
  2978. Store (Arg3, Local0)
  2979. CreateDWordField (Local0, Zero, CDW1)
  2980. CreateDWordField (Local0, 0x04, CDW2)
  2981. CreateDWordField (Local0, 0x08, CDW3)
  2982. If (LAnd (LEqual (Arg0, GUID), NEXP))
  2983. {
  2984. Store (CDW2, SUPP)
  2985. Store (CDW3, CTRL)
  2986. If (Not (And (CDW1, One)))
  2987. {
  2988. If (And (CTRL, 0x02))
  2989. {
  2990. NHPG ()
  2991. }
  2992.  
  2993. If (And (CTRL, 0x04))
  2994. {
  2995. NPME ()
  2996. }
  2997. }
  2998.  
  2999. If (LNotEqual (Arg1, One))
  3000. {
  3001. Or (CDW1, 0x08, CDW1)
  3002. }
  3003.  
  3004. If (LNotEqual (CDW3, CTRL))
  3005. {
  3006. Or (CDW1, 0x10, CDW1)
  3007. }
  3008.  
  3009. Store (CTRL, CDW3)
  3010. Store (CTRL, OSCC)
  3011. Return (Local0)
  3012. }
  3013. Else
  3014. {
  3015. Or (CDW1, 0x04, CDW1)
  3016. Return (Local0)
  3017. }
  3018. }
  3019.  
  3020. Device (GFX0)
  3021. {
  3022. Name (_ADR, 0x00020000) // _ADR: Address
  3023. Method (_DOS, 1, NotSerialized) // _DOS: Disable Output Switching
  3024. {
  3025. Store (And (Arg0, 0x07), DSEN)
  3026. If (LEqual (And (Arg0, 0x03), Zero))
  3027. {
  3028. If (CondRefOf (HDOS))
  3029. {
  3030. HDOS ()
  3031. }
  3032. }
  3033. }
  3034.  
  3035. Method (_DOD, 0, NotSerialized) // _DOD: Display Output Devices
  3036. {
  3037. If (CondRefOf (IDAB))
  3038. {
  3039. Store (Zero, NDID)
  3040. IDAB ()
  3041. }
  3042. Else
  3043. {
  3044. Store (Zero, NDID)
  3045. If (LNotEqual (DIDL, Zero))
  3046. {
  3047. Store (SDDL (DIDL), DID1)
  3048. }
  3049.  
  3050. If (LNotEqual (DDL2, Zero))
  3051. {
  3052. Store (SDDL (DDL2), DID2)
  3053. }
  3054.  
  3055. If (LNotEqual (DDL3, Zero))
  3056. {
  3057. Store (SDDL (DDL3), DID3)
  3058. }
  3059.  
  3060. If (LNotEqual (DDL4, Zero))
  3061. {
  3062. Store (SDDL (DDL4), DID4)
  3063. }
  3064.  
  3065. If (LNotEqual (DDL5, Zero))
  3066. {
  3067. Store (SDDL (DDL5), DID5)
  3068. }
  3069.  
  3070. If (LNotEqual (DDL6, Zero))
  3071. {
  3072. Store (SDDL (DDL6), DID6)
  3073. }
  3074.  
  3075. If (LNotEqual (DDL7, Zero))
  3076. {
  3077. Store (SDDL (DDL7), DID7)
  3078. }
  3079.  
  3080. If (LNotEqual (DDL8, Zero))
  3081. {
  3082. Store (SDDL (DDL8), DID8)
  3083. }
  3084. }
  3085.  
  3086. If (LEqual (NDID, One))
  3087. {
  3088. Name (TMP1, Package (0x01)
  3089. {
  3090. 0xFFFFFFFF
  3091. })
  3092. Store (Or (0x00010000, DID1), Index (TMP1, Zero))
  3093. Return (TMP1)
  3094. }
  3095.  
  3096. If (LEqual (NDID, 0x02))
  3097. {
  3098. Name (TMP2, Package (0x02)
  3099. {
  3100. 0xFFFFFFFF,
  3101. 0xFFFFFFFF
  3102. })
  3103. Store (Or (0x00010000, DID1), Index (TMP2, Zero))
  3104. Store (Or (0x00010000, DID2), Index (TMP2, One))
  3105. Return (TMP2)
  3106. }
  3107.  
  3108. If (LEqual (NDID, 0x03))
  3109. {
  3110. Name (TMP3, Package (0x03)
  3111. {
  3112. 0xFFFFFFFF,
  3113. 0xFFFFFFFF,
  3114. 0xFFFFFFFF
  3115. })
  3116. Store (Or (0x00010000, DID1), Index (TMP3, Zero))
  3117. Store (Or (0x00010000, DID2), Index (TMP3, One))
  3118. Store (Or (0x00010000, DID3), Index (TMP3, 0x02))
  3119. Return (TMP3)
  3120. }
  3121.  
  3122. If (LEqual (NDID, 0x04))
  3123. {
  3124. Name (TMP4, Package (0x04)
  3125. {
  3126. 0xFFFFFFFF,
  3127. 0xFFFFFFFF,
  3128. 0xFFFFFFFF,
  3129. 0xFFFFFFFF
  3130. })
  3131. Store (Or (0x00010000, DID1), Index (TMP4, Zero))
  3132. Store (Or (0x00010000, DID2), Index (TMP4, One))
  3133. Store (Or (0x00010000, DID3), Index (TMP4, 0x02))
  3134. Store (Or (0x00010000, DID4), Index (TMP4, 0x03))
  3135. Return (TMP4)
  3136. }
  3137.  
  3138. If (LEqual (NDID, 0x05))
  3139. {
  3140. Name (TMP5, Package (0x05)
  3141. {
  3142. 0xFFFFFFFF,
  3143. 0xFFFFFFFF,
  3144. 0xFFFFFFFF,
  3145. 0xFFFFFFFF,
  3146. 0xFFFFFFFF
  3147. })
  3148. Store (Or (0x00010000, DID1), Index (TMP5, Zero))
  3149. Store (Or (0x00010000, DID2), Index (TMP5, One))
  3150. Store (Or (0x00010000, DID3), Index (TMP5, 0x02))
  3151. Store (Or (0x00010000, DID4), Index (TMP5, 0x03))
  3152. Store (Or (0x00010000, DID5), Index (TMP5, 0x04))
  3153. Return (TMP5)
  3154. }
  3155.  
  3156. If (LEqual (NDID, 0x06))
  3157. {
  3158. Name (TMP6, Package (0x06)
  3159. {
  3160. 0xFFFFFFFF,
  3161. 0xFFFFFFFF,
  3162. 0xFFFFFFFF,
  3163. 0xFFFFFFFF,
  3164. 0xFFFFFFFF,
  3165. 0xFFFFFFFF
  3166. })
  3167. Store (Or (0x00010000, DID1), Index (TMP6, Zero))
  3168. Store (Or (0x00010000, DID2), Index (TMP6, One))
  3169. Store (Or (0x00010000, DID3), Index (TMP6, 0x02))
  3170. Store (Or (0x00010000, DID4), Index (TMP6, 0x03))
  3171. Store (Or (0x00010000, DID5), Index (TMP6, 0x04))
  3172. Store (Or (0x00010000, DID6), Index (TMP6, 0x05))
  3173. Return (TMP6)
  3174. }
  3175.  
  3176. If (LEqual (NDID, 0x07))
  3177. {
  3178. Name (TMP7, Package (0x07)
  3179. {
  3180. 0xFFFFFFFF,
  3181. 0xFFFFFFFF,
  3182. 0xFFFFFFFF,
  3183. 0xFFFFFFFF,
  3184. 0xFFFFFFFF,
  3185. 0xFFFFFFFF,
  3186. 0xFFFFFFFF
  3187. })
  3188. Store (Or (0x00010000, DID1), Index (TMP7, Zero))
  3189. Store (Or (0x00010000, DID2), Index (TMP7, One))
  3190. Store (Or (0x00010000, DID3), Index (TMP7, 0x02))
  3191. Store (Or (0x00010000, DID4), Index (TMP7, 0x03))
  3192. Store (Or (0x00010000, DID5), Index (TMP7, 0x04))
  3193. Store (Or (0x00010000, DID6), Index (TMP7, 0x05))
  3194. Store (Or (0x00010000, DID7), Index (TMP7, 0x06))
  3195. Return (TMP7)
  3196. }
  3197.  
  3198. If (LEqual (NDID, 0x08))
  3199. {
  3200. Name (TMP8, Package (0x08)
  3201. {
  3202. 0xFFFFFFFF,
  3203. 0xFFFFFFFF,
  3204. 0xFFFFFFFF,
  3205. 0xFFFFFFFF,
  3206. 0xFFFFFFFF,
  3207. 0xFFFFFFFF,
  3208. 0xFFFFFFFF,
  3209. 0xFFFFFFFF
  3210. })
  3211. Store (Or (0x00010000, DID1), Index (TMP8, Zero))
  3212. Store (Or (0x00010000, DID2), Index (TMP8, One))
  3213. Store (Or (0x00010000, DID3), Index (TMP8, 0x02))
  3214. Store (Or (0x00010000, DID4), Index (TMP8, 0x03))
  3215. Store (Or (0x00010000, DID5), Index (TMP8, 0x04))
  3216. Store (Or (0x00010000, DID6), Index (TMP8, 0x05))
  3217. Store (Or (0x00010000, DID7), Index (TMP8, 0x06))
  3218. Store (Or (0x00010000, DID8), Index (TMP8, 0x07))
  3219. Return (TMP8)
  3220. }
  3221.  
  3222. Return (Package (0x01)
  3223. {
  3224. 0x0400
  3225. })
  3226. }
  3227.  
  3228. Device (DD01)
  3229. {
  3230. Method (_ADR, 0, Serialized) // _ADR: Address
  3231. {
  3232. If (LEqual (DID1, Zero))
  3233. {
  3234. Return (One)
  3235. }
  3236. Else
  3237. {
  3238. Return (And (0xFFFF, DID1))
  3239. }
  3240. }
  3241.  
  3242. Method (_DCS, 0, NotSerialized) // _DCS: Display Current Status
  3243. {
  3244. Return (CDDS (DID1))
  3245. }
  3246.  
  3247. Method (_DGS, 0, NotSerialized) // _DGS: Display Graphics State
  3248. {
  3249. If (CondRefOf (SNXD))
  3250. {
  3251. Return (NXD1)
  3252. }
  3253.  
  3254. Return (NDDS (DID1))
  3255. }
  3256.  
  3257. Method (_DSS, 1, NotSerialized) // _DSS: Device Set State
  3258. {
  3259. If (LEqual (And (Arg0, 0xC0000000), 0xC0000000))
  3260. {
  3261. Store (NSTE, CSTE)
  3262. }
  3263. }
  3264. }
  3265.  
  3266. Device (DD02)
  3267. {
  3268. Method (_ADR, 0, Serialized) // _ADR: Address
  3269. {
  3270. If (LEqual (DID2, Zero))
  3271. {
  3272. Return (0x02)
  3273. }
  3274. Else
  3275. {
  3276. Return (And (0xFFFF, DID2))
  3277. }
  3278. }
  3279.  
  3280. Method (_DCS, 0, NotSerialized) // _DCS: Display Current Status
  3281. {
  3282. If (LEqual (LIDS, Zero))
  3283. {
  3284. Return (Zero)
  3285. }
  3286.  
  3287. Return (CDDS (DID2))
  3288. }
  3289.  
  3290. Method (_DGS, 0, NotSerialized) // _DGS: Display Graphics State
  3291. {
  3292. If (CondRefOf (SNXD))
  3293. {
  3294. Return (NXD2)
  3295. }
  3296.  
  3297. Return (NDDS (DID2))
  3298. }
  3299.  
  3300. Method (_DSS, 1, NotSerialized) // _DSS: Device Set State
  3301. {
  3302. If (LEqual (And (Arg0, 0xC0000000), 0xC0000000))
  3303. {
  3304. Store (NSTE, CSTE)
  3305. }
  3306. }
  3307.  
  3308. Method (_BCL, 0, NotSerialized) // _BCL: Brightness Control Levels
  3309. {
  3310. Return (Package (0x0D)
  3311. {
  3312. 0x64,
  3313. 0x32,
  3314. Zero,
  3315. 0x0A,
  3316. 0x14,
  3317. 0x1E,
  3318. 0x28,
  3319. 0x32,
  3320. 0x3C,
  3321. 0x46,
  3322. 0x50,
  3323. 0x5A,
  3324. 0x64
  3325. })
  3326. }
  3327.  
  3328. Method (CBCM, 1, NotSerialized)
  3329. {
  3330. Divide (Multiply (Arg0, 0x64), 0xFF, Local1, Local0)
  3331. If (LGreaterEqual (Local1, 0x7F))
  3332. {
  3333. Add (Local0, One, Local0)
  3334. }
  3335.  
  3336. Return (Local0)
  3337. }
  3338.  
  3339. Method (_BCM, 1, NotSerialized) // _BCM: Brightness Control Method
  3340. {
  3341. If (LAnd (LGreaterEqual (Arg0, Zero), LLessEqual (Arg0, 0x64)))
  3342. {
  3343. Store (Arg0, BRTL)
  3344. Store (Divide (Arg0, 0x0A, ), Local0)
  3345. If (LEqual (Local0, Zero))
  3346. {
  3347. Store (CBCM (And (BCM0, 0xFF)), Local1)
  3348. }
  3349. Else
  3350. {
  3351. If (LEqual (Local0, One))
  3352. {
  3353. Store (CBCM (And (BCM1, 0xFF)), Local1)
  3354. }
  3355. Else
  3356. {
  3357. If (LEqual (Local0, 0x02))
  3358. {
  3359. Store (CBCM (And (BCM2, 0xFF)), Local1)
  3360. }
  3361. Else
  3362. {
  3363. If (LEqual (Local0, 0x03))
  3364. {
  3365. Store (CBCM (And (BCM3, 0xFF)), Local1)
  3366. }
  3367. Else
  3368. {
  3369. If (LEqual (Local0, 0x04))
  3370. {
  3371. Store (CBCM (And (BCM4, 0xFF)), Local1)
  3372. }
  3373. Else
  3374. {
  3375. If (LEqual (Local0, 0x05))
  3376. {
  3377. Store (CBCM (And (BCM5, 0xFF)), Local1)
  3378. }
  3379. Else
  3380. {
  3381. If (LEqual (Local0, 0x06))
  3382. {
  3383. Store (CBCM (And (BCM6, 0xFF)), Local1)
  3384. }
  3385. Else
  3386. {
  3387. If (LEqual (Local0, 0x07))
  3388. {
  3389. Store (CBCM (And (BCM7, 0xFF)), Local1)
  3390. }
  3391. Else
  3392. {
  3393. If (LEqual (Local0, 0x08))
  3394. {
  3395. Store (CBCM (And (BCM8, 0xFF)), Local1)
  3396. }
  3397. Else
  3398. {
  3399. If (LEqual (Local0, 0x09))
  3400. {
  3401. Store (CBCM (And (BCM9, 0xFF)), Local1)
  3402. }
  3403. Else
  3404. {
  3405. If (LEqual (Local0, 0x0A))
  3406. {
  3407. Store (CBCM (And (BCMA, 0xFF)), Local1)
  3408. }
  3409. }
  3410. }
  3411. }
  3412. }
  3413. }
  3414. }
  3415. }
  3416. }
  3417. }
  3418. }
  3419.  
  3420. AINT (One, Local1)
  3421. }
  3422. }
  3423.  
  3424. Method (_BQC, 0, NotSerialized) // _BQC: Brightness Query Current
  3425. {
  3426. Return (BRTL)
  3427. }
  3428. }
  3429.  
  3430. Device (DD03)
  3431. {
  3432. Method (_ADR, 0, Serialized) // _ADR: Address
  3433. {
  3434. If (LEqual (DID3, Zero))
  3435. {
  3436. Return (0x03)
  3437. }
  3438. Else
  3439. {
  3440. Return (And (0xFFFF, DID3))
  3441. }
  3442. }
  3443.  
  3444. Method (_DCS, 0, NotSerialized) // _DCS: Display Current Status
  3445. {
  3446. If (LEqual (DID3, Zero))
  3447. {
  3448. Return (0x0B)
  3449. }
  3450. Else
  3451. {
  3452. Return (CDDS (DID3))
  3453. }
  3454. }
  3455.  
  3456. Method (_DGS, 0, NotSerialized) // _DGS: Display Graphics State
  3457. {
  3458. If (CondRefOf (SNXD))
  3459. {
  3460. Return (NXD3)
  3461. }
  3462.  
  3463. Return (NDDS (DID3))
  3464. }
  3465.  
  3466. Method (_DSS, 1, NotSerialized) // _DSS: Device Set State
  3467. {
  3468. If (LEqual (And (Arg0, 0xC0000000), 0xC0000000))
  3469. {
  3470. Store (NSTE, CSTE)
  3471. }
  3472. }
  3473. }
  3474.  
  3475. Device (DD04)
  3476. {
  3477. Method (_ADR, 0, Serialized) // _ADR: Address
  3478. {
  3479. If (LEqual (DID4, Zero))
  3480. {
  3481. Return (0x04)
  3482. }
  3483. Else
  3484. {
  3485. Return (And (0xFFFF, DID4))
  3486. }
  3487. }
  3488.  
  3489. Method (_DCS, 0, NotSerialized) // _DCS: Display Current Status
  3490. {
  3491. If (LEqual (DID4, Zero))
  3492. {
  3493. Return (0x0B)
  3494. }
  3495. Else
  3496. {
  3497. Return (CDDS (DID4))
  3498. }
  3499. }
  3500.  
  3501. Method (_DGS, 0, NotSerialized) // _DGS: Display Graphics State
  3502. {
  3503. If (CondRefOf (SNXD))
  3504. {
  3505. Return (NXD4)
  3506. }
  3507.  
  3508. Return (NDDS (DID4))
  3509. }
  3510.  
  3511. Method (_DSS, 1, NotSerialized) // _DSS: Device Set State
  3512. {
  3513. If (LEqual (And (Arg0, 0xC0000000), 0xC0000000))
  3514. {
  3515. Store (NSTE, CSTE)
  3516. }
  3517. }
  3518. }
  3519.  
  3520. Device (DD05)
  3521. {
  3522. Method (_ADR, 0, Serialized) // _ADR: Address
  3523. {
  3524. If (LEqual (DID5, Zero))
  3525. {
  3526. Return (0x05)
  3527. }
  3528. Else
  3529. {
  3530. Return (And (0xFFFF, DID5))
  3531. }
  3532. }
  3533.  
  3534. Method (_DCS, 0, NotSerialized) // _DCS: Display Current Status
  3535. {
  3536. If (LEqual (DID5, Zero))
  3537. {
  3538. Return (0x0B)
  3539. }
  3540. Else
  3541. {
  3542. Return (CDDS (DID5))
  3543. }
  3544. }
  3545.  
  3546. Method (_DGS, 0, NotSerialized) // _DGS: Display Graphics State
  3547. {
  3548. If (CondRefOf (SNXD))
  3549. {
  3550. Return (NXD5)
  3551. }
  3552.  
  3553. Return (NDDS (DID5))
  3554. }
  3555.  
  3556. Method (_DSS, 1, NotSerialized) // _DSS: Device Set State
  3557. {
  3558. If (LEqual (And (Arg0, 0xC0000000), 0xC0000000))
  3559. {
  3560. Store (NSTE, CSTE)
  3561. }
  3562. }
  3563. }
  3564.  
  3565. Device (DD06)
  3566. {
  3567. Method (_ADR, 0, Serialized) // _ADR: Address
  3568. {
  3569. If (LEqual (DID6, Zero))
  3570. {
  3571. Return (0x06)
  3572. }
  3573. Else
  3574. {
  3575. Return (And (0xFFFF, DID6))
  3576. }
  3577. }
  3578.  
  3579. Method (_DCS, 0, NotSerialized) // _DCS: Display Current Status
  3580. {
  3581. If (LEqual (DID6, Zero))
  3582. {
  3583. Return (0x0B)
  3584. }
  3585. Else
  3586. {
  3587. Return (CDDS (DID6))
  3588. }
  3589. }
  3590.  
  3591. Method (_DGS, 0, NotSerialized) // _DGS: Display Graphics State
  3592. {
  3593. If (CondRefOf (SNXD))
  3594. {
  3595. Return (NXD6)
  3596. }
  3597.  
  3598. Return (NDDS (DID6))
  3599. }
  3600.  
  3601. Method (_DSS, 1, NotSerialized) // _DSS: Device Set State
  3602. {
  3603. If (LEqual (And (Arg0, 0xC0000000), 0xC0000000))
  3604. {
  3605. Store (NSTE, CSTE)
  3606. }
  3607. }
  3608. }
  3609.  
  3610. Device (DD07)
  3611. {
  3612. Method (_ADR, 0, Serialized) // _ADR: Address
  3613. {
  3614. If (LEqual (DID7, Zero))
  3615. {
  3616. Return (0x07)
  3617. }
  3618. Else
  3619. {
  3620. Return (And (0xFFFF, DID7))
  3621. }
  3622. }
  3623.  
  3624. Method (_DCS, 0, NotSerialized) // _DCS: Display Current Status
  3625. {
  3626. If (LEqual (DID7, Zero))
  3627. {
  3628. Return (0x0B)
  3629. }
  3630. Else
  3631. {
  3632. Return (CDDS (DID7))
  3633. }
  3634. }
  3635.  
  3636. Method (_DGS, 0, NotSerialized) // _DGS: Display Graphics State
  3637. {
  3638. If (CondRefOf (SNXD))
  3639. {
  3640. Return (NXD7)
  3641. }
  3642.  
  3643. Return (NDDS (DID7))
  3644. }
  3645.  
  3646. Method (_DSS, 1, NotSerialized) // _DSS: Device Set State
  3647. {
  3648. If (LEqual (And (Arg0, 0xC0000000), 0xC0000000))
  3649. {
  3650. Store (NSTE, CSTE)
  3651. }
  3652. }
  3653. }
  3654.  
  3655. Device (DD08)
  3656. {
  3657. Method (_ADR, 0, Serialized) // _ADR: Address
  3658. {
  3659. If (LEqual (DID8, Zero))
  3660. {
  3661. Return (0x08)
  3662. }
  3663. Else
  3664. {
  3665. Return (And (0xFFFF, DID8))
  3666. }
  3667. }
  3668.  
  3669. Method (_DCS, 0, NotSerialized) // _DCS: Display Current Status
  3670. {
  3671. If (LEqual (DID8, Zero))
  3672. {
  3673. Return (0x0B)
  3674. }
  3675. Else
  3676. {
  3677. Return (CDDS (DID8))
  3678. }
  3679. }
  3680.  
  3681. Method (_DGS, 0, NotSerialized) // _DGS: Display Graphics State
  3682. {
  3683. If (CondRefOf (SNXD))
  3684. {
  3685. Return (NXD8)
  3686. }
  3687.  
  3688. Return (NDDS (DID8))
  3689. }
  3690.  
  3691. Method (_DSS, 1, NotSerialized) // _DSS: Device Set State
  3692. {
  3693. If (LEqual (And (Arg0, 0xC0000000), 0xC0000000))
  3694. {
  3695. Store (NSTE, CSTE)
  3696. }
  3697. }
  3698. }
  3699.  
  3700. Method (SDDL, 1, NotSerialized)
  3701. {
  3702. Increment (NDID)
  3703. Store (And (Arg0, 0x0F0F), Local0)
  3704. Or (0x80000000, Local0, Local1)
  3705. If (LEqual (DIDL, Local0))
  3706. {
  3707. Return (Local1)
  3708. }
  3709.  
  3710. If (LEqual (DDL2, Local0))
  3711. {
  3712. Return (Local1)
  3713. }
  3714.  
  3715. If (LEqual (DDL3, Local0))
  3716. {
  3717. Return (Local1)
  3718. }
  3719.  
  3720. If (LEqual (DDL4, Local0))
  3721. {
  3722. Return (Local1)
  3723. }
  3724.  
  3725. If (LEqual (DDL5, Local0))
  3726. {
  3727. Return (Local1)
  3728. }
  3729.  
  3730. If (LEqual (DDL6, Local0))
  3731. {
  3732. Return (Local1)
  3733. }
  3734.  
  3735. If (LEqual (DDL7, Local0))
  3736. {
  3737. Return (Local1)
  3738. }
  3739.  
  3740. If (LEqual (DDL8, Local0))
  3741. {
  3742. Return (Local1)
  3743. }
  3744.  
  3745. Return (Zero)
  3746. }
  3747.  
  3748. Method (CDDS, 1, NotSerialized)
  3749. {
  3750. Store (And (Arg0, 0x0F0F), Local0)
  3751. If (LEqual (Zero, Local0))
  3752. {
  3753. Return (0x1D)
  3754. }
  3755.  
  3756. If (LEqual (CADL, Local0))
  3757. {
  3758. Return (0x1F)
  3759. }
  3760.  
  3761. If (LEqual (CAL2, Local0))
  3762. {
  3763. Return (0x1F)
  3764. }
  3765.  
  3766. If (LEqual (CAL3, Local0))
  3767. {
  3768. Return (0x1F)
  3769. }
  3770.  
  3771. If (LEqual (CAL4, Local0))
  3772. {
  3773. Return (0x1F)
  3774. }
  3775.  
  3776. If (LEqual (CAL5, Local0))
  3777. {
  3778. Return (0x1F)
  3779. }
  3780.  
  3781. If (LEqual (CAL6, Local0))
  3782. {
  3783. Return (0x1F)
  3784. }
  3785.  
  3786. If (LEqual (CAL7, Local0))
  3787. {
  3788. Return (0x1F)
  3789. }
  3790.  
  3791. If (LEqual (CAL8, Local0))
  3792. {
  3793. Return (0x1F)
  3794. }
  3795.  
  3796. Return (0x1D)
  3797. }
  3798.  
  3799. Method (NDDS, 1, NotSerialized)
  3800. {
  3801. Store (And (Arg0, 0x0F0F), Local0)
  3802. If (LEqual (Zero, Local0))
  3803. {
  3804. Return (Zero)
  3805. }
  3806.  
  3807. If (LEqual (NADL, Local0))
  3808. {
  3809. Return (One)
  3810. }
  3811.  
  3812. If (LEqual (NDL2, Local0))
  3813. {
  3814. Return (One)
  3815. }
  3816.  
  3817. If (LEqual (NDL3, Local0))
  3818. {
  3819. Return (One)
  3820. }
  3821.  
  3822. If (LEqual (NDL4, Local0))
  3823. {
  3824. Return (One)
  3825. }
  3826.  
  3827. If (LEqual (NDL5, Local0))
  3828. {
  3829. Return (One)
  3830. }
  3831.  
  3832. If (LEqual (NDL6, Local0))
  3833. {
  3834. Return (One)
  3835. }
  3836.  
  3837. If (LEqual (NDL7, Local0))
  3838. {
  3839. Return (One)
  3840. }
  3841.  
  3842. If (LEqual (NDL8, Local0))
  3843. {
  3844. Return (One)
  3845. }
  3846.  
  3847. Return (Zero)
  3848. }
  3849.  
  3850. Scope (^^PCI0)
  3851. {
  3852. OperationRegion (MCHP, PCI_Config, 0x40, 0xC0)
  3853. Field (MCHP, AnyAcc, NoLock, Preserve)
  3854. {
  3855. Offset (0x60),
  3856. TASM, 10,
  3857. Offset (0x62)
  3858. }
  3859. }
  3860.  
  3861. OperationRegion (IGDP, PCI_Config, 0x40, 0xC0)
  3862. Field (IGDP, AnyAcc, NoLock, Preserve)
  3863. {
  3864. Offset (0x12),
  3865. , 1,
  3866. GIVD, 1,
  3867. , 2,
  3868. GUMA, 3,
  3869. Offset (0x14),
  3870. , 4,
  3871. GMFN, 1,
  3872. Offset (0x18),
  3873. Offset (0xA4),
  3874. ASLE, 8,
  3875. Offset (0xA8),
  3876. GSSE, 1,
  3877. GSSB, 14,
  3878. GSES, 1,
  3879. Offset (0xB0),
  3880. , 12,
  3881. CDVL, 1,
  3882. Offset (0xB2),
  3883. Offset (0xB5),
  3884. LBPC, 8,
  3885. Offset (0xBC),
  3886. ASLS, 32
  3887. }
  3888.  
  3889. OperationRegion (IGDM, SystemMemory, ASLB, 0x2000)
  3890. Field (IGDM, AnyAcc, NoLock, Preserve)
  3891. {
  3892. SIGN, 128,
  3893. SIZE, 32,
  3894. OVER, 32,
  3895. SVER, 256,
  3896. VVER, 128,
  3897. GVER, 128,
  3898. MBOX, 32,
  3899. DMOD, 32,
  3900. Offset (0x100),
  3901. DRDY, 32,
  3902. CSTS, 32,
  3903. CEVT, 32,
  3904. Offset (0x120),
  3905. DIDL, 32,
  3906. DDL2, 32,
  3907. DDL3, 32,
  3908. DDL4, 32,
  3909. DDL5, 32,
  3910. DDL6, 32,
  3911. DDL7, 32,
  3912. DDL8, 32,
  3913. CPDL, 32,
  3914. CPL2, 32,
  3915. CPL3, 32,
  3916. CPL4, 32,
  3917. CPL5, 32,
  3918. CPL6, 32,
  3919. CPL7, 32,
  3920. CPL8, 32,
  3921. CADL, 32,
  3922. CAL2, 32,
  3923. CAL3, 32,
  3924. CAL4, 32,
  3925. CAL5, 32,
  3926. CAL6, 32,
  3927. CAL7, 32,
  3928. CAL8, 32,
  3929. NADL, 32,
  3930. NDL2, 32,
  3931. NDL3, 32,
  3932. NDL4, 32,
  3933. NDL5, 32,
  3934. NDL6, 32,
  3935. NDL7, 32,
  3936. NDL8, 32,
  3937. ASLP, 32,
  3938. TIDX, 32,
  3939. CHPD, 32,
  3940. CLID, 32,
  3941. CDCK, 32,
  3942. SXSW, 32,
  3943. EVTS, 32,
  3944. CNOT, 32,
  3945. NRDY, 32,
  3946. Offset (0x200),
  3947. SCIE, 1,
  3948. GEFC, 4,
  3949. GXFC, 3,
  3950. GESF, 8,
  3951. Offset (0x204),
  3952. PARM, 32,
  3953. DSLP, 32,
  3954. Offset (0x300),
  3955. ARDY, 32,
  3956. ASLC, 32,
  3957. TCHE, 32,
  3958. ALSI, 32,
  3959. BCLP, 32,
  3960. PFIT, 32,
  3961. CBLV, 32,
  3962. BCLM, 320,
  3963. CPFM, 32,
  3964. EPFM, 32,
  3965. PLUT, 592,
  3966. PFMB, 32,
  3967. CCDV, 32,
  3968. PCFT, 32,
  3969. Offset (0x400),
  3970. GVD1, 49152,
  3971. PHED, 32,
  3972. BDDC, 2048
  3973. }
  3974.  
  3975. OperationRegion (IGDX, SystemMemory, ASLB, 0x2000)
  3976. Field (IGDX, AnyAcc, NoLock, Preserve)
  3977. {
  3978. Offset (0x31C),
  3979. BCM0, 16,
  3980. BCM1, 16,
  3981. BCM2, 16,
  3982. BCM3, 16,
  3983. BCM4, 16,
  3984. BCM5, 16,
  3985. BCM6, 16,
  3986. BCM7, 16,
  3987. BCM8, 16,
  3988. BCM9, 16,
  3989. BCMA, 16
  3990. }
  3991.  
  3992. Name (DBTB, Package (0x15)
  3993. {
  3994. Zero,
  3995. 0x07,
  3996. 0x38,
  3997. 0x01C0,
  3998. 0x0E00,
  3999. 0x3F,
  4000. 0x01C7,
  4001. 0x0E07,
  4002. 0x01F8,
  4003. 0x0E38,
  4004. 0x0FC0,
  4005. Zero,
  4006. Zero,
  4007. Zero,
  4008. Zero,
  4009. Zero,
  4010. 0x7000,
  4011. 0x7007,
  4012. 0x7038,
  4013. 0x71C0,
  4014. 0x7E00
  4015. })
  4016. Name (CDCT, Package (0x05)
  4017. {
  4018. Package (0x02)
  4019. {
  4020. 0xE4,
  4021. 0x0140
  4022. },
  4023.  
  4024. Package (0x02)
  4025. {
  4026. 0xDE,
  4027. 0x014D
  4028. },
  4029.  
  4030. Package (0x02)
  4031. {
  4032. 0xDE,
  4033. 0x014D
  4034. },
  4035.  
  4036. Package (0x02)
  4037. {
  4038. Zero,
  4039. Zero
  4040. },
  4041.  
  4042. Package (0x02)
  4043. {
  4044. 0xDE,
  4045. 0x014D
  4046. }
  4047. })
  4048. Name (SUCC, One)
  4049. Name (NVLD, 0x02)
  4050. Name (CRIT, 0x04)
  4051. Name (NCRT, 0x06)
  4052. Method (GSCI, 0, Serialized)
  4053. {
  4054. Method (GBDA, 0, Serialized)
  4055. {
  4056. If (LEqual (GESF, Zero))
  4057. {
  4058. Store (0x0679, PARM)
  4059. Store (Zero, GESF)
  4060. Return (SUCC)
  4061. }
  4062.  
  4063. If (LEqual (GESF, One))
  4064. {
  4065. Store (0x0240, PARM)
  4066. Store (Zero, GESF)
  4067. Return (SUCC)
  4068. }
  4069.  
  4070. If (LEqual (GESF, 0x04))
  4071. {
  4072. And (PARM, 0xEFFF0000, PARM)
  4073. And (PARM, ShiftLeft (DerefOf (Index (DBTB, IBTT)), 0x10),
  4074. PARM)
  4075. Or (IBTT, PARM, PARM)
  4076. Store (Zero, GESF)
  4077. Return (SUCC)
  4078. }
  4079.  
  4080. If (LEqual (GESF, 0x05))
  4081. {
  4082. Store (IPSC, PARM)
  4083. Or (PARM, ShiftLeft (IPAT, 0x08), PARM)
  4084. Add (PARM, 0x0100, PARM)
  4085. Or (PARM, ShiftLeft (LIDS, 0x10), PARM)
  4086. Add (PARM, 0x00010000, PARM)
  4087. Or (PARM, ShiftLeft (IBIA, 0x14), PARM)
  4088. Store (Zero, GESF)
  4089. Return (SUCC)
  4090. }
  4091.  
  4092. If (LEqual (GESF, 0x06))
  4093. {
  4094. Store (ITVF, PARM)
  4095. Or (PARM, ShiftLeft (ITVM, 0x04), PARM)
  4096. Store (Zero, GESF)
  4097. Return (SUCC)
  4098. }
  4099.  
  4100. If (LEqual (GESF, 0x07))
  4101. {
  4102. Store (GIVD, PARM)
  4103. XOr (PARM, One, PARM)
  4104. Or (PARM, ShiftLeft (GMFN, One), PARM)
  4105. Or (PARM, 0x1800, PARM)
  4106. Or (PARM, ShiftLeft (IDMS, 0x11), PARM)
  4107. Or (ShiftLeft (DerefOf (Index (DerefOf (Index (CDCT, HVCO)), CDVL
  4108. )), 0x15), PARM, PARM)
  4109. Store (One, GESF)
  4110. Return (SUCC)
  4111. }
  4112.  
  4113. If (LEqual (GESF, 0x0A))
  4114. {
  4115. Store (Zero, PARM)
  4116. If (ISSC)
  4117. {
  4118. Or (PARM, 0x03, PARM)
  4119. }
  4120.  
  4121. Store (Zero, GESF)
  4122. Return (SUCC)
  4123. }
  4124.  
  4125. If (LEqual (GESF, 0x0B))
  4126. {
  4127. Store (KSV0, PARM)
  4128. Store (KSV1, GESF)
  4129. Return (SUCC)
  4130. }
  4131.  
  4132. Store (Zero, GESF)
  4133. Return (CRIT)
  4134. }
  4135.  
  4136. Method (SBCB, 0, Serialized)
  4137. {
  4138. If (LEqual (GESF, Zero))
  4139. {
  4140. Store (Zero, PARM)
  4141. Store (0x000F87FD, PARM)
  4142. Store (Zero, GESF)
  4143. Return (SUCC)
  4144. }
  4145.  
  4146. If (LEqual (GESF, One))
  4147. {
  4148. Store (Zero, GESF)
  4149. Store (Zero, PARM)
  4150. Return (SUCC)
  4151. }
  4152.  
  4153. If (LEqual (GESF, 0x03))
  4154. {
  4155. Store (Zero, GESF)
  4156. Store (Zero, PARM)
  4157. Return (SUCC)
  4158. }
  4159.  
  4160. If (LEqual (GESF, 0x04))
  4161. {
  4162. Store (Zero, GESF)
  4163. Store (Zero, PARM)
  4164. Return (SUCC)
  4165. }
  4166.  
  4167. If (LEqual (GESF, 0x05))
  4168. {
  4169. Store (Zero, GESF)
  4170. Store (Zero, PARM)
  4171. Return (SUCC)
  4172. }
  4173.  
  4174. If (LEqual (GESF, 0x06))
  4175. {
  4176. Store (And (PARM, 0x0F), ITVF)
  4177. Store (ShiftRight (And (PARM, 0xF0), 0x04), ITVM)
  4178. Store (Zero, GESF)
  4179. Store (Zero, PARM)
  4180. Return (SUCC)
  4181. }
  4182.  
  4183. If (LEqual (GESF, 0x07))
  4184. {
  4185. If (LEqual (PARM, Zero))
  4186. {
  4187. Store (CLID, Local0)
  4188. If (And (0x80000000, Local0))
  4189. {
  4190. And (CLID, 0x0F, CLID)
  4191. GLID (CLID)
  4192. }
  4193. }
  4194.  
  4195. Store (Zero, GESF)
  4196. Store (Zero, PARM)
  4197. Return (SUCC)
  4198. }
  4199.  
  4200. If (LEqual (GESF, 0x08))
  4201. {
  4202. Store (Zero, GESF)
  4203. Store (Zero, PARM)
  4204. Return (SUCC)
  4205. }
  4206.  
  4207. If (LEqual (GESF, 0x09))
  4208. {
  4209. And (PARM, 0xFF, IBTT)
  4210. Store (Zero, GESF)
  4211. Store (Zero, PARM)
  4212. Return (SUCC)
  4213. }
  4214.  
  4215. If (LEqual (GESF, 0x0A))
  4216. {
  4217. And (PARM, 0xFF, IPSC)
  4218. If (And (ShiftRight (PARM, 0x08), 0xFF))
  4219. {
  4220. And (ShiftRight (PARM, 0x08), 0xFF, IPAT)
  4221. Decrement (IPAT)
  4222. }
  4223.  
  4224. And (ShiftRight (PARM, 0x14), 0x07, IBIA)
  4225. Store (Zero, GESF)
  4226. Store (Zero, PARM)
  4227. Return (SUCC)
  4228. }
  4229.  
  4230. If (LEqual (GESF, 0x0B))
  4231. {
  4232. And (ShiftRight (PARM, One), One, IF1E)
  4233. If (And (PARM, 0x0001E000))
  4234. {
  4235. And (ShiftRight (PARM, 0x0D), 0x0F, IDMS)
  4236. }
  4237. Else
  4238. {
  4239. And (ShiftRight (PARM, 0x11), 0x0F, IDMS)
  4240. }
  4241.  
  4242. Store (Zero, GESF)
  4243. Store (Zero, PARM)
  4244. Return (SUCC)
  4245. }
  4246.  
  4247. If (LEqual (GESF, 0x10))
  4248. {
  4249. Store (Zero, GESF)
  4250. Store (Zero, PARM)
  4251. Return (SUCC)
  4252. }
  4253.  
  4254. If (LEqual (GESF, 0x11))
  4255. {
  4256. Store (ShiftLeft (LIDS, 0x08), PARM)
  4257. Add (PARM, 0x0100, PARM)
  4258. Store (Zero, GESF)
  4259. Return (SUCC)
  4260. }
  4261.  
  4262. If (LEqual (GESF, 0x12))
  4263. {
  4264. If (And (PARM, One))
  4265. {
  4266. If (LEqual (ShiftRight (PARM, One), One))
  4267. {
  4268. Store (One, ISSC)
  4269. }
  4270. Else
  4271. {
  4272. Store (Zero, GESF)
  4273. Return (CRIT)
  4274. }
  4275. }
  4276. Else
  4277. {
  4278. Store (Zero, ISSC)
  4279. }
  4280.  
  4281. Store (Zero, GESF)
  4282. Store (Zero, PARM)
  4283. Return (SUCC)
  4284. }
  4285.  
  4286. If (LEqual (GESF, 0x13))
  4287. {
  4288. Store (Zero, GESF)
  4289. Store (Zero, PARM)
  4290. Return (SUCC)
  4291. }
  4292.  
  4293. If (LEqual (GESF, 0x14))
  4294. {
  4295. And (PARM, 0x0F, PAVP)
  4296. Store (Zero, GESF)
  4297. Store (Zero, PARM)
  4298. Return (SUCC)
  4299. }
  4300.  
  4301. Store (Zero, GESF)
  4302. Return (SUCC)
  4303. }
  4304.  
  4305. If (LEqual (GEFC, 0x04))
  4306. {
  4307. Store (GBDA (), GXFC)
  4308. }
  4309.  
  4310. If (LEqual (GEFC, 0x06))
  4311. {
  4312. Store (SBCB (), GXFC)
  4313. }
  4314.  
  4315. Store (Zero, GEFC)
  4316. Store (One, SCIS)
  4317. Store (Zero, GSSE)
  4318. Store (Zero, SCIE)
  4319. Return (Zero)
  4320. }
  4321.  
  4322. Method (PDRD, 0, NotSerialized)
  4323. {
  4324. If (LNot (DRDY))
  4325. {
  4326. Sleep (ASLP)
  4327. }
  4328.  
  4329. Return (LNot (DRDY))
  4330. }
  4331.  
  4332. Method (PSTS, 0, NotSerialized)
  4333. {
  4334. If (LGreater (CSTS, 0x02))
  4335. {
  4336. Sleep (ASLP)
  4337. }
  4338.  
  4339. Return (LEqual (CSTS, 0x03))
  4340. }
  4341.  
  4342. Method (GNOT, 2, NotSerialized)
  4343. {
  4344. If (PDRD ())
  4345. {
  4346. Return (One)
  4347. }
  4348.  
  4349. Store (Arg0, CEVT)
  4350. Store (0x03, CSTS)
  4351. If (LAnd (LEqual (CHPD, Zero), LEqual (Arg1, Zero)))
  4352. {
  4353. If (LOr (LGreater (OSYS, 0x07D0), LLess (OSYS, 0x07D6)))
  4354. {
  4355. Notify (PCI0, Arg1)
  4356. }
  4357. Else
  4358. {
  4359. Notify (GFX0, Arg1)
  4360. }
  4361. }
  4362.  
  4363. If (CondRefOf (HNOT))
  4364. {
  4365. HNOT (Arg0)
  4366. }
  4367. Else
  4368. {
  4369. Notify (GFX0, 0x80)
  4370. }
  4371.  
  4372. Return (Zero)
  4373. }
  4374.  
  4375. Method (GHDS, 1, NotSerialized)
  4376. {
  4377. Store (Arg0, TIDX)
  4378. Return (GNOT (One, Zero))
  4379. }
  4380.  
  4381. Method (GLID, 1, NotSerialized)
  4382. {
  4383. Store (Arg0, CLID)
  4384. Return (GNOT (0x02, Zero))
  4385. }
  4386.  
  4387. Method (GDCK, 1, NotSerialized)
  4388. {
  4389. Store (Arg0, CDCK)
  4390. Return (GNOT (0x04, Zero))
  4391. }
  4392.  
  4393. Method (PARD, 0, NotSerialized)
  4394. {
  4395. If (LNot (ARDY))
  4396. {
  4397. Sleep (ASLP)
  4398. }
  4399.  
  4400. Return (LNot (ARDY))
  4401. }
  4402.  
  4403. Method (AINT, 2, NotSerialized)
  4404. {
  4405. If (LNot (And (TCHE, ShiftLeft (One, Arg0))))
  4406. {
  4407. Return (One)
  4408. }
  4409.  
  4410. If (PARD ())
  4411. {
  4412. Return (One)
  4413. }
  4414.  
  4415. If (LEqual (Arg0, 0x02))
  4416. {
  4417. If (CPFM)
  4418. {
  4419. And (CPFM, 0x0F, Local0)
  4420. And (EPFM, 0x0F, Local1)
  4421. If (LEqual (Local0, One))
  4422. {
  4423. If (And (Local1, 0x06))
  4424. {
  4425. Store (0x06, PFIT)
  4426. }
  4427. Else
  4428. {
  4429. If (And (Local1, 0x08))
  4430. {
  4431. Store (0x08, PFIT)
  4432. }
  4433. Else
  4434. {
  4435. Store (One, PFIT)
  4436. }
  4437. }
  4438. }
  4439.  
  4440. If (LEqual (Local0, 0x06))
  4441. {
  4442. If (And (Local1, 0x08))
  4443. {
  4444. Store (0x08, PFIT)
  4445. }
  4446. Else
  4447. {
  4448. If (And (Local1, One))
  4449. {
  4450. Store (One, PFIT)
  4451. }
  4452. Else
  4453. {
  4454. Store (0x06, PFIT)
  4455. }
  4456. }
  4457. }
  4458.  
  4459. If (LEqual (Local0, 0x08))
  4460. {
  4461. If (And (Local1, One))
  4462. {
  4463. Store (One, PFIT)
  4464. }
  4465. Else
  4466. {
  4467. If (And (Local1, 0x06))
  4468. {
  4469. Store (0x06, PFIT)
  4470. }
  4471. Else
  4472. {
  4473. Store (0x08, PFIT)
  4474. }
  4475. }
  4476. }
  4477. }
  4478. Else
  4479. {
  4480. XOr (PFIT, 0x07, PFIT)
  4481. }
  4482.  
  4483. Or (PFIT, 0x80000000, PFIT)
  4484. Store (0x04, ASLC)
  4485. }
  4486. Else
  4487. {
  4488. If (LEqual (Arg0, One))
  4489. {
  4490. Store (Divide (Multiply (Arg1, 0xFF), 0x64, ), BCLP)
  4491. Or (BCLP, 0x80000000, BCLP)
  4492. Store (0x02, ASLC)
  4493. }
  4494. Else
  4495. {
  4496. If (LEqual (Arg0, Zero))
  4497. {
  4498. Store (Arg1, ALSI)
  4499. Store (One, ASLC)
  4500. }
  4501. Else
  4502. {
  4503. Return (One)
  4504. }
  4505. }
  4506. }
  4507.  
  4508. Store (One, ASLE)
  4509. Return (Zero)
  4510. }
  4511.  
  4512. Method (SCIP, 0, NotSerialized)
  4513. {
  4514. If (LNotEqual (OVER, Zero))
  4515. {
  4516. Return (LNot (GSMI))
  4517. }
  4518.  
  4519. Return (Zero)
  4520. }
  4521. }
  4522.  
  4523. Device (P0P2)
  4524. {
  4525. Name (_ADR, 0x00010000) // _ADR: Address
  4526. Name (_PRW, Package (0x02) // _PRW: Power Resources for Wake
  4527. {
  4528. 0x09,
  4529. 0x04
  4530. })
  4531. Method (_PRT, 0, NotSerialized) // _PRT: PCI Routing Table
  4532. {
  4533. If (PICM)
  4534. {
  4535. Return (AR02)
  4536. }
  4537.  
  4538. Return (PR02)
  4539. }
  4540.  
  4541. Device (PEGP)
  4542. {
  4543. Name (_ADR, 0xFFFF) // _ADR: Address
  4544. Name (_PRW, Package (0x02) // _PRW: Power Resources for Wake
  4545. {
  4546. 0x09,
  4547. 0x04
  4548. })
  4549. }
  4550.  
  4551. Device (VGA)
  4552. {
  4553. Name (_ADR, Zero) // _ADR: Address
  4554. Name (SWIT, One)
  4555. Name (CRTA, One)
  4556. Name (LCDA, One)
  4557. Name (HDTV, One)
  4558. Method (_STA, 0, NotSerialized) // _STA: Status
  4559. {
  4560. Return (0x0F)
  4561. }
  4562.  
  4563. Name (_PSC, Zero) // _PSC: Power State Current
  4564. Method (_PS0, 0, NotSerialized) // _PS0: Power State 0
  4565. {
  4566. Store (Zero, _PSC)
  4567. }
  4568.  
  4569. Method (_PS3, 0, NotSerialized) // _PS3: Power State 3
  4570. {
  4571. Store (0x03, _PSC)
  4572. }
  4573.  
  4574. Method (_DOS, 1, NotSerialized) // _DOS: Disable Output Switching
  4575. {
  4576. Store (And (Arg0, 0x03), SWIT)
  4577. }
  4578.  
  4579. Method (_DOD, 0, NotSerialized) // _DOD: Display Output Devices
  4580. {
  4581. Return (Package (0x03)
  4582. {
  4583. 0x00010100,
  4584. 0x00010110,
  4585. 0x00010210
  4586. })
  4587. }
  4588.  
  4589. Device (CRT)
  4590. {
  4591. Name (_ADR, 0x0100) // _ADR: Address
  4592. Method (_DCS, 0, NotSerialized) // _DCS: Display Current Status
  4593. {
  4594. If (CRTA)
  4595. {
  4596. Return (0x1F)
  4597. }
  4598. Else
  4599. {
  4600. Return (0x1D)
  4601. }
  4602. }
  4603.  
  4604. Method (_DGS, 0, NotSerialized) // _DGS: Display Graphics State
  4605. {
  4606. If (CRTA)
  4607. {
  4608. Return (One)
  4609. }
  4610. Else
  4611. {
  4612. Return (Zero)
  4613. }
  4614. }
  4615.  
  4616. Method (_DSS, 1, NotSerialized) // _DSS: Device Set State
  4617. {
  4618. }
  4619. }
  4620.  
  4621. Device (LCD)
  4622. {
  4623. Name (_ADR, 0x0110) // _ADR: Address
  4624. Method (_DCS, 0, NotSerialized) // _DCS: Display Current Status
  4625. {
  4626. If (LCDA)
  4627. {
  4628. Return (0x1F)
  4629. }
  4630. Else
  4631. {
  4632. Return (0x1D)
  4633. }
  4634. }
  4635.  
  4636. Method (_DGS, 0, NotSerialized) // _DGS: Display Graphics State
  4637. {
  4638. If (LCDA)
  4639. {
  4640. Return (One)
  4641. }
  4642. Else
  4643. {
  4644. Return (Zero)
  4645. }
  4646. }
  4647.  
  4648. Method (_DSS, 1, NotSerialized) // _DSS: Device Set State
  4649. {
  4650. }
  4651.  
  4652. Method (_BCL, 0, NotSerialized) // _BCL: Brightness Control Levels
  4653. {
  4654. Store (0xB0, P80H)
  4655. If (ECON)
  4656. {
  4657. If (LEqual (^^^^LPCB.EC.LCDT, Zero))
  4658. {
  4659. Return (BCT0)
  4660. }
  4661. Else
  4662. {
  4663. If (LEqual (^^^^LPCB.EC.LCDT, One))
  4664. {
  4665. Return (BCT1)
  4666. }
  4667. Else
  4668. {
  4669. If (LEqual (^^^^LPCB.EC.LCDT, 0x02))
  4670. {
  4671. Return (BCT2)
  4672. }
  4673. Else
  4674. {
  4675. If (LEqual (^^^^LPCB.EC.LCDT, 0x03))
  4676. {
  4677. Return (BCT3)
  4678. }
  4679. Else
  4680. {
  4681. If (LEqual (^^^^LPCB.EC.LCDT, 0x04))
  4682. {
  4683. Return (BCT4)
  4684. }
  4685. Else
  4686. {
  4687. If (LEqual (^^^^LPCB.EC.LCDT, 0x05))
  4688. {
  4689. Return (BCT5)
  4690. }
  4691. Else
  4692. {
  4693. If (LEqual (^^^^LPCB.EC.LCDT, 0x06))
  4694. {
  4695. Return (BCT6)
  4696. }
  4697. Else
  4698. {
  4699. If (LEqual (^^^^LPCB.EC.LCDT, 0x07))
  4700. {
  4701. Return (BCT7)
  4702. }
  4703. Else
  4704. {
  4705. Return (BCTX)
  4706. }
  4707. }
  4708. }
  4709. }
  4710. }
  4711. }
  4712. }
  4713. }
  4714. }
  4715. Else
  4716. {
  4717. Return (BCTX)
  4718. }
  4719. }
  4720.  
  4721. Method (_BCM, 1, NotSerialized) // _BCM: Brightness Control Method
  4722. {
  4723. Store (0xB1, P80H)
  4724. Store (Arg0, BRTL)
  4725. CMSW (0x7F, Arg0)
  4726. Store (0xF4, SMID)
  4727. Store (0xC5, SMIP)
  4728. }
  4729.  
  4730. Method (_BQC, 0, NotSerialized) // _BQC: Brightness Query Current
  4731. {
  4732. Store (0xB1, P80H)
  4733. Return (BRTL)
  4734. }
  4735. }
  4736.  
  4737. Device (HDMI)
  4738. {
  4739. Name (_ADR, 0x0210) // _ADR: Address
  4740. Method (_DCS, 0, NotSerialized) // _DCS: Display Current Status
  4741. {
  4742. If (HDTV)
  4743. {
  4744. Return (0x1F)
  4745. }
  4746. Else
  4747. {
  4748. Return (0x1D)
  4749. }
  4750. }
  4751.  
  4752. Method (_DGS, 0, NotSerialized) // _DGS: Display Graphics State
  4753. {
  4754. If (HDTV)
  4755. {
  4756. Return (One)
  4757. }
  4758. Else
  4759. {
  4760. Return (Zero)
  4761. }
  4762. }
  4763.  
  4764. Method (_DSS, 1, NotSerialized) // _DSS: Device Set State
  4765. {
  4766. }
  4767. }
  4768. }
  4769. }
  4770.  
  4771. Device (P0P1)
  4772. {
  4773. Name (_ADR, 0x001E0000) // _ADR: Address
  4774. Method (_PRW, 0, NotSerialized) // _PRW: Power Resources for Wake
  4775. {
  4776. If (WKPM)
  4777. {
  4778. Return (Package (0x02)
  4779. {
  4780. 0x0B,
  4781. 0x04
  4782. })
  4783. }
  4784. Else
  4785. {
  4786. Return (Package (0x02)
  4787. {
  4788. 0x0B,
  4789. Zero
  4790. })
  4791. }
  4792. }
  4793.  
  4794. Method (_PRT, 0, NotSerialized) // _PRT: PCI Routing Table
  4795. {
  4796. If (PICM)
  4797. {
  4798. Return (AR01)
  4799. }
  4800.  
  4801. Return (PR01)
  4802. }
  4803. }
  4804.  
  4805. Device (LPCB)
  4806. {
  4807. Name (_ADR, 0x001F0000) // _ADR: Address
  4808. Scope (\_SB)
  4809. {
  4810. OperationRegion (PCI0.LPCB.LPC1, PCI_Config, 0x40, 0xC0)
  4811. Field (PCI0.LPCB.LPC1, AnyAcc, NoLock, Preserve)
  4812. {
  4813. Offset (0x20),
  4814. PARC, 8,
  4815. PBRC, 8,
  4816. PCRC, 8,
  4817. PDRC, 8,
  4818. Offset (0x28),
  4819. PERC, 8,
  4820. PFRC, 8,
  4821. PGRC, 8,
  4822. PHRC, 8
  4823. }
  4824.  
  4825. Device (LNKA)
  4826. {
  4827. Name (_HID, EisaId ("PNP0C0F")) // _HID: Hardware ID
  4828. Name (_UID, One) // _UID: Unique ID
  4829. Method (_DIS, 0, Serialized) // _DIS: Disable Device
  4830. {
  4831. Or (PARC, 0x80, PARC)
  4832. }
  4833.  
  4834. Name (_PRS, ResourceTemplate () // _PRS: Possible Resource Settings
  4835. {
  4836. IRQ (Level, ActiveLow, Shared, )
  4837. {1,3,4,5,6,7,10,12,14,15}
  4838. })
  4839. Method (_CRS, 0, Serialized) // _CRS: Current Resource Settings
  4840. {
  4841. Name (RTLA, ResourceTemplate ()
  4842. {
  4843. IRQ (Level, ActiveLow, Shared, )
  4844. {}
  4845. })
  4846. CreateWordField (RTLA, One, IRQ0)
  4847. Store (Zero, IRQ0)
  4848. ShiftLeft (One, And (PARC, 0x0F), IRQ0)
  4849. Return (RTLA)
  4850. }
  4851.  
  4852. Method (_SRS, 1, Serialized) // _SRS: Set Resource Settings
  4853. {
  4854. CreateWordField (Arg0, One, IRQ0)
  4855. FindSetRightBit (IRQ0, Local0)
  4856. Decrement (Local0)
  4857. Store (Local0, PARC)
  4858. }
  4859.  
  4860. Method (_STA, 0, Serialized) // _STA: Status
  4861. {
  4862. If (And (PARC, 0x80))
  4863. {
  4864. Return (0x09)
  4865. }
  4866. Else
  4867. {
  4868. Return (0x0B)
  4869. }
  4870. }
  4871. }
  4872.  
  4873. Device (LNKB)
  4874. {
  4875. Name (_HID, EisaId ("PNP0C0F")) // _HID: Hardware ID
  4876. Name (_UID, 0x02) // _UID: Unique ID
  4877. Method (_DIS, 0, Serialized) // _DIS: Disable Device
  4878. {
  4879. Or (PBRC, 0x80, PBRC)
  4880. }
  4881.  
  4882. Name (_PRS, ResourceTemplate () // _PRS: Possible Resource Settings
  4883. {
  4884. IRQ (Level, ActiveLow, Shared, )
  4885. {1,3,4,5,6,7,11,12,14,15}
  4886. })
  4887. Method (_CRS, 0, Serialized) // _CRS: Current Resource Settings
  4888. {
  4889. Name (RTLB, ResourceTemplate ()
  4890. {
  4891. IRQ (Level, ActiveLow, Shared, )
  4892. {}
  4893. })
  4894. CreateWordField (RTLB, One, IRQ0)
  4895. Store (Zero, IRQ0)
  4896. ShiftLeft (One, And (PBRC, 0x0F), IRQ0)
  4897. Return (RTLB)
  4898. }
  4899.  
  4900. Method (_SRS, 1, Serialized) // _SRS: Set Resource Settings
  4901. {
  4902. CreateWordField (Arg0, One, IRQ0)
  4903. FindSetRightBit (IRQ0, Local0)
  4904. Decrement (Local0)
  4905. Store (Local0, PBRC)
  4906. }
  4907.  
  4908. Method (_STA, 0, Serialized) // _STA: Status
  4909. {
  4910. If (And (PBRC, 0x80))
  4911. {
  4912. Return (0x09)
  4913. }
  4914. Else
  4915. {
  4916. Return (0x0B)
  4917. }
  4918. }
  4919. }
  4920.  
  4921. Device (LNKC)
  4922. {
  4923. Name (_HID, EisaId ("PNP0C0F")) // _HID: Hardware ID
  4924. Name (_UID, 0x03) // _UID: Unique ID
  4925. Method (_DIS, 0, Serialized) // _DIS: Disable Device
  4926. {
  4927. Or (PCRC, 0x80, PCRC)
  4928. }
  4929.  
  4930. Name (_PRS, ResourceTemplate () // _PRS: Possible Resource Settings
  4931. {
  4932. IRQ (Level, ActiveLow, Shared, )
  4933. {1,3,4,5,6,7,10,12,14,15}
  4934. })
  4935. Method (_CRS, 0, Serialized) // _CRS: Current Resource Settings
  4936. {
  4937. Name (RTLC, ResourceTemplate ()
  4938. {
  4939. IRQ (Level, ActiveLow, Shared, )
  4940. {}
  4941. })
  4942. CreateWordField (RTLC, One, IRQ0)
  4943. Store (Zero, IRQ0)
  4944. ShiftLeft (One, And (PCRC, 0x0F), IRQ0)
  4945. Return (RTLC)
  4946. }
  4947.  
  4948. Method (_SRS, 1, Serialized) // _SRS: Set Resource Settings
  4949. {
  4950. CreateWordField (Arg0, One, IRQ0)
  4951. FindSetRightBit (IRQ0, Local0)
  4952. Decrement (Local0)
  4953. Store (Local0, PCRC)
  4954. }
  4955.  
  4956. Method (_STA, 0, Serialized) // _STA: Status
  4957. {
  4958. If (And (PCRC, 0x80))
  4959. {
  4960. Return (0x09)
  4961. }
  4962. Else
  4963. {
  4964. Return (0x0B)
  4965. }
  4966. }
  4967. }
  4968.  
  4969. Device (LNKD)
  4970. {
  4971. Name (_HID, EisaId ("PNP0C0F")) // _HID: Hardware ID
  4972. Name (_UID, 0x04) // _UID: Unique ID
  4973. Method (_DIS, 0, Serialized) // _DIS: Disable Device
  4974. {
  4975. Or (PDRC, 0x80, PDRC)
  4976. }
  4977.  
  4978. Name (_PRS, ResourceTemplate () // _PRS: Possible Resource Settings
  4979. {
  4980. IRQ (Level, ActiveLow, Shared, )
  4981. {1,3,4,5,6,7,11,12,14,15}
  4982. })
  4983. Method (_CRS, 0, Serialized) // _CRS: Current Resource Settings
  4984. {
  4985. Name (RTLD, ResourceTemplate ()
  4986. {
  4987. IRQ (Level, ActiveLow, Shared, )
  4988. {}
  4989. })
  4990. CreateWordField (RTLD, One, IRQ0)
  4991. Store (Zero, IRQ0)
  4992. ShiftLeft (One, And (PDRC, 0x0F), IRQ0)
  4993. Return (RTLD)
  4994. }
  4995.  
  4996. Method (_SRS, 1, Serialized) // _SRS: Set Resource Settings
  4997. {
  4998. CreateWordField (Arg0, One, IRQ0)
  4999. FindSetRightBit (IRQ0, Local0)
  5000. Decrement (Local0)
  5001. Store (Local0, PDRC)
  5002. }
  5003.  
  5004. Method (_STA, 0, Serialized) // _STA: Status
  5005. {
  5006. If (And (PDRC, 0x80))
  5007. {
  5008. Return (0x09)
  5009. }
  5010. Else
  5011. {
  5012. Return (0x0B)
  5013. }
  5014. }
  5015. }
  5016.  
  5017. Device (LNKE)
  5018. {
  5019. Name (_HID, EisaId ("PNP0C0F")) // _HID: Hardware ID
  5020. Name (_UID, 0x05) // _UID: Unique ID
  5021. Method (_DIS, 0, Serialized) // _DIS: Disable Device
  5022. {
  5023. Or (PERC, 0x80, PERC)
  5024. }
  5025.  
  5026. Name (_PRS, ResourceTemplate () // _PRS: Possible Resource Settings
  5027. {
  5028. IRQ (Level, ActiveLow, Shared, )
  5029. {1,3,4,5,6,7,10,12,14,15}
  5030. })
  5031. Method (_CRS, 0, Serialized) // _CRS: Current Resource Settings
  5032. {
  5033. Name (RTLE, ResourceTemplate ()
  5034. {
  5035. IRQ (Level, ActiveLow, Shared, )
  5036. {}
  5037. })
  5038. CreateWordField (RTLE, One, IRQ0)
  5039. Store (Zero, IRQ0)
  5040. ShiftLeft (One, And (PERC, 0x0F), IRQ0)
  5041. Return (RTLE)
  5042. }
  5043.  
  5044. Method (_SRS, 1, Serialized) // _SRS: Set Resource Settings
  5045. {
  5046. CreateWordField (Arg0, One, IRQ0)
  5047. FindSetRightBit (IRQ0, Local0)
  5048. Decrement (Local0)
  5049. Store (Local0, PERC)
  5050. }
  5051.  
  5052. Method (_STA, 0, Serialized) // _STA: Status
  5053. {
  5054. If (And (PERC, 0x80))
  5055. {
  5056. Return (0x09)
  5057. }
  5058. Else
  5059. {
  5060. Return (0x0B)
  5061. }
  5062. }
  5063. }
  5064.  
  5065. Device (LNKF)
  5066. {
  5067. Name (_HID, EisaId ("PNP0C0F")) // _HID: Hardware ID
  5068. Name (_UID, 0x06) // _UID: Unique ID
  5069. Method (_DIS, 0, Serialized) // _DIS: Disable Device
  5070. {
  5071. Or (PFRC, 0x80, PFRC)
  5072. }
  5073.  
  5074. Name (_PRS, ResourceTemplate () // _PRS: Possible Resource Settings
  5075. {
  5076. IRQ (Level, ActiveLow, Shared, )
  5077. {1,3,4,5,6,7,11,12,14,15}
  5078. })
  5079. Method (_CRS, 0, Serialized) // _CRS: Current Resource Settings
  5080. {
  5081. Name (RTLF, ResourceTemplate ()
  5082. {
  5083. IRQ (Level, ActiveLow, Shared, )
  5084. {}
  5085. })
  5086. CreateWordField (RTLF, One, IRQ0)
  5087. Store (Zero, IRQ0)
  5088. ShiftLeft (One, And (PFRC, 0x0F), IRQ0)
  5089. Return (RTLF)
  5090. }
  5091.  
  5092. Method (_SRS, 1, Serialized) // _SRS: Set Resource Settings
  5093. {
  5094. CreateWordField (Arg0, One, IRQ0)
  5095. FindSetRightBit (IRQ0, Local0)
  5096. Decrement (Local0)
  5097. Store (Local0, PFRC)
  5098. }
  5099.  
  5100. Method (_STA, 0, Serialized) // _STA: Status
  5101. {
  5102. If (And (PFRC, 0x80))
  5103. {
  5104. Return (0x09)
  5105. }
  5106. Else
  5107. {
  5108. Return (0x0B)
  5109. }
  5110. }
  5111. }
  5112.  
  5113. Device (LNKG)
  5114. {
  5115. Name (_HID, EisaId ("PNP0C0F")) // _HID: Hardware ID
  5116. Name (_UID, 0x07) // _UID: Unique ID
  5117. Method (_DIS, 0, Serialized) // _DIS: Disable Device
  5118. {
  5119. Or (PGRC, 0x80, PGRC)
  5120. }
  5121.  
  5122. Name (_PRS, ResourceTemplate () // _PRS: Possible Resource Settings
  5123. {
  5124. IRQ (Level, ActiveLow, Shared, )
  5125. {1,3,4,5,6,7,10,12,14,15}
  5126. })
  5127. Method (_CRS, 0, Serialized) // _CRS: Current Resource Settings
  5128. {
  5129. Name (RTLG, ResourceTemplate ()
  5130. {
  5131. IRQ (Level, ActiveLow, Shared, )
  5132. {}
  5133. })
  5134. CreateWordField (RTLG, One, IRQ0)
  5135. Store (Zero, IRQ0)
  5136. ShiftLeft (One, And (PGRC, 0x0F), IRQ0)
  5137. Return (RTLG)
  5138. }
  5139.  
  5140. Method (_SRS, 1, Serialized) // _SRS: Set Resource Settings
  5141. {
  5142. CreateWordField (Arg0, One, IRQ0)
  5143. FindSetRightBit (IRQ0, Local0)
  5144. Decrement (Local0)
  5145. Store (Local0, PGRC)
  5146. }
  5147.  
  5148. Method (_STA, 0, Serialized) // _STA: Status
  5149. {
  5150. If (And (PGRC, 0x80))
  5151. {
  5152. Return (0x09)
  5153. }
  5154. Else
  5155. {
  5156. Return (0x0B)
  5157. }
  5158. }
  5159. }
  5160.  
  5161. Device (LNKH)
  5162. {
  5163. Name (_HID, EisaId ("PNP0C0F")) // _HID: Hardware ID
  5164. Name (_UID, 0x08) // _UID: Unique ID
  5165. Method (_DIS, 0, Serialized) // _DIS: Disable Device
  5166. {
  5167. Or (PHRC, 0x80, PHRC)
  5168. }
  5169.  
  5170. Name (_PRS, ResourceTemplate () // _PRS: Possible Resource Settings
  5171. {
  5172. IRQ (Level, ActiveLow, Shared, )
  5173. {1,3,4,5,6,7,11,12,14,15}
  5174. })
  5175. Method (_CRS, 0, Serialized) // _CRS: Current Resource Settings
  5176. {
  5177. Name (RTLH, ResourceTemplate ()
  5178. {
  5179. IRQ (Level, ActiveLow, Shared, )
  5180. {}
  5181. })
  5182. CreateWordField (RTLH, One, IRQ0)
  5183. Store (Zero, IRQ0)
  5184. ShiftLeft (One, And (PHRC, 0x0F), IRQ0)
  5185. Return (RTLH)
  5186. }
  5187.  
  5188. Method (_SRS, 1, Serialized) // _SRS: Set Resource Settings
  5189. {
  5190. CreateWordField (Arg0, One, IRQ0)
  5191. FindSetRightBit (IRQ0, Local0)
  5192. Decrement (Local0)
  5193. Store (Local0, PHRC)
  5194. }
  5195.  
  5196. Method (_STA, 0, Serialized) // _STA: Status
  5197. {
  5198. If (And (PHRC, 0x80))
  5199. {
  5200. Return (0x09)
  5201. }
  5202. Else
  5203. {
  5204. Return (0x0B)
  5205. }
  5206. }
  5207. }
  5208. }
  5209.  
  5210. OperationRegion (LPC0, PCI_Config, 0x40, 0xC0)
  5211. Field (LPC0, AnyAcc, NoLock, Preserve)
  5212. {
  5213. Offset (0x40),
  5214. IOD0, 8,
  5215. IOD1, 8,
  5216. Offset (0xB0),
  5217. RAEN, 1,
  5218. , 13,
  5219. RCBA, 18
  5220. }
  5221.  
  5222. Scope (\_SB)
  5223. {
  5224. Scope (PCI0)
  5225. {
  5226. Scope (LPCB)
  5227. {
  5228. Device (EC)
  5229. {
  5230. Name (_HID, EisaId ("PNP0C09")) // _HID: Hardware ID
  5231. Name (BTCL, Zero)
  5232. Name (BTFL, 0x0A)
  5233. Mutex (MECR, 0x00)
  5234. Method (_CRS, 0, NotSerialized) // _CRS: Current Resource Settings
  5235. {
  5236. Name (BFFR, ResourceTemplate ()
  5237. {
  5238. IO (Decode16,
  5239. 0x0062, // Range Minimum
  5240. 0x0062, // Range Maximum
  5241. 0x00, // Alignment
  5242. 0x01, // Length
  5243. )
  5244. IO (Decode16,
  5245. 0x0066, // Range Minimum
  5246. 0x0066, // Range Maximum
  5247. 0x00, // Alignment
  5248. 0x01, // Length
  5249. )
  5250. })
  5251. Return (BFFR)
  5252. }
  5253.  
  5254. OperationRegion (SPRT, SystemIO, 0xB2, 0x02)
  5255. Field (SPRT, ByteAcc, Lock, Preserve)
  5256. {
  5257. SSMP, 8,
  5258. SSMS, 8
  5259. }
  5260.  
  5261. OperationRegion (ECF2, EmbeddedControl, Zero, 0xFF)
  5262. Field (ECF2, ByteAcc, Lock, Preserve)
  5263. {
  5264. ADIN, 1,
  5265. ADIS, 1,
  5266. BAIN, 1,
  5267. BASM, 1,
  5268. B2IN, 1,
  5269. B2SM, 1,
  5270. Offset (0x01),
  5271. CLID, 1,
  5272. , 5,
  5273. LDWP, 1,
  5274. Offset (0x02),
  5275. BCSD, 1,
  5276. BCSC, 1,
  5277. Offset (0x03),
  5278. VRID, 8,
  5279. SKID, 8,
  5280. OSVD, 8,
  5281. W7VR, 8,
  5282. Offset (0x08),
  5283. BCLL, 1,
  5284. Offset (0x09),
  5285. Offset (0x0A),
  5286. SADS, 8,
  5287. ACTP, 8,
  5288. BCC1, 8,
  5289. Offset (0x0E),
  5290. CHTP, 8,
  5291. LBTL, 8,
  5292. BMAL, 8,
  5293. BMAH, 8,
  5294. BMLB, 8,
  5295. BMHB, 8,
  5296. BSLB, 8,
  5297. BSHB, 8,
  5298. BAVL, 8,
  5299. BAVH, 8,
  5300. BACL, 8,
  5301. BACH, 8,
  5302. RSCL, 8,
  5303. RSCH, 8,
  5304. BRCL, 8,
  5305. BRCH, 8,
  5306. BTPL, 8,
  5307. BTPH, 8,
  5308. BCCL, 8,
  5309. BCCH, 8,
  5310. BCVL, 8,
  5311. BCVH, 8,
  5312. BMEL, 8,
  5313. BMEH, 8,
  5314. FCCL, 8,
  5315. FCCH, 8,
  5316. BDCL, 8,
  5317. BDCH, 8,
  5318. BDVL, 8,
  5319. BDVH, 8,
  5320. BMDL, 8,
  5321. BMDH, 8,
  5322. BSNL, 8,
  5323. BSNH, 8,
  5324. MAN0, 8,
  5325. MAN1, 8,
  5326. MAN2, 8,
  5327. MAN3, 8,
  5328. MAN4, 8,
  5329. MAN5, 8,
  5330. MAN6, 8,
  5331. MAN7, 8,
  5332. MAN8, 8,
  5333. MAN9, 8,
  5334. MANA, 8,
  5335. MANB, 8,
  5336. BCTL, 8,
  5337. BCTH, 8,
  5338. BSIL, 8,
  5339. BSIH, 8,
  5340. TS1C, 8,
  5341. TS1P, 8,
  5342. TS2R, 8,
  5343. Offset (0x45),
  5344. BDC0, 8,
  5345. BDC1, 8,
  5346. BDC2, 8,
  5347. BDC3, 8,
  5348. BDC4, 8,
  5349. BDC5, 8,
  5350. BDN0, 8,
  5351. BDN1, 8,
  5352. BDN2, 8,
  5353. BDN3, 8,
  5354. BDN4, 8,
  5355. BDN5, 8,
  5356. BDN6, 8,
  5357. BDN7, 8,
  5358. Offset (0x54),
  5359. AVCL, 8,
  5360. AVCH, 8,
  5361. RTEL, 8,
  5362. RTEH, 8,
  5363. ATEL, 8,
  5364. ATEH, 8,
  5365. ATFL, 8,
  5366. ATFH, 8,
  5367. Offset (0x60),
  5368. CPUT, 8,
  5369. WDSS, 1,
  5370. GPUS, 1,
  5371. Offset (0x64),
  5372. WOLE, 1,
  5373. Offset (0x65),
  5374. WANP, 1,
  5375. BUTP, 1,
  5376. WWAP, 1,
  5377. USBP, 1,
  5378. WANE, 1,
  5379. BUTE, 1,
  5380. WWAE, 1,
  5381. USBE, 1,
  5382. SHKM, 8,
  5383. HKIL, 8,
  5384. HKIH, 8,
  5385. WMIC, 8,
  5386. WMSC, 8,
  5387. WMB0, 8,
  5388. WMB1, 8,
  5389. WMB2, 8,
  5390. WMB3, 8,
  5391. Offset (0xA0),
  5392. C1VL, 8,
  5393. C1VH, 8,
  5394. C2VL, 8,
  5395. C2VH, 8,
  5396. C3VL, 8,
  5397. C3VH, 8,
  5398. C4VL, 8,
  5399. C4VH, 8,
  5400. CTLB, 128,
  5401. RCS1, 8,
  5402. RCS2, 8,
  5403. RCRC, 8,
  5404. WCBS, 8,
  5405. WCSC, 8,
  5406. WCRC, 8,
  5407. Offset (0xCB),
  5408. CTYP, 8,
  5409. FSPL, 8,
  5410. FSPH, 8,
  5411. FRLB, 8,
  5412. FRHB, 8,
  5413. Offset (0xD6),
  5414. LCDT, 8,
  5415. SFAN, 8,
  5416. Offset (0xF0),
  5417. BLST, 8
  5418. }
  5419.  
  5420. Scope (\_SB)
  5421. {
  5422. Device (BAT0)
  5423. {
  5424. Name (_HID, EisaId ("PNP0C0A")) // _HID: Hardware ID
  5425. Name (_UID, Zero) // _UID: Unique ID
  5426. Name (PSTA, Zero)
  5427. Method (_STA, 0, NotSerialized) // _STA: Status
  5428. {
  5429. Sleep (0x05)
  5430. If (LEqual (ECON, Zero))
  5431. {
  5432. Store (Zero, Local1)
  5433. }
  5434. Else
  5435. {
  5436. Acquire (^^PCI0.LPCB.EC.MECR, 0xFFFF)
  5437. Sleep (0x05)
  5438. Store (^^PCI0.LPCB.EC.BAIN, Local1)
  5439. Release (^^PCI0.LPCB.EC.MECR)
  5440. }
  5441.  
  5442. If (LEqual (Local1, Zero))
  5443. {
  5444. Store (0x0F, Local0)
  5445. }
  5446. Else
  5447. {
  5448. Store (0x1F, Local0)
  5449. }
  5450.  
  5451. Store (Local0, PSTA)
  5452. Return (Local0)
  5453. }
  5454.  
  5455. Name (BT47, Zero)
  5456. Method (_BIF, 0, NotSerialized) // _BIF: Battery Information
  5457. {
  5458. Name (MULV, Zero)
  5459. Name (BATI, Package (0x0D)
  5460. {
  5461. Zero,
  5462. 0x2710,
  5463. 0x2710,
  5464. Zero,
  5465. 0xFFFFFFFF,
  5466. 0x03E8,
  5467. 0x0190,
  5468. 0x64,
  5469. 0x64,
  5470. "",
  5471. "",
  5472. "LiOn",
  5473. "HP"
  5474. })
  5475. Store (One, MULV)
  5476. Sleep (0x05)
  5477. If (LEqual (ECON, Zero)) {}
  5478. Else
  5479. {
  5480. Store (One, Index (BATI, Zero))
  5481. Store (^^PCI0.LPCB.EC.BDCH, Local0)
  5482. Or (ShiftLeft (Local0, 0x08), ^^PCI0.LPCB.EC.BDCL, Local0)
  5483. If (LLessEqual (Local0, 0x1194))
  5484. {
  5485. Store (One, BT47)
  5486. }
  5487.  
  5488. Store (^^PCI0.LPCB.EC.FCCH, Local0)
  5489. Or (ShiftLeft (Local0, 0x08), ^^PCI0.LPCB.EC.FCCL, Local0)
  5490. Store (Multiply (Local0, MULV), Index (BATI, One))
  5491. Store (Multiply (Local0, MULV), Index (BATI, 0x02))
  5492. If (SMA4)
  5493. {
  5494. Multiply (Local0, 0x0C, Local3)
  5495. }
  5496. Else
  5497. {
  5498. Multiply (Local0, 0x0A, Local3)
  5499. }
  5500.  
  5501. Divide (Local3, 0x64, Local1, Local2)
  5502. If (Local1)
  5503. {
  5504. Add (Local2, One, Local2)
  5505. }
  5506.  
  5507. Store (Local2, Index (BATI, 0x05))
  5508. If (SMA4)
  5509. {
  5510. Multiply (Local0, 0x07, Local3)
  5511. }
  5512. Else
  5513. {
  5514. Multiply (Local0, 0x05, Local3)
  5515. }
  5516.  
  5517. Divide (Local3, 0x64, Local1, Local2)
  5518. If (Local1)
  5519. {
  5520. Add (Local2, One, Local2)
  5521. }
  5522.  
  5523. Store (Local2, Index (BATI, 0x06))
  5524. Store (^^PCI0.LPCB.EC.BAVH, Local0)
  5525. Or (ShiftLeft (Local0, 0x08), ^^PCI0.LPCB.EC.BAVL, Local0)
  5526. Store (Multiply (Local0, MULV), Index (BATI, 0x04))
  5527. }
  5528.  
  5529. Return (BATI)
  5530. }
  5531.  
  5532. Method (_BST, 0, NotSerialized) // _BST: Battery Status
  5533. {
  5534. Name (PKG0, Package (0x04)
  5535. {
  5536. 0x02,
  5537. 0xFFFFFFFF,
  5538. 0xFFFFFFFF,
  5539. 0xFFFFFFFF
  5540. })
  5541. Sleep (0x05)
  5542. If (LEqual (ECON, Zero)) {}
  5543. Else
  5544. {
  5545. If (PWRS)
  5546. {
  5547. Store (^^PCI0.LPCB.EC.RSCL, Local0)
  5548. If (LAnd (And (^^PCI0.LPCB.EC.BSLB, 0x20), LEqual (Local0, 0x64)))
  5549. {
  5550. Store (Zero, Index (PKG0, Zero))
  5551. }
  5552. Else
  5553. {
  5554. If (^^PCI0.LPCB.EC.BCSC)
  5555. {
  5556. Store (0x02, Index (PKG0, Zero))
  5557. }
  5558. Else
  5559. {
  5560. Store (Zero, Index (PKG0, Zero))
  5561. }
  5562. }
  5563. }
  5564. Else
  5565. {
  5566. If (^^PCI0.LPCB.EC.BTCL)
  5567. {
  5568. Store (0x05, Index (PKG0, Zero))
  5569. }
  5570. Else
  5571. {
  5572. Store (^^PCI0.LPCB.EC.RSCL, Local1)
  5573. If (LGreater (Local1, 0x07))
  5574. {
  5575. Store (One, Index (PKG0, Zero))
  5576. }
  5577. Else
  5578. {
  5579. Store (0x05, Index (PKG0, Zero))
  5580. }
  5581. }
  5582. }
  5583.  
  5584. Name (MULV, Zero)
  5585. Store (One, MULV)
  5586. Store (^^PCI0.LPCB.EC.FCCH, Local0)
  5587. Or (ShiftLeft (Local0, 0x08), ^^PCI0.LPCB.EC.FCCL, Local0)
  5588. If (LEqual (^^PCI0.LPCB.EC.BTCL, Zero))
  5589. {
  5590. Store (^^PCI0.LPCB.EC.RSCH, Local1)
  5591. Or (ShiftLeft (Local1, 0x08), ^^PCI0.LPCB.EC.RSCL, Local1)
  5592. }
  5593. Else
  5594. {
  5595. Store (^^PCI0.LPCB.EC.BTFL, Local1)
  5596. }
  5597.  
  5598. Store (Divide (Multiply (Local0, Local1), 0x64, ), Index (
  5599. PKG0, 0x02))
  5600. If (BT47)
  5601. {
  5602. If (^^PCI0.LPCB.EC.BCLL)
  5603. {
  5604. Store (Divide (Multiply (Local0, 0x07), 0x64, ), Index (
  5605. PKG0, 0x02))
  5606. }
  5607. Else
  5608. {
  5609. If (LAnd (LLessEqual (Local1, 0x0F), LGreaterEqual (Local1, 0x09)))
  5610. {
  5611. Store ("-- Actual Percentage:", Debug)
  5612. Store (Local1, Debug)
  5613. Subtract (Local1, 0x09, Local2)
  5614. Multiply (Local2, 0x0A, Local2)
  5615. Divide (Local2, 0x06, Local3, Local2)
  5616. Add (Local2, 0x05, Local2)
  5617. Store (Divide (Multiply (Local0, Local2), 0x64, ), Index (
  5618. PKG0, 0x02))
  5619. Store ("-- Converted Percentage:", Debug)
  5620. Store (Local2, Debug)
  5621. Store (Divide (Multiply (Local0, Local2), 0x64, ), Index (
  5622. PKG0, 0x02))
  5623. }
  5624. Else
  5625. {
  5626. If (LLessEqual (Local1, 0x08))
  5627. {
  5628. Store ("-- Actual Percentage:", Debug)
  5629. Store (Local1, Debug)
  5630. Divide (Local1, 0x02, Local3, Local2)
  5631. Store ("-- Converted Percentage:", Debug)
  5632. Store (Local2, Debug)
  5633. Store (Divide (Multiply (Local0, Local2), 0x64, ), Index (
  5634. PKG0, 0x02))
  5635. }
  5636. }
  5637. }
  5638. }
  5639.  
  5640. If (LEqual (PREV, 0x00303231))
  5641. {
  5642. Store (^^PCI0.LPCB.EC.AVCH, Local2)
  5643. Or (ShiftLeft (Local2, 0x08), ^^PCI0.LPCB.EC.AVCL, Local2)
  5644. Store (Local2, Index (PKG0, One))
  5645. }
  5646. }
  5647.  
  5648. Return (PKG0)
  5649. }
  5650.  
  5651. Method (_PCL, 0, NotSerialized) // _PCL: Power Consumer List
  5652. {
  5653. Return (_SB)
  5654. }
  5655. }
  5656. }
  5657.  
  5658. Method (_REG, 2, NotSerialized) // _REG: Region Availability
  5659. {
  5660. If (LAnd (LEqual (Arg0, 0x03), LEqual (Arg1, One)))
  5661. {
  5662. Store (BAIN, BNUM)
  5663. Store (RSCL, B0SC)
  5664. Store (ADIN, PWRS)
  5665. Notify (BAT0, 0x81)
  5666. PNOT ()
  5667. Store (One, ECON)
  5668. If (LGreaterEqual (OSYS, 0x07D9))
  5669. {
  5670. Store (One, OSVD)
  5671. }
  5672. Else
  5673. {
  5674. Store (0x02, OSVD)
  5675. If (LEqual (BRTL, Zero))
  5676. {
  5677. Store (0x64, BRTL)
  5678. }
  5679. }
  5680.  
  5681. SWDS ()
  5682. If (SMA4)
  5683. {
  5684. Store (0x07, CHTP)
  5685. Store (0x0C, LBTL)
  5686. }
  5687. Else
  5688. {
  5689. Store (0x05, CHTP)
  5690. Store (0x0A, LBTL)
  5691. }
  5692.  
  5693. Store (WIN7, W7VR)
  5694. }
  5695. }
  5696.  
  5697. Name (_GPE, 0x17) // _GPE: General Purpose Events
  5698. Method (_Q01, 0, NotSerialized) // _Qxx: EC Query
  5699. {
  5700. }
  5701.  
  5702. Method (_Q02, 0, NotSerialized) // _Qxx: EC Query
  5703. {
  5704. Store (0x02, P80H)
  5705. If (CondRefOf (HBRT))
  5706. {
  5707. HBRT (0x04)
  5708. }
  5709.  
  5710. If (IGDS)
  5711. {
  5712. If (And (0x04, DSEN))
  5713. {
  5714. Store (0xF1, P80H)
  5715. BRTN (0x87)
  5716. }
  5717. Else
  5718. {
  5719. Store (0xF2, P80H)
  5720. Store (BRTL, Local0)
  5721. Store (^^^GFX0.CBLV, BRTL)
  5722. And (Add (BRTL, One), 0xFE, BRTL)
  5723. If (LGreaterEqual (BRTL, 0x0F))
  5724. {
  5725. Subtract (BRTL, 0x0A, BRTL)
  5726. }
  5727. Else
  5728. {
  5729. Store (0x05, BRTL)
  5730. }
  5731.  
  5732. ^^^GFX0.AINT (One, BRTL)
  5733. }
  5734. }
  5735. Else
  5736. {
  5737. Store (0xF3, P80H)
  5738. Notify (^^^P0P2.VGA.LCD, 0x87)
  5739. }
  5740. }
  5741.  
  5742. Method (_Q03, 0, NotSerialized) // _Qxx: EC Query
  5743. {
  5744. Store (0x03, P80H)
  5745. If (CondRefOf (HBRT))
  5746. {
  5747. HBRT (0x03)
  5748. }
  5749.  
  5750. If (IGDS)
  5751. {
  5752. If (And (0x04, DSEN))
  5753. {
  5754. Store (0xE1, P80H)
  5755. BRTN (0x86)
  5756. }
  5757. Else
  5758. {
  5759. Store (0xE2, P80H)
  5760. Store (BRTL, Local0)
  5761. Store (^^^GFX0.CBLV, BRTL)
  5762. And (Add (BRTL, One), 0xFE, BRTL)
  5763. If (LLessEqual (BRTL, 0x09))
  5764. {
  5765. Store (0x0A, BRTL)
  5766. }
  5767. Else
  5768. {
  5769. If (LLessEqual (BRTL, 0x5A))
  5770. {
  5771. Add (BRTL, 0x0A, BRTL)
  5772. }
  5773. }
  5774.  
  5775. ^^^GFX0.AINT (One, BRTL)
  5776. }
  5777. }
  5778. Else
  5779. {
  5780. Store (0xE3, P80H)
  5781. Notify (^^^P0P2.VGA.LCD, 0x86)
  5782. }
  5783. }
  5784.  
  5785. Method (_Q04, 0, NotSerialized) // _Qxx: EC Query
  5786. {
  5787. If (LEqual (OSYS, 0x07D6))
  5788. {
  5789. Store (0x04, P80H)
  5790. If (IGDS)
  5791. {
  5792. Notify (GFX0, 0x82)
  5793. }
  5794. Else
  5795. {
  5796. Store (0xF5, SMID)
  5797. Store (0xC5, SMIP)
  5798. Sleep (0xC8)
  5799. Notify (^^^P0P2.VGA, 0x80)
  5800. }
  5801. }
  5802. }
  5803.  
  5804. Method (_Q05, 0, NotSerialized) // _Qxx: EC Query
  5805. {
  5806. }
  5807.  
  5808. Method (_Q06, 0, NotSerialized) // _Qxx: EC Query
  5809. {
  5810. }
  5811.  
  5812. Method (_Q07, 0, NotSerialized) // _Qxx: EC Query
  5813. {
  5814. }
  5815.  
  5816. Method (_Q08, 0, NotSerialized) // _Qxx: EC Query
  5817. {
  5818. }
  5819.  
  5820. Method (_Q09, 0, NotSerialized) // _Qxx: EC Query
  5821. {
  5822. }
  5823.  
  5824. Method (_Q0A, 0, NotSerialized) // _Qxx: EC Query
  5825. {
  5826. Store (0x0A, P80H)
  5827. Store (ADIN, PWRS)
  5828. Notify (ADP1, 0x81)
  5829. Notify (BAT0, 0x81)
  5830. Notify (BAT0, 0x80)
  5831. Store (0x03, ^^^^WMID.WEID)
  5832. Store (Zero, ^^^^WMID.WMED)
  5833. Notify (WMID, 0x80)
  5834. PNOT ()
  5835. }
  5836.  
  5837. Method (_Q0B, 0, NotSerialized) // _Qxx: EC Query
  5838. {
  5839. Store (0x0B, P80H)
  5840. Store (RSCL, B0SC)
  5841. Store (BAIN, BNUM)
  5842. Notify (BAT0, 0x81)
  5843. }
  5844.  
  5845. Method (_Q0C, 0, NotSerialized) // _Qxx: EC Query
  5846. {
  5847. Store (0x0C, P80H)
  5848. Store (CLID, LIDS)
  5849. ^^^GFX0.GLID (LIDS)
  5850. Notify (LID0, 0x80)
  5851. }
  5852.  
  5853. Method (_Q0D, 0, NotSerialized) // _Qxx: EC Query
  5854. {
  5855. Store (0x0D, P80H)
  5856. Store (CLID, LIDS)
  5857. ^^^GFX0.GLID (LIDS)
  5858. Notify (LID0, 0x80)
  5859. }
  5860.  
  5861. Method (_Q10, 0, NotSerialized) // _Qxx: EC Query
  5862. {
  5863. }
  5864.  
  5865. Method (_Q11, 0, NotSerialized) // _Qxx: EC Query
  5866. {
  5867. }
  5868.  
  5869. Method (_Q12, 0, NotSerialized) // _Qxx: EC Query
  5870. {
  5871. If (LEqual (OSYS, 0x07D9))
  5872. {
  5873. Store (0x12, P80H)
  5874. If (BTLS)
  5875. {
  5876. Store (Zero, BTLS)
  5877. Store (Zero, WANE)
  5878. Store (Zero, BUTE)
  5879. }
  5880. Else
  5881. {
  5882. Store (One, BTLS)
  5883. If (WIRE)
  5884. {
  5885. If (LAnd (WLAN, LAnd (LNotEqual (WLVD, Zero), LNotEqual (
  5886. WLDD, Zero))))
  5887. {
  5888. Store (One, WANE)
  5889. }
  5890. Else
  5891. {
  5892. Store (Zero, WANE)
  5893. }
  5894.  
  5895. If (LAnd (BTTH, LAnd (LNotEqual (BTVD, Zero), LNotEqual (
  5896. BTDD, Zero))))
  5897. {
  5898. Store (One, BUTE)
  5899. }
  5900. Else
  5901. {
  5902. Store (Zero, BUTE)
  5903. }
  5904. }
  5905. Else
  5906. {
  5907. Store (One, WANE)
  5908. Store (One, BUTE)
  5909. }
  5910. }
  5911.  
  5912. Store (0x05, ^^^^WMID.WEID)
  5913. Store (Zero, ^^^^WMID.WMED)
  5914. Notify (WMID, 0x80)
  5915. }
  5916. Else
  5917. {
  5918. If (BTLS)
  5919. {
  5920. Store (Zero, BTLS)
  5921. Store (Zero, WLAN)
  5922. Store (Zero, BTTH)
  5923. Store (Zero, WANE)
  5924. Store (Zero, BUTE)
  5925. }
  5926. Else
  5927. {
  5928. Store (One, BTLS)
  5929. Store (One, WLAN)
  5930. Store (One, BTTH)
  5931. Store (One, WANE)
  5932. Store (One, BUTE)
  5933. }
  5934. }
  5935. }
  5936.  
  5937. Method (_Q14, 0, NotSerialized) // _Qxx: EC Query
  5938. {
  5939. Store (0x04, ^^^^WMID.WEID)
  5940. Store (Zero, ^^^^WMID.WMED)
  5941. Notify (WMID, 0x80)
  5942. }
  5943.  
  5944. Method (_Q15, 0, NotSerialized) // _Qxx: EC Query
  5945. {
  5946. If (LOr (LGreaterEqual (OSYS, 0x07D2), LLessEqual (OSYS, 0x07D0)))
  5947. {
  5948. ^^MBN2.NTFY ()
  5949. }
  5950. }
  5951.  
  5952. Method (_Q20, 0, NotSerialized) // _Qxx: EC Query
  5953. {
  5954. Store (0x20, P80H)
  5955. Store (CPUT, \_PR.CPU0._PPC)
  5956. PNOT ()
  5957. }
  5958.  
  5959. Method (_Q21, 0, NotSerialized) // _Qxx: EC Query
  5960. {
  5961. }
  5962.  
  5963. Method (_Q28, 0, NotSerialized) // _Qxx: EC Query
  5964. {
  5965. }
  5966.  
  5967. Method (_Q29, 0, NotSerialized) // _Qxx: EC Query
  5968. {
  5969. \_TZ.TSZ0.ECTC ()
  5970. }
  5971.  
  5972. Method (_Q40, 0, NotSerialized) // _Qxx: EC Query
  5973. {
  5974. If (^^^^BAT0.BT47)
  5975. {
  5976. Store (Zero, BCLL)
  5977. Notify (BAT0, 0x80)
  5978. }
  5979. Else
  5980. {
  5981. Store (0x40, P80H)
  5982. If (PWRS)
  5983. {
  5984. Store (Zero, BTCL)
  5985. }
  5986. Else
  5987. {
  5988. Store (One, BTCL)
  5989. Store (0x0A, BTFL)
  5990. Sleep (0x1388)
  5991. While (LGreaterEqual (BTFL, 0x05))
  5992. {
  5993. Sleep (0x03E8)
  5994. Notify (BAT0, 0x80)
  5995. Decrement (BTFL)
  5996. }
  5997.  
  5998. Store (Zero, BTCL)
  5999. }
  6000. }
  6001. }
  6002.  
  6003. Method (_Q41, 0, NotSerialized) // _Qxx: EC Query
  6004. {
  6005. Store (0x41, P80H)
  6006. Store (One, BTLS)
  6007. Store (One, WLAN)
  6008. Store (One, BTTH)
  6009. Store (One, WANE)
  6010. Store (One, BUTE)
  6011. }
  6012.  
  6013. Method (_Q42, 0, NotSerialized) // _Qxx: EC Query
  6014. {
  6015. Store (0x42, P80H)
  6016. Store (Zero, BTLS)
  6017. Store (Zero, WLAN)
  6018. Store (Zero, BTTH)
  6019. Store (Zero, WANE)
  6020. Store (Zero, BUTE)
  6021. }
  6022.  
  6023. Method (VGAD, 1, NotSerialized)
  6024. {
  6025. Store (Arg0, GPUS)
  6026. }
  6027.  
  6028. Method (SWDS, 0, NotSerialized)
  6029. {
  6030. If (LAnd (LEqual (WLVD, 0x14E4), LEqual (WLDD, 0x4727)))
  6031. {
  6032. If (LAnd (LEqual (WLSV, 0x103C), LEqual (WLSS, 0x1483)))
  6033. {
  6034. Store (One, COMB)
  6035. }
  6036. }
  6037. Else
  6038. {
  6039. If (LAnd (LEqual (WLVD, 0x1814), LEqual (WLDD, 0x3090)))
  6040. {
  6041. If (LAnd (LEqual (WLSV, 0x103C), LEqual (WLSS, 0x1453)))
  6042. {
  6043. Store (One, COMB)
  6044. }
  6045. }
  6046. Else
  6047. {
  6048. Store (Zero, COMB)
  6049. }
  6050. }
  6051.  
  6052. If (BTLS)
  6053. {
  6054. If (LAnd (WLAN, LAnd (LNotEqual (WLVD, Zero), LNotEqual (
  6055. WLDD, Zero))))
  6056. {
  6057. Store (One, WANE)
  6058. }
  6059. Else
  6060. {
  6061. Store (Zero, WANE)
  6062. }
  6063.  
  6064. If (LAnd (BTTH, LAnd (LNotEqual (BTVD, Zero), LNotEqual (
  6065. BTDD, Zero))))
  6066. {
  6067. Store (One, BUTE)
  6068. }
  6069. Else
  6070. {
  6071. Store (Zero, BUTE)
  6072. }
  6073. }
  6074. Else
  6075. {
  6076. Store (Zero, WANE)
  6077. Store (Zero, BUTE)
  6078. }
  6079.  
  6080. Store (One, WDSS)
  6081. }
  6082. }
  6083. }
  6084. }
  6085. }
  6086.  
  6087. Scope (\_SB)
  6088. {
  6089. Device (ADP1)
  6090. {
  6091. Name (_HID, "ACPI0003") // _HID: Hardware ID
  6092. Method (_PSR, 0, NotSerialized) // _PSR: Power Source
  6093. {
  6094. Store (^^PCI0.LPCB.EC.ADIN, Local0)
  6095. If (LEqual (Local0, Zero))
  6096. {
  6097. Return (Zero)
  6098. }
  6099. Else
  6100. {
  6101. Return (PWRS)
  6102. }
  6103. }
  6104.  
  6105. Method (_PCL, 0, NotSerialized) // _PCL: Power Consumer List
  6106. {
  6107. Return (_SB)
  6108. }
  6109. }
  6110.  
  6111. Device (LID0)
  6112. {
  6113. Name (_HID, EisaId ("PNP0C0D")) // _HID: Hardware ID
  6114. Method (_LID, 0, NotSerialized) // _LID: Lid Status
  6115. {
  6116. If (ECON)
  6117. {
  6118. Store (^^PCI0.LPCB.EC.CLID, Local0)
  6119. If (IGDS)
  6120. {
  6121. Store (Local0, LIDS)
  6122. Store (Local0, ^^PCI0.GFX0.CLID)
  6123. }
  6124.  
  6125. Return (Local0)
  6126. }
  6127. Else
  6128. {
  6129. If (IGDS)
  6130. {
  6131. Store (One, LIDS)
  6132. }
  6133.  
  6134. If (IGDS)
  6135. {
  6136. Store (LIDS, ^^PCI0.GFX0.CLID)
  6137. }
  6138.  
  6139. Return (One)
  6140. }
  6141. }
  6142. }
  6143.  
  6144. Device (PWRB)
  6145. {
  6146. Name (_HID, EisaId ("PNP0C0C")) // _HID: Hardware ID
  6147. }
  6148. }
  6149.  
  6150. Device (DMAC)
  6151. {
  6152. Name (_HID, EisaId ("PNP0200")) // _HID: Hardware ID
  6153. Name (_CRS, ResourceTemplate () // _CRS: Current Resource Settings
  6154. {
  6155. IO (Decode16,
  6156. 0x0000, // Range Minimum
  6157. 0x0000, // Range Maximum
  6158. 0x01, // Alignment
  6159. 0x20, // Length
  6160. )
  6161. IO (Decode16,
  6162. 0x0081, // Range Minimum
  6163. 0x0081, // Range Maximum
  6164. 0x01, // Alignment
  6165. 0x11, // Length
  6166. )
  6167. IO (Decode16,
  6168. 0x0093, // Range Minimum
  6169. 0x0093, // Range Maximum
  6170. 0x01, // Alignment
  6171. 0x0D, // Length
  6172. )
  6173. IO (Decode16,
  6174. 0x00C0, // Range Minimum
  6175. 0x00C0, // Range Maximum
  6176. 0x01, // Alignment
  6177. 0x20, // Length
  6178. )
  6179. DMA (Compatibility, NotBusMaster, Transfer8_16, )
  6180. {4}
  6181. })
  6182. }
  6183.  
  6184. Device (FWHD)
  6185. {
  6186. Name (_HID, EisaId ("INT0800")) // _HID: Hardware ID
  6187. Name (_CRS, ResourceTemplate () // _CRS: Current Resource Settings
  6188. {
  6189. Memory32Fixed (ReadOnly,
  6190. 0xFF000000, // Address Base
  6191. 0x01000000, // Address Length
  6192. )
  6193. })
  6194. }
  6195.  
  6196. Device (HPET)
  6197. {
  6198. Name (_HID, EisaId ("PNP0103")) // _HID: Hardware ID
  6199. Name (_UID, Zero) // _UID: Unique ID
  6200. Name (BUF0, ResourceTemplate ()
  6201. {
  6202. Memory32Fixed (ReadWrite,
  6203. 0xFED00000, // Address Base
  6204. 0x00000400, // Address Length
  6205. _Y0F)
  6206. })
  6207. Method (_STA, 0, NotSerialized) // _STA: Status
  6208. {
  6209. If (LGreaterEqual (OSYS, 0x07D1))
  6210. {
  6211. If (HPAE)
  6212. {
  6213. Return (0x0F)
  6214. }
  6215. }
  6216. Else
  6217. {
  6218. If (HPAE)
  6219. {
  6220. Return (0x0B)
  6221. }
  6222. }
  6223.  
  6224. Return (Zero)
  6225. }
  6226.  
  6227. Method (_CRS, 0, Serialized) // _CRS: Current Resource Settings
  6228. {
  6229. If (HPAE)
  6230. {
  6231. CreateDWordField (BUF0, \_SB.PCI0.LPCB.HPET._Y0F._BAS, HPT0) // _BAS: Base Address
  6232. If (LEqual (HPAS, One))
  6233. {
  6234. Store (0xFED01000, HPT0)
  6235. }
  6236.  
  6237. If (LEqual (HPAS, 0x02))
  6238. {
  6239. Store (0xFED02000, HPT0)
  6240. }
  6241.  
  6242. If (LEqual (HPAS, 0x03))
  6243. {
  6244. Store (0xFED03000, HPT0)
  6245. }
  6246. }
  6247.  
  6248. Return (BUF0)
  6249. }
  6250. }
  6251.  
  6252. Device (IPIC)
  6253. {
  6254. Name (_HID, EisaId ("PNP0000")) // _HID: Hardware ID
  6255. Name (_CRS, ResourceTemplate () // _CRS: Current Resource Settings
  6256. {
  6257. IO (Decode16,
  6258. 0x0020, // Range Minimum
  6259. 0x0020, // Range Maximum
  6260. 0x01, // Alignment
  6261. 0x02, // Length
  6262. )
  6263. IO (Decode16,
  6264. 0x0024, // Range Minimum
  6265. 0x0024, // Range Maximum
  6266. 0x01, // Alignment
  6267. 0x02, // Length
  6268. )
  6269. IO (Decode16,
  6270. 0x0028, // Range Minimum
  6271. 0x0028, // Range Maximum
  6272. 0x01, // Alignment
  6273. 0x02, // Length
  6274. )
  6275. IO (Decode16,
  6276. 0x002C, // Range Minimum
  6277. 0x002C, // Range Maximum
  6278. 0x01, // Alignment
  6279. 0x02, // Length
  6280. )
  6281. IO (Decode16,
  6282. 0x0030, // Range Minimum
  6283. 0x0030, // Range Maximum
  6284. 0x01, // Alignment
  6285. 0x02, // Length
  6286. )
  6287. IO (Decode16,
  6288. 0x0034, // Range Minimum
  6289. 0x0034, // Range Maximum
  6290. 0x01, // Alignment
  6291. 0x02, // Length
  6292. )
  6293. IO (Decode16,
  6294. 0x0038, // Range Minimum
  6295. 0x0038, // Range Maximum
  6296. 0x01, // Alignment
  6297. 0x02, // Length
  6298. )
  6299. IO (Decode16,
  6300. 0x003C, // Range Minimum
  6301. 0x003C, // Range Maximum
  6302. 0x01, // Alignment
  6303. 0x02, // Length
  6304. )
  6305. IO (Decode16,
  6306. 0x00A0, // Range Minimum
  6307. 0x00A0, // Range Maximum
  6308. 0x01, // Alignment
  6309. 0x02, // Length
  6310. )
  6311. IO (Decode16,
  6312. 0x00A4, // Range Minimum
  6313. 0x00A4, // Range Maximum
  6314. 0x01, // Alignment
  6315. 0x02, // Length
  6316. )
  6317. IO (Decode16,
  6318. 0x00A8, // Range Minimum
  6319. 0x00A8, // Range Maximum
  6320. 0x01, // Alignment
  6321. 0x02, // Length
  6322. )
  6323. IO (Decode16,
  6324. 0x00AC, // Range Minimum
  6325. 0x00AC, // Range Maximum
  6326. 0x01, // Alignment
  6327. 0x02, // Length
  6328. )
  6329. IO (Decode16,
  6330. 0x00B0, // Range Minimum
  6331. 0x00B0, // Range Maximum
  6332. 0x01, // Alignment
  6333. 0x02, // Length
  6334. )
  6335. IO (Decode16,
  6336. 0x00B4, // Range Minimum
  6337. 0x00B4, // Range Maximum
  6338. 0x01, // Alignment
  6339. 0x02, // Length
  6340. )
  6341. IO (Decode16,
  6342. 0x00B8, // Range Minimum
  6343. 0x00B8, // Range Maximum
  6344. 0x01, // Alignment
  6345. 0x02, // Length
  6346. )
  6347. IO (Decode16,
  6348. 0x00BC, // Range Minimum
  6349. 0x00BC, // Range Maximum
  6350. 0x01, // Alignment
  6351. 0x02, // Length
  6352. )
  6353. IO (Decode16,
  6354. 0x04D0, // Range Minimum
  6355. 0x04D0, // Range Maximum
  6356. 0x01, // Alignment
  6357. 0x02, // Length
  6358. )
  6359. IRQNoFlags ()
  6360. {2}
  6361. })
  6362. }
  6363.  
  6364. Device (MATH)
  6365. {
  6366. Name (_HID, EisaId ("PNP0C04")) // _HID: Hardware ID
  6367. Name (_CRS, ResourceTemplate () // _CRS: Current Resource Settings
  6368. {
  6369. IO (Decode16,
  6370. 0x00F0, // Range Minimum
  6371. 0x00F0, // Range Maximum
  6372. 0x01, // Alignment
  6373. 0x01, // Length
  6374. )
  6375. IRQNoFlags ()
  6376. {13}
  6377. })
  6378. }
  6379.  
  6380. Device (LDRC)
  6381. {
  6382. Name (_HID, EisaId ("PNP0C02")) // _HID: Hardware ID
  6383. Name (_UID, 0x02) // _UID: Unique ID
  6384. Name (_CRS, ResourceTemplate () // _CRS: Current Resource Settings
  6385. {
  6386. IO (Decode16,
  6387. 0x002E, // Range Minimum
  6388. 0x002E, // Range Maximum
  6389. 0x01, // Alignment
  6390. 0x02, // Length
  6391. )
  6392. IO (Decode16,
  6393. 0x004E, // Range Minimum
  6394. 0x004E, // Range Maximum
  6395. 0x01, // Alignment
  6396. 0x02, // Length
  6397. )
  6398. IO (Decode16,
  6399. 0x0061, // Range Minimum
  6400. 0x0061, // Range Maximum
  6401. 0x01, // Alignment
  6402. 0x01, // Length
  6403. )
  6404. IO (Decode16,
  6405. 0x0063, // Range Minimum
  6406. 0x0063, // Range Maximum
  6407. 0x01, // Alignment
  6408. 0x01, // Length
  6409. )
  6410. IO (Decode16,
  6411. 0x0065, // Range Minimum
  6412. 0x0065, // Range Maximum
  6413. 0x01, // Alignment
  6414. 0x01, // Length
  6415. )
  6416. IO (Decode16,
  6417. 0x0067, // Range Minimum
  6418. 0x0067, // Range Maximum
  6419. 0x01, // Alignment
  6420. 0x01, // Length
  6421. )
  6422. IO (Decode16,
  6423. 0x0070, // Range Minimum
  6424. 0x0070, // Range Maximum
  6425. 0x01, // Alignment
  6426. 0x01, // Length
  6427. )
  6428. IO (Decode16,
  6429. 0x0080, // Range Minimum
  6430. 0x0080, // Range Maximum
  6431. 0x01, // Alignment
  6432. 0x01, // Length
  6433. )
  6434. IO (Decode16,
  6435. 0x0092, // Range Minimum
  6436. 0x0092, // Range Maximum
  6437. 0x01, // Alignment
  6438. 0x01, // Length
  6439. )
  6440. IO (Decode16,
  6441. 0x00B2, // Range Minimum
  6442. 0x00B2, // Range Maximum
  6443. 0x01, // Alignment
  6444. 0x02, // Length
  6445. )
  6446. IO (Decode16,
  6447. 0x0680, // Range Minimum
  6448. 0x0680, // Range Maximum
  6449. 0x01, // Alignment
  6450. 0x20, // Length
  6451. )
  6452. IO (Decode16,
  6453. 0x0800, // Range Minimum
  6454. 0x0800, // Range Maximum
  6455. 0x01, // Alignment
  6456. 0x10, // Length
  6457. )
  6458. IO (Decode16,
  6459. 0x0810, // Range Minimum
  6460. 0x0810, // Range Maximum
  6461. 0x01, // Alignment
  6462. 0x04, // Length
  6463. )
  6464. IO (Decode16,
  6465. 0xFFFF, // Range Minimum
  6466. 0xFFFF, // Range Maximum
  6467. 0x01, // Alignment
  6468. 0x01, // Length
  6469. )
  6470. IO (Decode16,
  6471. 0x0400, // Range Minimum
  6472. 0x0400, // Range Maximum
  6473. 0x01, // Alignment
  6474. 0x80, // Length
  6475. )
  6476. IO (Decode16,
  6477. 0x0500, // Range Minimum
  6478. 0x0500, // Range Maximum
  6479. 0x01, // Alignment
  6480. 0x80, // Length
  6481. )
  6482. IO (Decode16,
  6483. 0x164E, // Range Minimum
  6484. 0x164E, // Range Maximum
  6485. 0x01, // Alignment
  6486. 0x02, // Length
  6487. )
  6488. })
  6489. }
  6490.  
  6491. Device (RTC)
  6492. {
  6493. Name (_HID, EisaId ("PNP0B00")) // _HID: Hardware ID
  6494. Name (_CRS, ResourceTemplate () // _CRS: Current Resource Settings
  6495. {
  6496. IO (Decode16,
  6497. 0x0070, // Range Minimum
  6498. 0x0070, // Range Maximum
  6499. 0x01, // Alignment
  6500. 0x08, // Length
  6501. )
  6502. IRQNoFlags ()
  6503. {8}
  6504. })
  6505. }
  6506.  
  6507. Device (TIMR)
  6508. {
  6509. Name (_HID, EisaId ("PNP0100")) // _HID: Hardware ID
  6510. Name (_CRS, ResourceTemplate () // _CRS: Current Resource Settings
  6511. {
  6512. IO (Decode16,
  6513. 0x0040, // Range Minimum
  6514. 0x0040, // Range Maximum
  6515. 0x01, // Alignment
  6516. 0x04, // Length
  6517. )
  6518. IO (Decode16,
  6519. 0x0050, // Range Minimum
  6520. 0x0050, // Range Maximum
  6521. 0x10, // Alignment
  6522. 0x04, // Length
  6523. )
  6524. IRQNoFlags ()
  6525. {0}
  6526. })
  6527. }
  6528.  
  6529. Device (PS2K)
  6530. {
  6531. Name (_HID, EisaId ("PNP0303")) // _HID: Hardware ID
  6532. Name (_CRS, ResourceTemplate () // _CRS: Current Resource Settings
  6533. {
  6534. IO (Decode16,
  6535. 0x0060, // Range Minimum
  6536. 0x0060, // Range Maximum
  6537. 0x01, // Alignment
  6538. 0x01, // Length
  6539. )
  6540. IO (Decode16,
  6541. 0x0064, // Range Minimum
  6542. 0x0064, // Range Maximum
  6543. 0x01, // Alignment
  6544. 0x01, // Length
  6545. )
  6546. IRQ (Edge, ActiveHigh, Exclusive, )
  6547. {1}
  6548. })
  6549. Name (_PRS, ResourceTemplate () // _PRS: Possible Resource Settings
  6550. {
  6551. StartDependentFn (0x00, 0x00)
  6552. {
  6553. FixedIO (
  6554. 0x0060, // Address
  6555. 0x01, // Length
  6556. )
  6557. FixedIO (
  6558. 0x0064, // Address
  6559. 0x01, // Length
  6560. )
  6561. IRQNoFlags ()
  6562. {1}
  6563. }
  6564. EndDependentFn ()
  6565. })
  6566. }
  6567.  
  6568. Device (PS2M)
  6569. {
  6570. Method (_HID, 0, NotSerialized) // _HID: Hardware ID
  6571. {
  6572. If (LLessEqual (PTYP, 0x0F))
  6573. {
  6574. Return ("*SYN1E25")
  6575. }
  6576. Else
  6577. {
  6578. If (LGreaterEqual (PTYP, 0x10))
  6579. {
  6580. Return ("*SYN1E2C")
  6581. }
  6582. Else
  6583. {
  6584. Return ("*SYN1E25")
  6585. }
  6586. }
  6587. }
  6588.  
  6589. Name (_CID, Package (0x03) // _CID: Compatible ID
  6590. {
  6591. EisaId ("SYN1E00"),
  6592. EisaId ("SYN0002"),
  6593. EisaId ("PNP0F13")
  6594. })
  6595. Name (_CRS, ResourceTemplate () // _CRS: Current Resource Settings
  6596. {
  6597. IRQ (Edge, ActiveHigh, Exclusive, )
  6598. {12}
  6599. })
  6600. Name (_PRS, ResourceTemplate () // _PRS: Possible Resource Settings
  6601. {
  6602. StartDependentFn (0x00, 0x00)
  6603. {
  6604. IRQNoFlags ()
  6605. {12}
  6606. }
  6607. EndDependentFn ()
  6608. })
  6609. }
  6610.  
  6611. Device (MBN2)
  6612. {
  6613. Name (_HID, EisaId ("PNP0C32")) // _HID: Hardware ID
  6614. Name (_UID, 0x02) // _UID: Unique ID
  6615. Method (_STA, 0, NotSerialized) // _STA: Status
  6616. {
  6617. If (LAnd (LLessEqual (OSYS, 0x07D2), LGreaterEqual (OSYS, 0x07D0)))
  6618. {
  6619. Return (Zero)
  6620. }
  6621. Else
  6622. {
  6623. Return (0x0F)
  6624. }
  6625. }
  6626.  
  6627. Method (GHID, 0, NotSerialized)
  6628. {
  6629. Return (Buffer (One)
  6630. {
  6631. 0x02
  6632. })
  6633. }
  6634.  
  6635. Method (NTFY, 0, NotSerialized)
  6636. {
  6637. Notify (MBN2, 0x80)
  6638. }
  6639. }
  6640. }
  6641.  
  6642. Device (EHC1)
  6643. {
  6644. Name (_ADR, 0x001D0000) // _ADR: Address
  6645. Method (_PSW, 1, NotSerialized) // _PSW: Power State Wake
  6646. {
  6647. If (Arg0)
  6648. {
  6649. If (^^LPCB.EC.ADIN)
  6650. {
  6651. Store (Zero, WTR2)
  6652. }
  6653. Else
  6654. {
  6655. Store (0x0F, WTR2)
  6656. }
  6657. }
  6658. Else
  6659. {
  6660. Store (0x0F, WTR2)
  6661. }
  6662. }
  6663.  
  6664. Method (_S3D, 0, NotSerialized) // _S3D: S3 Device State
  6665. {
  6666. Return (0x02)
  6667. }
  6668.  
  6669. Method (_S4D, 0, NotSerialized) // _S4D: S4 Device State
  6670. {
  6671. Return (0x02)
  6672. }
  6673.  
  6674. Device (HUBN)
  6675. {
  6676. Name (_ADR, Zero) // _ADR: Address
  6677. Device (PRTA)
  6678. {
  6679. Name (_ADR, One) // _ADR: Address
  6680. Name (_UPC, Package (0x04) // _UPC: USB Port Capabilities
  6681. {
  6682. 0xFF,
  6683. 0xFF,
  6684. Zero,
  6685. Zero
  6686. })
  6687. Name (_PLD, Package () // _PLD: Physical Location of Device
  6688. {
  6689. 0x81, 0x00, 0x30, 0x00
  6690. })
  6691. Method (_RMV, 0, NotSerialized) // _RMV: Removal Status
  6692. {
  6693. Return (Zero)
  6694. }
  6695.  
  6696. Method (_DSM, 4, Serialized) // _DSM: Device-Specific Method
  6697. {
  6698. If (LEqual (Arg0, Buffer (0x10)
  6699. {
  6700. /* 0000 */ 0x8F, 0x70, 0xFC, 0xA5, 0x75, 0x87, 0xA6, 0x4B,
  6701. /* 0008 */ 0xBD, 0x0C, 0xBA, 0x90, 0xA1, 0xEC, 0x72, 0xF8
  6702. }))
  6703. {
  6704. Name (T_0, Zero) // T_x: Emitted by ASL Compiler
  6705. Store (ToInteger (Arg2), T_0)
  6706. If (LEqual (T_0, Zero))
  6707. {
  6708. Name (T_1, Zero) // T_x: Emitted by ASL Compiler
  6709. Store (ToInteger (Arg1), T_1)
  6710. If (LEqual (T_1, One))
  6711. {
  6712. Return (Buffer (One)
  6713. {
  6714. 0x07
  6715. })
  6716. }
  6717. Else
  6718. {
  6719. Return (Buffer (One)
  6720. {
  6721. 0x00
  6722. })
  6723. }
  6724. }
  6725. Else
  6726. {
  6727. If (LEqual (T_0, One))
  6728. {
  6729. Return (One)
  6730. }
  6731. Else
  6732. {
  6733. If (LEqual (T_0, 0x02))
  6734. {
  6735. Return (SDGV)
  6736. }
  6737. Else
  6738. {
  6739. Return (Zero)
  6740. }
  6741. }
  6742. }
  6743. }
  6744. Else
  6745. {
  6746. Return (Zero)
  6747. }
  6748. }
  6749.  
  6750. Device (PRT1)
  6751. {
  6752. Name (_ADR, One) // _ADR: Address
  6753. }
  6754.  
  6755. Device (PRT2)
  6756. {
  6757. Name (_ADR, 0x02) // _ADR: Address
  6758. }
  6759.  
  6760. Device (PRT3)
  6761. {
  6762. Name (_ADR, 0x03) // _ADR: Address
  6763. }
  6764. }
  6765.  
  6766. Device (PRTB)
  6767. {
  6768. Name (_ADR, 0x02) // _ADR: Address
  6769. Name (_UPC, Package (0x04) // _UPC: USB Port Capabilities
  6770. {
  6771. 0xFF,
  6772. 0xFF,
  6773. Zero,
  6774. Zero
  6775. })
  6776. Name (_PLD, Package () // _PLD: Physical Location of Device
  6777. {
  6778. 0x81, 0x00, 0x30, 0x00
  6779. })
  6780. Method (_RMV, 0, NotSerialized) // _RMV: Removal Status
  6781. {
  6782. Return (Zero)
  6783. }
  6784.  
  6785. Method (_DSM, 4, Serialized) // _DSM: Device-Specific Method
  6786. {
  6787. If (LEqual (Arg0, Buffer (0x10)
  6788. {
  6789. /* 0000 */ 0x8F, 0x70, 0xFC, 0xA5, 0x75, 0x87, 0xA6, 0x4B,
  6790. /* 0008 */ 0xBD, 0x0C, 0xBA, 0x90, 0xA1, 0xEC, 0x72, 0xF8
  6791. }))
  6792. {
  6793. Name (T_0, Zero) // T_x: Emitted by ASL Compiler
  6794. Store (ToInteger (Arg2), T_0)
  6795. If (LEqual (T_0, Zero))
  6796. {
  6797. Name (T_1, Zero) // T_x: Emitted by ASL Compiler
  6798. Store (ToInteger (Arg1), T_1)
  6799. If (LEqual (T_1, One))
  6800. {
  6801. Return (Buffer (One)
  6802. {
  6803. 0x07
  6804. })
  6805. }
  6806. Else
  6807. {
  6808. Return (Buffer (One)
  6809. {
  6810. 0x00
  6811. })
  6812. }
  6813. }
  6814. Else
  6815. {
  6816. If (LEqual (T_0, One))
  6817. {
  6818. Return (One)
  6819. }
  6820. Else
  6821. {
  6822. If (LEqual (T_0, 0x02))
  6823. {
  6824. Return (SDGV)
  6825. }
  6826. Else
  6827. {
  6828. Return (Zero)
  6829. }
  6830. }
  6831. }
  6832. }
  6833. Else
  6834. {
  6835. Return (Zero)
  6836. }
  6837. }
  6838. }
  6839. }
  6840.  
  6841. Name (_PRW, Package (0x02) // _PRW: Power Resources for Wake
  6842. {
  6843. 0x0D,
  6844. 0x03
  6845. })
  6846. }
  6847.  
  6848. Device (EHC2)
  6849. {
  6850. Name (_ADR, 0x001A0000) // _ADR: Address
  6851. Method (_PSW, 1, NotSerialized) // _PSW: Power State Wake
  6852. {
  6853. If (Arg0)
  6854. {
  6855. If (^^LPCB.EC.ADIN)
  6856. {
  6857. Store (Zero, WTR1)
  6858. }
  6859. Else
  6860. {
  6861. Store (0x0F, WTR1)
  6862. }
  6863. }
  6864. Else
  6865. {
  6866. Store (0x0F, WTR1)
  6867. }
  6868. }
  6869.  
  6870. Method (_S3D, 0, NotSerialized) // _S3D: S3 Device State
  6871. {
  6872. Return (0x02)
  6873. }
  6874.  
  6875. Method (_S4D, 0, NotSerialized) // _S4D: S4 Device State
  6876. {
  6877. Return (0x02)
  6878. }
  6879.  
  6880. Device (HUBN)
  6881. {
  6882. Name (_ADR, Zero) // _ADR: Address
  6883. Device (PRTA)
  6884. {
  6885. Name (_ADR, One) // _ADR: Address
  6886. Name (_UPC, Package (0x04) // _UPC: USB Port Capabilities
  6887. {
  6888. 0xFF,
  6889. 0xFF,
  6890. Zero,
  6891. Zero
  6892. })
  6893. Name (_PLD, Package () // _PLD: Physical Location of Device
  6894. {
  6895. 0x81, 0x00, 0x30, 0x00
  6896. })
  6897. Method (_RMV, 0, NotSerialized) // _RMV: Removal Status
  6898. {
  6899. Return (Zero)
  6900. }
  6901.  
  6902. Method (_DSM, 4, Serialized) // _DSM: Device-Specific Method
  6903. {
  6904. If (LEqual (Arg0, Buffer (0x10)
  6905. {
  6906. /* 0000 */ 0x8F, 0x70, 0xFC, 0xA5, 0x75, 0x87, 0xA6, 0x4B,
  6907. /* 0008 */ 0xBD, 0x0C, 0xBA, 0x90, 0xA1, 0xEC, 0x72, 0xF8
  6908. }))
  6909. {
  6910. Name (T_0, Zero) // T_x: Emitted by ASL Compiler
  6911. Store (ToInteger (Arg2), T_0)
  6912. If (LEqual (T_0, Zero))
  6913. {
  6914. Name (T_1, Zero) // T_x: Emitted by ASL Compiler
  6915. Store (ToInteger (Arg1), T_1)
  6916. If (LEqual (T_1, One))
  6917. {
  6918. Return (Buffer (One)
  6919. {
  6920. 0x07
  6921. })
  6922. }
  6923. Else
  6924. {
  6925. Return (Buffer (One)
  6926. {
  6927. 0x00
  6928. })
  6929. }
  6930. }
  6931. Else
  6932. {
  6933. If (LEqual (T_0, One))
  6934. {
  6935. Return (One)
  6936. }
  6937. Else
  6938. {
  6939. If (LEqual (T_0, 0x02))
  6940. {
  6941. Return (SDGV)
  6942. }
  6943. Else
  6944. {
  6945. Return (Zero)
  6946. }
  6947. }
  6948. }
  6949. }
  6950. Else
  6951. {
  6952. Return (Zero)
  6953. }
  6954. }
  6955.  
  6956. Device (PRT1)
  6957. {
  6958. Name (_ADR, One) // _ADR: Address
  6959. Name (_UPC, Package (0x04) // _UPC: USB Port Capabilities
  6960. {
  6961. 0xFF,
  6962. 0xFF,
  6963. Zero,
  6964. Zero
  6965. })
  6966. Name (_PLD, Package () // _PLD: Physical Location of Device
  6967. {
  6968. 0x81, 0x00, 0x30, 0x00
  6969. })
  6970. }
  6971.  
  6972. Device (PRT3)
  6973. {
  6974. Name (_ADR, 0x03) // _ADR: Address
  6975. Name (_UPC, Package (0x04) // _UPC: USB Port Capabilities
  6976. {
  6977. 0xFF,
  6978. 0xFF,
  6979. Zero,
  6980. Zero
  6981. })
  6982. Name (_PLD, Package () // _PLD: Physical Location of Device
  6983. {
  6984. 0x81, 0x00, 0x30, 0x00
  6985. })
  6986. }
  6987.  
  6988. Device (PRT4)
  6989. {
  6990. Name (_ADR, 0x04) // _ADR: Address
  6991. Name (_UPC, Package (0x04) // _UPC: USB Port Capabilities
  6992. {
  6993. 0xFF,
  6994. 0xFF,
  6995. Zero,
  6996. Zero
  6997. })
  6998. Name (_PLD, Package () // _PLD: Physical Location of Device
  6999. {
  7000. 0x81, 0x00, 0x30, 0x00
  7001. })
  7002. }
  7003.  
  7004. Device (PRT5)
  7005. {
  7006. Name (_ADR, 0x05) // _ADR: Address
  7007. Name (_UPC, Package (0x04) // _UPC: USB Port Capabilities
  7008. {
  7009. 0xFF,
  7010. 0xFF,
  7011. Zero,
  7012. Zero
  7013. })
  7014. Name (_PLD, Package () // _PLD: Physical Location of Device
  7015. {
  7016. 0x81, 0x00, 0x30, 0x00
  7017. })
  7018. }
  7019. }
  7020.  
  7021. Device (PRTB)
  7022. {
  7023. Name (_ADR, 0x02) // _ADR: Address
  7024. Name (_UPC, Package (0x04) // _UPC: USB Port Capabilities
  7025. {
  7026. 0xFF,
  7027. 0xFF,
  7028. Zero,
  7029. Zero
  7030. })
  7031. Name (_PLD, Package () // _PLD: Physical Location of Device
  7032. {
  7033. 0x81, 0x00, 0x30, 0x00
  7034. })
  7035. Method (_RMV, 0, NotSerialized) // _RMV: Removal Status
  7036. {
  7037. Return (Zero)
  7038. }
  7039.  
  7040. Method (_DSM, 4, Serialized) // _DSM: Device-Specific Method
  7041. {
  7042. If (LEqual (Arg0, Buffer (0x10)
  7043. {
  7044. /* 0000 */ 0x8F, 0x70, 0xFC, 0xA5, 0x75, 0x87, 0xA6, 0x4B,
  7045. /* 0008 */ 0xBD, 0x0C, 0xBA, 0x90, 0xA1, 0xEC, 0x72, 0xF8
  7046. }))
  7047. {
  7048. Name (T_0, Zero) // T_x: Emitted by ASL Compiler
  7049. Store (ToInteger (Arg2), T_0)
  7050. If (LEqual (T_0, Zero))
  7051. {
  7052. Name (T_1, Zero) // T_x: Emitted by ASL Compiler
  7053. Store (ToInteger (Arg1), T_1)
  7054. If (LEqual (T_1, One))
  7055. {
  7056. Return (Buffer (One)
  7057. {
  7058. 0x07
  7059. })
  7060. }
  7061. Else
  7062. {
  7063. Return (Buffer (One)
  7064. {
  7065. 0x00
  7066. })
  7067. }
  7068. }
  7069. Else
  7070. {
  7071. If (LEqual (T_0, One))
  7072. {
  7073. Return (One)
  7074. }
  7075. Else
  7076. {
  7077. If (LEqual (T_0, 0x02))
  7078. {
  7079. Return (SDGV)
  7080. }
  7081. Else
  7082. {
  7083. Return (Zero)
  7084. }
  7085. }
  7086. }
  7087. }
  7088. Else
  7089. {
  7090. Return (Zero)
  7091. }
  7092. }
  7093. }
  7094. }
  7095.  
  7096. Name (_PRW, Package (0x02) // _PRW: Power Resources for Wake
  7097. {
  7098. 0x0D,
  7099. 0x03
  7100. })
  7101. }
  7102.  
  7103. Device (HDEF)
  7104. {
  7105. Name (_ADR, 0x001B0000) // _ADR: Address
  7106. OperationRegion (HDAR, PCI_Config, 0x4C, 0x10)
  7107. Field (HDAR, WordAcc, NoLock, Preserve)
  7108. {
  7109. DCKA, 1,
  7110. Offset (0x01),
  7111. DCKM, 1,
  7112. , 6,
  7113. DCKS, 1,
  7114. Offset (0x08),
  7115. , 15,
  7116. PMES, 1
  7117. }
  7118.  
  7119. Method (_PRW, 0, NotSerialized) // _PRW: Power Resources for Wake
  7120. {
  7121. If (WKMD)
  7122. {
  7123. Return (Package (0x02)
  7124. {
  7125. 0x0D,
  7126. 0x04
  7127. })
  7128. }
  7129. Else
  7130. {
  7131. Return (Package (0x02)
  7132. {
  7133. 0x0D,
  7134. Zero
  7135. })
  7136. }
  7137. }
  7138. }
  7139.  
  7140. Device (RP01)
  7141. {
  7142. Name (_ADR, 0x001C0000) // _ADR: Address
  7143. OperationRegion (PXCS, PCI_Config, 0x40, 0xC0)
  7144. Field (PXCS, AnyAcc, NoLock, WriteAsZeros)
  7145. {
  7146. Offset (0x10),
  7147. APL0, 1,
  7148. APL1, 1,
  7149. Offset (0x12),
  7150. , 13,
  7151. LASX, 1,
  7152. Offset (0x1A),
  7153. ABPX, 1,
  7154. , 2,
  7155. PDCX, 1,
  7156. , 2,
  7157. PDSX, 1,
  7158. Offset (0x1B),
  7159. LSCX, 1,
  7160. Offset (0x20),
  7161. Offset (0x22),
  7162. PSPX, 1,
  7163. Offset (0x98),
  7164. , 30,
  7165. HPEX, 1,
  7166. PMEX, 1,
  7167. , 30,
  7168. HPSX, 1,
  7169. PMSX, 1
  7170. }
  7171.  
  7172. Device (PXSX)
  7173. {
  7174. Name (_ADR, Zero) // _ADR: Address
  7175. Method (_PSW, 1, NotSerialized) // _PSW: Power State Wake
  7176. {
  7177. If (ECON)
  7178. {
  7179. If (Arg0)
  7180. {
  7181. Store (One, ^^^LPCB.EC.WOLE)
  7182. }
  7183. Else
  7184. {
  7185. Store (Zero, ^^^LPCB.EC.WOLE)
  7186. }
  7187. }
  7188. }
  7189.  
  7190. Name (_PRW, Package (0x02) // _PRW: Power Resources for Wake
  7191. {
  7192. 0x09,
  7193. 0x04
  7194. })
  7195. }
  7196.  
  7197. Method (_PRW, 0, NotSerialized) // _PRW: Power Resources for Wake
  7198. {
  7199. If (WKPM)
  7200. {
  7201. Return (Package (0x02)
  7202. {
  7203. 0x09,
  7204. 0x04
  7205. })
  7206. }
  7207. Else
  7208. {
  7209. Return (Package (0x02)
  7210. {
  7211. 0x09,
  7212. Zero
  7213. })
  7214. }
  7215. }
  7216.  
  7217. Method (_PRT, 0, NotSerialized) // _PRT: PCI Routing Table
  7218. {
  7219. If (PICM)
  7220. {
  7221. Return (AR04)
  7222. }
  7223.  
  7224. Return (PR04)
  7225. }
  7226. }
  7227.  
  7228. Device (RP02)
  7229. {
  7230. Name (_ADR, 0x001C0001) // _ADR: Address
  7231. OperationRegion (PXCS, PCI_Config, 0x40, 0xC0)
  7232. Field (PXCS, AnyAcc, NoLock, WriteAsZeros)
  7233. {
  7234. Offset (0x10),
  7235. APL0, 1,
  7236. APL1, 1,
  7237. Offset (0x12),
  7238. , 13,
  7239. LASX, 1,
  7240. Offset (0x1A),
  7241. ABPX, 1,
  7242. , 2,
  7243. PDCX, 1,
  7244. , 2,
  7245. PDSX, 1,
  7246. Offset (0x1B),
  7247. LSCX, 1,
  7248. Offset (0x20),
  7249. Offset (0x22),
  7250. PSPX, 1,
  7251. Offset (0x98),
  7252. , 30,
  7253. HPEX, 1,
  7254. PMEX, 1,
  7255. , 30,
  7256. HPSX, 1,
  7257. PMSX, 1
  7258. }
  7259.  
  7260. Device (PXSX)
  7261. {
  7262. Name (_ADR, Zero) // _ADR: Address
  7263. Name (_PRW, Package (0x02) // _PRW: Power Resources for Wake
  7264. {
  7265. 0x09,
  7266. 0x04
  7267. })
  7268. }
  7269.  
  7270. Method (_PRW, 0, NotSerialized) // _PRW: Power Resources for Wake
  7271. {
  7272. If (WKPM)
  7273. {
  7274. Return (Package (0x02)
  7275. {
  7276. 0x09,
  7277. 0x04
  7278. })
  7279. }
  7280. Else
  7281. {
  7282. Return (Package (0x02)
  7283. {
  7284. 0x09,
  7285. Zero
  7286. })
  7287. }
  7288. }
  7289.  
  7290. Method (_PRT, 0, NotSerialized) // _PRT: PCI Routing Table
  7291. {
  7292. If (PICM)
  7293. {
  7294. Return (AR05)
  7295. }
  7296.  
  7297. Return (PR05)
  7298. }
  7299. }
  7300.  
  7301. Device (RP03)
  7302. {
  7303. Name (_ADR, 0x001C0002) // _ADR: Address
  7304. OperationRegion (PXCS, PCI_Config, 0x40, 0xC0)
  7305. Field (PXCS, AnyAcc, NoLock, WriteAsZeros)
  7306. {
  7307. Offset (0x10),
  7308. APL0, 1,
  7309. APL1, 1,
  7310. Offset (0x12),
  7311. , 13,
  7312. LASX, 1,
  7313. Offset (0x1A),
  7314. ABPX, 1,
  7315. , 2,
  7316. PDCX, 1,
  7317. , 2,
  7318. PDSX, 1,
  7319. Offset (0x1B),
  7320. LSCX, 1,
  7321. Offset (0x20),
  7322. Offset (0x22),
  7323. PSPX, 1,
  7324. Offset (0x98),
  7325. , 30,
  7326. HPEX, 1,
  7327. PMEX, 1,
  7328. , 30,
  7329. HPSX, 1,
  7330. PMSX, 1
  7331. }
  7332.  
  7333. Device (PXSX)
  7334. {
  7335. Name (_ADR, Zero) // _ADR: Address
  7336. Name (_PRW, Package (0x02) // _PRW: Power Resources for Wake
  7337. {
  7338. 0x09,
  7339. 0x04
  7340. })
  7341. }
  7342.  
  7343. Method (_PRW, 0, NotSerialized) // _PRW: Power Resources for Wake
  7344. {
  7345. If (WKPM)
  7346. {
  7347. Return (Package (0x02)
  7348. {
  7349. 0x09,
  7350. 0x04
  7351. })
  7352. }
  7353. Else
  7354. {
  7355. Return (Package (0x02)
  7356. {
  7357. 0x09,
  7358. Zero
  7359. })
  7360. }
  7361. }
  7362.  
  7363. Method (_PRT, 0, NotSerialized) // _PRT: PCI Routing Table
  7364. {
  7365. If (PICM)
  7366. {
  7367. Return (AR06)
  7368. }
  7369.  
  7370. Return (PR06)
  7371. }
  7372. }
  7373.  
  7374. Device (RP04)
  7375. {
  7376. Name (_ADR, 0x001C0003) // _ADR: Address
  7377. OperationRegion (PXCS, PCI_Config, 0x40, 0xC0)
  7378. Field (PXCS, AnyAcc, NoLock, WriteAsZeros)
  7379. {
  7380. Offset (0x10),
  7381. APL0, 1,
  7382. APL1, 1,
  7383. Offset (0x12),
  7384. , 13,
  7385. LASX, 1,
  7386. Offset (0x1A),
  7387. ABPX, 1,
  7388. , 2,
  7389. PDCX, 1,
  7390. , 2,
  7391. PDSX, 1,
  7392. Offset (0x1B),
  7393. LSCX, 1,
  7394. Offset (0x20),
  7395. Offset (0x22),
  7396. PSPX, 1,
  7397. Offset (0x98),
  7398. , 30,
  7399. HPEX, 1,
  7400. PMEX, 1,
  7401. , 30,
  7402. HPSX, 1,
  7403. PMSX, 1
  7404. }
  7405.  
  7406. Device (PXSX)
  7407. {
  7408. Name (_ADR, Zero) // _ADR: Address
  7409. Name (_PRW, Package (0x02) // _PRW: Power Resources for Wake
  7410. {
  7411. 0x09,
  7412. 0x04
  7413. })
  7414. }
  7415.  
  7416. Method (_PRW, 0, NotSerialized) // _PRW: Power Resources for Wake
  7417. {
  7418. If (WKPM)
  7419. {
  7420. Return (Package (0x02)
  7421. {
  7422. 0x09,
  7423. 0x04
  7424. })
  7425. }
  7426. Else
  7427. {
  7428. Return (Package (0x02)
  7429. {
  7430. 0x09,
  7431. Zero
  7432. })
  7433. }
  7434. }
  7435.  
  7436. Method (_PRT, 0, NotSerialized) // _PRT: PCI Routing Table
  7437. {
  7438. If (PICM)
  7439. {
  7440. Return (AR07)
  7441. }
  7442.  
  7443. Return (PR07)
  7444. }
  7445. }
  7446.  
  7447. Device (RP05)
  7448. {
  7449. Name (_ADR, 0x001C0004) // _ADR: Address
  7450. OperationRegion (PXCS, PCI_Config, 0x40, 0xC0)
  7451. Field (PXCS, AnyAcc, NoLock, WriteAsZeros)
  7452. {
  7453. Offset (0x10),
  7454. APL0, 1,
  7455. APL1, 1,
  7456. Offset (0x12),
  7457. , 13,
  7458. LASX, 1,
  7459. Offset (0x1A),
  7460. ABPX, 1,
  7461. , 2,
  7462. PDCX, 1,
  7463. , 2,
  7464. PDSX, 1,
  7465. Offset (0x1B),
  7466. LSCX, 1,
  7467. Offset (0x20),
  7468. Offset (0x22),
  7469. PSPX, 1,
  7470. Offset (0x98),
  7471. , 30,
  7472. HPEX, 1,
  7473. PMEX, 1,
  7474. , 30,
  7475. HPSX, 1,
  7476. PMSX, 1
  7477. }
  7478.  
  7479. Device (PXSX)
  7480. {
  7481. Name (_ADR, Zero) // _ADR: Address
  7482. Name (_PRW, Package (0x02) // _PRW: Power Resources for Wake
  7483. {
  7484. 0x09,
  7485. 0x04
  7486. })
  7487. }
  7488.  
  7489. Method (_PRW, 0, NotSerialized) // _PRW: Power Resources for Wake
  7490. {
  7491. If (WKPM)
  7492. {
  7493. Return (Package (0x02)
  7494. {
  7495. 0x09,
  7496. 0x04
  7497. })
  7498. }
  7499. Else
  7500. {
  7501. Return (Package (0x02)
  7502. {
  7503. 0x09,
  7504. Zero
  7505. })
  7506. }
  7507. }
  7508.  
  7509. Method (_PRT, 0, NotSerialized) // _PRT: PCI Routing Table
  7510. {
  7511. If (PICM)
  7512. {
  7513. Return (AR08)
  7514. }
  7515.  
  7516. Return (PR08)
  7517. }
  7518. }
  7519.  
  7520. Device (RP07)
  7521. {
  7522. Name (_ADR, 0x001C0006) // _ADR: Address
  7523. OperationRegion (PXCS, PCI_Config, 0x40, 0xC0)
  7524. Field (PXCS, AnyAcc, NoLock, WriteAsZeros)
  7525. {
  7526. Offset (0x10),
  7527. APL0, 1,
  7528. APL1, 1,
  7529. Offset (0x12),
  7530. , 13,
  7531. LASX, 1,
  7532. Offset (0x1A),
  7533. ABPX, 1,
  7534. , 2,
  7535. PDCX, 1,
  7536. , 2,
  7537. PDSX, 1,
  7538. Offset (0x1B),
  7539. LSCX, 1,
  7540. Offset (0x20),
  7541. Offset (0x22),
  7542. PSPX, 1,
  7543. Offset (0x98),
  7544. , 30,
  7545. HPEX, 1,
  7546. PMEX, 1,
  7547. , 30,
  7548. HPSX, 1,
  7549. PMSX, 1
  7550. }
  7551.  
  7552. Device (PXSX)
  7553. {
  7554. Name (_ADR, Zero) // _ADR: Address
  7555. Name (_PRW, Package (0x02) // _PRW: Power Resources for Wake
  7556. {
  7557. 0x09,
  7558. 0x04
  7559. })
  7560. }
  7561.  
  7562. Method (_PRW, 0, NotSerialized) // _PRW: Power Resources for Wake
  7563. {
  7564. If (WKPM)
  7565. {
  7566. Return (Package (0x02)
  7567. {
  7568. 0x09,
  7569. 0x04
  7570. })
  7571. }
  7572. Else
  7573. {
  7574. Return (Package (0x02)
  7575. {
  7576. 0x09,
  7577. Zero
  7578. })
  7579. }
  7580. }
  7581.  
  7582. Method (_PRT, 0, NotSerialized) // _PRT: PCI Routing Table
  7583. {
  7584. If (PICM)
  7585. {
  7586. Return (AR0A)
  7587. }
  7588.  
  7589. Return (PR0A)
  7590. }
  7591. }
  7592.  
  7593. Device (RP08)
  7594. {
  7595. Name (_ADR, 0x001C0007) // _ADR: Address
  7596. OperationRegion (PXCS, PCI_Config, 0x40, 0xC0)
  7597. Field (PXCS, AnyAcc, NoLock, WriteAsZeros)
  7598. {
  7599. Offset (0x10),
  7600. APL0, 1,
  7601. APL1, 1,
  7602. Offset (0x12),
  7603. , 13,
  7604. LASX, 1,
  7605. Offset (0x1A),
  7606. ABPX, 1,
  7607. , 2,
  7608. PDCX, 1,
  7609. , 2,
  7610. PDSX, 1,
  7611. Offset (0x1B),
  7612. LSCX, 1,
  7613. Offset (0x20),
  7614. Offset (0x22),
  7615. PSPX, 1,
  7616. Offset (0x98),
  7617. , 30,
  7618. HPEX, 1,
  7619. PMEX, 1,
  7620. , 30,
  7621. HPSX, 1,
  7622. PMSX, 1
  7623. }
  7624.  
  7625. Device (PXSX)
  7626. {
  7627. Name (_ADR, Zero) // _ADR: Address
  7628. Name (_PRW, Package (0x02) // _PRW: Power Resources for Wake
  7629. {
  7630. 0x09,
  7631. 0x04
  7632. })
  7633. }
  7634.  
  7635. Method (_PRW, 0, NotSerialized) // _PRW: Power Resources for Wake
  7636. {
  7637. If (WKPM)
  7638. {
  7639. Return (Package (0x02)
  7640. {
  7641. 0x09,
  7642. 0x04
  7643. })
  7644. }
  7645. Else
  7646. {
  7647. Return (Package (0x02)
  7648. {
  7649. 0x09,
  7650. Zero
  7651. })
  7652. }
  7653. }
  7654.  
  7655. Method (_PRT, 0, NotSerialized) // _PRT: PCI Routing Table
  7656. {
  7657. If (PICM)
  7658. {
  7659. Return (AR0B)
  7660. }
  7661.  
  7662. Return (PR0B)
  7663. }
  7664. }
  7665.  
  7666. Device (IO10)
  7667. {
  7668. Name (_ADR, 0x00080000) // _ADR: Address
  7669. OperationRegion (IBUS, PCI_Config, 0xD0, 0xE0)
  7670. Field (IBUS, DWordAcc, NoLock, Preserve)
  7671. {
  7672. , 26,
  7673. TOLM, 6,
  7674. , 26,
  7675. TOHM, 38,
  7676. Offset (0xB0),
  7677. VTEN, 1,
  7678. , 11,
  7679. VTBA, 20
  7680. }
  7681. }
  7682.  
  7683. Device (IO1X)
  7684. {
  7685. Name (_ADR, 0x00080001) // _ADR: Address
  7686. OperationRegion (PBIC, PCI_Config, Zero, 0xF0)
  7687. Field (PBIC, DWordAcc, NoLock, Preserve)
  7688. {
  7689. Offset (0x7C),
  7690. SR0, 32,
  7691. SR1, 32,
  7692. SR2, 32,
  7693. SR3, 32,
  7694. SR4, 32,
  7695. SR5, 32,
  7696. SR6, 32,
  7697. SR7, 32,
  7698. SR8, 32,
  7699. SR9, 32
  7700. }
  7701. }
  7702.  
  7703. Device (IIO0)
  7704. {
  7705. Name (_ADR, 0x00140000) // _ADR: Address
  7706. OperationRegion (IBUS, PCI_Config, 0xD0, 0xE0)
  7707. Field (IBUS, DWordAcc, NoLock, Preserve)
  7708. {
  7709. , 26,
  7710. TOLM, 6,
  7711. , 26,
  7712. TOHM, 38,
  7713. Offset (0xB0),
  7714. VTEN, 1,
  7715. , 11,
  7716. VTBA, 20
  7717. }
  7718. }
  7719.  
  7720. Device (IIOX)
  7721. {
  7722. Name (_ADR, 0x00140001) // _ADR: Address
  7723. OperationRegion (PBIC, PCI_Config, Zero, 0xF0)
  7724. Field (PBIC, DWordAcc, NoLock, Preserve)
  7725. {
  7726. Offset (0x7C),
  7727. SR0, 32,
  7728. SR1, 32,
  7729. SR2, 32,
  7730. SR3, 32,
  7731. SR4, 32,
  7732. SR5, 32,
  7733. SR6, 32,
  7734. SR7, 32,
  7735. SR8, 32,
  7736. SR9, 32
  7737. }
  7738. }
  7739.  
  7740. Device (PEG3)
  7741. {
  7742. Name (_ADR, 0x00030000) // _ADR: Address
  7743. Name (_PRW, Package (0x02) // _PRW: Power Resources for Wake
  7744. {
  7745. 0x09,
  7746. 0x04
  7747. })
  7748. Method (_PRT, 0, NotSerialized) // _PRT: PCI Routing Table
  7749. {
  7750. If (PICM)
  7751. {
  7752. Return (AR0C)
  7753. }
  7754.  
  7755. Return (PR0C)
  7756. }
  7757. }
  7758.  
  7759. Device (PEG5)
  7760. {
  7761. Name (_ADR, 0x00050000) // _ADR: Address
  7762. Name (_PRW, Package (0x02) // _PRW: Power Resources for Wake
  7763. {
  7764. 0x09,
  7765. 0x04
  7766. })
  7767. Method (_PRT, 0, NotSerialized) // _PRT: PCI Routing Table
  7768. {
  7769. If (PICM)
  7770. {
  7771. Return (AR0C)
  7772. }
  7773.  
  7774. Return (PR0C)
  7775. }
  7776. }
  7777.  
  7778. Device (PEG6)
  7779. {
  7780. Name (_ADR, 0x00060000) // _ADR: Address
  7781. Name (_PRW, Package (0x02) // _PRW: Power Resources for Wake
  7782. {
  7783. 0x09,
  7784. 0x04
  7785. })
  7786. }
  7787. }
  7788.  
  7789. OperationRegion (EXCO, SystemIO, 0x72, 0x02)
  7790. Field (EXCO, ByteAcc, NoLock, Preserve)
  7791. {
  7792. INDX, 8,
  7793. DATA, 8
  7794. }
  7795.  
  7796. IndexField (INDX, DATA, ByteAcc, NoLock, Preserve)
  7797. {
  7798. Offset (0x6A),
  7799. BTLS, 1,
  7800. WLAN, 1,
  7801. BTTH, 1
  7802. }
  7803.  
  7804. Name (WIRE, Zero)
  7805. Name (COMB, Zero)
  7806. Device (WMID)
  7807. {
  7808. Name (WCDS, Package (0x32)
  7809. {
  7810. 0x04,
  7811. 0x04,
  7812. 0x04,
  7813. Zero,
  7814. 0x04,
  7815. 0x04,
  7816. Zero,
  7817. Zero,
  7818. 0x04,
  7819. 0x04,
  7820. 0x0C,
  7821. Zero,
  7822. Zero,
  7823. Zero,
  7824. Zero,
  7825. 0x06,
  7826. Zero,
  7827. Zero,
  7828. Zero,
  7829. 0x04,
  7830. Zero,
  7831. Zero,
  7832. Zero,
  7833. Zero,
  7834. Zero,
  7835. Zero,
  7836. 0x04,
  7837. Zero,
  7838. 0x04,
  7839. 0x04,
  7840. 0x04,
  7841. Zero,
  7842. Zero,
  7843. Zero,
  7844. Zero,
  7845. Zero,
  7846. Zero,
  7847. Zero,
  7848. Zero,
  7849. Zero,
  7850. 0x04,
  7851. 0x04,
  7852. 0x04,
  7853. Zero,
  7854. Zero,
  7855. Zero,
  7856. Zero,
  7857. 0x04,
  7858. Zero,
  7859. Zero
  7860. })
  7861. Name (CPDS, Package (0x03)
  7862. {
  7863. Zero,
  7864. 0x04,
  7865. 0x04
  7866. })
  7867. Method (HWCD, 2, NotSerialized)
  7868. {
  7869. CreateDWordField (Arg1, Zero, SGNT)
  7870. CreateDWordField (Arg1, 0x04, CMND)
  7871. CreateDWordField (Arg1, 0x08, CMDT)
  7872. CreateDWordField (Arg1, 0x0C, DSIN)
  7873. CreateDWordField (Arg1, 0x10, CMPK)
  7874. If (LEqual (Arg0, One))
  7875. {
  7876. Store (Zero, Local0)
  7877. }
  7878.  
  7879. If (LEqual (Arg0, 0x02))
  7880. {
  7881. Store (0x04, Local0)
  7882. }
  7883.  
  7884. If (LEqual (Arg0, 0x03))
  7885. {
  7886. Store (0x80, Local0)
  7887. }
  7888.  
  7889. If (LEqual (Arg0, 0x04))
  7890. {
  7891. Store (0x0400, Local0)
  7892. }
  7893.  
  7894. If (LEqual (Arg0, 0x05))
  7895. {
  7896. Store (0x1000, Local0)
  7897. }
  7898.  
  7899. Store (Buffer (Add (0x08, Local0)) {}, Local1)
  7900. CreateDWordField (Local1, Zero, SOUT)
  7901. CreateDWordField (Local1, 0x04, RTCD)
  7902. Store (DSIN, Local5)
  7903. If (LGreater (DSIN, 0x1000))
  7904. {
  7905. Store (0x1000, Local5)
  7906. }
  7907.  
  7908. CreateField (Arg1, Zero, Multiply (Add (Local5, 0x10), 0x08),
  7909. DATI)
  7910. Store (0x4C494146, SOUT)
  7911. Store (0x02, RTCD)
  7912. Store (0x03, RTCD)
  7913. If (LEqual (CMND, One))
  7914. {
  7915. Store ("Read BIOS config command----", Debug)
  7916. Store (0x04, RTCD)
  7917. If (LEqual (CMDT, 0x07))
  7918. {
  7919. If (DSIN)
  7920. {
  7921. Store (0x67, P80H)
  7922. Store (DerefOf (Index (Arg1, 0x10)), Local3)
  7923. Store (GBAT (Local3), Local2)
  7924. Store (Zero, RTCD)
  7925. }
  7926. Else
  7927. {
  7928. Store (0x05, RTCD)
  7929. }
  7930. }
  7931.  
  7932. If (LEqual (CMDT, 0x08))
  7933. {
  7934. Store (0x68, P80H)
  7935. Store (GBBT (), Local2)
  7936. Store (Zero, RTCD)
  7937. }
  7938.  
  7939. If (LEqual (CMDT, 0x09))
  7940. {
  7941. Store (0x69, P80H)
  7942. Store (GHKS (), Local2)
  7943. Store (Zero, RTCD)
  7944. }
  7945.  
  7946. If (LEqual (CMDT, 0x0A))
  7947. {
  7948. Store (0x6A, P80H)
  7949. Store (GHKF (), Local2)
  7950. Store (Zero, RTCD)
  7951. }
  7952.  
  7953. If (LEqual (CMDT, 0x0C))
  7954. {
  7955. Store (0x6C, P80H)
  7956. Store (GLBB (), Local2)
  7957. Store (Zero, RTCD)
  7958. }
  7959.  
  7960. If (LEqual (CMDT, 0x0D))
  7961. {
  7962. Store (0x6D, P80H)
  7963. Store (GFRT (), Local2)
  7964. Store (Zero, RTCD)
  7965. }
  7966.  
  7967. If (LEqual (CMDT, 0x0F))
  7968. {
  7969. Store (0x6F, P80H)
  7970. Store (GSAS (), Local2)
  7971. Store (Zero, RTCD)
  7972. }
  7973.  
  7974. If (LEqual (CMDT, 0x10))
  7975. {
  7976. Store (0x70, P80H)
  7977. Store (GWSD (), Local2)
  7978. Store (Zero, RTCD)
  7979. }
  7980.  
  7981. If (LEqual (CMDT, 0x1B))
  7982. {
  7983. Store (0x7B, P80H)
  7984. Store (GWDI (), Local2)
  7985. Store (Zero, RTCD)
  7986. }
  7987.  
  7988. If (LEqual (CMDT, 0x1D))
  7989. {
  7990. Store (0x7D, P80H)
  7991. Store (GSDC (), Local2)
  7992. Store (Zero, RTCD)
  7993. }
  7994.  
  7995. If (LEqual (CMDT, 0x1E))
  7996. {
  7997. Store (0x7E, P80H)
  7998. Store (GBUS (), Local2)
  7999. Store (Zero, RTCD)
  8000. }
  8001.  
  8002. If (LEqual (CMDT, 0x1F))
  8003. {
  8004. Store (0x7F, P80H)
  8005. Store (GBCC (), Local2)
  8006. Store (Zero, RTCD)
  8007. }
  8008.  
  8009. If (LEqual (CMDT, 0x29))
  8010. {
  8011. Store (0x89, P80H)
  8012. Store (GFCC (), Local2)
  8013. Store (Zero, RTCD)
  8014. }
  8015.  
  8016. If (LEqual (CMDT, 0x2A))
  8017. {
  8018. Store (0x8A, P80H)
  8019. Store (GPCS (), Local2)
  8020. Store (Zero, RTCD)
  8021. }
  8022.  
  8023. If (LEqual (CMDT, 0x2B))
  8024. {
  8025. Store (0x8B, P80H)
  8026. Store (GBCO (), Local2)
  8027. Store (Zero, RTCD)
  8028. }
  8029. }
  8030.  
  8031. If (LEqual (CMND, 0x02))
  8032. {
  8033. Store ("Write BIOS config command start------", Debug)
  8034. Store (0x04, RTCD)
  8035. If (LAnd (LGreater (CMDT, Zero), LLessEqual (CMDT, 0x32)))
  8036. {
  8037. If (LLess (DSIN, DerefOf (Index (WCDS, Subtract (CMDT, One)
  8038. ))))
  8039. {
  8040. Store (0x05, RTCD)
  8041. }
  8042. Else
  8043. {
  8044. CreateDWordField (Arg1, 0x10, DWRD)
  8045. If (LEqual (CMDT, 0x09))
  8046. {
  8047. Store (0x89, P80H)
  8048. Store (SHKS (DWRD), Local2)
  8049. Store (Zero, RTCD)
  8050. }
  8051.  
  8052. If (LEqual (CMDT, 0x0A))
  8053. {
  8054. Store (0x8A, P80H)
  8055. Store (SHKF (DWRD), Local2)
  8056. Store (Zero, RTCD)
  8057. }
  8058.  
  8059. If (LEqual (CMDT, 0x10))
  8060. {
  8061. Store (0x90, P80H)
  8062. CreateWordField (Arg1, 0x10, HSD0)
  8063. CreateWordField (Arg1, 0x12, HSD1)
  8064. CreateWordField (Arg1, 0x14, HSD2)
  8065. CreateWordField (Arg1, 0x16, HSD3)
  8066. If (LEqual (PREV, 0x00303231))
  8067. {
  8068. Or (HSD0, ShiftLeft (HSD1, 0x10), Local3)
  8069. Store (SWSD (Local3, HSD2, HSD3), Local2)
  8070. }
  8071. Else
  8072. {
  8073. Or (0x3032, ShiftLeft (HSD0, 0x10), Local3)
  8074. Store (SWSD (Local3, HSD1, HSD2), Local2)
  8075. }
  8076.  
  8077. Store (Zero, RTCD)
  8078. }
  8079.  
  8080. If (LEqual (CMDT, 0x1B))
  8081. {
  8082. Store (0x9B, P80H)
  8083. Store (SWDS (DWRD), Local2)
  8084. Store (Zero, RTCD)
  8085. }
  8086.  
  8087. If (LEqual (CMDT, 0x1D))
  8088. {
  8089. Store (0x9D, P80H)
  8090. Store (SDLC (DWRD), Local2)
  8091. Store (Zero, RTCD)
  8092. }
  8093.  
  8094. If (LEqual (CMDT, 0x1E))
  8095. {
  8096. Store (0x9E, P80H)
  8097. Store (SBUS (DWRD), Local2)
  8098. Store (Zero, RTCD)
  8099. }
  8100.  
  8101. If (LEqual (CMDT, 0x1F))
  8102. {
  8103. Store (0x9F, P80H)
  8104. Store (SBCC (DWRD), Local2)
  8105. Store (Zero, RTCD)
  8106. }
  8107.  
  8108. If (LEqual (CMDT, 0x29))
  8109. {
  8110. Store (0xA9, P80H)
  8111. Store (SFCC (DWRD), Local2)
  8112. Store (Zero, RTCD)
  8113. }
  8114.  
  8115. If (LEqual (CMDT, 0x2A))
  8116. {
  8117. Store (0xAA, P80H)
  8118. Store (SPCS (DWRD), Local2)
  8119. Store (Zero, RTCD)
  8120. }
  8121.  
  8122. If (LEqual (CMDT, 0x2B))
  8123. {
  8124. Store (0xAB, P80H)
  8125. Store (SBCO (DWRD), Local2)
  8126. Store (Zero, RTCD)
  8127. }
  8128. }
  8129. }
  8130. }
  8131.  
  8132. If (LEqual (CMND, 0x00020002))
  8133. {
  8134. Store ("Computrace - Command 20002h start------", Debug)
  8135. Store (0x04, RTCD)
  8136. If (LAnd (LGreater (CMDT, Zero), LLessEqual (CMDT, 0x06)))
  8137. {
  8138. If (LLess (DSIN, DerefOf (Index (CPDS, Subtract (CMDT, One)
  8139. ))))
  8140. {
  8141. Store (0x05, RTCD)
  8142. }
  8143. Else
  8144. {
  8145. If (LEqual (CMDT, One))
  8146. {
  8147. Store (0xA1, P80H)
  8148. Store (CSTA (), Local2)
  8149. Store (Zero, RTCD)
  8150. }
  8151.  
  8152. If (LEqual (CMDT, 0x02))
  8153. {
  8154. Store (0xA2, P80H)
  8155. Store (CACT (CMPK), Local2)
  8156. Store (Zero, RTCD)
  8157. }
  8158.  
  8159. If (LEqual (CMDT, 0x03))
  8160. {
  8161. Store (0xA3, P80H)
  8162. Store (CDAC (CMPK), Local2)
  8163. Store (Zero, RTCD)
  8164. }
  8165. }
  8166. }
  8167. }
  8168.  
  8169. If (LEqual (RTCD, Zero))
  8170. {
  8171. Store (DerefOf (Index (Local2, Zero)), RTCD)
  8172. If (LEqual (RTCD, Zero))
  8173. {
  8174. If (LLessEqual (DerefOf (Index (Local2, One)), Local0))
  8175. {
  8176. Store (Zero, Local0)
  8177. While (LLess (Local0, DerefOf (Index (Local2, One))))
  8178. {
  8179. Store (DerefOf (Index (DerefOf (Index (Local2, 0x02)), Local0)),
  8180. Index (Local1, Add (Local0, 0x08)))
  8181. Increment (Local0)
  8182. }
  8183.  
  8184. Store (0x53534150, SOUT)
  8185. }
  8186. Else
  8187. {
  8188. Store (0x05, RTCD)
  8189. }
  8190. }
  8191. }
  8192.  
  8193. Return (Local1)
  8194. }
  8195.  
  8196. Method (CSTA, 0, NotSerialized)
  8197. {
  8198. Store (Package (0x03)
  8199. {
  8200. Zero,
  8201. 0x04,
  8202. Buffer (0x04)
  8203. {
  8204. 0x00, 0x00, 0x00, 0x00
  8205. }
  8206. }, Local0)
  8207. Store (One, IAOR)
  8208. Store (0xC1, SMIP)
  8209. If (LEqual (IAOR, One))
  8210. {
  8211. Store (0x1C, Index (Local0, Zero))
  8212. }
  8213. Else
  8214. {
  8215. Store (IAOR, Index (Local0, Zero))
  8216. Store (And (CDAT, 0xFF), Index (DerefOf (Index (Local0, 0x02
  8217. )), Zero))
  8218. }
  8219.  
  8220. Return (Local0)
  8221. }
  8222.  
  8223. Method (CACT, 1, NotSerialized)
  8224. {
  8225. Store (Package (0x02)
  8226. {
  8227. Zero,
  8228. Zero
  8229. }, Local0)
  8230. Store (0x02, IAOR)
  8231. Store (Arg0, CDAT)
  8232. Store (0xC1, SMIP)
  8233. If (LEqual (IAOR, 0x02))
  8234. {
  8235. Store (0x1C, Index (Local0, Zero))
  8236. }
  8237. Else
  8238. {
  8239. Store (IAOR, Index (Local0, Zero))
  8240. }
  8241.  
  8242. Store (Zero, CDAT)
  8243. Return (Local0)
  8244. }
  8245.  
  8246. Method (CDAC, 1, NotSerialized)
  8247. {
  8248. Store (Package (0x02)
  8249. {
  8250. Zero,
  8251. Zero
  8252. }, Local0)
  8253. Store (0x03, IAOR)
  8254. Store (Arg0, CDAT)
  8255. Store (0xC1, SMIP)
  8256. If (LEqual (IAOR, 0x03))
  8257. {
  8258. Store (0x1C, Index (Local0, Zero))
  8259. }
  8260. Else
  8261. {
  8262. Store (IAOR, Index (Local0, Zero))
  8263. }
  8264.  
  8265. Store (Zero, CDAT)
  8266. Return (Local0)
  8267. }
  8268.  
  8269. Method (GFCC, 0, NotSerialized)
  8270. {
  8271. Store (Package (0x03)
  8272. {
  8273. Zero,
  8274. 0x04,
  8275. Buffer (0x04)
  8276. {
  8277. 0x00, 0x00, 0x00, 0x00
  8278. }
  8279. }, Local0)
  8280. Store (Zero, Index (Local0, Zero))
  8281. Store (And (FACM, 0xFF), Index (DerefOf (Index (Local0, 0x02
  8282. )), Zero))
  8283. Return (Local0)
  8284. }
  8285.  
  8286. Method (SFCC, 1, NotSerialized)
  8287. {
  8288. Store (Package (0x02)
  8289. {
  8290. Zero,
  8291. Zero
  8292. }, Local0)
  8293. Store (Arg0, FACM)
  8294. HSMI (One)
  8295. Return (Local0)
  8296. }
  8297.  
  8298. Name (_HID, EisaId ("PNP0C14")) // _HID: Hardware ID
  8299. Name (_UID, Zero) // _UID: Unique ID
  8300. Name (WEID, Zero)
  8301. Name (WMED, Zero)
  8302. Mutex (MWMI, 0x00)
  8303. Name (_WDG, Buffer (0x50)
  8304. {
  8305. /* 0000 */ 0x34, 0xF0, 0xB7, 0x5F, 0x63, 0x2C, 0xE9, 0x45,
  8306. /* 0008 */ 0xBE, 0x91, 0x3D, 0x44, 0xE2, 0xC7, 0x07, 0xE4,
  8307. /* 0010 */ 0x41, 0x44, 0x01, 0x02, 0x79, 0x42, 0xF2, 0x95,
  8308. /* 0018 */ 0x7B, 0x4D, 0x34, 0x43, 0x93, 0x87, 0xAC, 0xCD,
  8309. /* 0020 */ 0xC6, 0x7E, 0xF6, 0x1C, 0x80, 0x00, 0x01, 0x08,
  8310. /* 0028 */ 0x21, 0x12, 0x90, 0x05, 0x66, 0xD5, 0xD1, 0x11,
  8311. /* 0030 */ 0xB2, 0xF0, 0x00, 0xA0, 0xC9, 0x06, 0x29, 0x10,
  8312. /* 0038 */ 0x41, 0x45, 0x01, 0x00, 0xD4, 0x2B, 0x99, 0xD0,
  8313. /* 0040 */ 0x7C, 0xA4, 0xFE, 0x4E, 0xB0, 0x72, 0x32, 0x4A,
  8314. /* 0048 */ 0xEC, 0x92, 0x29, 0x6C, 0x42, 0x43, 0x01, 0x00
  8315. })
  8316. Method (WMAD, 3, NotSerialized)
  8317. {
  8318. Return (HWCD (Arg1, Arg2))
  8319. }
  8320.  
  8321. Method (GBAT, 1, NotSerialized)
  8322. {
  8323. If (LNotEqual (Arg0, Zero))
  8324. {
  8325. Store (Package (0x02)
  8326. {
  8327. 0x06,
  8328. Zero
  8329. }, Local0)
  8330. }
  8331. Else
  8332. {
  8333. If (ECON)
  8334. {
  8335. If (LNot (^^PCI0.LPCB.EC.BAIN))
  8336. {
  8337. Store (Package (0x02)
  8338. {
  8339. 0x34,
  8340. Zero
  8341. }, Local0)
  8342. Return (Local0)
  8343. }
  8344.  
  8345. Store (Package (0x03)
  8346. {
  8347. Zero,
  8348. 0x80,
  8349. Buffer (0x80) {}
  8350. }, Local0)
  8351. Store (^^PCI0.LPCB.EC.BDCL, Index (DerefOf (Index (Local0, 0x02)), Zero))
  8352. Store (^^PCI0.LPCB.EC.BDCH, Index (DerefOf (Index (Local0, 0x02)), One))
  8353. Store (^^PCI0.LPCB.EC.FCCL, Index (DerefOf (Index (Local0, 0x02)), 0x02))
  8354. Store (^^PCI0.LPCB.EC.FCCH, Index (DerefOf (Index (Local0, 0x02)), 0x03))
  8355. Store (^^PCI0.LPCB.EC.BRCL, Index (DerefOf (Index (Local0, 0x02)), 0x04))
  8356. Store (^^PCI0.LPCB.EC.BRCH, Index (DerefOf (Index (Local0, 0x02)), 0x05))
  8357. Store (^^PCI0.LPCB.EC.BMEL, Index (DerefOf (Index (Local0, 0x02)), 0x06))
  8358. Store (^^PCI0.LPCB.EC.BMEH, Index (DerefOf (Index (Local0, 0x02)), 0x07))
  8359. Store (^^PCI0.LPCB.EC.BCTL, Index (DerefOf (Index (Local0, 0x02)), 0x08))
  8360. Store (^^PCI0.LPCB.EC.BCTH, Index (DerefOf (Index (Local0, 0x02)), 0x09))
  8361. Store (^^PCI0.LPCB.EC.BTPL, Index (DerefOf (Index (Local0, 0x02)), 0x0A))
  8362. Store (^^PCI0.LPCB.EC.BTPH, Index (DerefOf (Index (Local0, 0x02)), 0x0B))
  8363. Store (^^PCI0.LPCB.EC.BAVL, Index (DerefOf (Index (Local0, 0x02)), 0x0C))
  8364. Store (^^PCI0.LPCB.EC.BAVH, Index (DerefOf (Index (Local0, 0x02)), 0x0D))
  8365. Store (^^PCI0.LPCB.EC.BACL, Index (DerefOf (Index (Local0, 0x02)), 0x0E))
  8366. Store (^^PCI0.LPCB.EC.BACH, Index (DerefOf (Index (Local0, 0x02)), 0x0F))
  8367. Store (^^PCI0.LPCB.EC.BDVL, Index (DerefOf (Index (Local0, 0x02)), 0x10))
  8368. Store (^^PCI0.LPCB.EC.BDVH, Index (DerefOf (Index (Local0, 0x02)), 0x11))
  8369. Store (^^PCI0.LPCB.EC.BSLB, Index (DerefOf (Index (Local0, 0x02)), 0x12))
  8370. Store (^^PCI0.LPCB.EC.BSHB, Index (DerefOf (Index (Local0, 0x02)), 0x13))
  8371. Store (^^PCI0.LPCB.EC.C1VL, Index (DerefOf (Index (Local0, 0x02)), 0x14))
  8372. Store (^^PCI0.LPCB.EC.C1VH, Index (DerefOf (Index (Local0, 0x02)), 0x15))
  8373. Store (^^PCI0.LPCB.EC.C2VL, Index (DerefOf (Index (Local0, 0x02)), 0x16))
  8374. Store (^^PCI0.LPCB.EC.C2VH, Index (DerefOf (Index (Local0, 0x02)), 0x17))
  8375. Store (^^PCI0.LPCB.EC.C3VL, Index (DerefOf (Index (Local0, 0x02)), 0x18))
  8376. Store (^^PCI0.LPCB.EC.C3VH, Index (DerefOf (Index (Local0, 0x02)), 0x19))
  8377. Store (^^PCI0.LPCB.EC.C4VL, Index (DerefOf (Index (Local0, 0x02)), 0x1A))
  8378. Store (^^PCI0.LPCB.EC.C4VH, Index (DerefOf (Index (Local0, 0x02)), 0x1B))
  8379. Store (ShiftLeft (^^PCI0.LPCB.EC.BSNH, 0x08), Local7)
  8380. Add (Local7, ^^PCI0.LPCB.EC.BSNL, Local7)
  8381. Name (SERN, Buffer (0x06)
  8382. {
  8383. 0x30, 0x30, 0x30, 0x30, 0x30, 0x20
  8384. })
  8385. Store (0x04, Local6)
  8386. While (Local7)
  8387. {
  8388. Divide (Local7, 0x0A, Local5, Local7)
  8389. Add (Local5, 0x30, Index (SERN, Local6))
  8390. Decrement (Local6)
  8391. }
  8392.  
  8393. CreateField (DerefOf (Index (Local0, 0x02)), 0xE0, Multiply (SizeOf (SERN),
  8394. 0x08), BSNO)
  8395. Store (SERN, BSNO)
  8396. Store (ShiftLeft (^^PCI0.LPCB.EC.BMDH, 0x08), Local7)
  8397. Add (Local7, ^^PCI0.LPCB.EC.BMDL, Local7)
  8398. Name (BMDN, Buffer (0x0A)
  8399. {
  8400. /* 0000 */ 0x30, 0x30, 0x2F, 0x30, 0x30, 0x2F, 0x30, 0x30,
  8401. /* 0008 */ 0x30, 0x30
  8402. })
  8403. Store (And (ShiftRight (Local7, 0x05), 0x0F), Local4)
  8404. Store (One, Local6)
  8405. While (Local4)
  8406. {
  8407. Divide (Local4, 0x0A, Local5, Local4)
  8408. Add (Local5, 0x30, Index (BMDN, Local6))
  8409. Decrement (Local6)
  8410. }
  8411.  
  8412. Store (And (Local7, 0x1F), Local4)
  8413. Store (0x04, Local6)
  8414. While (Local4)
  8415. {
  8416. Divide (Local4, 0x0A, Local5, Local4)
  8417. Add (Local5, 0x30, Index (BMDN, Local6))
  8418. Decrement (Local6)
  8419. }
  8420.  
  8421. Store (ShiftRight (Local7, 0x09), Local4)
  8422. Add (Local4, 0x07BC, Local4)
  8423. Store (0x09, Local6)
  8424. While (Local4)
  8425. {
  8426. Divide (Local4, 0x0A, Local5, Local4)
  8427. Add (Local5, 0x30, Index (BMDN, Local6))
  8428. Decrement (Local6)
  8429. }
  8430.  
  8431. CreateField (DerefOf (Index (Local0, 0x02)), 0x0110, Multiply (SizeOf (BMDN),
  8432. 0x08), BMNO)
  8433. Store (BMDN, BMNO)
  8434. Store (^^PCI0.LPCB.EC.MAN0, Index (DerefOf (Index (Local0, 0x02)), 0x2C))
  8435. Store (^^PCI0.LPCB.EC.MAN1, Index (DerefOf (Index (Local0, 0x02)), 0x2D))
  8436. Store (^^PCI0.LPCB.EC.MAN2, Index (DerefOf (Index (Local0, 0x02)), 0x2E))
  8437. Store (^^PCI0.LPCB.EC.MAN3, Index (DerefOf (Index (Local0, 0x02)), 0x2F))
  8438. Store (^^PCI0.LPCB.EC.MAN4, Index (DerefOf (Index (Local0, 0x02)), 0x30))
  8439. Store (^^PCI0.LPCB.EC.MAN5, Index (DerefOf (Index (Local0, 0x02)), 0x31))
  8440. Store (^^PCI0.LPCB.EC.MAN6, Index (DerefOf (Index (Local0, 0x02)), 0x32))
  8441. Store (^^PCI0.LPCB.EC.MAN7, Index (DerefOf (Index (Local0, 0x02)), 0x33))
  8442. Store (^^PCI0.LPCB.EC.MAN8, Index (DerefOf (Index (Local0, 0x02)), 0x34))
  8443. Store (^^PCI0.LPCB.EC.MAN9, Index (DerefOf (Index (Local0, 0x02)), 0x35))
  8444. Store (^^PCI0.LPCB.EC.MANA, Index (DerefOf (Index (Local0, 0x02)), 0x36))
  8445. Store (^^PCI0.LPCB.EC.MANB, Index (DerefOf (Index (Local0, 0x02)), 0x37))
  8446. CreateField (DerefOf (Index (Local0, 0x02)), 0x01F0, 0x80, BCTN)
  8447. Store (^^PCI0.LPCB.EC.CTLB, BCTN)
  8448. Store (^^PCI0.LPCB.EC.BDN0, Index (DerefOf (Index (Local0, 0x02)), 0x4F))
  8449. Store (^^PCI0.LPCB.EC.BDN1, Index (DerefOf (Index (Local0, 0x02)), 0x50))
  8450. Store (^^PCI0.LPCB.EC.BDN2, Index (DerefOf (Index (Local0, 0x02)), 0x51))
  8451. Store (^^PCI0.LPCB.EC.BDN3, Index (DerefOf (Index (Local0, 0x02)), 0x52))
  8452. Store (^^PCI0.LPCB.EC.BDN4, Index (DerefOf (Index (Local0, 0x02)), 0x53))
  8453. Store (^^PCI0.LPCB.EC.BDN5, Index (DerefOf (Index (Local0, 0x02)), 0x54))
  8454. Store (^^PCI0.LPCB.EC.BDN6, Index (DerefOf (Index (Local0, 0x02)), 0x55))
  8455. Store (^^PCI0.LPCB.EC.BDC0, Index (DerefOf (Index (Local0, 0x02)), 0x56))
  8456. Store (^^PCI0.LPCB.EC.BDC1, Index (DerefOf (Index (Local0, 0x02)), 0x57))
  8457. Store (^^PCI0.LPCB.EC.BDC2, Index (DerefOf (Index (Local0, 0x02)), 0x58))
  8458. Store (^^PCI0.LPCB.EC.BDC3, Index (DerefOf (Index (Local0, 0x02)), 0x59))
  8459. Store (^^PCI0.LPCB.EC.BMAL, Index (DerefOf (Index (Local0, 0x02)), 0x5A))
  8460. Store (^^PCI0.LPCB.EC.BMAH, Index (DerefOf (Index (Local0, 0x02)), 0x5B))
  8461. Store (^^PCI0.LPCB.EC.BMDL, Index (DerefOf (Index (Local0, 0x02)), 0x5C))
  8462. Store (^^PCI0.LPCB.EC.BMDH, Index (DerefOf (Index (Local0, 0x02)), 0x5D))
  8463. Store (^^PCI0.LPCB.EC.BCCL, Index (DerefOf (Index (Local0, 0x02)), 0x5E))
  8464. Store (^^PCI0.LPCB.EC.BCCH, Index (DerefOf (Index (Local0, 0x02)), 0x5F))
  8465. Store (^^PCI0.LPCB.EC.BCVL, Index (DerefOf (Index (Local0, 0x02)), 0x60))
  8466. Store (^^PCI0.LPCB.EC.BCVH, Index (DerefOf (Index (Local0, 0x02)), 0x61))
  8467. Store (^^PCI0.LPCB.EC.AVCL, Index (DerefOf (Index (Local0, 0x02)), 0x62))
  8468. Store (^^PCI0.LPCB.EC.AVCH, Index (DerefOf (Index (Local0, 0x02)), 0x63))
  8469. Store (^^PCI0.LPCB.EC.RTEL, Index (DerefOf (Index (Local0, 0x02)), 0x64))
  8470. Store (^^PCI0.LPCB.EC.RTEH, Index (DerefOf (Index (Local0, 0x02)), 0x65))
  8471. Store (^^PCI0.LPCB.EC.ATEL, Index (DerefOf (Index (Local0, 0x02)), 0x66))
  8472. Store (^^PCI0.LPCB.EC.ATEH, Index (DerefOf (Index (Local0, 0x02)), 0x67))
  8473. Store (^^PCI0.LPCB.EC.ATFL, Index (DerefOf (Index (Local0, 0x02)), 0x68))
  8474. Store (^^PCI0.LPCB.EC.ATFH, Index (DerefOf (Index (Local0, 0x02)), 0x69))
  8475. Store (One, Index (DerefOf (Index (Local0, 0x02)), 0x6A))
  8476. }
  8477. Else
  8478. {
  8479. Store (Package (0x02)
  8480. {
  8481. 0x0D,
  8482. Zero
  8483. }, Local0)
  8484. }
  8485. }
  8486.  
  8487. Return (Local0)
  8488. }
  8489.  
  8490. Method (GBBT, 0, NotSerialized)
  8491. {
  8492. Store ("Get Bezel Button and Hotkey Table ----", Debug)
  8493. Store (Package (0x03)
  8494. {
  8495. Zero,
  8496. 0x80,
  8497. Buffer (0x80)
  8498. {
  8499. /* 0000 */ 0x31, 0x01, 0x9B, 0x01, 0xB6, 0x01, 0xB7, 0x01,
  8500. /* 0008 */ 0xAE, 0x01, 0x67, 0x02, 0x65, 0x02, 0x66, 0x02,
  8501. /* 0010 */ 0x68, 0x02, 0x6B, 0x02, 0x6C, 0x02, 0x6A, 0x02,
  8502. /* 0018 */ 0x9D, 0x01, 0x63, 0x02, 0xFF, 0x01, 0xFF, 0xFF,
  8503. /* 0020 */ 0x41, 0x21, 0x00, 0x00
  8504. }
  8505. }, Local0)
  8506. Return (Local0)
  8507. }
  8508.  
  8509. Method (GHKS, 0, NotSerialized)
  8510. {
  8511. Store ("Get Hotkey State ---", Debug)
  8512. Store (Package (0x03)
  8513. {
  8514. Zero,
  8515. 0x04,
  8516. Buffer (0x04)
  8517. {
  8518. 0x00, 0x00, 0x00, 0x00
  8519. }
  8520. }, Local0)
  8521. If (ECON)
  8522. {
  8523. Store (^^PCI0.LPCB.EC.SHKM, Index (DerefOf (Index (Local0, 0x02)), Zero))
  8524. }
  8525. Else
  8526. {
  8527. Store (Package (0x02)
  8528. {
  8529. 0x0D,
  8530. Zero
  8531. }, Local0)
  8532. }
  8533.  
  8534. Return (Local0)
  8535. }
  8536.  
  8537. Method (SHKS, 1, NotSerialized)
  8538. {
  8539. Store ("Set Hotkey State ---", Debug)
  8540. If (ECON)
  8541. {
  8542. Store (Arg0, ^^PCI0.LPCB.EC.SHKM)
  8543. }
  8544. Else
  8545. {
  8546. Store (Package (0x02)
  8547. {
  8548. 0x0D,
  8549. Zero
  8550. }, Local0)
  8551. }
  8552.  
  8553. Return (Package (0x02)
  8554. {
  8555. Zero,
  8556. Zero
  8557. })
  8558. }
  8559.  
  8560. Method (GHKF, 0, NotSerialized)
  8561. {
  8562. Store ("Get Hotkey Function ---", Debug)
  8563. If (ECON)
  8564. {
  8565. Store (Package (0x03)
  8566. {
  8567. Zero,
  8568. 0x04,
  8569. Buffer (0x04)
  8570. {
  8571. 0x00, 0x00, 0x00, 0x00
  8572. }
  8573. }, Local0)
  8574. Store (^^PCI0.LPCB.EC.HKIL, Index (DerefOf (Index (Local0, 0x02)), Zero))
  8575. Store (^^PCI0.LPCB.EC.HKIH, Index (DerefOf (Index (Local0, 0x02)), One))
  8576. Store (^^PCI0.LPCB.EC.HKIH, Local1)
  8577. Store (^^PCI0.LPCB.EC.HKIL, Local2)
  8578. Store (Zero, ^^PCI0.LPCB.EC.HKIH)
  8579. Store (Zero, ^^PCI0.LPCB.EC.HKIL)
  8580. }
  8581. Else
  8582. {
  8583. Store (Package (0x02)
  8584. {
  8585. 0x0D,
  8586. Zero
  8587. }, Local0)
  8588. }
  8589.  
  8590. Return (Local0)
  8591. }
  8592.  
  8593. Method (SHKF, 1, NotSerialized)
  8594. {
  8595. Store ("Set Hotkey Function ----", Debug)
  8596. If (ECON)
  8597. {
  8598. Store (Package (0x03)
  8599. {
  8600. Zero,
  8601. 0x04,
  8602. Buffer (0x04)
  8603. {
  8604. 0x00, 0x00, 0x00, 0x00
  8605. }
  8606. }, Local0)
  8607. Store (Arg0, Local1)
  8608. Store (Local1, Index (DerefOf (Index (Local0, 0x02)), Zero))
  8609. Store (ShiftRight (Local1, 0x08), Index (DerefOf (Index (Local0, 0x02
  8610. )), One))
  8611. }
  8612. Else
  8613. {
  8614. Store (Package (0x02)
  8615. {
  8616. 0x0D,
  8617. Zero
  8618. }, Local0)
  8619. }
  8620.  
  8621. Return (Local0)
  8622. }
  8623.  
  8624. Method (GLBB, 0, NotSerialized)
  8625. {
  8626. Store ("Get Last Bezel Button ---", Debug)
  8627. If (ECON)
  8628. {
  8629. Store (Package (0x03)
  8630. {
  8631. Zero,
  8632. 0x04,
  8633. Buffer (0x04)
  8634. {
  8635. 0x00, 0x00, 0x00, 0x00
  8636. }
  8637. }, Local0)
  8638. Store (^^PCI0.LPCB.EC.HKIL, Index (DerefOf (Index (Local0, 0x02)), Zero))
  8639. Store (^^PCI0.LPCB.EC.HKIH, Index (DerefOf (Index (Local0, 0x02)), One))
  8640. Store (^^PCI0.LPCB.EC.HKIH, Local1)
  8641. Store (^^PCI0.LPCB.EC.HKIL, Local2)
  8642. Store (Zero, ^^PCI0.LPCB.EC.HKIH)
  8643. Store (Zero, ^^PCI0.LPCB.EC.HKIL)
  8644. }
  8645. Else
  8646. {
  8647. Store (Package (0x02)
  8648. {
  8649. 0x0D,
  8650. Zero
  8651. }, Local0)
  8652. }
  8653.  
  8654. Return (Local0)
  8655. }
  8656.  
  8657. Method (GSAS, 0, NotSerialized)
  8658. {
  8659. Store ("Get Smart Adaptor Status ----", Debug)
  8660. Store (Package (0x03)
  8661. {
  8662. Zero,
  8663. 0x04,
  8664. Buffer (0x04)
  8665. {
  8666. 0x00, 0x00, 0x00, 0x00
  8667. }
  8668. }, Local0)
  8669. If (ECON)
  8670. {
  8671. Store (^^PCI0.LPCB.EC.SADS, Local1)
  8672. Store (Local1, Index (DerefOf (Index (Local0, 0x02)), Zero))
  8673. }
  8674.  
  8675. Return (Local0)
  8676. }
  8677.  
  8678. Method (GWSD, 0, NotSerialized)
  8679. {
  8680. Store ("Get HP Warranty Start Date ---", Debug)
  8681. Store (Package (0x03)
  8682. {
  8683. Zero,
  8684. 0x80,
  8685. Buffer (0x80) {}
  8686. }, Local0)
  8687. OSMI (0x1D)
  8688. Sleep (0x96)
  8689. If (LEqual (PREV, 0x00303231))
  8690. {
  8691. And (YEAR, 0xFF, Index (DerefOf (Index (Local0, 0x02)), Zero
  8692. ))
  8693. ShiftRight (YEAR, 0x08, Local1)
  8694. And (Local1, 0xFF, Index (DerefOf (Index (Local0, 0x02)), One
  8695. ))
  8696. ShiftRight (YEAR, 0x10, Local1)
  8697. And (Local1, 0xFF, Index (DerefOf (Index (Local0, 0x02)), 0x02
  8698. ))
  8699. ShiftRight (YEAR, 0x18, Local1)
  8700. And (Local1, 0xFF, Index (DerefOf (Index (Local0, 0x02)), 0x03
  8701. ))
  8702. And (MONT, 0xFF, Index (DerefOf (Index (Local0, 0x02)), 0x04
  8703. ))
  8704. ShiftRight (MONT, 0x08, Local1)
  8705. And (Local1, 0xFF, Index (DerefOf (Index (Local0, 0x02)), 0x05
  8706. ))
  8707. And (DAYS, 0xFF, Index (DerefOf (Index (Local0, 0x02)), 0x06
  8708. ))
  8709. ShiftRight (DAYS, 0x08, Local1)
  8710. And (Local1, 0xFF, Index (DerefOf (Index (Local0, 0x02)), 0x07
  8711. ))
  8712. }
  8713. Else
  8714. {
  8715. ShiftRight (YEAR, 0x10, Local1)
  8716. And (Local1, 0xFF, Index (DerefOf (Index (Local0, 0x02)), Zero
  8717. ))
  8718. ShiftRight (YEAR, 0x18, Local1)
  8719. And (Local1, 0xFF, Index (DerefOf (Index (Local0, 0x02)), One
  8720. ))
  8721. And (MONT, 0xFF, Index (DerefOf (Index (Local0, 0x02)), 0x02
  8722. ))
  8723. ShiftRight (MONT, 0x08, Local1)
  8724. And (Local1, 0xFF, Index (DerefOf (Index (Local0, 0x02)), 0x03
  8725. ))
  8726. And (DAYS, 0xFF, Index (DerefOf (Index (Local0, 0x02)), 0x04
  8727. ))
  8728. ShiftRight (DAYS, 0x08, Local1)
  8729. And (Local1, 0xFF, Index (DerefOf (Index (Local0, 0x02)), 0x05
  8730. ))
  8731. }
  8732.  
  8733. Return (Local0)
  8734. }
  8735.  
  8736. Method (SWSD, 3, NotSerialized)
  8737. {
  8738. Store ("Set HP Warranty Start Date ---", Debug)
  8739. Store (Arg0, YEAR)
  8740. Store (Arg1, MONT)
  8741. Store (Arg2, DAYS)
  8742. OSMI (0x1E)
  8743. Return (Package (0x02)
  8744. {
  8745. Zero,
  8746. Zero
  8747. })
  8748. }
  8749.  
  8750. Method (GWDI, 0, NotSerialized)
  8751. {
  8752. Store ("Get Wireless Device Info ---", Debug)
  8753. Store (One, WIRE)
  8754. Store (Package (0x03)
  8755. {
  8756. Zero,
  8757. 0x80,
  8758. Buffer (0x80) {}
  8759. }, Local0)
  8760. Store (One, Index (DerefOf (Index (Local0, 0x02)), Zero))
  8761. Store (Zero, Index (DerefOf (Index (Local0, 0x02)), One))
  8762. Store (Zero, Index (DerefOf (Index (Local0, 0x02)), 0x02))
  8763. Store (Zero, Index (DerefOf (Index (Local0, 0x02)), 0x03))
  8764. Store (Zero, Index (DerefOf (Index (Local0, 0x02)), 0x04))
  8765. Store (Zero, Index (DerefOf (Index (Local0, 0x02)), 0x05))
  8766. Store (0x0F, Local1)
  8767. Store (Zero, Local3)
  8768. If (LAnd (LNotEqual (WLVD, Zero), LNotEqual (WLDD, Zero)))
  8769. {
  8770. Store (Zero, Index (DerefOf (Index (Local0, 0x02)), Add (Local1,
  8771. One, Local1)))
  8772. Store (Zero, Index (DerefOf (Index (Local0, 0x02)), Add (Local1,
  8773. One, Local1)))
  8774. And (WLVD, 0xFF, Local2)
  8775. Store (Local2, Index (DerefOf (Index (Local0, 0x02)), Add (Local1,
  8776. One, Local1)))
  8777. ShiftRight (WLVD, 0x08, Local2)
  8778. And (Local2, 0xFF, Local2)
  8779. Store (Local2, Index (DerefOf (Index (Local0, 0x02)), Add (Local1,
  8780. One, Local1)))
  8781. And (WLDD, 0xFF, Local2)
  8782. Store (Local2, Index (DerefOf (Index (Local0, 0x02)), Add (Local1,
  8783. One, Local1)))
  8784. ShiftRight (WLDD, 0x08, Local2)
  8785. And (Local2, 0xFF, Local2)
  8786. Store (Local2, Index (DerefOf (Index (Local0, 0x02)), Add (Local1,
  8787. One, Local1)))
  8788. And (WLSV, 0xFF, Local2)
  8789. Store (Local2, Index (DerefOf (Index (Local0, 0x02)), Add (Local1,
  8790. One, Local1)))
  8791. ShiftRight (WLSV, 0x08, Local2)
  8792. And (Local2, 0xFF, Local2)
  8793. Store (Local2, Index (DerefOf (Index (Local0, 0x02)), Add (Local1,
  8794. One, Local1)))
  8795. And (WLSS, 0xFF, Local2)
  8796. Store (Local2, Index (DerefOf (Index (Local0, 0x02)), Add (Local1,
  8797. One, Local1)))
  8798. ShiftRight (WLSS, 0x08, Local2)
  8799. And (Local2, 0xFF, Local2)
  8800. Store (Local2, Index (DerefOf (Index (Local0, 0x02)), Add (Local1,
  8801. One, Local1)))
  8802. Store (Zero, Index (DerefOf (Index (Local0, 0x02)), Add (Local1,
  8803. One, Local1)))
  8804. Store (Zero, Local2)
  8805. Store (^^PCI0.LPCB.EC.WANE, Local2)
  8806. Or (ShiftLeft (WLAN, One), Local2, Local2)
  8807. Or (0x04, Local2, Local2)
  8808. Or (ShiftLeft (BTLS, 0x03), Local2, Local2)
  8809. Store (Local2, Index (DerefOf (Index (Local0, 0x02)), Add (Local1,
  8810. One, Local1)))
  8811. Store (Zero, Index (DerefOf (Index (Local0, 0x02)), Add (Local1,
  8812. One, Local1)))
  8813. Store (Zero, Index (DerefOf (Index (Local0, 0x02)), Add (Local1,
  8814. One, Local1)))
  8815. Store (Zero, Index (DerefOf (Index (Local0, 0x02)), Add (Local1,
  8816. One, Local1)))
  8817. Store (Zero, Index (DerefOf (Index (Local0, 0x02)), Add (Local1,
  8818. One, Local1)))
  8819. Increment (Local3)
  8820. }
  8821.  
  8822. If (LAnd (LNotEqual (BTVD, Zero), LNotEqual (BTDD, Zero)))
  8823. {
  8824. Store (One, Index (DerefOf (Index (Local0, 0x02)), Add (Local1,
  8825. One, Local1)))
  8826. Store (One, Index (DerefOf (Index (Local0, 0x02)), Add (Local1,
  8827. One, Local1)))
  8828. And (BTVD, 0xFF, Local2)
  8829. Store (Local2, Index (DerefOf (Index (Local0, 0x02)), Add (Local1,
  8830. One, Local1)))
  8831. ShiftRight (BTVD, 0x08, Local2)
  8832. And (Local2, 0xFF, Local2)
  8833. Store (Local2, Index (DerefOf (Index (Local0, 0x02)), Add (Local1,
  8834. One, Local1)))
  8835. And (BTDD, 0xFF, Local2)
  8836. Store (Local2, Index (DerefOf (Index (Local0, 0x02)), Add (Local1,
  8837. One, Local1)))
  8838. ShiftRight (BTDD, 0x08, Local2)
  8839. And (Local2, 0xFF, Local2)
  8840. Store (Local2, Index (DerefOf (Index (Local0, 0x02)), Add (Local1,
  8841. One, Local1)))
  8842. Store (Zero, Index (DerefOf (Index (Local0, 0x02)), Add (Local1,
  8843. One, Local1)))
  8844. Store (Zero, Index (DerefOf (Index (Local0, 0x02)), Add (Local1,
  8845. One, Local1)))
  8846. Store (Zero, Index (DerefOf (Index (Local0, 0x02)), Add (Local1,
  8847. One, Local1)))
  8848. Store (Zero, Index (DerefOf (Index (Local0, 0x02)), Add (Local1,
  8849. One, Local1)))
  8850. If (COMB)
  8851. {
  8852. Store (Zero, Index (DerefOf (Index (Local0, 0x02)), Add (Local1,
  8853. One, Local1)))
  8854. }
  8855. Else
  8856. {
  8857. Store (One, Index (DerefOf (Index (Local0, 0x02)), Add (Local1,
  8858. One, Local1)))
  8859. }
  8860.  
  8861. Store (Zero, Local2)
  8862. Store (^^PCI0.LPCB.EC.BUTE, Local2)
  8863. Or (ShiftLeft (BTTH, One), Local2, Local2)
  8864. Or (0x04, Local2, Local2)
  8865. Or (ShiftLeft (BTLS, 0x03), Local2, Local2)
  8866. Store (Local2, Index (DerefOf (Index (Local0, 0x02)), Add (Local1,
  8867. One, Local1)))
  8868. Store (Zero, Index (DerefOf (Index (Local0, 0x02)), Add (Local1,
  8869. One, Local1)))
  8870. Store (Zero, Index (DerefOf (Index (Local0, 0x02)), Add (Local1,
  8871. One, Local1)))
  8872. Store (Zero, Index (DerefOf (Index (Local0, 0x02)), Add (Local1,
  8873. One, Local1)))
  8874. Store (Zero, Index (DerefOf (Index (Local0, 0x02)), Add (Local1,
  8875. One, Local1)))
  8876. Increment (Local3)
  8877. }
  8878.  
  8879. Store (Local3, Index (DerefOf (Index (Local0, 0x02)), 0x06))
  8880. Store (Local3, Index (DerefOf (Index (Local0, 0x02)), 0x07))
  8881. Return (Local0)
  8882. }
  8883.  
  8884. Method (SWDS, 1, NotSerialized)
  8885. {
  8886. Store ("Set Wirless Device State----", Debug)
  8887. Store (One, WIRE)
  8888. Store (Package (0x03)
  8889. {
  8890. Zero,
  8891. 0x04,
  8892. Buffer (0x04)
  8893. {
  8894. 0x00, 0x00, 0x00, 0x00
  8895. }
  8896. }, Local0)
  8897. Store (Arg0, Local1)
  8898. ShiftRight (Local1, 0x10, Local2)
  8899. And (Local2, 0xFF, Local2)
  8900. ShiftRight (Local1, 0x18, Local3)
  8901. And (Local3, 0xFF, Local3)
  8902. If (LEqual (Local2, Zero))
  8903. {
  8904. Store (Local3, WLAN)
  8905. Store (Local3, ^^PCI0.LPCB.EC.WANE)
  8906. If (COMB)
  8907. {
  8908. Store (Local3, BTTH)
  8909. Store (Local3, ^^PCI0.LPCB.EC.BUTE)
  8910. }
  8911. }
  8912.  
  8913. If (LEqual (Local2, One))
  8914. {
  8915. Store (Local3, BTTH)
  8916. Store (Local3, ^^PCI0.LPCB.EC.BUTE)
  8917. }
  8918.  
  8919. If (LEqual (Local2, 0xFE))
  8920. {
  8921. Store (Local3, WLAN)
  8922. Store (Local3, BTTH)
  8923. Store (Local3, ^^PCI0.LPCB.EC.WANE)
  8924. Store (Local3, ^^PCI0.LPCB.EC.BUTE)
  8925. }
  8926.  
  8927. If (LEqual (Local2, 0xFF))
  8928. {
  8929. Store (Local3, WLAN)
  8930. Store (Local3, BTTH)
  8931. Store (Local3, ^^PCI0.LPCB.EC.WANE)
  8932. Store (Local3, ^^PCI0.LPCB.EC.BUTE)
  8933. Store (Local3, BTLS)
  8934. }
  8935.  
  8936. Store (Package (0x02)
  8937. {
  8938. Zero,
  8939. Zero
  8940. }, Local0)
  8941. Return (Local0)
  8942. }
  8943.  
  8944. Method (GSDC, 0, NotSerialized)
  8945. {
  8946. Store ("Get System Diagnostic launch command ---", Debug)
  8947. Store (Package (0x03)
  8948. {
  8949. Zero,
  8950. 0x04,
  8951. Buffer (0x04)
  8952. {
  8953. 0x00, 0x00, 0x00, 0x00
  8954. }
  8955. }, Local0)
  8956. Store (CMSR (0x77), Local1)
  8957. Store (CMSR (0x78), Local2)
  8958. Store (Local1, Index (DerefOf (Index (Local0, 0x02)), Zero))
  8959. Store (Local2, Index (DerefOf (Index (Local0, 0x02)), One))
  8960. Return (Local0)
  8961. }
  8962.  
  8963. Method (SDLC, 1, NotSerialized)
  8964. {
  8965. Store ("Set System Diagnostic launch command ---", Debug)
  8966. Store (And (Arg0, 0xFF), Local0)
  8967. CMSW (0x77, Local0)
  8968. Return (Package (0x02)
  8969. {
  8970. Zero,
  8971. Zero
  8972. })
  8973. }
  8974.  
  8975. Method (GBCC, 0, NotSerialized)
  8976. {
  8977. Store ("Get Battery Charge Control ---", Debug)
  8978. Store (Package (0x03)
  8979. {
  8980. Zero,
  8981. 0x04,
  8982. Buffer (0x04)
  8983. {
  8984. 0x00, 0x00, 0x00, 0x00
  8985. }
  8986. }, Local0)
  8987. If (ECON)
  8988. {
  8989. If (^^PCI0.LPCB.EC.BAIN)
  8990. {
  8991. If (LEqual (^^PCI0.LPCB.EC.BCC1, One))
  8992. {
  8993. Store (Zero, Index (DerefOf (Index (Local0, 0x02)), Zero))
  8994. }
  8995. Else
  8996. {
  8997. If (LEqual (^^PCI0.LPCB.EC.BCC1, 0x02))
  8998. {
  8999. Store (One, Index (DerefOf (Index (Local0, 0x02)), Zero))
  9000. }
  9001. Else
  9002. {
  9003. Store (0x02, Index (DerefOf (Index (Local0, 0x02)), Zero))
  9004. }
  9005. }
  9006. }
  9007. Else
  9008. {
  9009. Store (0xFF, Index (DerefOf (Index (Local0, 0x02)), Zero))
  9010. }
  9011.  
  9012. Store (0xFF, Index (DerefOf (Index (Local0, 0x02)), One))
  9013. }
  9014. Else
  9015. {
  9016. Store (0x35, Index (DerefOf (Index (Local0, 0x02)), Zero))
  9017. }
  9018.  
  9019. Return (Local0)
  9020. }
  9021.  
  9022. Method (SBCC, 1, NotSerialized)
  9023. {
  9024. Store ("Set Battery Charge Control ---", Debug)
  9025. Store (Package (0x02)
  9026. {
  9027. Zero,
  9028. Zero
  9029. }, Local0)
  9030. Store (And (Arg0, 0xFF), Local1)
  9031. Store (And (ShiftRight (Arg0, 0x08), 0xFF), Local2)
  9032. If (ECON)
  9033. {
  9034. If (LEqual (Local1, Zero))
  9035. {
  9036. If (^^PCI0.LPCB.EC.BAIN)
  9037. {
  9038. If (LEqual (Local2, Zero))
  9039. {
  9040. Store (One, ^^PCI0.LPCB.EC.BCC1)
  9041. }
  9042. Else
  9043. {
  9044. If (LEqual (Local2, One))
  9045. {
  9046. Store (0x02, ^^PCI0.LPCB.EC.BCC1)
  9047. }
  9048. Else
  9049. {
  9050. Store (0x04, ^^PCI0.LPCB.EC.BCC1)
  9051. }
  9052. }
  9053.  
  9054. Store (Zero, Index (Local0, Zero))
  9055. }
  9056. Else
  9057. {
  9058. Store (0x34, Index (Local0, Zero))
  9059. }
  9060. }
  9061. Else
  9062. {
  9063. If (LEqual (Local1, 0x63))
  9064. {
  9065. If (LEqual (Local2, Zero))
  9066. {
  9067. Store (One, ^^PCI0.LPCB.EC.BCC1)
  9068. }
  9069. Else
  9070. {
  9071. If (LEqual (Local2, One))
  9072. {
  9073. Store (0x04, ^^PCI0.LPCB.EC.BCC1)
  9074. }
  9075. Else
  9076. {
  9077. Store (0x02, ^^PCI0.LPCB.EC.BCC1)
  9078. }
  9079. }
  9080.  
  9081. Store (Zero, Index (Local0, Zero))
  9082. }
  9083. Else
  9084. {
  9085. Store (0x34, Index (Local0, Zero))
  9086. }
  9087. }
  9088. }
  9089. Else
  9090. {
  9091. Store (0x35, Index (Local0, Zero))
  9092. }
  9093.  
  9094. Return (Local0)
  9095. }
  9096.  
  9097. Method (GPCS, 0, NotSerialized)
  9098. {
  9099. Store ("Get Post Code Error Status ---", Debug)
  9100. Store (Package (0x03)
  9101. {
  9102. Zero,
  9103. 0x04,
  9104. Buffer (0x04)
  9105. {
  9106. 0x00, 0x00, 0x00, 0x00
  9107. }
  9108. }, Local0)
  9109. Store (Zero, SMP0)
  9110. Store (Zero, SMP1)
  9111. Store (One, SMP2)
  9112. Store (0x76, SMP3)
  9113. HSMI (0x03)
  9114. Store (SMP4, Index (DerefOf (Index (Local0, 0x02)), Zero))
  9115. Return (Local0)
  9116. }
  9117.  
  9118. Method (SPCS, 1, NotSerialized)
  9119. {
  9120. Store ("Set Post Code Error State ---", Debug)
  9121. If (LEqual (Arg0, One))
  9122. {
  9123. Store (Zero, SMP0)
  9124. Store (One, SMP1)
  9125. Store (One, SMP2)
  9126. Store (0x76, SMP3)
  9127. Store (Zero, SMP4)
  9128. HSMI (0x03)
  9129. Store (Zero, SMP0)
  9130. Store (One, SMP1)
  9131. Store (One, SMP2)
  9132. Store (0x77, SMP3)
  9133. HSMI (0x03)
  9134. }
  9135.  
  9136. Return (Package (0x02)
  9137. {
  9138. Zero,
  9139. Zero
  9140. })
  9141. }
  9142.  
  9143. Method (GBCO, 0, NotSerialized)
  9144. {
  9145. Store ("Get the Battery charge control Override ---", Debug)
  9146. Store (Package (0x03)
  9147. {
  9148. Zero,
  9149. 0x04,
  9150. Buffer (0x04)
  9151. {
  9152. 0x00, 0x00, 0x00, 0x00
  9153. }
  9154. }, Local0)
  9155. If (ECON)
  9156. {
  9157. Store (One, ^^PCI0.LPCB.EC.WMSC)
  9158. Store (0x2B, ^^PCI0.LPCB.EC.WMIC)
  9159. Sleep (0xC8)
  9160. If (LAnd (LEqual (^^PCI0.LPCB.EC.WMIC, Zero), LEqual (^^PCI0.LPCB.EC.WMSC, Zero)))
  9161. {
  9162. If (LOr (LEqual (^^PCI0.LPCB.EC.WMB0, 0x37), LEqual (^^PCI0.LPCB.EC.WMB1, 0x37)))
  9163. {
  9164. Store (0x37, Index (Local0, Zero))
  9165. }
  9166. Else
  9167. {
  9168. Store (^^PCI0.LPCB.EC.WMB0, Index (DerefOf (Index (Local0, 0x02)), Zero))
  9169. Store (^^PCI0.LPCB.EC.WMB1, Index (DerefOf (Index (Local0, 0x02)), One))
  9170. }
  9171. }
  9172. Else
  9173. {
  9174. Store (0x36, Index (Local0, Zero))
  9175. }
  9176. }
  9177. Else
  9178. {
  9179. Store (0x35, Index (Local0, Zero))
  9180. }
  9181.  
  9182. Return (Local0)
  9183. }
  9184.  
  9185. Method (SBCO, 1, NotSerialized)
  9186. {
  9187. Store ("Set Battery charge control override ---", Debug)
  9188. Store (Package (0x02)
  9189. {
  9190. Zero,
  9191. Zero
  9192. }, Local0)
  9193. Store (And (Arg0, 0xFF), Local1)
  9194. Store (And (ShiftRight (Arg0, 0x08), 0xFF), Local2)
  9195. If (ECON)
  9196. {
  9197. If (LEqual (Local1, Zero))
  9198. {
  9199. If (^^PCI0.LPCB.EC.BAIN)
  9200. {
  9201. If (LAnd (LEqual (^^PCI0.LPCB.EC.WMIC, Zero), LEqual (^^PCI0.LPCB.EC.WMSC, Zero)))
  9202. {
  9203. Store (Local1, ^^PCI0.LPCB.EC.WMB0)
  9204. Store (Local2, ^^PCI0.LPCB.EC.WMB1)
  9205. Store (0x02, ^^PCI0.LPCB.EC.WMSC)
  9206. Store (0x2B, ^^PCI0.LPCB.EC.WMIC)
  9207. Store (Zero, Index (Local0, Zero))
  9208. }
  9209. Else
  9210. {
  9211. Store (0x36, Index (Local0, Zero))
  9212. }
  9213. }
  9214. Else
  9215. {
  9216. Store (0x34, Index (Local0, Zero))
  9217. }
  9218. }
  9219. Else
  9220. {
  9221. Store (0x34, Index (Local0, Zero))
  9222. }
  9223. }
  9224. Else
  9225. {
  9226. Store (0x35, Index (Local0, Zero))
  9227. }
  9228.  
  9229. Return (Local0)
  9230. }
  9231.  
  9232. Method (_WED, 1, NotSerialized) // _Wxx: Wake Event
  9233. {
  9234. Acquire (MWMI, 0xFFFF)
  9235. Concatenate (WEID, WMED, Local0)
  9236. Store (Zero, WEID)
  9237. Store (Zero, WMED)
  9238. Release (MWMI)
  9239. Return (Local0)
  9240. }
  9241.  
  9242. Method (GFRT, 0, NotSerialized)
  9243. {
  9244. Store (Zero, Local0)
  9245. Store (Zero, Local1)
  9246. Store (Package (0x03)
  9247. {
  9248. Zero,
  9249. 0x80,
  9250. Buffer (0x80) {}
  9251. }, Local2)
  9252. Or (Local0, One, Local0)
  9253. Or (Local0, 0x02, Local0)
  9254. Or (Local0, 0x10, Local0)
  9255. Or (Local0, 0x20, Local0)
  9256. If (And (DVPS, One))
  9257. {
  9258. Or (Local0, 0x80, Local0)
  9259. }
  9260.  
  9261. Or (Local1, One, Local1)
  9262. Or (Local1, 0x08, Local1)
  9263. If (LEqual (PREV, 0x00303231))
  9264. {
  9265. Or (Local1, 0x10, Local1)
  9266. }
  9267.  
  9268. Store (Local0, Index (DerefOf (Index (Local2, 0x02)), Zero))
  9269. Store (Local1, Index (DerefOf (Index (Local2, 0x02)), One))
  9270. Return (Local2)
  9271. }
  9272.  
  9273. Method (SBUS, 1, NotSerialized)
  9274. {
  9275. Store (Arg0, HBUC)
  9276. Return (Package (0x02)
  9277. {
  9278. Zero,
  9279. Zero
  9280. })
  9281. }
  9282.  
  9283. Method (GBUS, 0, NotSerialized)
  9284. {
  9285. Store (Package (0x03)
  9286. {
  9287. Zero,
  9288. 0x04,
  9289. Buffer (0x04)
  9290. {
  9291. 0x00, 0x00, 0x00, 0x00
  9292. }
  9293. }, Local2)
  9294. If (LAnd (HBUC, One))
  9295. {
  9296. Store (One, Local0)
  9297. }
  9298. Else
  9299. {
  9300. Store (Zero, Local0)
  9301. }
  9302.  
  9303. Store (HBUS, Local1)
  9304. Store (Local0, Index (DerefOf (Index (Local2, 0x02)), Zero))
  9305. Store (Local1, Index (DerefOf (Index (Local2, 0x02)), One))
  9306. Return (Local2)
  9307. }
  9308.  
  9309. Name (WQAE, Buffer (0x08A9)
  9310. {
  9311. /* 0000 */ 0x46, 0x4F, 0x4D, 0x42, 0x01, 0x00, 0x00, 0x00,
  9312. /* 0008 */ 0x99, 0x08, 0x00, 0x00, 0x8A, 0x3A, 0x00, 0x00,
  9313. /* 0010 */ 0x44, 0x53, 0x00, 0x01, 0x1A, 0x7D, 0xDA, 0x54,
  9314. /* 0018 */ 0x98, 0x4B, 0x9C, 0x00, 0x01, 0x06, 0x18, 0x42,
  9315. /* 0020 */ 0x10, 0x13, 0x10, 0x22, 0x21, 0x04, 0x12, 0x01,
  9316. /* 0028 */ 0xA1, 0xC8, 0x2C, 0x0C, 0x86, 0x10, 0x38, 0x2E,
  9317. /* 0030 */ 0x84, 0x1C, 0x40, 0x88, 0x59, 0x50, 0x08, 0x21,
  9318. /* 0038 */ 0x10, 0xEA, 0x4F, 0x20, 0xBF, 0x02, 0x10, 0x3A,
  9319. /* 0040 */ 0x14, 0x20, 0x53, 0x80, 0x41, 0x01, 0x4E, 0x11,
  9320. /* 0048 */ 0x44, 0xD0, 0xAB, 0x00, 0x9B, 0x02, 0x4C, 0x0A,
  9321. /* 0050 */ 0xB0, 0x28, 0x40, 0xBB, 0x00, 0xCB, 0x02, 0x74,
  9322. /* 0058 */ 0x0B, 0x90, 0x0E, 0x4B, 0x44, 0x82, 0xA3, 0xC4,
  9323. /* 0060 */ 0x80, 0xA3, 0x74, 0x62, 0x0B, 0x37, 0x6C, 0xF0,
  9324. /* 0068 */ 0x42, 0x51, 0x34, 0x83, 0x28, 0x09, 0x2A, 0x17,
  9325. /* 0070 */ 0xE0, 0x1B, 0x41, 0xE0, 0xE5, 0x0A, 0x90, 0x3C,
  9326. /* 0078 */ 0x01, 0x69, 0x16, 0x60, 0x58, 0x80, 0x75, 0x01,
  9327. /* 0080 */ 0xB2, 0x87, 0x40, 0xA5, 0x0E, 0x01, 0x25, 0x67,
  9328. /* 0088 */ 0x08, 0xA8, 0x01, 0xB4, 0x3A, 0x01, 0xE1, 0x57,
  9329. /* 0090 */ 0x3A, 0x25, 0x24, 0x41, 0x38, 0x63, 0x15, 0x8F,
  9330. /* 0098 */ 0xAF, 0x59, 0x34, 0x3D, 0x27, 0x39, 0xC7, 0x90,
  9331. /* 00A0 */ 0xE3, 0x71, 0xA1, 0x07, 0xC1, 0x05, 0x78, 0x18,
  9332. /* 00A8 */ 0x06, 0x1D, 0xB2, 0x22, 0x6B, 0x80, 0xC1, 0x58,
  9333. /* 00B0 */ 0x18, 0x0B, 0x75, 0x31, 0x6A, 0xD4, 0x48, 0xD9,
  9334. /* 00B8 */ 0x80, 0x0C, 0x51, 0x12, 0x1C, 0x6A, 0xD4, 0x96,
  9335. /* 00C0 */ 0x28, 0xC0, 0xFC, 0x38, 0x34, 0xBB, 0xB6, 0xC7,
  9336. /* 00C8 */ 0x42, 0x20, 0x99, 0xB4, 0xA1, 0xA0, 0xA4, 0x40,
  9337. /* 00D0 */ 0x68, 0x6C, 0x67, 0xEA, 0x19, 0x45, 0x3C, 0x52,
  9338. /* 00D8 */ 0xC3, 0x24, 0xF0, 0x28, 0x22, 0x1B, 0x8D, 0x43,
  9339. /* 00E0 */ 0x63, 0x87, 0xE1, 0x61, 0x06, 0x3B, 0x88, 0xC3,
  9340. /* 00E8 */ 0x38, 0xE6, 0xC8, 0x09, 0x3C, 0xA1, 0x23, 0x3D,
  9341. /* 00F0 */ 0xF2, 0xC2, 0xE6, 0x29, 0xD4, 0x18, 0xCD, 0x41,
  9342. /* 00F8 */ 0x11, 0xB8, 0xD0, 0x18, 0x19, 0x10, 0xF2, 0x3C,
  9343. /* 0100 */ 0x7E, 0x8D, 0xC4, 0x04, 0x76, 0x2F, 0xC0, 0x1A,
  9344. /* 0108 */ 0xA6, 0x60, 0x1B, 0x9B, 0x98, 0xFE, 0xFF, 0x10,
  9345. /* 0110 */ 0x47, 0x1E, 0xA3, 0xAD, 0xB9, 0x0B, 0x29, 0x4C,
  9346. /* 0118 */ 0x8C, 0x28, 0xC1, 0xE2, 0x55, 0x3C, 0x0D, 0xA1,
  9347. /* 0120 */ 0x3C, 0x29, 0x84, 0x8A, 0x54, 0x19, 0x8A, 0x86,
  9348. /* 0128 */ 0x1E, 0xA5, 0x42, 0x01, 0xCE, 0xE6, 0x21, 0xDC,
  9349. /* 0130 */ 0x1A, 0x41, 0x85, 0x10, 0x2B, 0x52, 0xAC, 0xF6,
  9350. /* 0138 */ 0x07, 0x41, 0x42, 0x2E, 0x5B, 0xC7, 0x07, 0x47,
  9351. /* 0140 */ 0x1A, 0x0D, 0xEA, 0x50, 0xE0, 0xB1, 0x7B, 0xDC,
  9352. /* 0148 */ 0xCF, 0x02, 0x3E, 0x08, 0x9C, 0x5B, 0x90, 0xA3,
  9353. /* 0150 */ 0x3B, 0x8B, 0x47, 0x85, 0x83, 0xF6, 0xF0, 0xD8,
  9354. /* 0158 */ 0x6D, 0xC0, 0x67, 0x08, 0x9F, 0x02, 0xF0, 0xAE,
  9355. /* 0160 */ 0x01, 0x35, 0xFD, 0x83, 0x67, 0x82, 0xE0, 0x50,
  9356. /* 0168 */ 0x43, 0xF4, 0xA8, 0xC3, 0x9D, 0xC0, 0x21, 0x32,
  9357. /* 0170 */ 0x40, 0x4F, 0xEA, 0xB8, 0xB1, 0x83, 0x3B, 0x99,
  9358. /* 0178 */ 0x83, 0x7E, 0x6F, 0x68, 0xF6, 0xC6, 0x40, 0x08,
  9359. /* 0180 */ 0x8E, 0xC7, 0x97, 0x05, 0x36, 0xE1, 0x04, 0x96,
  9360. /* 0188 */ 0x3F, 0x08, 0xD4, 0xC8, 0x0C, 0xED, 0x51, 0x9E,
  9361. /* 0190 */ 0x56, 0xCC, 0x90, 0xCF, 0x0C, 0x26, 0xB0, 0x58,
  9362. /* 0198 */ 0x08, 0x29, 0x80, 0xD0, 0x78, 0xC0, 0x7F, 0x03,
  9363. /* 01A0 */ 0x78, 0xC0, 0xF0, 0xCD, 0xC0, 0xF3, 0x35, 0xC1,
  9364. /* 01A8 */ 0xB0, 0x10, 0x32, 0xB2, 0x0A, 0x8F, 0x87, 0x8E,
  9365. /* 01B0 */ 0xC2, 0xD7, 0x83, 0xC3, 0x39, 0xAD, 0x78, 0x26,
  9366. /* 01B8 */ 0x18, 0x0E, 0x42, 0x27, 0x09, 0x8B, 0x1A, 0x36,
  9367. /* 01C0 */ 0x3D, 0x39, 0xF0, 0x43, 0x03, 0xBB, 0x19, 0x9C,
  9368. /* 01C8 */ 0xC1, 0x23, 0x80, 0x47, 0x72, 0x42, 0xFE, 0x98,
  9369. /* 01D0 */ 0x78, 0x60, 0xF0, 0x01, 0xF1, 0xDE, 0xA7, 0x4C,
  9370. /* 01D8 */ 0x46, 0x70, 0xA6, 0x06, 0xF4, 0x71, 0xC0, 0xFF,
  9371. /* 01E0 */ 0xFF, 0xA1, 0xF0, 0x21, 0x7A, 0x7C, 0xA7, 0x7C,
  9372. /* 01E8 */ 0xBC, 0x96, 0x00, 0x21, 0x59, 0xE3, 0x84, 0x7E,
  9373. /* 01F0 */ 0x87, 0xF0, 0xF1, 0xC3, 0x47, 0x16, 0x47, 0x84,
  9374. /* 01F8 */ 0x90, 0x93, 0x53, 0x00, 0x1A, 0xF8, 0x74, 0xCF,
  9375. /* 0200 */ 0x2E, 0xC2, 0xE9, 0x7A, 0x52, 0x0E, 0x34, 0x0C,
  9376. /* 0208 */ 0x3A, 0x4E, 0x70, 0x9C, 0x07, 0xC0, 0x31, 0x4E,
  9377. /* 0210 */ 0xF8, 0xE7, 0x02, 0xF8, 0x03, 0xE4, 0xA7, 0x8C,
  9378. /* 0218 */ 0x57, 0x8C, 0x04, 0x8E, 0x39, 0x42, 0xF4, 0xB9,
  9379. /* 0220 */ 0xC6, 0x23, 0xC4, 0xC2, 0x3F, 0x55, 0x14, 0x3E,
  9380. /* 0228 */ 0x10, 0x32, 0x46, 0x70, 0x01, 0x7A, 0x8C, 0xC0,
  9381. /* 0230 */ 0x37, 0xE0, 0x18, 0xD1, 0x47, 0x09, 0xAE, 0xFE,
  9382. /* 0238 */ 0xA0, 0x41, 0x07, 0x88, 0xFB, 0xFF, 0x0F, 0x10,
  9383. /* 0240 */ 0x3E, 0xA8, 0x07, 0x08, 0x7C, 0xA3, 0x1F, 0x3D,
  9384. /* 0248 */ 0xD0, 0xE3, 0xB2, 0xE8, 0xF3, 0x80, 0x8C, 0x9F,
  9385. /* 0250 */ 0x68, 0x34, 0x2F, 0x7E, 0x3A, 0xE0, 0x87, 0x0F,
  9386. /* 0258 */ 0xF0, 0x80, 0x7A, 0x48, 0x38, 0x50, 0xCC, 0xB4,
  9387. /* 0260 */ 0x39, 0xE8, 0xB3, 0xCB, 0xA1, 0x63, 0x87, 0x0B,
  9388. /* 0268 */ 0xFE, 0x13, 0x08, 0xB8, 0xE4, 0x1D, 0xC2, 0x40,
  9389. /* 0270 */ 0x31, 0x62, 0xFC, 0x39, 0xC8, 0xA7, 0x30, 0xF0,
  9390. /* 0278 */ 0xFF, 0xFF, 0x4F, 0x61, 0xB8, 0x11, 0xF0, 0x20,
  9391. /* 0280 */ 0xAF, 0x05, 0x9F, 0xB6, 0xA8, 0x74, 0x18, 0xD4,
  9392. /* 0288 */ 0x81, 0x0B, 0x30, 0x09, 0x1A, 0xE1, 0x59, 0xA2,
  9393. /* 0290 */ 0x36, 0x08, 0x01, 0xBF, 0x4D, 0xBC, 0x6D, 0xF9,
  9394. /* 0298 */ 0x16, 0x10, 0xE7, 0xC8, 0x7B, 0x3B, 0x70, 0x11,
  9395. /* 02A0 */ 0x8C, 0x08, 0xA7, 0x1D, 0xCA, 0x63, 0x88, 0x18,
  9396. /* 02A8 */ 0x23, 0xCA, 0xE3, 0x96, 0x51, 0xDE, 0xB6, 0x5E,
  9397. /* 02B0 */ 0x00, 0xE2, 0x9D, 0xE5, 0xF3, 0x96, 0x31, 0x82,
  9398. /* 02B8 */ 0x47, 0x7E, 0xE0, 0x62, 0x62, 0xDF, 0x13, 0xFA,
  9399. /* 02C0 */ 0xB9, 0xF9, 0xC0, 0x05, 0x38, 0xFB, 0xFF, 0x1F,
  9400. /* 02C8 */ 0xB8, 0x00, 0x0E, 0x05, 0x3D, 0x0C, 0xA1, 0x87,
  9401. /* 02D0 */ 0xE1, 0xA9, 0x9C, 0xCB, 0x13, 0xE5, 0xA9, 0x44,
  9402. /* 02D8 */ 0x8C, 0x1A, 0x26, 0xEA, 0x33, 0x94, 0x2F, 0x1A,
  9403. /* 02E0 */ 0x3E, 0x10, 0x81, 0xEF, 0xCC, 0x05, 0xFC, 0xFE,
  9404. /* 02E8 */ 0xFF, 0x07, 0x22, 0x38, 0x02, 0xCF, 0x34, 0xA0,
  9405. /* 02F0 */ 0xF4, 0x39, 0x03, 0x81, 0x9C, 0x8A, 0x0F, 0x35,
  9406. /* 02F8 */ 0xC0, 0x48, 0xF4, 0xAB, 0xC1, 0x27, 0x1A, 0x2A,
  9407. /* 0300 */ 0x13, 0x06, 0x75, 0xA8, 0x01, 0x4C, 0x5E, 0x61,
  9408. /* 0308 */ 0x9E, 0x46, 0xCF, 0xF9, 0x59, 0xC6, 0xA7, 0x1A,
  9409. /* 0310 */ 0x1F, 0x4A, 0x8D, 0x63, 0x88, 0x97, 0x99, 0x87,
  9410. /* 0318 */ 0x1A, 0x1F, 0x0B, 0x5E, 0x49, 0x7D, 0xA8, 0x31,
  9411. /* 0320 */ 0x54, 0x9C, 0x87, 0x1A, 0x9F, 0x48, 0x03, 0x45,
  9412. /* 0328 */ 0x7D, 0xB3, 0x79, 0xB6, 0x31, 0x7A, 0x7C, 0xDF,
  9413. /* 0330 */ 0x50, 0x0D, 0xF1, 0x50, 0xC3, 0x84, 0xBD, 0x23,
  9414. /* 0338 */ 0xF4, 0xC1, 0xF5, 0xA1, 0x06, 0x1C, 0xFF, 0xFF,
  9415. /* 0340 */ 0x43, 0x0D, 0xC0, 0xFF, 0xFF, 0xFF, 0xA1, 0x06,
  9416. /* 0348 */ 0x70, 0x74, 0x34, 0x80, 0x73, 0x64, 0xC4, 0x1D,
  9417. /* 0350 */ 0x0D, 0xC0, 0x75, 0x28, 0x05, 0x0E, 0x47, 0x03,
  9418. /* 0358 */ 0xE0, 0x71, 0x14, 0x02, 0xF3, 0x85, 0xC6, 0x47,
  9419. /* 0360 */ 0x21, 0x60, 0xF1, 0xFF, 0x3F, 0x0A, 0xE1, 0x64,
  9420. /* 0368 */ 0x9F, 0x83, 0x50, 0x42, 0x8F, 0x42, 0x80, 0x54,
  9421. /* 0370 */ 0xC8, 0xA7, 0x88, 0x67, 0x1F, 0x5F, 0x7E, 0x1E,
  9422. /* 0378 */ 0x08, 0x22, 0xBC, 0xE6, 0xFB, 0x14, 0xE4, 0x43,
  9423. /* 0380 */ 0xBE, 0x8F, 0x42, 0x0C, 0xC6, 0x50, 0xBE, 0x06,
  9424. /* 0388 */ 0xF9, 0x28, 0xC4, 0xA0, 0x5E, 0x83, 0x7C, 0xDF,
  9425. /* 0390 */ 0x37, 0xC8, 0x91, 0x18, 0xFB, 0x99, 0xC0, 0x47,
  9426. /* 0398 */ 0x21, 0x26, 0xED, 0x28, 0x04, 0x28, 0xFC, 0xFF,
  9427. /* 03A0 */ 0x1F, 0x85, 0x00, 0xFE, 0xFF, 0xFF, 0x8F, 0x42,
  9428. /* 03A8 */ 0x80, 0xB3, 0x00, 0x47, 0x03, 0xD0, 0x4D, 0xEB,
  9429. /* 03B0 */ 0x51, 0x08, 0xBC, 0x77, 0x96, 0xD3, 0x3E, 0x01,
  9430. /* 03B8 */ 0x9F, 0x85, 0x00, 0xB3, 0xFF, 0xFF, 0xB3, 0x10,
  9431. /* 03C0 */ 0x30, 0x3B, 0x0A, 0x45, 0x3D, 0xE8, 0x57, 0xA1,
  9432. /* 03C8 */ 0x27, 0x80, 0x17, 0x80, 0x18, 0x61, 0xDE, 0x81,
  9433. /* 03D0 */ 0x5E, 0x32, 0xD9, 0x5D, 0xDC, 0x38, 0x4F, 0x2E,
  9434. /* 03D8 */ 0xA7, 0x6D, 0x94, 0x97, 0x20, 0x1F, 0x28, 0x9E,
  9435. /* 03E0 */ 0x85, 0x0C, 0xF5, 0x2E, 0x14, 0xF4, 0x8D, 0xDC,
  9436. /* 03E8 */ 0xA3, 0x8C, 0x19, 0x3F, 0xC4, 0xF3, 0x90, 0x21,
  9437. /* 03F0 */ 0x9E, 0x85, 0x00, 0x76, 0xFD, 0xFF, 0xCF, 0x42,
  9438. /* 03F8 */ 0x00, 0xFF, 0xFF, 0xFF, 0x47, 0x03, 0xF8, 0x2F,
  9439. /* 0400 */ 0x00, 0x9F, 0x85, 0x80, 0xE7, 0x09, 0xE0, 0x41,
  9440. /* 0408 */ 0xDB, 0x67, 0x21, 0x80, 0x33, 0x87, 0xCB, 0xF3,
  9441. /* 0410 */ 0x0F, 0x7A, 0x60, 0xEF, 0x11, 0x9E, 0xF5, 0x71,
  9442. /* 0418 */ 0xBF, 0x5E, 0x7A, 0xE0, 0x0F, 0x05, 0xCF, 0x42,
  9443. /* 0420 */ 0x0C, 0xEB, 0x98, 0x7C, 0x16, 0x62, 0x10, 0x2F,
  9444. /* 0428 */ 0x9A, 0x86, 0x78, 0xE1, 0xF4, 0x61, 0xC0, 0xFF,
  9445. /* 0430 */ 0x7F, 0xBC, 0xC0, 0xAF, 0x9C, 0x06, 0x0A, 0x12,
  9446. /* 0438 */ 0xE8, 0x59, 0x08, 0x60, 0xFC, 0xFF, 0xFF, 0x2C,
  9447. /* 0440 */ 0x04, 0x90, 0x71, 0x8D, 0x3A, 0x0B, 0x01, 0xCB,
  9448. /* 0448 */ 0x63, 0x0C, 0x3B, 0xAD, 0x24, 0xF8, 0xFF, 0x3F,
  9449. /* 0450 */ 0x0B, 0x01, 0x9F, 0x5C, 0x46, 0x0E, 0x42, 0x98,
  9450. /* 0458 */ 0x88, 0x6F, 0x05, 0x1F, 0x33, 0x01, 0xA5, 0xE7,
  9451. /* 0460 */ 0xA0, 0x17, 0x77, 0x63, 0x04, 0x7E, 0x91, 0x78,
  9452. /* 0468 */ 0xCC, 0x64, 0x47, 0x4D, 0xC3, 0x3C, 0x0B, 0x19,
  9453. /* 0470 */ 0xEF, 0x30, 0xCE, 0xE0, 0x09, 0xDE, 0x93, 0x7F,
  9454. /* 0478 */ 0x16, 0x62, 0x60, 0xC7, 0x18, 0xEC, 0x51, 0xC8,
  9455. /* 0480 */ 0xA0, 0x06, 0x8F, 0x1D, 0x22, 0x4C, 0xA0, 0x67,
  9456. /* 0488 */ 0x21, 0x16, 0x6A, 0xDC, 0x3A, 0x7F, 0xF8, 0x2C,
  9457. /* 0490 */ 0x04, 0xBC, 0xFF, 0xFF, 0x67, 0x21, 0xC0, 0xD3,
  9458. /* 0498 */ 0x61, 0xC3, 0x67, 0x0D, 0xF0, 0x0C, 0xDF, 0xA3,
  9459. /* 04A0 */ 0x3A, 0x87, 0xC7, 0x63, 0xE0, 0x92, 0x55, 0xC7,
  9460. /* 04A8 */ 0x09, 0x83, 0xE5, 0x5E, 0xA7, 0x6C, 0x9C, 0x61,
  9461. /* 04B0 */ 0xE8, 0x20, 0xAC, 0x0E, 0x48, 0xC3, 0xC1, 0xDC,
  9462. /* 04B8 */ 0x43, 0x0E, 0xE2, 0x7C, 0xD8, 0x40, 0xAD, 0x08,
  9463. /* 04C0 */ 0x4E, 0xC7, 0x24, 0x0F, 0xDA, 0x5A, 0x28, 0xA4,
  9464. /* 04C8 */ 0x80, 0x46, 0x03, 0x32, 0xBC, 0x33, 0x9F, 0x96,
  9465. /* 04D0 */ 0x28, 0x88, 0x01, 0x7D, 0x02, 0xB2, 0x8D, 0x73,
  9466. /* 04D8 */ 0x00, 0x6A, 0x2F, 0x9A, 0x02, 0x39, 0xDA, 0x60,
  9467. /* 04E0 */ 0xF4, 0x5F, 0x16, 0xE8, 0x6C, 0x7C, 0x0D, 0xE0,
  9468. /* 04E8 */ 0x1A, 0x20, 0x74, 0x30, 0x30, 0xB4, 0xD5, 0xDC,
  9469. /* 04F0 */ 0x62, 0x50, 0x60, 0xC6, 0x7F, 0x70, 0x31, 0x81,
  9470. /* 04F8 */ 0x8F, 0x2E, 0xF8, 0xB3, 0x00, 0xEE, 0xFF, 0x3F,
  9471. /* 0500 */ 0x5C, 0x8F, 0xF6, 0x5D, 0xA0, 0xEA, 0xC9, 0xEA,
  9472. /* 0508 */ 0x8A, 0x60, 0x75, 0x97, 0x17, 0x08, 0x33, 0x32,
  9473. /* 0510 */ 0x41, 0x7D, 0x07, 0x02, 0x50, 0x00, 0xF9, 0x0E,
  9474. /* 0518 */ 0xE0, 0xA3, 0xD3, 0x73, 0x00, 0x9B, 0x48, 0x88,
  9475. /* 0520 */ 0x30, 0xD1, 0x8C, 0x8E, 0x98, 0x30, 0x2A, 0xFA,
  9476. /* 0528 */ 0x84, 0x29, 0x88, 0x27, 0xEC, 0x58, 0x13, 0x46,
  9477. /* 0530 */ 0xCF, 0xC4, 0x77, 0x1B, 0x36, 0x62, 0x4C, 0x88,
  9478. /* 0538 */ 0xDB, 0x06, 0xB4, 0x09, 0x06, 0xF5, 0x3D, 0x08,
  9479. /* 0540 */ 0xD6, 0x90, 0xF9, 0x58, 0x7C, 0x67, 0xC0, 0x4D,
  9480. /* 0548 */ 0x19, 0x8C, 0x73, 0x62, 0xD7, 0x04, 0x0B, 0x9C,
  9481. /* 0550 */ 0x33, 0xC8, 0xE1, 0x31, 0xD7, 0x2F, 0x7E, 0x5B,
  9482. /* 0558 */ 0xF2, 0xE8, 0xF8, 0x41, 0xC1, 0x37, 0x1C, 0x86,
  9483. /* 0560 */ 0xFD, 0x30, 0xE6, 0x19, 0xBD, 0x8A, 0xF9, 0xE6,
  9484. /* 0568 */ 0x86, 0x81, 0xF5, 0x78, 0x39, 0xAC, 0xD1, 0xC2,
  9485. /* 0570 */ 0x1E, 0xDA, 0xAB, 0x87, 0xCF, 0x2D, 0x3E, 0x4F,
  9486. /* 0578 */ 0x18, 0x23, 0xAC, 0x2F, 0x2C, 0xE0, 0x00, 0xFC,
  9487. /* 0580 */ 0xFF, 0xBF, 0x5A, 0xC1, 0xBE, 0x6B, 0x80, 0xE7,
  9488. /* 0588 */ 0x26, 0xE4, 0xBB, 0x06, 0xC0, 0xDA, 0xFF, 0xFF,
  9489. /* 0590 */ 0x5D, 0x03, 0xFE, 0x35, 0xC1, 0x77, 0x0D, 0xE0,
  9490. /* 0598 */ 0x3D, 0x74, 0xDF, 0x35, 0x80, 0x6B, 0xF6, 0xBB,
  9491. /* 05A0 */ 0x06, 0xEA, 0x18, 0x60, 0x85, 0x77, 0x0D, 0x68,
  9492. /* 05A8 */ 0xB7, 0xB4, 0x57, 0xB4, 0x87, 0x2A, 0x6B, 0xBA,
  9493. /* 05B0 */ 0x6C, 0xA0, 0xD4, 0x5C, 0x36, 0x00, 0x6D, 0xFF,
  9494. /* 05B8 */ 0xFF, 0xCB, 0x06, 0xB0, 0x91, 0x32, 0x61, 0x54,
  9495. /* 05C0 */ 0xF8, 0x09, 0x53, 0x10, 0x4F, 0xD8, 0xC1, 0x2E,
  9496. /* 05C8 */ 0x1B, 0xA0, 0x88, 0x71, 0xD9, 0x00, 0xFD, 0xD8,
  9497. /* 05D0 */ 0x5E, 0x36, 0x80, 0xC1, 0x3D, 0x81, 0xDF, 0x36,
  9498. /* 05D8 */ 0x80, 0x37, 0xA4, 0x6F, 0x1B, 0xC0, 0xF4, 0xFF,
  9499. /* 05E0 */ 0x0F, 0x31, 0xFF, 0x6D, 0x03, 0xC5, 0x61, 0x95,
  9500. /* 05E8 */ 0xB7, 0x0D, 0x88, 0x87, 0x77, 0x46, 0x60, 0x55,
  9501. /* 05F0 */ 0xD7, 0x0D, 0x94, 0x9E, 0xEB, 0x06, 0x40, 0x02,
  9502. /* 05F8 */ 0x31, 0x13, 0x46, 0xC5, 0x9F, 0x30, 0x05, 0xF1,
  9503. /* 0600 */ 0x84, 0x1D, 0xED, 0xBA, 0x01, 0x8A, 0x20, 0xD7,
  9504. /* 0608 */ 0x0D, 0xD0, 0xCF, 0xEB, 0x94, 0xC1, 0xFA, 0xFF,
  9505. /* 0610 */ 0xBF, 0x6E, 0x60, 0x2F, 0x0A, 0x98, 0xFB, 0x06,
  9506. /* 0618 */ 0xF0, 0x86, 0xE5, 0xF7, 0x0D, 0xC0, 0xC7, 0xE5,
  9507. /* 0620 */ 0x1B, 0x73, 0xDF, 0x00, 0x6C, 0xFE, 0xFF, 0xEF,
  9508. /* 0628 */ 0x1B, 0x00, 0x13, 0x2E, 0x0A, 0xB8, 0xFB, 0x06,
  9509. /* 0630 */ 0xF0, 0xBE, 0x48, 0xFB, 0xBE, 0x01, 0x5C, 0x83,
  9510. /* 0638 */ 0x49, 0xF8, 0xFF, 0xDF, 0xF5, 0xE8, 0x0B, 0x40,
  9511. /* 0640 */ 0x51, 0x60, 0x50, 0x43, 0xF2, 0x99, 0x00, 0x3F,
  9512. /* 0648 */ 0xBA, 0x83, 0x3B, 0xA6, 0xE0, 0x4C, 0x12, 0x1C,
  9513. /* 0650 */ 0x6A, 0xE0, 0xBE, 0x02, 0x3C, 0xCD, 0x9F, 0xD6,
  9514. /* 0658 */ 0x7B, 0xBD, 0xE7, 0xF1, 0x24, 0x10, 0x92, 0x1D,
  9515. /* 0660 */ 0x61, 0x7C, 0x6C, 0x43, 0x9C, 0x0C, 0xC8, 0x41,
  9516. /* 0668 */ 0xDC, 0x47, 0xF7, 0x88, 0xEF, 0xE1, 0x86, 0x49,
  9517. /* 0670 */ 0xE0, 0x21, 0x33, 0x34, 0x0E, 0x8D, 0x1D, 0x86,
  9518. /* 0678 */ 0xEF, 0x02, 0xC1, 0x0E, 0xE2, 0x30, 0xCE, 0xD7,
  9519. /* 0680 */ 0x04, 0x9E, 0xD0, 0x83, 0xC0, 0x7B, 0xF9, 0xA3,
  9520. /* 0688 */ 0x41, 0xF1, 0x77, 0x03, 0x4A, 0x60, 0xB8, 0xD0,
  9521. /* 0690 */ 0x98, 0x91, 0xFA, 0x6C, 0xFF, 0x8E, 0x70, 0x24,
  9522. /* 0698 */ 0x26, 0xB0, 0x7B, 0x48, 0x59, 0x13, 0xA0, 0xF1,
  9523. /* 06A0 */ 0x96, 0x43, 0x20, 0x7A, 0xC3, 0x91, 0x2D, 0x14,
  9524. /* 06A8 */ 0xCD, 0x2D, 0xCA, 0xFB, 0x42, 0x14, 0x3B, 0x43,
  9525. /* 06B0 */ 0x10, 0x46, 0x94, 0x60, 0x41, 0x9E, 0xD6, 0x62,
  9526. /* 06B8 */ 0x45, 0x79, 0x66, 0x37, 0x42, 0xC4, 0x10, 0xAF,
  9527. /* 06C0 */ 0x0C, 0x81, 0x5E, 0x12, 0xC2, 0x07, 0x79, 0xEC,
  9528. /* 06C8 */ 0x89, 0xD3, 0xFE, 0x20, 0x88, 0xF8, 0x17, 0x82,
  9529. /* 06D0 */ 0x3C, 0x80, 0x28, 0xD2, 0x68, 0x50, 0xE7, 0x06,
  9530. /* 06D8 */ 0x8F, 0xDD, 0x87, 0x10, 0x5F, 0xFE, 0x7D, 0xB8,
  9531. /* 06E0 */ 0xF7, 0xE8, 0x0E, 0xEE, 0x45, 0xFE, 0xA0, 0x3D,
  9532. /* 06E8 */ 0x3C, 0x76, 0xC2, 0xF0, 0x41, 0x03, 0x8E, 0x6B,
  9533. /* 06F0 */ 0x40, 0x4D, 0xFF, 0x19, 0x01, 0x2C, 0x97, 0x7F,
  9534. /* 06F8 */ 0xF8, 0xE3, 0xF1, 0x3D, 0xC1, 0xF3, 0x39, 0xE1,
  9535. /* 0700 */ 0x04, 0x96, 0x3F, 0x08, 0xD4, 0x71, 0x84, 0xCF,
  9536. /* 0708 */ 0xF3, 0x85, 0xC3, 0x90, 0xCF, 0x02, 0x87, 0xC5,
  9537. /* 0710 */ 0xC4, 0x0A, 0xF8, 0xFF, 0x9F, 0x4C, 0xD8, 0x78,
  9538. /* 0718 */ 0xC0, 0x7F, 0x0F, 0x79, 0xFD, 0xF7, 0xCD, 0xC0,
  9539. /* 0720 */ 0xF3, 0x35, 0xC1, 0x88, 0x10, 0x72, 0x32, 0x1E,
  9540. /* 0728 */ 0x34, 0xE8, 0xD9, 0xF8, 0x80, 0xE1, 0xEB, 0x09,
  9541. /* 0730 */ 0x3B, 0x77, 0x70, 0x51, 0xE7, 0x0E, 0xD4, 0xD1,
  9542. /* 0738 */ 0xC1, 0xA7, 0x06, 0x76, 0xB3, 0xC1, 0x1C, 0xB7,
  9543. /* 0740 */ 0xF9, 0x59, 0x03, 0xFC, 0x23, 0x84, 0x7F, 0x7B,
  9544. /* 0748 */ 0xF0, 0xBC, 0x7C, 0x65, 0x78, 0x75, 0x48, 0xE0,
  9545. /* 0750 */ 0x90, 0x23, 0x44, 0x8F, 0xCB, 0x23, 0xC4, 0x9C,
  9546. /* 0758 */ 0x6F, 0x30, 0x43, 0x04, 0xD7, 0x59, 0x00, 0x1C,
  9547. /* 0760 */ 0x43, 0x04, 0x3E, 0x67, 0x4C, 0x9F, 0x71, 0x60,
  9548. /* 0768 */ 0xFE, 0xFF, 0xCF, 0x38, 0xEC, 0xD2, 0xC3, 0x07,
  9549. /* 0770 */ 0x6A, 0x78, 0x13, 0xF8, 0xFE, 0x8C, 0x3B, 0xD2,
  9550. /* 0778 */ 0x18, 0x9C, 0x1F, 0x33, 0x1E, 0x76, 0x18, 0xF8,
  9551. /* 0780 */ 0xFB, 0x8E, 0x67, 0x70, 0x34, 0x3E, 0xA0, 0x18,
  9552. /* 0788 */ 0x21, 0xF8, 0x73, 0xC9, 0x73, 0x8A, 0x35, 0x0F,
  9553. /* 0790 */ 0x52, 0x33, 0x7A, 0x67, 0x38, 0x04, 0x76, 0xB3,
  9554. /* 0798 */ 0xC2, 0x1D, 0x38, 0x3C, 0x04, 0x3E, 0x80, 0x56,
  9555. /* 07A0 */ 0x27, 0x47, 0x4E, 0x3F, 0xA7, 0x84, 0x1B, 0x3E,
  9556. /* 07A8 */ 0xBF, 0x0A, 0x60, 0x0E, 0x41, 0x38, 0x85, 0x36,
  9557. /* 07B0 */ 0x7D, 0x6A, 0x34, 0x6A, 0xD5, 0xA0, 0x4C, 0x8D,
  9558. /* 07B8 */ 0x32, 0x0D, 0x6A, 0xF5, 0xA9, 0xD4, 0x98, 0xB1,
  9559. /* 07C0 */ 0x0B, 0x8B, 0x03, 0xBE, 0x02, 0x74, 0x1C, 0xB0,
  9560. /* 07C8 */ 0x3C, 0x0A, 0x1D, 0xC1, 0xC8, 0x9B, 0x40, 0x20,
  9561. /* 07D0 */ 0x0E, 0x0B, 0x42, 0x23, 0xBD, 0x71, 0x04, 0x62,
  9562. /* 07D8 */ 0xC9, 0xEF, 0x2F, 0x81, 0x58, 0xEE, 0x03, 0x45,
  9563. /* 07E0 */ 0x20, 0x0E, 0x68, 0x02, 0x9C, 0xAA, 0x00, 0xA7,
  9564. /* 07E8 */ 0xAF, 0x01, 0x81, 0x38, 0x32, 0x08, 0x15, 0xFA,
  9565. /* 07F0 */ 0x35, 0x13, 0x88, 0x63, 0x82, 0xD0, 0x50, 0x3E,
  9566. /* 07F8 */ 0x40, 0x98, 0xF4, 0x17, 0x80, 0x00, 0x89, 0x11,
  9567. /* 0800 */ 0x10, 0x16, 0xEE, 0xE5, 0x20, 0x10, 0x4B, 0x7B,
  9568. /* 0808 */ 0x2D, 0x08, 0xC4, 0x42, 0xAC, 0x80, 0xB0, 0xB8,
  9569. /* 0810 */ 0x20, 0x34, 0x9C, 0x16, 0x10, 0x26, 0xC9, 0x0C,
  9570. /* 0818 */ 0x08, 0x0B, 0x04, 0x42, 0xE5, 0x3F, 0xD3, 0x04,
  9571. /* 0820 */ 0x62, 0x91, 0x6E, 0x00, 0xE9, 0xBA, 0x05, 0xE2,
  9572. /* 0828 */ 0x20, 0x7A, 0x40, 0x98, 0x0C, 0x3F, 0x20, 0x2C,
  9573. /* 0830 */ 0x34, 0x08, 0x8D, 0xF6, 0x6C, 0x10, 0x20, 0x31,
  9574. /* 0838 */ 0x04, 0xC2, 0xE2, 0x3B, 0x02, 0x61, 0xE2, 0xDF,
  9575. /* 0840 */ 0x44, 0x02, 0x71, 0x4A, 0x4B, 0x10, 0x37, 0xA5,
  9576. /* 0848 */ 0x01, 0x06, 0x11, 0x90, 0x93, 0x6A, 0x02, 0x62,
  9577. /* 0850 */ 0xB9, 0x41, 0x34, 0x24, 0xF2, 0xB0, 0x10, 0x90,
  9578. /* 0858 */ 0x93, 0x82, 0x68, 0xC0, 0xC4, 0x14, 0x90, 0xFF,
  9579. /* 0860 */ 0xFF, 0x43, 0x13, 0x88, 0x80, 0x9C, 0xCA, 0x15,
  9580. /* 0868 */ 0x10, 0x8B, 0x08, 0x22, 0x20, 0x27, 0x7B, 0x52,
  9581. /* 0870 */ 0x09, 0xC8, 0x39, 0x41, 0x74, 0x04, 0x20, 0xBA,
  9582. /* 0878 */ 0x80, 0x58, 0x3E, 0x10, 0x01, 0x39, 0x96, 0x2F,
  9583. /* 0880 */ 0x20, 0x16, 0x12, 0x44, 0x40, 0x4E, 0xF4, 0xF3,
  9584. /* 0888 */ 0x09, 0x44, 0xE2, 0x81, 0x68, 0x10, 0xE4, 0x3F,
  9585. /* 0890 */ 0x21, 0x20, 0x67, 0x04, 0x11, 0x10, 0x79, 0x12,
  9586. /* 0898 */ 0x05, 0x21, 0x9A, 0x3E, 0x62, 0x02, 0x71, 0x6A,
  9587. /* 08A0 */ 0x10, 0x9A, 0xEC, 0x27, 0x14, 0x84, 0xFC, 0xFF,
  9588. /* 08A8 */ 0x01
  9589. })
  9590. }
  9591. }
  9592.  
  9593. Scope (_PR)
  9594. {
  9595. Processor (CPU0, 0x01, 0x00000410, 0x06) {}
  9596. Processor (CPU1, 0x02, 0x00000410, 0x06) {}
  9597. Processor (CPU2, 0x03, 0x00000410, 0x06) {}
  9598. Processor (CPU3, 0x04, 0x00000410, 0x06) {}
  9599. Processor (CPU4, 0x05, 0x00000410, 0x06) {}
  9600. Processor (CPU5, 0x06, 0x00000410, 0x06) {}
  9601. Processor (CPU6, 0x07, 0x00000410, 0x06) {}
  9602. Processor (CPU7, 0x08, 0x00000410, 0x06) {}
  9603. }
  9604.  
  9605. Device (_SB.PCI0.LPCB.TPM)
  9606. {
  9607. Name (_HID, EisaId ("PNP0C31")) // _HID: Hardware ID
  9608. Name (_CID, EisaId ("PNP0C31")) // _CID: Compatible ID
  9609. Name (_STR, Unicode ("TPM 1.2 Device")) // _STR: Description String
  9610. Name (_CRS, ResourceTemplate () // _CRS: Current Resource Settings
  9611. {
  9612. Memory32Fixed (ReadOnly,
  9613. 0xFED40000, // Address Base
  9614. 0x00005000, // Address Length
  9615. )
  9616. })
  9617. OperationRegion (CMOS, SystemIO, 0x70, 0x04)
  9618. Field (CMOS, ByteAcc, NoLock, Preserve)
  9619. {
  9620. IDX0, 7,
  9621. Offset (0x01),
  9622. DAT0, 8,
  9623. IDX1, 7,
  9624. Offset (0x03),
  9625. DAT1, 8
  9626. }
  9627.  
  9628. IndexField (IDX1, DAT1, ByteAcc, NoLock, Preserve)
  9629. {
  9630. Offset (0x60),
  9631. CCMD, 8,
  9632. LCMD, 8,
  9633. LRET, 32,
  9634. EXST, 8
  9635. }
  9636.  
  9637. OperationRegion (SSMI, SystemIO, 0xB2, One)
  9638. Field (SSMI, ByteAcc, NoLock, Preserve)
  9639. {
  9640. SMID, 8
  9641. }
  9642.  
  9643. OperationRegion (TPMR, SystemMemory, 0xFED40000, 0x5000)
  9644. Field (TPMR, AnyAcc, NoLock, Preserve)
  9645. {
  9646. ACC0, 8
  9647. }
  9648.  
  9649. Method (_INI, 0, NotSerialized) // _INI: Initialize
  9650. {
  9651. Store (_STA (), EXST)
  9652. }
  9653.  
  9654. Method (_STA, 0, NotSerialized) // _STA: Status
  9655. {
  9656. If (LNotEqual (ACC0, 0xFF))
  9657. {
  9658. Return (0x0F)
  9659. }
  9660.  
  9661. Return (Zero)
  9662. }
  9663.  
  9664. Method (HINF, 3, NotSerialized)
  9665. {
  9666. Name (T_0, Zero) // T_x: Emitted by ASL Compiler
  9667. Store (ToInteger (Arg1), T_0)
  9668. If (LEqual (T_0, Zero))
  9669. {
  9670. Return (Buffer (One)
  9671. {
  9672. 0x01
  9673. })
  9674. }
  9675. Else
  9676. {
  9677. If (LEqual (T_0, One))
  9678. {
  9679. If (LEqual (_STA (), Zero))
  9680. {
  9681. Return (Package (0x01)
  9682. {
  9683. Zero
  9684. })
  9685. }
  9686.  
  9687. Return (Package (0x02)
  9688. {
  9689. One,
  9690. Package (0x02)
  9691. {
  9692. One,
  9693. 0x20
  9694. }
  9695. })
  9696. }
  9697. Else
  9698. {
  9699. BreakPoint
  9700. }
  9701. }
  9702.  
  9703. Return (Buffer (One)
  9704. {
  9705. 0x00
  9706. })
  9707. }
  9708.  
  9709. Method (TPPI, 3, NotSerialized)
  9710. {
  9711. Name (T_0, Zero) // T_x: Emitted by ASL Compiler
  9712. Store (ToInteger (Arg1), T_0)
  9713. If (LEqual (T_0, Zero))
  9714. {
  9715. Return (Buffer (One)
  9716. {
  9717. 0x3F
  9718. })
  9719. }
  9720. Else
  9721. {
  9722. If (LEqual (T_0, One))
  9723. {
  9724. Return ("1.0")
  9725. }
  9726. Else
  9727. {
  9728. If (LEqual (T_0, 0x02))
  9729. {
  9730. CreateByteField (Arg2, Zero, TPC1)
  9731. Or (TPC1, 0x80, TPCC)
  9732. Store (0x50, SMID)
  9733. Return (Zero)
  9734. }
  9735. Else
  9736. {
  9737. If (LEqual (T_0, 0x03))
  9738. {
  9739. Name (TCCP, Package (0x02)
  9740. {
  9741. Zero,
  9742. 0xFF
  9743. })
  9744. Store (TPCC, Index (TCCP, One))
  9745. Return (TCCP)
  9746. }
  9747. Else
  9748. {
  9749. If (LEqual (T_0, 0x04))
  9750. {
  9751. Return (0x02)
  9752. }
  9753. Else
  9754. {
  9755. If (LEqual (T_0, 0x05))
  9756. {
  9757. Name (TLCR, Package (0x03)
  9758. {
  9759. Zero,
  9760. 0xFF,
  9761. 0xFFFF
  9762. })
  9763. Store (TPLC, Index (TLCR, One))
  9764. Store (TPLR, Index (TLCR, 0x02))
  9765. Return (TLCR)
  9766. }
  9767. Else
  9768. {
  9769. If (LEqual (T_0, 0x06))
  9770. {
  9771. Store (DerefOf (Index (Arg2, 0x04)), Local0)
  9772. Store (DerefOf (Index (Arg2, 0x05)), Local1)
  9773. If (LOr (LEqual (Local0, 0x65), LEqual (Local0, 0x45)))
  9774. {
  9775. If (LOr (LEqual (Local1, 0x6E), LEqual (Local1, 0x4E)))
  9776. {
  9777. Return (Zero)
  9778. }
  9779. }
  9780.  
  9781. Return (One)
  9782. }
  9783. Else
  9784. {
  9785. BreakPoint
  9786. }
  9787. }
  9788. }
  9789. }
  9790. }
  9791. }
  9792. }
  9793.  
  9794. Return (One)
  9795. }
  9796.  
  9797. Method (SMBS, 3, NotSerialized)
  9798. {
  9799. Store (Index (Arg2, Zero), TPMM)
  9800. Store (0x48, SMID)
  9801. Return (Zero)
  9802. }
  9803.  
  9804. Method (_DSM, 4, NotSerialized) // _DSM: Device-Specific Method
  9805. {
  9806. If (LEqual (Arg0, Buffer (0x10)
  9807. {
  9808. /* 0000 */ 0xA5, 0x16, 0x8E, 0xCF, 0xE8, 0xC1, 0x25, 0x4E,
  9809. /* 0008 */ 0xB7, 0x12, 0x4F, 0x54, 0xA9, 0x67, 0x02, 0xC8
  9810. }))
  9811. {
  9812. Return (HINF (Arg1, Arg2, Arg3))
  9813. }
  9814.  
  9815. If (LEqual (Arg0, Buffer (0x10)
  9816. {
  9817. /* 0000 */ 0xA6, 0xFA, 0xDD, 0x3D, 0x1B, 0x36, 0xB4, 0x4E,
  9818. /* 0008 */ 0xA4, 0x24, 0x8D, 0x10, 0x08, 0x9D, 0x16, 0x53
  9819. }))
  9820. {
  9821. Return (TPPI (Arg1, Arg2, Arg3))
  9822. }
  9823.  
  9824. If (LEqual (Arg0, Buffer (0x10)
  9825. {
  9826. /* 0000 */ 0xED, 0x54, 0x60, 0x37, 0x13, 0xCC, 0x75, 0x46,
  9827. /* 0008 */ 0x90, 0x1C, 0x47, 0x56, 0xD7, 0xF2, 0xD4, 0x5D
  9828. }))
  9829. {
  9830. Return (SMBS (Arg1, Arg2, Arg3))
  9831. }
  9832.  
  9833. Return (Buffer (One)
  9834. {
  9835. 0x00
  9836. })
  9837. }
  9838.  
  9839. Method (PTS, 1, NotSerialized)
  9840. {
  9841. Return (Zero)
  9842. }
  9843. }
  9844.  
  9845. OperationRegion (CMS1, SystemIO, 0x72, 0x02)
  9846. Field (CMS1, ByteAcc, NoLock, Preserve)
  9847. {
  9848. CMSI, 8,
  9849. CMSD, 8
  9850. }
  9851.  
  9852. IndexField (CMSI, CMSD, ByteAcc, NoLock, Preserve)
  9853. {
  9854. Offset (0x79),
  9855. HBUC, 8,
  9856. HBUS, 8
  9857. }
  9858.  
  9859. Method (CMSR, 1, NotSerialized)
  9860. {
  9861. Store (Arg0, CMSI)
  9862. Return (CMSD)
  9863. }
  9864.  
  9865. Method (CMSW, 2, NotSerialized)
  9866. {
  9867. Store (Arg0, CMSI)
  9868. Store (Arg1, CMSD)
  9869. }
  9870.  
  9871. OperationRegion (SPRT, SystemIO, 0xB2, 0x02)
  9872. Field (SPRT, ByteAcc, Lock, Preserve)
  9873. {
  9874. SMIP, 8,
  9875. SMID, 8
  9876. }
  9877.  
  9878. Method (HSMI, 1, NotSerialized)
  9879. {
  9880. Store (Arg0, SMID)
  9881. Store (0xD5, SMIP)
  9882. }
  9883.  
  9884. Method (OSMI, 1, NotSerialized)
  9885. {
  9886. Store (Arg0, SMID)
  9887. Store (0xB2, SMIP)
  9888. Stall (0xFF)
  9889. }
  9890.  
  9891. OperationRegion (CMS0, SystemIO, 0x70, 0x02)
  9892. Field (CMS0, ByteAcc, NoLock, Preserve)
  9893. {
  9894. CM0I, 8,
  9895. CM0D, 8
  9896. }
  9897.  
  9898. Method (CM0W, 2, NotSerialized)
  9899. {
  9900. Store (Arg0, CM0I)
  9901. Store (Arg1, CM0D)
  9902. }
  9903.  
  9904. Method (CM0R, 1, NotSerialized)
  9905. {
  9906. Store (Arg0, CM0I)
  9907. Return (CM0D)
  9908. }
  9909.  
  9910. Mutex (MUTX, 0x00)
  9911. OperationRegion (PRT0, SystemIO, 0x80, 0x04)
  9912. Field (PRT0, DWordAcc, Lock, Preserve)
  9913. {
  9914. P80H, 32
  9915. }
  9916.  
  9917. Method (P8XH, 3, Serialized)
  9918. {
  9919. If (LEqual (Arg0, Zero))
  9920. {
  9921. Store (Or (And (P80D, 0xFFFFFF00), Arg1), P80D)
  9922. }
  9923.  
  9924. If (LEqual (Arg0, One))
  9925. {
  9926. Store (Or (And (P80D, 0xFFFF00FF), ShiftLeft (Arg1, 0x08)
  9927. ), P80D)
  9928. }
  9929.  
  9930. If (LEqual (Arg0, 0x02))
  9931. {
  9932. Store (Or (And (P80D, 0xFF00FFFF), ShiftLeft (Arg1, 0x10)
  9933. ), P80D)
  9934. }
  9935.  
  9936. If (LEqual (Arg0, 0x03))
  9937. {
  9938. Store (Or (And (P80D, 0x00FFFFFF), ShiftLeft (Arg1, 0x18)
  9939. ), P80D)
  9940. }
  9941.  
  9942. If (LEqual (Arg0, 0x04))
  9943. {
  9944. Store (Or (And (P80D, Zero), Arg1), P80D)
  9945. }
  9946.  
  9947. If (LEqual (Arg2, Zero)) {}
  9948. If (LEqual (Arg2, One))
  9949. {
  9950. Store (P80D, P80H)
  9951. }
  9952. }
  9953.  
  9954. Method (_PIC, 1, NotSerialized) // _PIC: Interrupt Model
  9955. {
  9956. Store (Arg0, GPIC)
  9957. Store (Arg0, PICM)
  9958. }
  9959.  
  9960. Method (_PTS, 1, NotSerialized) // _PTS: Prepare To Sleep
  9961. {
  9962. Store (Zero, P80D)
  9963. P8XH (Zero, Arg0, Zero)
  9964. If (LEqual (Arg0, 0x03))
  9965. {
  9966. P8XH (0x04, 0x53, Zero)
  9967. P8XH (0x04, 0x53, One)
  9968. If (LAnd (DTSE, LGreater (TCNT, One)))
  9969. {
  9970. TRAP (TRTD, 0x1E)
  9971. }
  9972. }
  9973.  
  9974. If (LEqual (Arg0, 0x04))
  9975. {
  9976. P8XH (0x04, 0x54, Zero)
  9977. P8XH (0x04, 0x54, One)
  9978. CMSW (0x60, 0x60)
  9979. }
  9980.  
  9981. If (LEqual (TCGM, One))
  9982. {
  9983. \_SB.PCI0.LPCB.TPM.PTS (Arg0)
  9984. }
  9985. }
  9986.  
  9987. Method (_WAK, 1, Serialized) // _WAK: Wake
  9988. {
  9989. If (NEXP)
  9990. {
  9991. If (And (OSCC, 0x02))
  9992. {
  9993. \_SB.PCI0.NHPG ()
  9994. }
  9995.  
  9996. If (And (OSCC, 0x04))
  9997. {
  9998. \_SB.PCI0.NPME ()
  9999. }
  10000. }
  10001.  
  10002. CMSW (0x60, Zero)
  10003. If (LAnd (DTSE, LGreater (TCNT, One)))
  10004. {
  10005. TRAP (TRTD, 0x14)
  10006. }
  10007.  
  10008. If (LEqual (PMEE, One))
  10009. {
  10010. Store (One, PMEN)
  10011. }
  10012.  
  10013. If (ECON)
  10014. {
  10015. If (LEqual (\_SB.PCI0.LPCB.EC.ADIN, One))
  10016. {
  10017. Store (\_SB.PCI0.LPCB.EC.ADIN, PWRS)
  10018. Notify (\_SB.ADP1, 0x81)
  10019. Notify (\_SB.BAT0, 0x81)
  10020. Notify (\_SB.BAT0, 0x80)
  10021. }
  10022. Else
  10023. {
  10024. Store (\_SB.PCI0.LPCB.EC.RSCL, B0SC)
  10025. Store (\_SB.PCI0.LPCB.EC.BAIN, BNUM)
  10026. Notify (\_SB.BAT0, 0x81)
  10027. }
  10028.  
  10029. \_SB.PCI0.LPCB.EC.SWDS ()
  10030. If (LGreaterEqual (OSYS, 0x07D9))
  10031. {
  10032. Store (One, \_SB.PCI0.LPCB.EC.OSVD)
  10033. }
  10034. Else
  10035. {
  10036. Store (0x02, \_SB.PCI0.LPCB.EC.OSVD)
  10037. }
  10038.  
  10039. If (SMA4)
  10040. {
  10041. Store (0x07, \_SB.PCI0.LPCB.EC.CHTP)
  10042. Store (0x0C, \_SB.PCI0.LPCB.EC.LBTL)
  10043. }
  10044. Else
  10045. {
  10046. Store (0x05, \_SB.PCI0.LPCB.EC.CHTP)
  10047. Store (0x0A, \_SB.PCI0.LPCB.EC.LBTL)
  10048. }
  10049.  
  10050. Store (WIN7, \_SB.PCI0.LPCB.EC.W7VR)
  10051. If (LEqual (Arg0, 0x03))
  10052. {
  10053. If (CondRefOf (\_SB.PCI0.P0P2.PEGP.RSTR))
  10054. {
  10055. \_SB.PCI0.P0P2.PEGP.RSTR ()
  10056. }
  10057. }
  10058. }
  10059.  
  10060. If (LEqual (WSTS, Zero))
  10061. {
  10062. Notify (\_SB.PWRB, 0x02)
  10063. }
  10064.  
  10065. If (LEqual (Arg0, 0x03))
  10066. {
  10067. Notify (\_SB.PCI0.RP01.PXSX, One)
  10068. }
  10069.  
  10070. Return (Package (0x02)
  10071. {
  10072. Zero,
  10073. Zero
  10074. })
  10075. }
  10076.  
  10077. Method (GETB, 3, Serialized)
  10078. {
  10079. Multiply (Arg0, 0x08, Local0)
  10080. Multiply (Arg1, 0x08, Local1)
  10081. CreateField (Arg2, Local0, Local1, TBF3)
  10082. Return (TBF3)
  10083. }
  10084.  
  10085. Method (PNOT, 0, Serialized)
  10086. {
  10087. If (LGreater (TCNT, One))
  10088. {
  10089. If (And (PDC0, 0x08))
  10090. {
  10091. Notify (\_PR.CPU0, 0x80)
  10092. If (And (PDC0, 0x10))
  10093. {
  10094. Sleep (0x64)
  10095. Notify (\_PR.CPU0, 0x81)
  10096. }
  10097.  
  10098. Sleep (0x64)
  10099. Notify (\_PR.CPU0, 0x82)
  10100. }
  10101.  
  10102. If (And (PDC1, 0x08))
  10103. {
  10104. Notify (\_PR.CPU1, 0x80)
  10105. If (And (PDC1, 0x10))
  10106. {
  10107. Sleep (0x64)
  10108. Notify (\_PR.CPU1, 0x81)
  10109. }
  10110.  
  10111. Sleep (0x64)
  10112. Notify (\_PR.CPU1, 0x82)
  10113. }
  10114.  
  10115. If (And (PDC2, 0x08))
  10116. {
  10117. Notify (\_PR.CPU2, 0x80)
  10118. If (And (PDC2, 0x10))
  10119. {
  10120. Sleep (0x64)
  10121. Notify (\_PR.CPU2, 0x81)
  10122. }
  10123.  
  10124. Sleep (0x64)
  10125. Notify (\_PR.CPU2, 0x82)
  10126. }
  10127.  
  10128. If (And (PDC3, 0x08))
  10129. {
  10130. Notify (\_PR.CPU3, 0x80)
  10131. If (And (PDC3, 0x10))
  10132. {
  10133. Sleep (0x64)
  10134. Notify (\_PR.CPU3, 0x81)
  10135. }
  10136.  
  10137. Sleep (0x64)
  10138. Notify (\_PR.CPU3, 0x82)
  10139. }
  10140.  
  10141. If (And (PDC4, 0x08))
  10142. {
  10143. Notify (\_PR.CPU4, 0x80)
  10144. If (And (PDC4, 0x10))
  10145. {
  10146. Sleep (0x64)
  10147. Notify (\_PR.CPU4, 0x81)
  10148. }
  10149.  
  10150. Sleep (0x64)
  10151. Notify (\_PR.CPU4, 0x82)
  10152. }
  10153.  
  10154. If (And (PDC5, 0x08))
  10155. {
  10156. Notify (\_PR.CPU5, 0x80)
  10157. If (And (PDC5, 0x10))
  10158. {
  10159. Sleep (0x64)
  10160. Notify (\_PR.CPU5, 0x81)
  10161. }
  10162.  
  10163. Sleep (0x64)
  10164. Notify (\_PR.CPU5, 0x82)
  10165. }
  10166.  
  10167. If (And (PDC6, 0x08))
  10168. {
  10169. Notify (\_PR.CPU6, 0x80)
  10170. If (And (PDC6, 0x10))
  10171. {
  10172. Sleep (0x64)
  10173. Notify (\_PR.CPU6, 0x81)
  10174. }
  10175.  
  10176. Sleep (0x64)
  10177. Notify (\_PR.CPU6, 0x82)
  10178. }
  10179.  
  10180. If (And (PDC7, 0x08))
  10181. {
  10182. Notify (\_PR.CPU7, 0x80)
  10183. If (And (PDC7, 0x10))
  10184. {
  10185. Sleep (0x64)
  10186. Notify (\_PR.CPU7, 0x81)
  10187. }
  10188.  
  10189. Sleep (0x64)
  10190. Notify (\_PR.CPU7, 0x82)
  10191. }
  10192. }
  10193. Else
  10194. {
  10195. Notify (\_PR.CPU0, 0x80)
  10196. Sleep (0x64)
  10197. Notify (\_PR.CPU0, 0x81)
  10198. Sleep (0x64)
  10199. Notify (\_PR.CPU0, 0x82)
  10200. }
  10201. }
  10202.  
  10203. Method (TRAP, 2, Serialized)
  10204. {
  10205. Store (Arg1, SMIF)
  10206. If (LEqual (Arg0, TRTP))
  10207. {
  10208. Store (Zero, TRP0)
  10209. }
  10210.  
  10211. If (LEqual (Arg0, TRTD))
  10212. {
  10213. Store (Arg1, DTSF)
  10214. Store (Zero, TRPD)
  10215. Return (DTSF)
  10216. }
  10217.  
  10218. If (LEqual (Arg0, TRTI))
  10219. {
  10220. Store (Zero, TRPH)
  10221. }
  10222.  
  10223. Return (SMIF)
  10224. }
  10225.  
  10226. Scope (_SB.PCI0)
  10227. {
  10228. Method (_INI, 0, NotSerialized) // _INI: Initialize
  10229. {
  10230. Store (0x07D0, OSYS)
  10231. If (CondRefOf (_OSI, Local0))
  10232. {
  10233. If (_OSI ("Linux"))
  10234. {
  10235. Store (0x03E8, OSYS)
  10236. }
  10237.  
  10238. If (_OSI ("Windows 2001"))
  10239. {
  10240. Store (0x07D1, OSYS)
  10241. }
  10242.  
  10243. If (_OSI ("Windows 2001 SP1"))
  10244. {
  10245. Store (0x07D1, OSYS)
  10246. }
  10247.  
  10248. If (_OSI ("Windows 2001 SP2"))
  10249. {
  10250. Store (0x07D2, OSYS)
  10251. }
  10252.  
  10253. If (_OSI ("Windows 2006"))
  10254. {
  10255. Store (0x07D6, OSYS)
  10256. }
  10257.  
  10258. If (_OSI ("Windows 2009"))
  10259. {
  10260. Store (0x07D9, OSYS)
  10261. }
  10262. }
  10263.  
  10264. CMSW (0x60, Zero)
  10265. }
  10266.  
  10267. Method (NHPG, 0, Serialized)
  10268. {
  10269. Store (Zero, ^RP01.HPEX)
  10270. Store (Zero, ^RP02.HPEX)
  10271. Store (Zero, ^RP03.HPEX)
  10272. Store (Zero, ^RP04.HPEX)
  10273. Store (Zero, ^RP05.HPEX)
  10274. Store (Zero, ^RP07.HPEX)
  10275. Store (Zero, ^RP08.HPEX)
  10276. Store (One, ^RP01.HPSX)
  10277. Store (One, ^RP02.HPSX)
  10278. Store (One, ^RP03.HPSX)
  10279. Store (One, ^RP04.HPSX)
  10280. Store (One, ^RP05.HPSX)
  10281. Store (One, ^RP07.HPSX)
  10282. Store (One, ^RP08.HPSX)
  10283. }
  10284.  
  10285. Method (NPME, 0, Serialized)
  10286. {
  10287. Store (Zero, ^RP01.PMEX)
  10288. Store (Zero, ^RP02.PMEX)
  10289. Store (Zero, ^RP03.PMEX)
  10290. Store (Zero, ^RP04.PMEX)
  10291. Store (Zero, ^RP05.PMEX)
  10292. Store (Zero, ^RP07.PMEX)
  10293. Store (Zero, ^RP08.PMEX)
  10294. Store (One, ^RP01.PMSX)
  10295. Store (One, ^RP02.PMSX)
  10296. Store (One, ^RP03.PMSX)
  10297. Store (One, ^RP04.PMSX)
  10298. Store (One, ^RP05.PMSX)
  10299. Store (One, ^RP07.PMSX)
  10300. Store (One, ^RP08.PMSX)
  10301. }
  10302. }
  10303.  
  10304. Scope (\)
  10305. {
  10306. Name (PICM, Zero)
  10307. }
  10308.  
  10309. Scope (_TZ)
  10310. {
  10311. ThermalZone (TSZ0)
  10312. {
  10313. Name (REGN, "Processor Thermal Zone")
  10314. Name (FMAX, 0x16A8)
  10315. Name (FMIN, 0x0CE4)
  10316. Method (FRSP, 0, NotSerialized)
  10317. {
  10318. If (ECON)
  10319. {
  10320. Store (\_SB.PCI0.LPCB.EC.FSPH, Local0)
  10321. Or (ShiftLeft (Local0, 0x08), \_SB.PCI0.LPCB.EC.FSPL, Local0)
  10322. Return (Local0)
  10323. }
  10324. Return (Zero)
  10325. }
  10326.  
  10327. Method (FSSP, 1, NotSerialized)
  10328. {
  10329. If (ECON)
  10330. {
  10331. If (Arg0)
  10332. {
  10333. Store (Zero, \_SB.PCI0.LPCB.EC.SFAN)
  10334. }
  10335. Else
  10336. {
  10337. Store (One, \_SB.PCI0.LPCB.EC.SFAN)
  10338. }
  10339. }
  10340. }
  10341.  
  10342. Method (ECTC, 0, Serialized)
  10343. {
  10344. Notify (TSZ0, 0x80)
  10345. Sleep (0x05DC)
  10346. Notify (TSZ0, 0x81)
  10347. }
  10348.  
  10349. Name (DBGM, Zero)
  10350. Name (DBGT, 0x46)
  10351. Method (FTMP, 1, NotSerialized)
  10352. {
  10353. Store (One, DBGM)
  10354. Store (Arg0, DBGT)
  10355. ECTC ()
  10356. }
  10357.  
  10358. Method (PLST, 1, NotSerialized)
  10359. {
  10360. Add (DBGT, Arg0, DBGT)
  10361. FTMP (DBGT)
  10362. }
  10363.  
  10364. Method (MINT, 1, NotSerialized)
  10365. {
  10366. Subtract (DBGT, Arg0, DBGT)
  10367. FTMP (DBGT)
  10368. }
  10369.  
  10370. Method (CTOK, 1, NotSerialized)
  10371. {
  10372. And (Arg0, 0xFF, Local0)
  10373. If (LGreaterEqual (Local0, 0x80))
  10374. {
  10375. Subtract (0x0100, Local0, Local0)
  10376. Multiply (Local0, 0x0A, Local0)
  10377. Subtract (0x0AAC, Local0, Local0)
  10378. Return (Local0)
  10379. }
  10380.  
  10381. Multiply (Local0, 0x0A, Local0)
  10382. Add (Local0, 0x0AAC, Local0)
  10383. Return (Local0)
  10384. }
  10385.  
  10386. Method (KTOC, 1, NotSerialized)
  10387. {
  10388. Subtract (Arg0, 0x0AAC, Local0)
  10389. Divide (Local0, 0x0A, Local1, Local0)
  10390. Return (Local0)
  10391. }
  10392.  
  10393. Name (SCP, Zero)
  10394. Name (PSV, Zero)
  10395. Name (CRT, Zero)
  10396. Name (HOT, Zero)
  10397. Name (TMP, Zero)
  10398. Method (_HOT, 0, Serialized) // _HOT: Hot Temperature
  10399. {
  10400. If (LLessEqual (\_SB.PCI0.LPCB.EC.CTYP, 0x10))
  10401. {
  10402. Store (0x60, Local1)
  10403. }
  10404. Else
  10405. {
  10406. Store (0x57, Local1)
  10407. }
  10408.  
  10409. Store (Local1, HOT)
  10410. Store (CTOK (Local1), Local0)
  10411. Return (Local0)
  10412. }
  10413.  
  10414. Method (_CRT, 0, Serialized) // _CRT: Critical Temperature
  10415. {
  10416. If (LLessEqual (\_SB.PCI0.LPCB.EC.CTYP, 0x10))
  10417. {
  10418. Store (0x69, Local1)
  10419. }
  10420. Else
  10421. {
  10422. Store (0x5A, Local1)
  10423. }
  10424.  
  10425. Store (Local1, CRTT)
  10426. Store (Local1, CRT)
  10427. Store (CTOK (Local1), Local0)
  10428. Return (Local0)
  10429. }
  10430.  
  10431. Method (_SCP, 1, Serialized) // _SCP: Set Cooling Policy
  10432. {
  10433. Store (Arg0, CTYP)
  10434. Store (Arg0, SCP)
  10435. }
  10436.  
  10437. Method (_TMP, 0, Serialized) // _TMP: Temperature
  10438. {
  10439. If (ECON)
  10440. {
  10441. Store (\_SB.PCI0.LPCB.EC.TS1C, Local1)
  10442. }
  10443. Else
  10444. {
  10445. Store (0x0BB8, Local1)
  10446. }
  10447.  
  10448. If (DBGM)
  10449. {
  10450. Store (DBGT, Local1)
  10451. }
  10452.  
  10453. Store (Local1, TMP)
  10454. Store (CTOK (Local1), Local0)
  10455. Return (Local0)
  10456. }
  10457.  
  10458. Method (_PSL, 0, Serialized) // _PSL: Passive List
  10459. {
  10460. If (LEqual (TCNT, 0x08))
  10461. {
  10462. Return (Package (0x08)
  10463. {
  10464. \_PR.CPU0,
  10465. \_PR.CPU1,
  10466. \_PR.CPU2,
  10467. \_PR.CPU3,
  10468. \_PR.CPU4,
  10469. \_PR.CPU5,
  10470. \_PR.CPU6,
  10471. \_PR.CPU7
  10472. })
  10473. }
  10474.  
  10475. If (LEqual (TCNT, 0x04))
  10476. {
  10477. Return (Package (0x04)
  10478. {
  10479. \_PR.CPU0,
  10480. \_PR.CPU1,
  10481. \_PR.CPU2,
  10482. \_PR.CPU3
  10483. })
  10484. }
  10485.  
  10486. If (LEqual (TCNT, 0x02))
  10487. {
  10488. Return (Package (0x02)
  10489. {
  10490. \_PR.CPU0,
  10491. \_PR.CPU1
  10492. })
  10493. }
  10494.  
  10495. Return (Package (0x01)
  10496. {
  10497. \_PR.CPU0
  10498. })
  10499. }
  10500.  
  10501. Name (PSVF, Zero)
  10502. Method (_PSV, 0, Serialized) // _PSV: Passive Temperature
  10503. {
  10504. If (LLessEqual (\_SB.PCI0.LPCB.EC.CTYP, 0x10))
  10505. {
  10506. If (LGreaterEqual (TMP, 0x64))
  10507. {
  10508. Store (One, PSVF)
  10509. Store (0x5A, Local1)
  10510. }
  10511. Else
  10512. {
  10513. If (LLessEqual (TMP, 0x5A))
  10514. {
  10515. Store (Zero, PSVF)
  10516. Store (0x64, Local1)
  10517. }
  10518. Else
  10519. {
  10520. If (LEqual (PSVF, Zero))
  10521. {
  10522. Store (Zero, PSVF)
  10523. Store (0x64, Local1)
  10524. }
  10525. Else
  10526. {
  10527. Store (One, PSVF)
  10528. Store (0x5A, Local1)
  10529. }
  10530. }
  10531. }
  10532. }
  10533. Else
  10534. {
  10535. If (LGreaterEqual (TMP, 0x55))
  10536. {
  10537. Store (One, PSVF)
  10538. Store (0x4B, Local1)
  10539. }
  10540. Else
  10541. {
  10542. If (LLessEqual (TMP, 0x4B))
  10543. {
  10544. Store (Zero, PSVF)
  10545. Store (0x55, Local1)
  10546. }
  10547. Else
  10548. {
  10549. If (LEqual (PSVF, Zero))
  10550. {
  10551. Store (Zero, PSVF)
  10552. Store (0x55, Local1)
  10553. }
  10554. Else
  10555. {
  10556. Store (One, PSVF)
  10557. Store (0x4B, Local1)
  10558. }
  10559. }
  10560. }
  10561. }
  10562.  
  10563. Store (Local1, PSVT)
  10564. Store (Local1, PSV)
  10565. Store (CTOK (Local1), Local0)
  10566. Return (Local0)
  10567. }
  10568.  
  10569. Method (_TC1, 0, Serialized) // _TC1: Thermal Constant 1
  10570. {
  10571. Return (TC1V)
  10572. }
  10573.  
  10574. Method (_TC2, 0, Serialized) // _TC2: Thermal Constant 2
  10575. {
  10576. Return (TC2V)
  10577. }
  10578.  
  10579. Method (_TSP, 0, Serialized) // _TSP: Thermal Sampling Period
  10580. {
  10581. Return (TSPV)
  10582. }
  10583. }
  10584. }
  10585.  
  10586. Scope (_SB.PCI0)
  10587. {
  10588. Device (PDRC)
  10589. {
  10590. Name (_HID, EisaId ("PNP0C02")) // _HID: Hardware ID
  10591. Name (_UID, One) // _UID: Unique ID
  10592. Name (BUF0, ResourceTemplate ()
  10593. {
  10594. Memory32Fixed (ReadWrite,
  10595. 0x00000000, // Address Base
  10596. 0x00004000, // Address Length
  10597. _Y10)
  10598. Memory32Fixed (ReadWrite,
  10599. 0x00000000, // Address Base
  10600. 0x00004000, // Address Length
  10601. _Y12)
  10602. Memory32Fixed (ReadWrite,
  10603. 0x00000000, // Address Base
  10604. 0x00001000, // Address Length
  10605. _Y13)
  10606. Memory32Fixed (ReadWrite,
  10607. 0x00000000, // Address Base
  10608. 0x00001000, // Address Length
  10609. _Y14)
  10610. Memory32Fixed (ReadWrite,
  10611. 0x00000000, // Address Base
  10612. 0x00000000, // Address Length
  10613. _Y15)
  10614. Memory32Fixed (ReadWrite,
  10615. 0xFED20000, // Address Base
  10616. 0x00020000, // Address Length
  10617. )
  10618. Memory32Fixed (ReadOnly,
  10619. 0xFED90000, // Address Base
  10620. 0x00004000, // Address Length
  10621. _Y16)
  10622. Memory32Fixed (ReadWrite,
  10623. 0xFED45000, // Address Base
  10624. 0x0004B000, // Address Length
  10625. )
  10626. Memory32Fixed (ReadOnly,
  10627. 0xFF000000, // Address Base
  10628. 0x01000000, // Address Length
  10629. )
  10630. Memory32Fixed (ReadOnly,
  10631. 0xFEE00000, // Address Base
  10632. 0x00100000, // Address Length
  10633. )
  10634. Memory32Fixed (ReadWrite,
  10635. 0x00000000, // Address Base
  10636. 0x00001000, // Address Length
  10637. _Y11)
  10638. })
  10639. Method (_CRS, 0, Serialized) // _CRS: Current Resource Settings
  10640. {
  10641. CreateDWordField (BUF0, \_SB.PCI0.PDRC._Y10._BAS, RBR0) // _BAS: Base Address
  10642. ShiftLeft (^^LPCB.RCBA, 0x0E, RBR0)
  10643. CreateDWordField (BUF0, \_SB.PCI0.PDRC._Y11._BAS, TBR0) // _BAS: Base Address
  10644. Store (TBAB, TBR0)
  10645. CreateDWordField (BUF0, \_SB.PCI0.PDRC._Y11._LEN, TBLN) // _LEN: Length
  10646. If (LEqual (TBAB, Zero))
  10647. {
  10648. Store (Zero, TBLN)
  10649. }
  10650.  
  10651. If (Or (LEqual (And (PNHM, 0x000FFFF0), 0x000106E0), LEqual (And (
  10652. PNHM, 0x000FFFF0), 0x000106A0)))
  10653. {
  10654. CreateDWordField (BUF0, \_SB.PCI0.PDRC._Y12._LEN, MBLN) // _LEN: Length
  10655. Store (Zero, MBLN)
  10656. }
  10657. Else
  10658. {
  10659. CreateDWordField (BUF0, \_SB.PCI0.PDRC._Y12._BAS, MBR0) // _BAS: Base Address
  10660. ShiftLeft (MHBR, 0x0E, MBR0)
  10661. }
  10662.  
  10663. CreateDWordField (BUF0, \_SB.PCI0.PDRC._Y13._BAS, DBR0) // _BAS: Base Address
  10664. ShiftLeft (DIBR, 0x0C, DBR0)
  10665. If (Or (LEqual (And (PNHM, 0x000FFFF0), 0x000106E0), LEqual (And (
  10666. PNHM, 0x000FFFF0), 0x000106A0)))
  10667. {
  10668. ShiftLeft (DIBI, 0x0C, DBR0)
  10669. }
  10670.  
  10671. If (Or (LEqual (And (PNHM, 0x000FFFF0), 0x000106E0), LEqual (And (
  10672. PNHM, 0x000FFFF0), 0x000106A0)))
  10673. {
  10674. CreateDWordField (BUF0, \_SB.PCI0.PDRC._Y14._LEN, EBLN) // _LEN: Length
  10675. Store (Zero, EBLN)
  10676. }
  10677. Else
  10678. {
  10679. CreateDWordField (BUF0, \_SB.PCI0.PDRC._Y14._BAS, EBR0) // _BAS: Base Address
  10680. ShiftLeft (EPBR, 0x0C, EBR0)
  10681. }
  10682.  
  10683. CreateDWordField (BUF0, \_SB.PCI0.PDRC._Y15._BAS, XBR0) // _BAS: Base Address
  10684. ShiftLeft (^^^CPBG.IMCH.PXBR, 0x14, XBR0)
  10685. CreateDWordField (BUF0, \_SB.PCI0.PDRC._Y15._LEN, XSZ0) // _LEN: Length
  10686. ShiftRight (0x10000000, ^^^CPBG.IMCH.PXSZ, XSZ0)
  10687. CreateDWordField (BUF0, \_SB.PCI0.PDRC._Y16._BAS, VTB0) // _BAS: Base Address
  10688. CreateDWordField (BUF0, \_SB.PCI0.PDRC._Y16._LEN, VTLN) // _LEN: Length
  10689. If (Or (LEqual (And (PNHM, 0x000FFFF0), 0x000106E0), LEqual (And (
  10690. PNHM, 0x000FFFF0), 0x000106A0)))
  10691. {
  10692. If (LGreaterEqual (PNHM, 0x000106E1))
  10693. {
  10694. If (^^IO10.VTEN)
  10695. {
  10696. ShiftLeft (^^IO10.VTBA, 0x0C, VTB0)
  10697. }
  10698. Else
  10699. {
  10700. Store (Zero, VTLN)
  10701. }
  10702. }
  10703. Else
  10704. {
  10705. If (^^IIO0.VTEN)
  10706. {
  10707. ShiftLeft (^^IIO0.VTBA, 0x0C, VTB0)
  10708. }
  10709. Else
  10710. {
  10711. Store (Zero, VTLN)
  10712. }
  10713. }
  10714. }
  10715. Else
  10716. {
  10717. If (ADVE)
  10718. {
  10719. ShiftLeft (ADVT, 0x0C, VTB0)
  10720. }
  10721. Else
  10722. {
  10723. Store (Zero, VTLN)
  10724. }
  10725. }
  10726.  
  10727. Return (BUF0)
  10728. }
  10729. }
  10730. }
  10731.  
  10732. Method (BRTN, 1, Serialized)
  10733. {
  10734. If (LEqual (And (DID1, 0x0F00), 0x0400))
  10735. {
  10736. Notify (\_SB.PCI0.GFX0.DD01, Arg0)
  10737. }
  10738.  
  10739. If (LEqual (And (DID2, 0x0F00), 0x0400))
  10740. {
  10741. Notify (\_SB.PCI0.GFX0.DD02, Arg0)
  10742. }
  10743.  
  10744. If (LEqual (And (DID3, 0x0F00), 0x0400))
  10745. {
  10746. Notify (\_SB.PCI0.GFX0.DD03, Arg0)
  10747. }
  10748.  
  10749. If (LEqual (And (DID4, 0x0F00), 0x0400))
  10750. {
  10751. Notify (\_SB.PCI0.GFX0.DD04, Arg0)
  10752. }
  10753.  
  10754. If (LEqual (And (DID5, 0x0F00), 0x0400))
  10755. {
  10756. Notify (\_SB.PCI0.GFX0.DD05, Arg0)
  10757. }
  10758.  
  10759. If (LEqual (And (DID6, 0x0F00), 0x0400))
  10760. {
  10761. Notify (\_SB.PCI0.GFX0.DD06, Arg0)
  10762. }
  10763.  
  10764. If (LEqual (And (DID7, 0x0F00), 0x0400))
  10765. {
  10766. Notify (\_SB.PCI0.GFX0.DD07, Arg0)
  10767. }
  10768.  
  10769. If (LEqual (And (DID8, 0x0F00), 0x0400))
  10770. {
  10771. Notify (\_SB.PCI0.GFX0.DD08, Arg0)
  10772. }
  10773. }
  10774.  
  10775. Scope (\)
  10776. {
  10777. OperationRegion (IO_T, SystemIO, 0x0800, 0x10)
  10778. Field (IO_T, ByteAcc, NoLock, Preserve)
  10779. {
  10780. TRPI, 16,
  10781. Offset (0x04),
  10782. Offset (0x06),
  10783. Offset (0x08),
  10784. TRP0, 8,
  10785. Offset (0x0A),
  10786. Offset (0x0B),
  10787. Offset (0x0C),
  10788. Offset (0x0D),
  10789. Offset (0x0E),
  10790. Offset (0x0F),
  10791. Offset (0x10)
  10792. }
  10793.  
  10794. OperationRegion (IO_D, SystemIO, 0x0810, 0x04)
  10795. Field (IO_D, ByteAcc, NoLock, Preserve)
  10796. {
  10797. TRPD, 8
  10798. }
  10799.  
  10800. OperationRegion (IO_H, SystemIO, 0x1000, 0x04)
  10801. Field (IO_H, ByteAcc, NoLock, Preserve)
  10802. {
  10803. TRPH, 8
  10804. }
  10805.  
  10806. OperationRegion (PIO2, SystemIO, PMBS, 0x02)
  10807. Field (PIO2, ByteAcc, NoLock, WriteAsZeros)
  10808. {
  10809. , 14,
  10810. WSTS, 1
  10811. }
  10812.  
  10813. OperationRegion (PMIO, SystemIO, PMBS, 0x80)
  10814. Field (PMIO, ByteAcc, NoLock, Preserve)
  10815. {
  10816. Offset (0x20),
  10817. , 2,
  10818. SPST, 1,
  10819. Offset (0x28),
  10820. , 11,
  10821. PMEN, 1,
  10822. Offset (0x42),
  10823. , 1,
  10824. GPEC, 1,
  10825. Offset (0x64),
  10826. , 9,
  10827. SCIS, 1,
  10828. Offset (0x66)
  10829. }
  10830.  
  10831. OperationRegion (GPIO, SystemIO, GPBS, 0x64)
  10832. Field (GPIO, ByteAcc, NoLock, Preserve)
  10833. {
  10834. GU00, 8,
  10835. GU01, 8,
  10836. GU02, 8,
  10837. GU03, 8,
  10838. GIO0, 8,
  10839. GIO1, 8,
  10840. GIO2, 8,
  10841. GIO3, 8,
  10842. Offset (0x0C),
  10843. GL00, 8,
  10844. GL01, 8,
  10845. GL02, 8,
  10846. , 3,
  10847. GP27, 1,
  10848. GP28, 1,
  10849. Offset (0x10),
  10850. Offset (0x18),
  10851. GB00, 8,
  10852. GB01, 8,
  10853. GB02, 8,
  10854. GB03, 8,
  10855. Offset (0x2C),
  10856. GIV0, 8,
  10857. GIV1, 8,
  10858. GIV2, 8,
  10859. GIV3, 8,
  10860. GU04, 8,
  10861. GU05, 8,
  10862. GU06, 8,
  10863. GU07, 8,
  10864. GIO4, 8,
  10865. GIO5, 8,
  10866. GIO6, 8,
  10867. GIO7, 8,
  10868. , 5,
  10869. , 1,
  10870. Offset (0x39),
  10871. GL05, 8,
  10872. GL06, 8,
  10873. GL07, 8,
  10874. Offset (0x40),
  10875. GU08, 8,
  10876. GU09, 8,
  10877. GU0A, 8,
  10878. GU0B, 8,
  10879. GIO8, 8,
  10880. GIO9, 8,
  10881. GIOA, 8,
  10882. GIOB, 8,
  10883. GL08, 8,
  10884. GL09, 8,
  10885. GL0A, 8,
  10886. GL0B, 8
  10887. }
  10888.  
  10889. OperationRegion (RCRB, SystemMemory, SRCB, 0x4000)
  10890. Field (RCRB, DWordAcc, Lock, Preserve)
  10891. {
  10892. Offset (0x1000),
  10893. Offset (0x3000),
  10894. Offset (0x3404),
  10895. HPAS, 2,
  10896. , 5,
  10897. HPAE, 1,
  10898. Offset (0x3418),
  10899. , 1,
  10900. , 1,
  10901. SATD, 1,
  10902. SMBD, 1,
  10903. HDAD, 1,
  10904. Offset (0x341A),
  10905. RP1D, 1,
  10906. RP2D, 1,
  10907. RP3D, 1,
  10908. RP4D, 1,
  10909. RP5D, 1,
  10910. RP6D, 1,
  10911. RP7D, 1,
  10912. RP8D, 1,
  10913. Offset (0x35B0),
  10914. WTR1, 4,
  10915. WTR2, 4,
  10916. WCS1, 1,
  10917. WCS2, 1,
  10918. Offset (0x35B4)
  10919. }
  10920.  
  10921. Method (GPI0, 4, NotSerialized)
  10922. {
  10923. If (LEqual (Or (Arg0, Arg1), Zero))
  10924. {
  10925. Return (0xFFFFFFFF)
  10926. }
  10927. Else
  10928. {
  10929. If (And (LEqual (Arg0, Zero), LEqual (Arg1, One)))
  10930. {
  10931. Return (0x0384)
  10932. }
  10933. }
  10934.  
  10935. Return (Multiply (0x1E, Subtract (0x09, Add (Arg2, Arg3))
  10936. ))
  10937. }
  10938.  
  10939. Method (GDMA, 2, NotSerialized)
  10940. {
  10941. If (LEqual (Arg0, One))
  10942. {
  10943. If (LEqual (Arg1, One))
  10944. {
  10945. Return (0x0F)
  10946. }
  10947. }
  10948.  
  10949. Return (0xFFFFFFFF)
  10950. }
  10951.  
  10952. Method (SFLG, 5, NotSerialized)
  10953. {
  10954. Store (Zero, Local0)
  10955. Or (Arg1, Local0, Local0)
  10956. Or (ShiftLeft (Arg0, One), Local0, Local0)
  10957. Or (ShiftLeft (Arg2, 0x03), Local0, Local0)
  10958. Or (ShiftLeft (Arg3, 0x02), Local0, Local0)
  10959. Or (ShiftLeft (Arg4, 0x04), Local0, Local0)
  10960. Return (Local0)
  10961. }
  10962.  
  10963. Method (SPIO, 3, NotSerialized)
  10964. {
  10965. Name (PBUF, Buffer (0x05)
  10966. {
  10967. 0x00, 0x00, 0x00, 0x00, 0x00
  10968. })
  10969. CreateByteField (PBUF, Zero, RCT)
  10970. CreateByteField (PBUF, One, ISP)
  10971. CreateByteField (PBUF, 0x02, FAST)
  10972. CreateByteField (PBUF, 0x03, DMAE)
  10973. CreateByteField (PBUF, 0x04, PIOT)
  10974. If (LOr (LEqual (Arg0, Zero), LEqual (Arg0, 0xFFFFFFFF)))
  10975. {
  10976. Return (PBUF)
  10977. }
  10978.  
  10979. If (LGreater (Arg0, 0xF0))
  10980. {
  10981. Store (One, DMAE)
  10982. Store (Zero, PIOT)
  10983. }
  10984. Else
  10985. {
  10986. Store (One, FAST)
  10987. If (And (Arg1, 0x02))
  10988. {
  10989. If (And (LEqual (Arg0, 0x78), And (Arg2, 0x02)))
  10990. {
  10991. Store (0x03, RCT)
  10992. Store (0x02, ISP)
  10993. Store (0x04, PIOT)
  10994. Return (PBUF)
  10995. }
  10996.  
  10997. If (And (LLessEqual (Arg0, 0xB4), And (Arg2, One)
  10998. ))
  10999. {
  11000. Store (One, RCT)
  11001. Store (0x02, ISP)
  11002. Store (0x03, PIOT)
  11003. Return (PBUF)
  11004. }
  11005. Else
  11006. {
  11007. Store (Zero, RCT)
  11008. Store (One, ISP)
  11009. Store (0x02, PIOT)
  11010. }
  11011. }
  11012. }
  11013.  
  11014. Return (PBUF)
  11015. }
  11016.  
  11017. Method (SDMA, 3, NotSerialized)
  11018. {
  11019. Name (PBUF, Buffer (0x05)
  11020. {
  11021. 0x00, 0x00, 0x00, 0x00
  11022. })
  11023. CreateByteField (PBUF, Zero, PCT)
  11024. CreateByteField (PBUF, One, PCB)
  11025. CreateByteField (PBUF, 0x02, UDMT)
  11026. CreateByteField (PBUF, 0x03, UDME)
  11027. CreateByteField (PBUF, 0x04, DMAT)
  11028. If (LOr (LEqual (Arg0, Zero), LEqual (Arg0, 0xFFFFFFFF)))
  11029. {
  11030. Return (PBUF)
  11031. }
  11032.  
  11033. If (LLessEqual (Arg0, 0x78))
  11034. {
  11035. If (And (Arg1, 0x04))
  11036. {
  11037. Store (One, UDME)
  11038. If (And (LLessEqual (Arg0, 0x0F), And (Arg2, 0x40)
  11039. ))
  11040. {
  11041. Store (One, UDMT)
  11042. Store (One, PCB)
  11043. Store (One, PCT)
  11044. Store (0x06, DMAT)
  11045. Return (PBUF)
  11046. }
  11047.  
  11048. If (And (LLessEqual (Arg0, 0x14), And (Arg2, 0x20)
  11049. ))
  11050. {
  11051. Store (One, UDMT)
  11052. Store (One, PCB)
  11053. Store (One, PCT)
  11054. Store (0x05, DMAT)
  11055. Return (PBUF)
  11056. }
  11057.  
  11058. If (And (LLessEqual (Arg0, 0x1E), And (Arg2, 0x10)
  11059. ))
  11060. {
  11061. Store (One, PCB)
  11062. Store (0x02, PCT)
  11063. Store (0x04, DMAT)
  11064. Return (PBUF)
  11065. }
  11066.  
  11067. If (And (LLessEqual (Arg0, 0x2D), And (Arg2, 0x08)
  11068. ))
  11069. {
  11070. Store (One, PCB)
  11071. Store (One, PCT)
  11072. Store (0x03, DMAT)
  11073. Return (PBUF)
  11074. }
  11075.  
  11076. If (And (LLessEqual (Arg0, 0x3C), And (Arg2, 0x04)
  11077. ))
  11078. {
  11079. Store (0x02, PCT)
  11080. Store (0x02, DMAT)
  11081. Return (PBUF)
  11082. }
  11083.  
  11084. If (And (LLessEqual (Arg0, 0x5A), And (Arg2, 0x02)
  11085. ))
  11086. {
  11087. Store (One, PCT)
  11088. Store (One, DMAT)
  11089. Return (PBUF)
  11090. }
  11091.  
  11092. If (And (LLessEqual (Arg0, 0x78), And (Arg2, One)
  11093. ))
  11094. {
  11095. Store (Zero, DMAT)
  11096. }
  11097. }
  11098. }
  11099.  
  11100. Return (PBUF)
  11101. }
  11102.  
  11103. Method (SETT, 3, Serialized)
  11104. {
  11105. If (And (Arg1, 0x02))
  11106. {
  11107. If (LAnd (LLessEqual (Arg0, 0x78), And (Arg2, 0x02)))
  11108. {
  11109. Return (0x0B)
  11110. }
  11111.  
  11112. If (LAnd (LLessEqual (Arg0, 0xB4), And (Arg2, One)))
  11113. {
  11114. Return (0x09)
  11115. }
  11116. }
  11117.  
  11118. Return (0x04)
  11119. }
  11120. }
  11121.  
  11122. Scope (_SB.PCI0)
  11123. {
  11124. Device (SBUS)
  11125. {
  11126. Name (_ADR, 0x001F0003) // _ADR: Address
  11127. OperationRegion (SMBP, PCI_Config, 0x40, 0xC0)
  11128. Field (SMBP, DWordAcc, NoLock, Preserve)
  11129. {
  11130. , 2,
  11131. I2CE, 1
  11132. }
  11133.  
  11134. OperationRegion (SMPB, PCI_Config, 0x20, 0x04)
  11135. Field (SMPB, DWordAcc, NoLock, Preserve)
  11136. {
  11137. , 5,
  11138. SBAR, 11
  11139. }
  11140.  
  11141. OperationRegion (SMBI, SystemIO, ShiftLeft (SBAR, 0x05), 0x10)
  11142. Field (SMBI, ByteAcc, NoLock, Preserve)
  11143. {
  11144. HSTS, 8,
  11145. Offset (0x02),
  11146. HCON, 8,
  11147. HCOM, 8,
  11148. TXSA, 8,
  11149. DAT0, 8,
  11150. DAT1, 8,
  11151. HBDR, 8,
  11152. PECR, 8,
  11153. RXSA, 8,
  11154. SDAT, 16
  11155. }
  11156.  
  11157. Method (SSXB, 2, Serialized)
  11158. {
  11159. If (STRT ())
  11160. {
  11161. Return (Zero)
  11162. }
  11163.  
  11164. Store (Zero, I2CE)
  11165. Store (0xBF, HSTS)
  11166. Store (Arg0, TXSA)
  11167. Store (Arg1, HCOM)
  11168. Store (0x48, HCON)
  11169. If (COMP ())
  11170. {
  11171. Or (HSTS, 0xFF, HSTS)
  11172. Return (One)
  11173. }
  11174.  
  11175. Return (Zero)
  11176. }
  11177.  
  11178. Method (SRXB, 1, Serialized)
  11179. {
  11180. If (STRT ())
  11181. {
  11182. Return (0xFFFF)
  11183. }
  11184.  
  11185. Store (Zero, I2CE)
  11186. Store (0xBF, HSTS)
  11187. Store (Or (Arg0, One), TXSA)
  11188. Store (0x44, HCON)
  11189. If (COMP ())
  11190. {
  11191. Or (HSTS, 0xFF, HSTS)
  11192. Return (DAT0)
  11193. }
  11194.  
  11195. Return (0xFFFF)
  11196. }
  11197.  
  11198. Method (SWRB, 3, Serialized)
  11199. {
  11200. If (STRT ())
  11201. {
  11202. Return (Zero)
  11203. }
  11204.  
  11205. Store (Zero, I2CE)
  11206. Store (0xBF, HSTS)
  11207. Store (Arg0, TXSA)
  11208. Store (Arg1, HCOM)
  11209. Store (Arg2, DAT0)
  11210. Store (0x48, HCON)
  11211. If (COMP ())
  11212. {
  11213. Or (HSTS, 0xFF, HSTS)
  11214. Return (One)
  11215. }
  11216.  
  11217. Return (Zero)
  11218. }
  11219.  
  11220. Method (SRDB, 2, Serialized)
  11221. {
  11222. If (STRT ())
  11223. {
  11224. Return (0xFFFF)
  11225. }
  11226.  
  11227. Store (Zero, I2CE)
  11228. Store (0xBF, HSTS)
  11229. Store (Or (Arg0, One), TXSA)
  11230. Store (Arg1, HCOM)
  11231. Store (0x48, HCON)
  11232. If (COMP ())
  11233. {
  11234. Or (HSTS, 0xFF, HSTS)
  11235. Return (DAT0)
  11236. }
  11237.  
  11238. Return (0xFFFF)
  11239. }
  11240.  
  11241. Method (SWRW, 3, Serialized)
  11242. {
  11243. If (STRT ())
  11244. {
  11245. Return (Zero)
  11246. }
  11247.  
  11248. Store (Zero, I2CE)
  11249. Store (0xBF, HSTS)
  11250. Store (Arg0, TXSA)
  11251. Store (Arg1, HCOM)
  11252. And (Arg2, 0xFF, DAT1)
  11253. And (ShiftRight (Arg2, 0x08), 0xFF, DAT0)
  11254. Store (0x4C, HCON)
  11255. If (COMP ())
  11256. {
  11257. Or (HSTS, 0xFF, HSTS)
  11258. Return (One)
  11259. }
  11260.  
  11261. Return (Zero)
  11262. }
  11263.  
  11264. Method (SRDW, 2, Serialized)
  11265. {
  11266. If (STRT ())
  11267. {
  11268. Return (0xFFFF)
  11269. }
  11270.  
  11271. Store (Zero, I2CE)
  11272. Store (0xBF, HSTS)
  11273. Store (Or (Arg0, One), TXSA)
  11274. Store (Arg1, HCOM)
  11275. Store (0x4C, HCON)
  11276. If (COMP ())
  11277. {
  11278. Or (HSTS, 0xFF, HSTS)
  11279. Return (Or (ShiftLeft (DAT0, 0x08), DAT1))
  11280. }
  11281.  
  11282. Return (0xFFFFFFFF)
  11283. }
  11284.  
  11285. Method (SBLW, 4, Serialized)
  11286. {
  11287. If (STRT ())
  11288. {
  11289. Return (Zero)
  11290. }
  11291.  
  11292. Store (Arg3, I2CE)
  11293. Store (0xBF, HSTS)
  11294. Store (Arg0, TXSA)
  11295. Store (Arg1, HCOM)
  11296. Store (SizeOf (Arg2), DAT0)
  11297. Store (Zero, Local1)
  11298. Store (DerefOf (Index (Arg2, Zero)), HBDR)
  11299. Store (0x54, HCON)
  11300. While (LGreater (SizeOf (Arg2), Local1))
  11301. {
  11302. Store (0x0FA0, Local0)
  11303. While (LAnd (LNot (And (HSTS, 0x80)), Local0))
  11304. {
  11305. Decrement (Local0)
  11306. Stall (0x32)
  11307. }
  11308.  
  11309. If (LNot (Local0))
  11310. {
  11311. KILL ()
  11312. Return (Zero)
  11313. }
  11314.  
  11315. Store (0x80, HSTS)
  11316. Increment (Local1)
  11317. If (LGreater (SizeOf (Arg2), Local1))
  11318. {
  11319. Store (DerefOf (Index (Arg2, Local1)), HBDR)
  11320. }
  11321. }
  11322.  
  11323. If (COMP ())
  11324. {
  11325. Or (HSTS, 0xFF, HSTS)
  11326. Return (One)
  11327. }
  11328.  
  11329. Return (Zero)
  11330. }
  11331.  
  11332. Method (SBLR, 3, Serialized)
  11333. {
  11334. Name (TBUF, Buffer (0x0100) {})
  11335. If (STRT ())
  11336. {
  11337. Return (Zero)
  11338. }
  11339.  
  11340. Store (Arg2, I2CE)
  11341. Store (0xBF, HSTS)
  11342. Store (Or (Arg0, One), TXSA)
  11343. Store (Arg1, HCOM)
  11344. Store (0x54, HCON)
  11345. Store (0x0FA0, Local0)
  11346. While (LAnd (LNot (And (HSTS, 0x80)), Local0))
  11347. {
  11348. Decrement (Local0)
  11349. Stall (0x32)
  11350. }
  11351.  
  11352. If (LNot (Local0))
  11353. {
  11354. KILL ()
  11355. Return (Zero)
  11356. }
  11357.  
  11358. Store (DAT0, Index (TBUF, Zero))
  11359. Store (0x80, HSTS)
  11360. Store (One, Local1)
  11361. While (LLess (Local1, DerefOf (Index (TBUF, Zero))))
  11362. {
  11363. Store (0x0FA0, Local0)
  11364. While (LAnd (LNot (And (HSTS, 0x80)), Local0))
  11365. {
  11366. Decrement (Local0)
  11367. Stall (0x32)
  11368. }
  11369.  
  11370. If (LNot (Local0))
  11371. {
  11372. KILL ()
  11373. Return (Zero)
  11374. }
  11375.  
  11376. Store (HBDR, Index (TBUF, Local1))
  11377. Store (0x80, HSTS)
  11378. Increment (Local1)
  11379. }
  11380.  
  11381. If (COMP ())
  11382. {
  11383. Or (HSTS, 0xFF, HSTS)
  11384. Return (TBUF)
  11385. }
  11386.  
  11387. Return (Zero)
  11388. }
  11389.  
  11390. Method (STRT, 0, Serialized)
  11391. {
  11392. Store (0xC8, Local0)
  11393. While (Local0)
  11394. {
  11395. If (And (HSTS, 0x40))
  11396. {
  11397. Decrement (Local0)
  11398. Sleep (One)
  11399. If (LEqual (Local0, Zero))
  11400. {
  11401. Return (One)
  11402. }
  11403. }
  11404. Else
  11405. {
  11406. Store (Zero, Local0)
  11407. }
  11408. }
  11409.  
  11410. Store (0x0FA0, Local0)
  11411. While (Local0)
  11412. {
  11413. If (And (HSTS, One))
  11414. {
  11415. Decrement (Local0)
  11416. Stall (0x32)
  11417. If (LEqual (Local0, Zero))
  11418. {
  11419. KILL ()
  11420. }
  11421. }
  11422. Else
  11423. {
  11424. Return (Zero)
  11425. }
  11426. }
  11427.  
  11428. Return (One)
  11429. }
  11430.  
  11431. Method (COMP, 0, Serialized)
  11432. {
  11433. Store (0x0FA0, Local0)
  11434. While (Local0)
  11435. {
  11436. If (And (HSTS, 0x02))
  11437. {
  11438. Return (One)
  11439. }
  11440. Else
  11441. {
  11442. Decrement (Local0)
  11443. Stall (0x32)
  11444. If (LEqual (Local0, Zero))
  11445. {
  11446. KILL ()
  11447. }
  11448. }
  11449. }
  11450.  
  11451. Return (Zero)
  11452. }
  11453.  
  11454. Method (KILL, 0, Serialized)
  11455. {
  11456. Or (HCON, 0x02, HCON)
  11457. Or (HSTS, 0xFF, HSTS)
  11458. }
  11459. }
  11460. }
  11461.  
  11462. Scope (_GPE)
  11463. {
  11464. OperationRegion (GPIO, SystemIO, 0x0500, 0x60)
  11465. Field (GPIO, ByteAcc, Lock, Preserve)
  11466. {
  11467. Offset (0x0C),
  11468. , 6,
  11469. PO06, 1,
  11470. Offset (0x0E),
  11471. PO16, 1,
  11472. PI17, 1,
  11473. Offset (0x2C),
  11474. , 6,
  11475. IV06, 1,
  11476. Offset (0x38),
  11477. , 4,
  11478. PO36, 1,
  11479. PI37, 1,
  11480. , 14,
  11481. PO52, 1,
  11482. PO53, 1,
  11483. Offset (0x48),
  11484. , 3,
  11485. PO67, 1
  11486. }
  11487.  
  11488. Method (_L01, 0, NotSerialized) // _Lxx: Level-Triggered GPE
  11489. {
  11490. Add (L01C, One, L01C)
  11491. If (LAnd (LEqual (RP1D, Zero), \_SB.PCI0.RP01.HPSX))
  11492. {
  11493. Sleep (0x64)
  11494. If (\_SB.PCI0.RP01.PDCX)
  11495. {
  11496. Notify (\_SB.PCI0.RP01, Zero)
  11497. Store (SMIA, SMIP)
  11498. }
  11499. Else
  11500. {
  11501. Store (One, \_SB.PCI0.RP01.HPSX)
  11502. }
  11503. }
  11504.  
  11505. If (LAnd (LEqual (RP2D, Zero), \_SB.PCI0.RP02.HPSX))
  11506. {
  11507. Sleep (0x64)
  11508. If (\_SB.PCI0.RP02.PDCX)
  11509. {
  11510. Notify (\_SB.PCI0.RP02, Zero)
  11511. Store (SMIA, SMIP)
  11512. }
  11513. Else
  11514. {
  11515. Store (One, \_SB.PCI0.RP02.HPSX)
  11516. }
  11517. }
  11518.  
  11519. If (LAnd (LEqual (RP3D, Zero), \_SB.PCI0.RP03.HPSX))
  11520. {
  11521. Sleep (0x64)
  11522. If (\_SB.PCI0.RP03.PDCX)
  11523. {
  11524. Notify (\_SB.PCI0.RP03, Zero)
  11525. Store (SMIA, SMIP)
  11526. }
  11527. Else
  11528. {
  11529. Store (One, \_SB.PCI0.RP03.HPSX)
  11530. }
  11531. }
  11532.  
  11533. If (LAnd (LEqual (RP4D, Zero), \_SB.PCI0.RP04.HPSX))
  11534. {
  11535. Sleep (0x64)
  11536. If (\_SB.PCI0.RP04.PDCX)
  11537. {
  11538. Notify (\_SB.PCI0.RP04, Zero)
  11539. Store (SMIA, SMIP)
  11540. }
  11541. Else
  11542. {
  11543. Store (One, \_SB.PCI0.RP04.HPSX)
  11544. }
  11545. }
  11546.  
  11547. If (LAnd (LEqual (RP5D, Zero), \_SB.PCI0.RP05.HPSX))
  11548. {
  11549. Sleep (0x64)
  11550. If (\_SB.PCI0.RP05.PDCX)
  11551. {
  11552. Notify (\_SB.PCI0.RP05, Zero)
  11553. Store (SMIA, SMIP)
  11554. }
  11555. Else
  11556. {
  11557. Store (One, \_SB.PCI0.RP05.HPSX)
  11558. }
  11559. }
  11560.  
  11561. If (LAnd (LEqual (RP7D, Zero), \_SB.PCI0.RP07.HPSX))
  11562. {
  11563. Sleep (0x64)
  11564. If (\_SB.PCI0.RP07.PDCX) {}
  11565. Else
  11566. {
  11567. Store (One, \_SB.PCI0.RP07.HPSX)
  11568. }
  11569. }
  11570.  
  11571. If (LAnd (LEqual (RP8D, Zero), \_SB.PCI0.RP08.HPSX))
  11572. {
  11573. Sleep (0x64)
  11574. If (\_SB.PCI0.RP08.PDCX) {}
  11575. Else
  11576. {
  11577. Store (One, \_SB.PCI0.RP08.HPSX)
  11578. }
  11579. }
  11580. }
  11581.  
  11582. Method (_L06, 0, NotSerialized) // _Lxx: Level-Triggered GPE
  11583. {
  11584. If (LAnd (\_SB.PCI0.GFX0.GSSE, LNot (GSMI)))
  11585. {
  11586. \_SB.PCI0.GFX0.GSCI ()
  11587. }
  11588. }
  11589.  
  11590. Method (_L07, 0, NotSerialized) // _Lxx: Level-Triggered GPE
  11591. {
  11592. Store (0x20, \_SB.PCI0.SBUS.HSTS)
  11593. }
  11594.  
  11595. Method (_L08, 0, NotSerialized) // _Lxx: Level-Triggered GPE
  11596. {
  11597. }
  11598.  
  11599. Method (_L16, 0, NotSerialized) // _Lxx: Level-Triggered GPE
  11600. {
  11601. Not (IV06, IV06)
  11602. If (PO52)
  11603. {
  11604. If (LEqual (PO06, Zero))
  11605. {
  11606. If (\_SB.PCI0.GFX0.AGXA) {}
  11607. Else
  11608. {
  11609. \_SB.PCI0.GFX0.AFN6 ()
  11610. }
  11611. }
  11612. }
  11613. }
  11614.  
  11615. Method (_L1E, 0, NotSerialized) // _Lxx: Level-Triggered GPE
  11616. {
  11617. If (LNotEqual (LIDS, \_SB.PCI0.LPCB.EC.CLID))
  11618. {
  11619. Store (\_SB.PCI0.LPCB.EC.CLID, LIDS)
  11620. If (IGDS)
  11621. {
  11622. If (CondRefOf (HGLS))
  11623. {
  11624. HGLS ()
  11625. }
  11626. Else
  11627. {
  11628. If (\_SB.PCI0.GFX0.GLID (LIDS))
  11629. {
  11630. Or (0x80000000, \_SB.PCI0.GFX0.CLID, \_SB.PCI0.GFX0.CLID)
  11631. }
  11632. }
  11633. }
  11634.  
  11635. Notify (\_SB.LID0, 0x80)
  11636. }
  11637. Else
  11638. {
  11639. Notify (\_SB.PWRB, 0x02)
  11640. }
  11641. }
  11642.  
  11643. Method (_L1D, 0, NotSerialized) // _Lxx: Level-Triggered GPE
  11644. {
  11645. }
  11646.  
  11647. Method (_L09, 0, NotSerialized) // _Lxx: Level-Triggered GPE
  11648. {
  11649. Notify (\_SB.PCI0.P0P2, 0x02)
  11650. Notify (\_SB.PCI0.P0P2.PEGP, 0x02)
  11651. Notify (\_SB.PCI0.RP01, 0x02)
  11652. Notify (\_SB.PCI0.RP02, 0x02)
  11653. Notify (\_SB.PCI0.RP03, 0x02)
  11654. Notify (\_SB.PCI0.RP04, 0x02)
  11655. Notify (\_SB.PCI0.RP05, 0x02)
  11656. Notify (\_SB.PCI0.RP07, 0x02)
  11657. Notify (\_SB.PCI0.RP08, 0x02)
  11658. Notify (\_SB.PCI0.PEG3, 0x02)
  11659. }
  11660.  
  11661. Method (_L0B, 0, NotSerialized) // _Lxx: Level-Triggered GPE
  11662. {
  11663. Notify (\_SB.PCI0.P0P1, 0x02)
  11664. }
  11665.  
  11666. Method (_L0D, 0, NotSerialized) // _Lxx: Level-Triggered GPE
  11667. {
  11668. Notify (\_SB.PCI0.EHC1, 0x02)
  11669. Notify (\_SB.PCI0.EHC2, 0x02)
  11670. Notify (\_SB.PCI0.HDEF, 0x02)
  11671. }
  11672. }
  11673.  
  11674. OperationRegion (PBIC, PCI_Config, Zero, 0xF0)
  11675. Field (PBIC, DWordAcc, NoLock, Preserve)
  11676. {
  11677. Offset (0x7C),
  11678. SR0, 32,
  11679. SR1, 32,
  11680. SR2, 32,
  11681. SR3, 32,
  11682. SR4, 32,
  11683. SR5, 32,
  11684. SR6, 32,
  11685. SR7, 32,
  11686. SR8, 32,
  11687. SR9, 32
  11688. }
  11689.  
  11690. OperationRegion (IBUS, PCI_Config, 0xD0, 0xE0)
  11691. Field (IBUS, DWordAcc, NoLock, Preserve)
  11692. {
  11693. , 26,
  11694. TOLM, 6,
  11695. , 26,
  11696. TOHM, 38,
  11697. Offset (0xB0),
  11698. VTEN, 1,
  11699. , 11,
  11700. VTBA, 20
  11701. }
  11702.  
  11703. Scope (_SB)
  11704. {
  11705. Device (CPBG)
  11706. {
  11707. Name (_HID, EisaId ("PNP0A03")) // _HID: Hardware ID
  11708. Name (_UID, 0xFF) // _UID: Unique ID
  11709. Name (_BBN, 0x7F) // _BBN: BIOS Bus Number
  11710. Name (_ADR, Zero) // _ADR: Address
  11711. Name (BUF0, ResourceTemplate ()
  11712. {
  11713. WordBusNumber (ResourceProducer, MinFixed, MaxFixed, PosDecode,
  11714. 0x0000, // Granularity
  11715. 0x007F, // Range Minimum
  11716. 0x007F, // Range Maximum
  11717. 0x0000, // Translation Offset
  11718. 0x0001, // Length
  11719. ,, _Y17)
  11720. })
  11721. Method (_CRS, 0, Serialized) // _CRS: Current Resource Settings
  11722. {
  11723. CreateWordField (BUF0, \_SB.CPBG._Y17._MIN, PBMN) // _MIN: Minimum Base Address
  11724. Store (Subtract (ShiftRight (PELN, 0x14), One), PBMN)
  11725. CreateWordField (BUF0, \_SB.CPBG._Y17._MAX, PBMX) // _MAX: Maximum Base Address
  11726. Store (Subtract (ShiftRight (PELN, 0x14), One), PBMX)
  11727. Return (BUF0)
  11728. }
  11729.  
  11730. Device (IMCH)
  11731. {
  11732. Name (_ADR, One) // _ADR: Address
  11733. OperationRegion (PBUS, PCI_Config, Zero, 0xC0)
  11734. Field (PBUS, DWordAcc, NoLock, Preserve)
  11735. {
  11736. Offset (0x40),
  11737. , 4,
  11738. PM0H, 2,
  11739. Offset (0x41),
  11740. PM1L, 2,
  11741. , 2,
  11742. PM1H, 2,
  11743. Offset (0x42),
  11744. PM2L, 2,
  11745. , 2,
  11746. PM2H, 2,
  11747. Offset (0x43),
  11748. PM3L, 2,
  11749. , 2,
  11750. PM3H, 2,
  11751. Offset (0x44),
  11752. PM4L, 2,
  11753. , 2,
  11754. PM4H, 2,
  11755. Offset (0x45),
  11756. PM5L, 2,
  11757. , 2,
  11758. PM5H, 2,
  11759. Offset (0x46),
  11760. PM6L, 2,
  11761. , 2,
  11762. PM6H, 2,
  11763. Offset (0x47),
  11764. Offset (0x48),
  11765. , 7,
  11766. HENA, 1,
  11767. Offset (0x50),
  11768. PXEN, 1,
  11769. PXSZ, 2,
  11770. , 17,
  11771. PXBR, 12
  11772. }
  11773. }
  11774. }
  11775. }
  11776.  
  11777. Name (_S0, Package (0x04) // _S0_: S0 System State
  11778. {
  11779. Zero,
  11780. Zero,
  11781. Zero,
  11782. Zero
  11783. })
  11784. If (LEqual (S3DS, One))
  11785. {
  11786. Name (_S3, Package (0x04) // _S3_: S3 System State
  11787. {
  11788. 0x05,
  11789. Zero,
  11790. Zero,
  11791. Zero
  11792. })
  11793. }
  11794.  
  11795. Name (_S4, Package (0x04) // _S4_: S4 System State
  11796. {
  11797. 0x06,
  11798. Zero,
  11799. Zero,
  11800. Zero
  11801. })
  11802. Name (_S5, Package (0x04) // _S5_: S5 System State
  11803. {
  11804. 0x07,
  11805. Zero,
  11806. Zero,
  11807. Zero
  11808. })
  11809. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement