Advertisement
Nyxie

4510s DSDT Table

Sep 6th, 2013
252
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 130.18 KB | None | 0 0
  1. // CreatorID=INTL CreatorRev=20.6.2322
  2. // FileLength=111525 FileChkSum=0x8e
  3.  
  4. DefinitionBlock("dsdt.aml", "DSDT", 0x01, "HPQOEM", "3074 ", 0x00000001)
  5. {
  6. Name(LSTA, 0x0)
  7. Name(IECP, 0x0)
  8. Name(DECP, 0x0)
  9. Name(IDPM, 0x0)
  10. Method(\HPTS, 0x1, NotSerialized)
  11. {
  12. Store(Arg0, SLPT)
  13. \_SB_.ODGW(Or(0x5500, Arg0, ))
  14. If(LGreater(Arg0, 0x0))
  15. {
  16. Store(0x0, \_SB_.PCI0.LPCB.EC0_.HSST)
  17. Store(\_SB_.PCI0.RP03.PDSX, IECP)
  18. Store(\_SB_.PCI0.RP05.PDSX, DECP)
  19. Store(\APMC, IDPM)
  20. If(LNot(LEqual(Arg0, 0x5)))
  21. {
  22. \_SB_.PCI0.LPCB.EC0_.BTDR(0x0)
  23. Store(0x1, \_SB_.NFBS)
  24. If(LEqual(Arg0, 0x3))
  25. {
  26. Store(\_SB_.LID_._LID(), LSTA)
  27. }
  28. }
  29. }
  30. }
  31. Method(\HWAK, 0x1, NotSerialized)
  32. {
  33. Store(0x0, SLPT)
  34. \_SB_.ODGW(Or(0x5600, Arg0, ))
  35. If(LEqual(Arg0, 0x3))
  36. {
  37. \_SB_.SSMI(0xea80, 0x0, 0x0, 0x0, 0x0)
  38. }
  39. \_SB_.PCI0.LPCB.EC0_.ITLB()
  40. \_SB_.PCI0.LPCB.EC0_.RPPC()
  41. If(\_SB_.PCI0.LPCB.EC0_.ECRG)
  42. {
  43. Acquire(\_SB_.PCI0.LPCB.EC0_.ECMX, 0xffff)
  44. Store(0x1, \_SB_.PCI0.LPCB.EC0_.ACPI)
  45. Store(0x0, \_SB_.PCI0.LPCB.EC0_.SLPT)
  46. Release(\_SB_.PCI0.LPCB.EC0_.ECMX)
  47. }
  48. If(LGreater(Arg0, 0x2))
  49. {
  50. \_TZ_.RETD()
  51. \_TZ_.INTM(0x1)
  52. Store(0x1, \_SB_.NFBS)
  53. If(LEqual(Arg0, 0x3))
  54. {
  55. Store(0x99, SSMP)
  56. If(XOr(\_SB_.LID_._LID(), LSTA, ))
  57. {
  58. XOr(GIV_, 0x2000, Local0)
  59. Store(Local0, GIV_)
  60. }
  61. Store(IDPM, \APMC)
  62. \_GPE.HWWP(0x1)
  63. }
  64. If(LEqual(Arg0, 0x4))
  65. {
  66. \_SB_.WMID.WGWE(0x5, 0x0)
  67. }
  68. }
  69. If(LOr(LEqual(Arg0, 0x4), LEqual(\WCOS(), 0x1)))
  70. {
  71. Notify(\_SB_.SLPB, 0x2)
  72. }
  73. Store(\_SB_.PCI0.LPCB.EC0_.GACS(), Local2)
  74. \_SB_.PCI0.LPCB.EC0_.PWUP(0x3, 0xff)
  75. Store(\_SB_.PCI0.LPCB.EC0_.GBAP(), Local1)
  76. Store(\_SB_.PCI0.LPCB.EC0_.GACS(), Local3)
  77. XOr(Local2, Local3, Local3)
  78. If(Local3)
  79. {
  80. Notify(\_SB_.AC__, 0x80)
  81. PNOT()
  82. }
  83. Else
  84. {
  85. If(LEqual(Arg0, 0x4))
  86. {
  87. XOr(Local2, 0x1, \_SB_.ACST)
  88. }
  89. }
  90. WKET(Arg0)
  91. \_SB_.VWAK(Arg0)
  92. \_SB_.VWAK(0x1)
  93. Store(\_SB_.HST1.GHID(), Local0)
  94. \_SB_.PCI0.ACEL.ITAL()
  95. }
  96. Mutex(MUTX, 0x0)
  97. Method(P8XH, 0x2, Serialized)
  98. {
  99. If(LEqual(Arg0, 0x0))
  100. {
  101. \_SB_.ODBG(Arg1)
  102. Store(Or(And(P80D, 0xffffff00, ), Arg1, ), P80D)
  103. }
  104. If(LEqual(Arg0, 0x1))
  105. {
  106. \_SB_.ODG1(Arg1)
  107. Store(Or(And(P80D, 0xffff00ff, ), ShiftLeft(Arg1, 0x8, ), ), P80D)
  108. }
  109. If(LEqual(Arg0, 0x2))
  110. {
  111. Store(Or(And(P80D, 0xff00ffff, ), ShiftLeft(Arg1, 0x10, ), ), P80D)
  112. }
  113. If(LEqual(Arg0, 0x3))
  114. {
  115. Store(Or(And(P80D, 0xffffff, ), ShiftLeft(Arg1, 0x18, ), ), P80D)
  116. }
  117. }
  118. OperationRegion(SPRT, SystemIO, 0xb2, 0x2)
  119. Field(SPRT, ByteAcc, Lock, Preserve)
  120. {
  121. SSMP, 8
  122. }
  123. Method(\_PIC, 0x1, NotSerialized)
  124. {
  125. Store(Arg0, GPIC)
  126. }
  127. Method(_PTS, 0x1, NotSerialized)
  128. {
  129. HPTS(Arg0)
  130. If(LEqual(Arg0, 0x3))
  131. {
  132. If(LAnd(DTSE, MPEN))
  133. {
  134. TRAP(0x2, 0x1e)
  135. }
  136. }
  137. }
  138. Method(_WAK, 0x1, NotSerialized)
  139. {
  140. HWAK(Arg0)
  141. If(LEqual(Arg0, 0x3))
  142. {
  143. }
  144. If(LOr(LEqual(Arg0, 0x3), LEqual(Arg0, 0x4)))
  145. {
  146. If(LAnd(DTSE, MPEN))
  147. {
  148. TRAP(0x2, 0x14)
  149. }
  150. If(And(CFGD, 0x1000000, ))
  151. {
  152. If(LAnd(And(CFGD, 0xf0, ), LAnd(LEqual(OSYS, 0x7d1), LNot(And(PDC0, 0x10, )))))
  153. {
  154. TRAP(0x1, 0x48)
  155. }
  156. }
  157. If(LEqual(OSYS, 0x7d2))
  158. {
  159. If(And(CFGD, 0x1, ))
  160. {
  161. If(LGreater(\_PR_.CPU0._PPC, 0x0))
  162. {
  163. Subtract(\_PR_.CPU0._PPC, 0x1, \_PR_.CPU0._PPC)
  164. PNOT()
  165. Add(\_PR_.CPU0._PPC, 0x1, \_PR_.CPU0._PPC)
  166. PNOT()
  167. }
  168. Else
  169. {
  170. Add(\_PR_.CPU0._PPC, 0x1, \_PR_.CPU0._PPC)
  171. PNOT()
  172. Subtract(\_PR_.CPU0._PPC, 0x1, \_PR_.CPU0._PPC)
  173. PNOT()
  174. }
  175. }
  176. }
  177. }
  178. Return(Package(0x2)
  179. {
  180. 0x0,
  181. 0x0
  182. })
  183. }
  184. Method(GETB, 0x3, Serialized)
  185. {
  186. Multiply(Arg0, 0x8, Local0)
  187. Multiply(Arg1, 0x8, Local1)
  188. CreateField(Arg2, Local0, Local1, TBF3)
  189. Return(TBF3)
  190. }
  191. Method(PNOT, 0x0, Serialized)
  192. {
  193. If(MPEN)
  194. {
  195. If(And(PDC0, 0x8, ))
  196. {
  197. Notify(\_PR_.CPU0, 0x80)
  198. If(And(PDC0, 0x10, ))
  199. {
  200. Sleep(0x64)
  201. Notify(\_PR_.CPU0, 0x81)
  202. }
  203. }
  204. If(And(PDC1, 0x8, ))
  205. {
  206. Notify(\_PR_.CPU1, 0x80)
  207. If(And(PDC1, 0x10, ))
  208. {
  209. Sleep(0x64)
  210. Notify(\_PR_.CPU1, 0x81)
  211. }
  212. }
  213. }
  214. Else
  215. {
  216. Notify(\_PR_.CPU0, 0x80)
  217. Sleep(0x64)
  218. Notify(\_PR_.CPU0, 0x81)
  219. }
  220. }
  221. Method(TRAP, 0x2, Serialized)
  222. {
  223. Store(Arg1, SMIF)
  224. If(LEqual(Arg0, 0x1))
  225. {
  226. Store(0x0, TRP0)
  227. }
  228. If(LEqual(Arg0, 0x2))
  229. {
  230. Store(Arg1, DTSF)
  231. Store(0x0, TRPD)
  232. Return(DTSF)
  233. }
  234. If(LEqual(Arg0, 0x3))
  235. {
  236. Store(0x0, TRPH)
  237. }
  238. Return(SMIF)
  239. }
  240. Scope(\_SB_)
  241. {
  242. Method(_INI, 0x0, NotSerialized)
  243. {
  244. Store(0x7d0, OSYS)
  245. If(CondRefOf(_OSI, Local0))
  246. {
  247. If(_OSI("Windows 2001"))
  248. {
  249. Store(0x7d1, OSYS)
  250. }
  251. If(_OSI("Windows 2001 SP1"))
  252. {
  253. Store(0x7d1, OSYS)
  254. }
  255. If(_OSI("Windows 2001 SP2"))
  256. {
  257. Store(0x7d2, OSYS)
  258. }
  259. If(_OSI("Windows 2006"))
  260. {
  261. Store(0x7d6, OSYS)
  262. }
  263. If(_OSI("Linux"))
  264. {
  265. Store(0x3e8, OSYS)
  266. }
  267. If(LAnd(MPEN, LEqual(OSYS, 0x7d1)))
  268. {
  269. TRAP(0x1, 0x48)
  270. }
  271. TRAP(0x3, 0x35)
  272. }
  273. \_TZ_.BOTT()
  274. \_TZ_.RETD()
  275. }
  276. }
  277. OperationRegion(GNVS, SystemMemory, 0xbdfc3d98, 0x100)
  278. Field(GNVS, AnyAcc, Lock, Preserve)
  279. {
  280. OSYS, 16,
  281. SMIF, 8,
  282. PRM0, 8,
  283. PRM1, 8,
  284. SCIF, 8,
  285. PRM2, 8,
  286. PRM3, 8,
  287. LCKF, 8,
  288. PRM4, 8,
  289. PRM5, 8,
  290. P80D, 32,
  291. LIDS, 8,
  292. PWRS, 8,
  293. DBGS, 8,
  294. THOF, 8,
  295. ACT1, 8,
  296. ACTT, 8,
  297. PSVT, 8,
  298. TC1V, 8,
  299. TC2V, 8,
  300. TSPV, 8,
  301. CRTT, 8,
  302. DTSE, 8,
  303. DTS1, 8,
  304. DTS2, 8,
  305. DTSF, 8,
  306. Offset(0x28),
  307. APIC, 8,
  308. MPEN, 8,
  309. PCP0, 8,
  310. PCP1, 8,
  311. PPCM, 8,
  312. PPMF, 32,
  313. , 8,
  314. Offset(0x3c),
  315. IGDS, 8,
  316. TLST, 8,
  317. CADL, 8,
  318. PADL, 8,
  319. CSTE, 16,
  320. NSTE, 16,
  321. SSTE, 16,
  322. NDID, 8,
  323. DID1, 32,
  324. DID2, 32,
  325. DID3, 32,
  326. DID4, 32,
  327. DID5, 32,
  328. BDSP, 8,
  329. PTY1, 8,
  330. PTY2, 8,
  331. PSCL, 8,
  332. TVF1, 8,
  333. TVF2, 8,
  334. GETM, 8,
  335. Offset(0x67),
  336. BLCS, 8,
  337. BRTL, 8,
  338. ALSE, 8,
  339. ALAF, 8,
  340. LLOW, 8,
  341. LHIH, 8,
  342. , 8,
  343. EMAE, 8,
  344. EMAP, 16,
  345. EMAL, 16,
  346. , 8,
  347. MEFE, 8,
  348. DSTS, 8,
  349. , 16,
  350. TPMP, 8,
  351. TPME, 8,
  352. Offset(0x82),
  353. GTF0, 56,
  354. GTF5, 56,
  355. IDEM, 8,
  356. GTF1, 56,
  357. BID_, 8,
  358. Offset(0xaa),
  359. ASLB, 32,
  360. IBTT, 8,
  361. IPAT, 8,
  362. ITVF, 8,
  363. ITVM, 8,
  364. IPSC, 8,
  365. IBLC, 8,
  366. IBIA, 8,
  367. ISSC, 8,
  368. I409, 8,
  369. I509, 8,
  370. I609, 8,
  371. I709, 8,
  372. IDMM, 8,
  373. IDMS, 8,
  374. IF1E, 8,
  375. HVCO, 8,
  376. NXD1, 32,
  377. NXD2, 32,
  378. NXD3, 32,
  379. NXD4, 32,
  380. NXD5, 32,
  381. NXD6, 32,
  382. NXD7, 32,
  383. NXD8, 32,
  384. GSMI, 8,
  385. Offset(0xeb),
  386. DSEN, 8,
  387. ECON, 8,
  388. GPIC, 8,
  389. CTYP, 8,
  390. L01C, 8,
  391. VFN0, 8,
  392. VFN1, 8
  393. }
  394. OperationRegion(ASMA, SystemMemory, 0xbdfc0018, 0x1060)
  395. Field(ASMA, AnyAcc, NoLock, Preserve)
  396. {
  397. ASMB, 33536
  398. }
  399. OperationRegion(AF10, SystemMemory, 0xbdfc2818, 0x7c4)
  400. Field(AF10, AnyAcc, Lock, Preserve)
  401. {
  402. STAT, 32,
  403. EVAL, 8,
  404. ASTL, 8,
  405. ASTG, 256,
  406. OWNT, 640,
  407. PROD, 640,
  408. MODL, 640,
  409. PTYP, 640,
  410. PFRQ, 640,
  411. MEMS, 640,
  412. DATE, 640,
  413. FAMI, 640,
  414. SERL, 640,
  415. VREV, 640,
  416. KBCD, 640,
  417. HDDS, 160,
  418. HDDM, 320,
  419. CDAT, 136,
  420. CSTS, 8,
  421. CYCL, 8,
  422. PBSN, 144,
  423. SBSN, 144,
  424. BSTS, 8,
  425. BORD, 56,
  426. APST, 8,
  427. OAPW, 3200,
  428. NAPW, 3200,
  429. SECO, 32,
  430. SECS, 32,
  431. SKUN, 128,
  432. SVID, 48,
  433. SSID, 32,
  434. BTFC, 160,
  435. WLFC, 160,
  436. WWFC, 160,
  437. PWDL, 16,
  438. USRN, 264,
  439. ROLE, 32,
  440. CMDV, 32,
  441. KBDL, 32,
  442. HASH, 32,
  443. SPSF, 8
  444. }
  445. OperationRegion(HPDF, SystemMemory, 0xbdfc6f18, 0x57)
  446. Field(HPDF, AnyAcc, Lock, Preserve)
  447. {
  448. SLPT, 4,
  449. WHOS, 4,
  450. SDFG, 4,
  451. LEGF, 1,
  452. KCDB, 1,
  453. KLDB, 1,
  454. TPMX, 1,
  455. FOAL, 1,
  456. AEDA, 1,
  457. ALSF, 1,
  458. WOLD, 1,
  459. HSED, 1,
  460. HDEN, 1,
  461. MDEN, 1,
  462. UWKD, 1,
  463. INQW, 1,
  464. ASFG, 7,
  465. WDPE, 8,
  466. WDSA, 8,
  467. WDST, 8,
  468. WDGN, 8,
  469. WDSS, 8,
  470. WLBN, 8,
  471. PRDT, 8,
  472. LPDP, 16,
  473. EAX_, 32,
  474. EBX_, 32,
  475. ECX_, 32,
  476. EDX_, 32,
  477. REFS, 32,
  478. SSCI, 8,
  479. SBFC, 8,
  480. THOS, 8,
  481. TRCN, 8,
  482. DCAP, 8,
  483. LOTR, 160,
  484. HITR, 160,
  485. WABN, 8,
  486. WADN, 8,
  487. WAFN, 8,
  488. DTCD, 32,
  489. BDCP, 8,
  490. PS2I, 8
  491. }
  492. OperationRegion(HPD2, SystemMemory, 0xbdecaf98, 0x7)
  493. Field(HPD2, AnyAcc, Lock, Preserve)
  494. {
  495. CWDS, 8,
  496. CWLS, 8,
  497. CBTS, 8,
  498. CWWS, 8,
  499. CFPS, 8,
  500. CMDS, 8,
  501. BRID, 8
  502. }
  503. OperationRegion(HPBR, SystemMemory, 0xbdfc6e98, 0x45)
  504. Field(HPBR, AnyAcc, Lock, Preserve)
  505. {
  506. PAID, 32,
  507. BRCT, 8,
  508. BCCT, 8,
  509. BMAP, 88,
  510. BCLV, 216,
  511. BRLV, 200
  512. }
  513. Scope(\_GPE)
  514. {
  515. Method(_L00, 0x0, NotSerialized)
  516. {
  517. \_TZ_.THEV()
  518. }
  519. Method(_L01, 0x0, NotSerialized)
  520. {
  521. Add(L01C, 0x1, L01C)
  522. \_SB_.PCI0.RP01.HPLG()
  523. \_SB_.PCI0.RP02.HPLG()
  524. \_SB_.PCI0.RP03.HPLG()
  525. \_SB_.PCI0.RP04.HPLG()
  526. \_SB_.PCI0.RP05.HPLG()
  527. \_SB_.PCI0.RP06.HPLG()
  528. }
  529. Method(_L02, 0x0, NotSerialized)
  530. {
  531. Store(0x0, GPEC)
  532. Store(SSCI, Local0)
  533. If(Local0)
  534. {
  535. Store(0x0, SSCI)
  536. If(LEqual(Local0, 0x1))
  537. {
  538. VFN4()
  539. }
  540. If(LEqual(Local0, 0x4))
  541. {
  542. \_SB_.WMID.WGWE(Local0, 0x0)
  543. }
  544. If(LEqual(Local0, 0x5))
  545. {
  546. HWWP(0x0)
  547. \_SB_.WMID.WGWE(Local0, 0x0)
  548. }
  549. If(LEqual(Local0, 0x7))
  550. {
  551. Acquire(\_TZ_.THER, 0xffff)
  552. Or(\_TZ_.THSC, 0x1, \_TZ_.THSC)
  553. Release(\_TZ_.THER)
  554. Notify(\_TZ_.DTSZ, 0x80)
  555. }
  556. If(LEqual(Local0, 0x3))
  557. {
  558. VBRE(0x87)
  559. }
  560. If(LEqual(Local0, 0x2))
  561. {
  562. VBRE(0x86)
  563. }
  564. }
  565. }
  566. Method(_L03, 0x0, NotSerialized)
  567. {
  568. Notify(\_SB_.PCI0.USB1, 0x2)
  569. }
  570. Method(_L04, 0x0, NotSerialized)
  571. {
  572. Notify(\_SB_.PCI0.USB2, 0x2)
  573. }
  574. Method(_L05, 0x0, NotSerialized)
  575. {
  576. Notify(\_SB_.PCI0.USB5, 0x2)
  577. }
  578. Method(_L09, 0x0, NotSerialized)
  579. {
  580. \_SB_.PCI0.RP01.PME_()
  581. \_SB_.PCI0.RP02.PME_()
  582. \_SB_.PCI0.RP03.PME_()
  583. \_SB_.PCI0.RP04.PME_()
  584. \_SB_.PCI0.RP05.PME_()
  585. \_SB_.PCI0.RP06.PME_()
  586. }
  587. Method(_L0B, 0x0, NotSerialized)
  588. {
  589. Notify(\_SB_.PCI0.PCIB, 0x2)
  590. }
  591. Method(_L0C, 0x0, NotSerialized)
  592. {
  593. Notify(\_SB_.PCI0.USB3, 0x2)
  594. }
  595. Method(_L0D, 0x0, NotSerialized)
  596. {
  597. If(\_SB_.PCI0.EHC1.PMES)
  598. {
  599. Store(0x1, \_SB_.PCI0.EHC1.PMES)
  600. Notify(\_SB_.PCI0.EHC1, 0x2)
  601. }
  602. If(\_SB_.PCI0.EHC2.PMES)
  603. {
  604. Store(0x1, \_SB_.PCI0.EHC2.PMES)
  605. Notify(\_SB_.PCI0.EHC2, 0x2)
  606. }
  607. If(\_SB_.PCI0.HDEF.PMES)
  608. {
  609. Store(0x1, \_SB_.PCI0.HDEF.PMES)
  610. Notify(\_SB_.PCI0.HDEF, 0x2)
  611. }
  612. Notify(\_SB_.PCI0.LANC, 0x2)
  613. }
  614. Method(_L0E, 0x0, NotSerialized)
  615. {
  616. Notify(\_SB_.PCI0.USB4, 0x2)
  617. }
  618. Method(_L18, 0x0, NotSerialized)
  619. {
  620. XOr(GIV_, 0x100, Local0)
  621. Store(Local0, GIV_)
  622. VDET()
  623. \_SB_.WMID.WGWE(0x1, 0x0)
  624. Sleep(0x3e8)
  625. Notify(\_SB_.PCI0.USB5, 0x0)
  626. Notify(\_SB_.PCI0.USB6, 0x0)
  627. Notify(\_SB_.PCI0.EHC2, 0x0)
  628. Notify(\_SB_.PCI0.SATA, 0x0)
  629. DKET()
  630. }
  631. Method(_L1D, 0x0, NotSerialized)
  632. {
  633. XOr(GIV_, 0x2000, Local0)
  634. Store(Local0, GIV_)
  635. Multiply(0x2000, 0x2000, Local1)
  636. ShiftLeft(Local1, 0x1, Local2)
  637. Or(Local1, Local2, Local3)
  638. And(\_SB_.PCI0.LPCB.GPRO, Not(Local3, ), Local0)
  639. Store(Local0, \_SB_.PCI0.LPCB.GPRO)
  640. If(\_SB_.PCI0.LPCB.EC0_.ECRG)
  641. {
  642. XOr(\_SB_.LID_._LID(), 0x1, \_SB_.PCI0.LPCB.EC0_.LIDS)
  643. }
  644. If(LNot(LLess(\WCOS(), 0x6)))
  645. {
  646. Notify(\_SB_.LID_, 0x80)
  647. }
  648. If(VLET())
  649. {
  650. If(LLess(\WCOS(), 0x6))
  651. {
  652. Notify(\_SB_.LID_, 0x80)
  653. }
  654. And(\_SB_.PCI0.LPCB.GPRO, Not(Local3, ), Local0)
  655. Or(Local0, Local2, \_SB_.PCI0.LPCB.GPRO)
  656. }
  657. Else
  658. {
  659. If(LLess(\WCOS(), 0x6))
  660. {
  661. Notify(\_SB_.LID_, 0x80)
  662. }
  663. }
  664. \_SB_.PCI0.ACEL.AJAL()
  665. }
  666. Method(HWWP, 0x1, Serialized)
  667. {
  668. If(LOr(LEqual(INQW, 0x0), LEqual(Arg0, 0x1)))
  669. {
  670. Store(0x0, Local0)
  671. If(And(GPL2, 0x400, ))
  672. {
  673. Store(0x1, Local0)
  674. }
  675. \_SB_.PCI0.LPCB.EC0_.HWWP(Local0)
  676. }
  677. }
  678. }
  679. Scope(\_PR_)
  680. {
  681. Processor(CPU0, 0x0, 0x410, 0x6)
  682. {
  683. }
  684. Processor(CPU1, 0x1, 0x410, 0x6)
  685. {
  686. }
  687. Processor(CPU2, 0x2, 0x410, 0x6)
  688. {
  689. }
  690. Processor(CPU3, 0x3, 0x410, 0x6)
  691. {
  692. }
  693. }
  694. Scope(\_TZ_)
  695. {
  696. Name(TRIP, Package(0x5)
  697. {
  698. Package(0x2)
  699. {
  700. Package(0x8)
  701. {
  702. 0xaac,
  703. 0x0,
  704. 0x0,
  705. 0x0,
  706. 0x0,
  707. 0x0,
  708. 0x0,
  709. 0xfa3
  710. },
  711. Package(0x8)
  712. {
  713. 0x0,
  714. 0x0,
  715. 0x0,
  716. 0x0,
  717. 0x0,
  718. 0x0,
  719. 0x0,
  720. 0x14ac
  721. }
  722. },
  723. Package(0x2)
  724. {
  725. Package(0x9)
  726. {
  727. 0xaac,
  728. 0xbd8,
  729. 0xc28,
  730. 0xc6e,
  731. 0xcbe,
  732. 0xd22,
  733. 0xd9a,
  734. 0xe44,
  735. 0xe4e
  736. },
  737. Package(0x9)
  738. {
  739. 0xc1e,
  740. 0xc64,
  741. 0xcb4,
  742. 0xd18,
  743. 0xd90,
  744. 0xdf4,
  745. 0xec6,
  746. 0xee4,
  747. 0xfa3
  748. }
  749. },
  750. Package(0x2)
  751. {
  752. Package(0x9)
  753. {
  754. 0xaac,
  755. 0xbd8,
  756. 0xce6,
  757. 0xd2c,
  758. 0xd7c,
  759. 0xdcc,
  760. 0xe1c,
  761. 0xe76,
  762. 0xe80
  763. },
  764. Package(0x9)
  765. {
  766. 0xcdc,
  767. 0xd22,
  768. 0xd72,
  769. 0xdc2,
  770. 0xe12,
  771. 0xe6c,
  772. 0xec6,
  773. 0xee4,
  774. 0xfa3
  775. }
  776. },
  777. Package(0x2)
  778. {
  779. Package(0x3)
  780. {
  781. 0xaac,
  782. 0xdfe,
  783. 0xe08
  784. },
  785. Package(0x3)
  786. {
  787. 0xe62,
  788. 0xec6,
  789. 0xfa3
  790. }
  791. },
  792. Package(0x2)
  793. {
  794. Package(0x2)
  795. {
  796. 0xaac,
  797. 0xca0
  798. },
  799. Package(0x2)
  800. {
  801. 0xd04,
  802. 0xfa3
  803. }
  804. }
  805. })
  806. Name(MT10, Package(0x2)
  807. {
  808. Package(0x9)
  809. {
  810. 0xaac,
  811. 0xbd8,
  812. 0xc28,
  813. 0xc6e,
  814. 0xcbe,
  815. 0xd22,
  816. 0xd9a,
  817. 0xdfe,
  818. 0xe08
  819. },
  820. Package(0x9)
  821. {
  822. 0xc1e,
  823. 0xc64,
  824. 0xcb4,
  825. 0xd18,
  826. 0xd90,
  827. 0xdf4,
  828. 0xe94,
  829. 0xeb2,
  830. 0xfa3
  831. }
  832. })
  833. Name(PT90, Package(0x2)
  834. {
  835. Package(0x9)
  836. {
  837. 0xaac,
  838. 0xbd8,
  839. 0xc28,
  840. 0xc6e,
  841. 0xcbe,
  842. 0xd22,
  843. 0xd9a,
  844. 0xdea,
  845. 0xdf4
  846. },
  847. Package(0x9)
  848. {
  849. 0xc1e,
  850. 0xc64,
  851. 0xcb4,
  852. 0xd18,
  853. 0xd90,
  854. 0xde0,
  855. 0xe30,
  856. 0xe4e,
  857. 0xfa3
  858. }
  859. })
  860. Name(MT85, Package(0x2)
  861. {
  862. Package(0x9)
  863. {
  864. 0xaac,
  865. 0xbd8,
  866. 0xc28,
  867. 0xc6e,
  868. 0xcbe,
  869. 0xd22,
  870. 0xd86,
  871. 0xdd6,
  872. 0xde0
  873. },
  874. Package(0x9)
  875. {
  876. 0xc1e,
  877. 0xc64,
  878. 0xcb4,
  879. 0xd18,
  880. 0xd7c,
  881. 0xdcc,
  882. 0xdfe,
  883. 0xe1c,
  884. 0xfa3
  885. }
  886. })
  887. Name(CPFS, Package(0x7)
  888. {
  889. 0x5a,
  890. 0x4b,
  891. 0x37,
  892. 0x2d,
  893. 0x1e,
  894. 0x0,
  895. 0x0
  896. })
  897. Method(TRUP, 0x0, Serialized)
  898. {
  899. If(LEqual(PRDT, 0x1))
  900. {
  901. Store(0x0, Local0)
  902. }
  903. Else
  904. {
  905. If(LEqual(PRDT, 0x2))
  906. {
  907. Store(MT10, Index(TRIP, 0x1, ))
  908. }
  909. Else
  910. {
  911. If(LEqual(PRDT, 0x3))
  912. {
  913. Store(MT85, Index(TRIP, 0x1, ))
  914. }
  915. Else
  916. {
  917. If(LEqual(PRDT, 0x4))
  918. {
  919. Store(PT90, Index(TRIP, 0x1, ))
  920. }
  921. }
  922. }
  923. }
  924. }
  925. Method(INTM, 0x1, Serialized)
  926. {
  927. If(LEqual(\_SB_.PCI0.GFX0.GIVD, 0x0))
  928. {
  929. Store(0x0, Local0)
  930. INTS(Local0, 0x0)
  931. If(Arg0)
  932. {
  933. Notify(\_TZ_.CPUZ, 0x80)
  934. Notify(\_TZ_.SKNZ, 0x80)
  935. }
  936. }
  937. Else
  938. {
  939. Store(0x0, Local0)
  940. INTS(Local0, 0x0)
  941. IVTH()
  942. If(Arg0)
  943. {
  944. Notify(\_TZ_.CPUZ, 0x80)
  945. Notify(\_TZ_.GFXZ, 0x80)
  946. Notify(\_TZ_.SKNZ, 0x80)
  947. }
  948. }
  949. }
  950. Name(LVTH, 0x0)
  951. Name(LVTK, 0x0)
  952. Name(GFTH, 0x0)
  953. Method(IVTH, 0x0, Serialized)
  954. {
  955. Store(0x0, LVTH)
  956. Store(0x0, LVTK)
  957. Store(0x0, GFTH)
  958. \_SB_.PCI0.LPCB.SMAB(0x9a, 0x40, 0x3)
  959. \_SB_.PCI0.LPCB.SMAB(0x9a, 0x25, 0x7)
  960. \_SB_.PCI0.LPCB.SMAB(0x9a, 0x27, 0x12)
  961. Subtract(\_TZ_.GFXZ._AC0(), 0xaac, Local1)
  962. Divide(Local1, 0xa, Local0, Local2)
  963. Add(Local2, 0x3, Local2)
  964. \_SB_.PCI0.LPCB.SMAB(0x9a, 0x19, Local2)
  965. Subtract(\_TZ_.GFXZ._CRT(), 0xaac, Local1)
  966. Divide(Local1, 0xa, Local0, Local2)
  967. Add(Local2, 0x1, Local2)
  968. \_SB_.PCI0.LPCB.SMAB(0x9a, 0x19, Local2)
  969. \_SB_.PCI0.LPCB.SMAB(0x9a, 0xb, 0x7f)
  970. \_SB_.PCI0.LPCB.SMAB(0x9a, 0xc, 0x0)
  971. \_SB_.PCI0.LPCB.SMAB(0x9a, 0x7, 0x6f)
  972. \_SB_.PCI0.LPCB.SMAB(0x9a, 0x13, 0x0)
  973. \_SB_.PCI0.LPCB.SMAB(0x9a, 0x8, 0x0)
  974. \_SB_.PCI0.LPCB.SMAB(0x9a, 0x14, 0x0)
  975. \_SB_.PCI0.LPCB.SMAB(0x9a, 0xe, 0x88)
  976. \_SB_.PCI0.LPCB.SMAB(0x9a, 0xd, 0x11)
  977. \_SB_.PCI0.LPCB.SMAB(0x9a, 0xa, 0x4)
  978. \_SB_.PCI0.LPCB.SMAB(0x9a, 0x9, 0x0)
  979. \_SB_.PCI0.LPCB.SMAB(0x9a, 0x21, 0xa)
  980. }
  981. PowerResource(PFN6, 0x0, 0x0)
  982. {
  983. Method(_STA, 0x0, NotSerialized)
  984. {
  985. Return(FAST(0x1, 0x0))
  986. }
  987. Method(_ON_, 0x0, NotSerialized)
  988. {
  989. FOOF(0x1, 0x1, 0x0)
  990. }
  991. Method(_OFF, 0x0, NotSerialized)
  992. {
  993. FOOF(0x0, 0x1, 0x0)
  994. }
  995. }
  996. PowerResource(PFN7, 0x0, 0x0)
  997. {
  998. Method(_STA, 0x0, NotSerialized)
  999. {
  1000. Return(FAST(0x1, 0x1))
  1001. }
  1002. Method(_ON_, 0x0, NotSerialized)
  1003. {
  1004. FOOF(0x1, 0x1, 0x1)
  1005. }
  1006. Method(_OFF, 0x0, NotSerialized)
  1007. {
  1008. FOOF(0x0, 0x1, 0x1)
  1009. }
  1010. }
  1011. PowerResource(PFN8, 0x0, 0x0)
  1012. {
  1013. Method(_STA, 0x0, NotSerialized)
  1014. {
  1015. Return(FAST(0x1, 0x2))
  1016. }
  1017. Method(_ON_, 0x0, NotSerialized)
  1018. {
  1019. FOOF(0x1, 0x1, 0x2)
  1020. }
  1021. Method(_OFF, 0x0, NotSerialized)
  1022. {
  1023. FOOF(0x0, 0x1, 0x2)
  1024. }
  1025. }
  1026. PowerResource(PFN9, 0x0, 0x0)
  1027. {
  1028. Method(_STA, 0x0, NotSerialized)
  1029. {
  1030. Return(FAST(0x1, 0x3))
  1031. }
  1032. Method(_ON_, 0x0, NotSerialized)
  1033. {
  1034. FOOF(0x1, 0x1, 0x3)
  1035. }
  1036. Method(_OFF, 0x0, NotSerialized)
  1037. {
  1038. FOOF(0x0, 0x1, 0x3)
  1039. }
  1040. }
  1041. PowerResource(PFNA, 0x0, 0x0)
  1042. {
  1043. Method(_STA, 0x0, NotSerialized)
  1044. {
  1045. Return(FAST(0x1, 0x4))
  1046. }
  1047. Method(_ON_, 0x0, NotSerialized)
  1048. {
  1049. FOOF(0x1, 0x1, 0x4)
  1050. }
  1051. Method(_OFF, 0x0, NotSerialized)
  1052. {
  1053. FOOF(0x0, 0x1, 0x4)
  1054. }
  1055. }
  1056. PowerResource(PFNB, 0x0, 0x0)
  1057. {
  1058. Method(_STA, 0x0, NotSerialized)
  1059. {
  1060. Return(FAST(0x1, 0x5))
  1061. }
  1062. Method(_ON_, 0x0, NotSerialized)
  1063. {
  1064. FOOF(0x1, 0x1, 0x5)
  1065. }
  1066. Method(_OFF, 0x0, NotSerialized)
  1067. {
  1068. FOOF(0x0, 0x1, 0x5)
  1069. }
  1070. }
  1071. PowerResource(PGF0, 0x0, 0x0)
  1072. {
  1073. Method(_STA, 0x0, NotSerialized)
  1074. {
  1075. Return(GFTH)
  1076. }
  1077. Method(_ON_, 0x0, NotSerialized)
  1078. {
  1079. If(LAnd(LEqual(GFTH, 0x0), LEqual(LVTH, 0x0)))
  1080. {
  1081. If(LNot(LLess(LVTK, \_TZ_.GFXZ._AC0())))
  1082. {
  1083. \_SB_.SSMI(0xea74, 0x3, 0x1, 0x0, 0x0)
  1084. Store(0x1, LVTH)
  1085. }
  1086. }
  1087. Store(0x1, GFTH)
  1088. }
  1089. Method(_OFF, 0x0, NotSerialized)
  1090. {
  1091. If(LAnd(GFTH, LVTH))
  1092. {
  1093. If(LLess(LVTK, \_TZ_.GFXZ._AC0()))
  1094. {
  1095. \_SB_.SSMI(0xea74, 0x3, 0x0, 0x0, 0x0)
  1096. Store(0x0, LVTH)
  1097. }
  1098. }
  1099. Store(0x0, GFTH)
  1100. }
  1101. }
  1102. Device(FAN6)
  1103. {
  1104. Name(_HID, 0xb0cd041)
  1105. Name(_UID, 0x6)
  1106. Name(_PR0, Package(0x1)
  1107. {
  1108. PFN6
  1109. })
  1110. }
  1111. Device(FAN7)
  1112. {
  1113. Name(_HID, 0xb0cd041)
  1114. Name(_UID, 0x7)
  1115. Name(_PR0, Package(0x1)
  1116. {
  1117. PFN7
  1118. })
  1119. }
  1120. Device(FAN8)
  1121. {
  1122. Name(_HID, 0xb0cd041)
  1123. Name(_UID, 0x8)
  1124. Name(_PR0, Package(0x1)
  1125. {
  1126. PFN8
  1127. })
  1128. }
  1129. Device(FAN9)
  1130. {
  1131. Name(_HID, 0xb0cd041)
  1132. Name(_UID, 0x9)
  1133. Name(_PR0, Package(0x1)
  1134. {
  1135. PFN9
  1136. })
  1137. }
  1138. Device(FANA)
  1139. {
  1140. Name(_HID, 0xb0cd041)
  1141. Name(_UID, 0xa)
  1142. Name(_PR0, Package(0x1)
  1143. {
  1144. PFNA
  1145. })
  1146. }
  1147. Device(FANB)
  1148. {
  1149. Name(_HID, 0xb0cd041)
  1150. Name(_UID, 0xb)
  1151. Name(_PR0, Package(0x1)
  1152. {
  1153. PFNB
  1154. })
  1155. }
  1156. Device(FANG)
  1157. {
  1158. Name(_HID, 0xb0cd041)
  1159. Name(_UID, 0xc)
  1160. Name(_PR0, Package(0x1)
  1161. {
  1162. PGF0
  1163. })
  1164. }
  1165. ThermalZone(GFXZ)
  1166. {
  1167. Name(_AL0, Package(0x1)
  1168. {
  1169. FANG
  1170. })
  1171. Name(_AL1, Package(0x1)
  1172. {
  1173. FAN6
  1174. })
  1175. Name(_AL2, Package(0x1)
  1176. {
  1177. FAN7
  1178. })
  1179. Name(_AL3, Package(0x1)
  1180. {
  1181. FAN8
  1182. })
  1183. Name(_AL4, Package(0x1)
  1184. {
  1185. FAN9
  1186. })
  1187. Name(_AL5, Package(0x1)
  1188. {
  1189. FANA
  1190. })
  1191. Name(_AL6, Package(0x1)
  1192. {
  1193. FANB
  1194. })
  1195. Method(_AC0, 0x0, NotSerialized)
  1196. {
  1197. Return(GETP(0x6, 0x2))
  1198. }
  1199. Method(_AC1, 0x0, NotSerialized)
  1200. {
  1201. Return(GETP(0x5, 0x2))
  1202. }
  1203. Method(_AC2, 0x0, NotSerialized)
  1204. {
  1205. Return(GETP(0x4, 0x2))
  1206. }
  1207. Method(_AC3, 0x0, NotSerialized)
  1208. {
  1209. Return(GETP(0x3, 0x2))
  1210. }
  1211. Method(_AC4, 0x0, NotSerialized)
  1212. {
  1213. Return(GETP(0x2, 0x2))
  1214. }
  1215. Method(_AC5, 0x0, NotSerialized)
  1216. {
  1217. Return(GETP(0x1, 0x2))
  1218. }
  1219. Method(_AC6, 0x0, NotSerialized)
  1220. {
  1221. Return(GETP(0x0, 0x2))
  1222. }
  1223. Method(_CRT, 0x0, Serialized)
  1224. {
  1225. Return(GETP(0x7, 0x2))
  1226. }
  1227. Method(_TMP, 0x0, Serialized)
  1228. {
  1229. Store(\_SB_.PCI0.LPCB.SMAB(0x9b, 0x1, 0x0), Local2)
  1230. Store(Local2, VGGT)
  1231. Store(GTTP(0x2), Local0)
  1232. Store(Local0, LVTK)
  1233. If(VGST)
  1234. {
  1235. And(VGST, 0xff, Local2)
  1236. And(ShiftRight(VGST, 0x8, ), 0xff, Local6)
  1237. \_SB_.PCI0.LPCB.SMAB(0x9a, 0xe, Local2)
  1238. \_SB_.PCI0.LPCB.SMAB(0x9a, 0xd, Local6)
  1239. Store(0x0, VGST)
  1240. Notify(\_TZ_.GFXZ, 0x81)
  1241. }
  1242. Return(Local0)
  1243. }
  1244. }
  1245. Method(THEV, 0x0, Serialized)
  1246. {
  1247. If(LEqual(\_SB_.PCI0.GFX0.GIVD, 0x0))
  1248. {
  1249. Store(\_SB_.PCI0.LPCB.SMAB(0x19, 0x0, 0x0), Local0)
  1250. Store(0x0, Local1)
  1251. Store(0xe, Local3)
  1252. Store(\_SB_.PCI0.LPCB.SMAB(0x99, 0x2, 0x0), Local0)
  1253. If(LEqual(And(Local0, 0xff00, ), 0x0))
  1254. {
  1255. If(And(Local0, 0x18, ))
  1256. {
  1257. Or(Local1, 0x2, Local1)
  1258. If(And(Local0, 0x8, ))
  1259. {
  1260. And(Local3, Not(0x2, ), Local3)
  1261. }
  1262. }
  1263. If(And(Local0, 0x60, ))
  1264. {
  1265. Or(Local1, 0x8, Local1)
  1266. If(And(Local0, 0x20, ))
  1267. {
  1268. And(Local3, Not(0x8, ), Local3)
  1269. }
  1270. }
  1271. }
  1272. Else
  1273. {
  1274. Store(0xe, Local1)
  1275. }
  1276. Acquire(THER, 0xffff)
  1277. Or(THSC, Local1, THSC)
  1278. And(WHTR, Not(0xe, ), Local4)
  1279. Or(Local4, Local3, WHTR)
  1280. Release(THER)
  1281. If(And(Local1, 0x2, ))
  1282. {
  1283. Notify(CPUZ, 0x80)
  1284. }
  1285. If(And(Local1, 0x8, ))
  1286. {
  1287. Notify(SKNZ, 0x80)
  1288. }
  1289. }
  1290. Else
  1291. {
  1292. Store(\_SB_.PCI0.LPCB.SMAB(0x19, 0x0, 0x0), Local0)
  1293. Store(0x0, Local1)
  1294. Store(0xe, Local3)
  1295. Store(\_SB_.PCI0.LPCB.SMAB(0x99, 0x2, 0x0), Local0)
  1296. Store(\_SB_.PCI0.LPCB.SMAB(0x9b, 0x2, 0x0), Local2)
  1297. If(LEqual(And(Local0, 0xff00, ), 0x0))
  1298. {
  1299. If(And(Local0, 0x18, ))
  1300. {
  1301. Or(Local1, 0x2, Local1)
  1302. If(And(Local0, 0x8, ))
  1303. {
  1304. And(Local3, Not(0x2, ), Local3)
  1305. }
  1306. }
  1307. If(And(Local0, 0x60, ))
  1308. {
  1309. Or(Local1, 0x8, Local1)
  1310. If(And(Local0, 0x20, ))
  1311. {
  1312. And(Local3, Not(0x8, ), Local3)
  1313. }
  1314. }
  1315. }
  1316. If(LEqual(And(Local2, 0xff00, ), 0x0))
  1317. {
  1318. If(And(Local2, 0x18, ))
  1319. {
  1320. Or(Local1, 0x4, Local1)
  1321. If(And(Local2, 0x8, ))
  1322. {
  1323. And(Local3, Not(0x4, ), Local3)
  1324. }
  1325. }
  1326. }
  1327. If(LEqual(Local1, 0x0))
  1328. {
  1329. Store(0xe, Local1)
  1330. }
  1331. Acquire(THER, 0xffff)
  1332. Or(THSC, Local1, THSC)
  1333. And(WHTR, Not(0xe, ), Local4)
  1334. Or(Local4, Local3, WHTR)
  1335. Release(THER)
  1336. If(And(Local1, 0x2, ))
  1337. {
  1338. Notify(CPUZ, 0x80)
  1339. }
  1340. If(And(Local1, 0x4, ))
  1341. {
  1342. Notify(GFXZ, 0x80)
  1343. }
  1344. If(And(Local1, 0x8, ))
  1345. {
  1346. Notify(SKNZ, 0x80)
  1347. }
  1348. }
  1349. }
  1350. Name(SCPC, 0x0)
  1351. Name(WHTR, 0xe)
  1352. Name(OSTH, 0x0)
  1353. Name(LARE, Package(0x5)
  1354. {
  1355. })
  1356. Name(LARP, Package(0x5)
  1357. {
  1358. })
  1359. Name(CUZO, Package(0x5)
  1360. {
  1361. })
  1362. Name(CUFA, Buffer(0x2)
  1363. {
  1364. })
  1365. Mutex(THER, 0x0)
  1366. Name(THSC, 0x1f)
  1367. Name(THOS, 0x0)
  1368. Name(MIFA, 0x14)
  1369. Name(VGGT, 0xc3c)
  1370. Name(VGST, 0x0)
  1371. Method(FAST, 0x2, Serialized)
  1372. {
  1373. Store(ShiftLeft(0x1, Arg1, ), Local1)
  1374. If(And(DerefOf(Index(CUFA, Arg0, )), Local1, ))
  1375. {
  1376. Store(0x1, Local0)
  1377. }
  1378. Else
  1379. {
  1380. Store(0x0, Local0)
  1381. }
  1382. Return(Local0)
  1383. }
  1384. Method(FOOF, 0x3, Serialized)
  1385. {
  1386. Store(DerefOf(Index(CUFA, Arg1, )), Local4)
  1387. Store(Local4, Local1)
  1388. Store(ShiftLeft(0x1, Arg2, ), Local0)
  1389. If(LEqual(Arg0, 0x1))
  1390. {
  1391. Or(Local4, Local0, Local4)
  1392. }
  1393. Else
  1394. {
  1395. And(Local4, Not(Local0, ), Local4)
  1396. }
  1397. Store(Local4, Index(CUFA, Arg1, ))
  1398. If(LNot(LEqual(Local1, Local4)))
  1399. {
  1400. Store(0x0, Local5)
  1401. Store(0x0, Local2)
  1402. While(LLess(Local5, 0x2))
  1403. {
  1404. Or(Local2, DerefOf(Index(CUFA, Local5, )), Local2)
  1405. Increment(Local5)
  1406. }
  1407. Store(0x0, Local3)
  1408. Store(0x0, Local0)
  1409. While(LNot(LEqual(Local2, 0x0)))
  1410. {
  1411. If(And(Local2, 0x1, ))
  1412. {
  1413. Store(DerefOf(Index(CPFS, Local3, )), Local0)
  1414. Store(0x0, Local2)
  1415. }
  1416. Else
  1417. {
  1418. Store(ShiftRight(Local2, 0x1, ), Local2)
  1419. Add(Local3, 0x1, Local3)
  1420. }
  1421. }
  1422. \_SB_.PCI0.LPCB.EC0_.KSFS(Local0)
  1423. }
  1424. }
  1425. Method(GETP, 0x2, Serialized)
  1426. {
  1427. Store(0x1, Local0)
  1428. Store(Arg0, Local1)
  1429. Store(DerefOf(Index(CUZO, Arg1, )), Local3)
  1430. If(LEqual(Local3, 0xff))
  1431. {
  1432. Store(0x0, Local3)
  1433. }
  1434. If(LLess(Arg0, Local3))
  1435. {
  1436. Store(0x0, Local0)
  1437. Add(Arg0, 0x1, Local1)
  1438. }
  1439. Store(DerefOf(Index(DerefOf(Index(DerefOf(Index(TRIP, CATZ(Arg1), )), Local0, )), Local1, )), Local2)
  1440. Return(Local2)
  1441. }
  1442. Method(ADCT, 0x2, Serialized)
  1443. {
  1444. If(And(Arg0, 0x80, ))
  1445. {
  1446. Subtract(Arg0, 0x100, Local0)
  1447. }
  1448. Else
  1449. {
  1450. Store(Arg0, Local0)
  1451. }
  1452. If(LEqual(Arg1, 0x1))
  1453. {
  1454. Add(Local0, THOS, Local2)
  1455. }
  1456. Else
  1457. {
  1458. Subtract(Local0, THOS, Local2)
  1459. }
  1460. If(LGreater(Local2, 0x7f))
  1461. {
  1462. If(LEqual(And(Local2, 0x8000, ), 0x0))
  1463. {
  1464. Store(0x7f, Local2)
  1465. }
  1466. And(Local2, 0xff, Local2)
  1467. }
  1468. Return(Local2)
  1469. }
  1470. Method(GEDT, 0x0, Serialized)
  1471. {
  1472. Store(TRCN, Local0)
  1473. Store(LOTR, Local2)
  1474. Store(HITR, Local3)
  1475. Store(0x0, Local1)
  1476. While(LLess(Local1, Local0))
  1477. {
  1478. If(Local1)
  1479. {
  1480. Store(DerefOf(Index(Local2, Local1, )), Local4)
  1481. Multiply(Local4, 0xa, Local4)
  1482. Add(Local4, 0xaac, Local4)
  1483. Store(Local4, Index(DerefOf(Index(DerefOf(Index(TRIP, CATZ(0x0), )), 0x0, )), Local1, ))
  1484. }
  1485. Store(DerefOf(Index(Local3, Local1, )), Local4)
  1486. Multiply(Local4, 0xa, Local4)
  1487. Add(Local4, 0xaac, Local4)
  1488. Store(Local4, Index(DerefOf(Index(DerefOf(Index(TRIP, CATZ(0x0), )), 0x1, )), Local1, ))
  1489. Increment(Local1)
  1490. }
  1491. }
  1492. Method(BOTT, 0x0, Serialized)
  1493. {
  1494. TRUP()
  1495. GEDT()
  1496. If(And(\THOS, 0x80, ))
  1497. {
  1498. Subtract(\THOS, 0x100, \_TZ_.THOS)
  1499. }
  1500. Else
  1501. {
  1502. Store(\THOS, \_TZ_.THOS)
  1503. }
  1504. }
  1505. Method(RETD, 0x0, Serialized)
  1506. {
  1507. Acquire(THER, 0xffff)
  1508. If(LEqual(\_SB_.PCI0.GFX0.GIVD, 0x0))
  1509. {
  1510. Store(0x1b, THSC)
  1511. Store(0xa, WHTR)
  1512. }
  1513. Else
  1514. {
  1515. Store(0x1f, THSC)
  1516. Store(0xe, WHTR)
  1517. }
  1518. Store(0x0, Local0)
  1519. While(LLess(Local0, 0x5))
  1520. {
  1521. Store(0x0, Index(LARE, Local0, ))
  1522. Store(0x0, Index(LARP, Local0, ))
  1523. Store(0xff, Index(CUZO, Local0, ))
  1524. Increment(Local0)
  1525. }
  1526. Store(0x0, Local0)
  1527. While(LLess(Local0, 0x2))
  1528. {
  1529. Store(0x0, Index(CUFA, Local0, ))
  1530. Increment(Local0)
  1531. }
  1532. Release(THER)
  1533. }
  1534. Method(INTS, 0x2, Serialized)
  1535. {
  1536. If(Arg0)
  1537. {
  1538. Store(Arg0, Local2)
  1539. }
  1540. Else
  1541. {
  1542. Subtract(\_TZ_.CPUZ._AC0(), 0xaac, Local1)
  1543. Divide(Local1, 0xa, Local0, Local2)
  1544. Store(ADCT(Local2, 0x1), Local2)
  1545. Add(Local2, 0x3, Local2)
  1546. }
  1547. \_SB_.PCI0.LPCB.SMAB(0x98, 0x19, Local2)
  1548. If(Arg1)
  1549. {
  1550. Store(Arg1, Local2)
  1551. }
  1552. Else
  1553. {
  1554. Subtract(\_TZ_.SKNZ._CRT(), 0xaac, Local1)
  1555. Divide(Local1, 0xa, Local0, Local2)
  1556. Add(Local2, 0x1, Local2)
  1557. }
  1558. \_SB_.PCI0.LPCB.SMAB(0x98, 0x20, Local2)
  1559. \_SB_.PCI0.LPCB.SMAB(0x98, 0xa, 0x4)
  1560. \_SB_.PCI0.LPCB.SMAB(0x98, 0x9, 0x0)
  1561. \_SB_.PCI0.LPCB.SMAB(0x98, 0x21, 0xa)
  1562. If(LEqual(FOAL, 0x1))
  1563. {
  1564. Store(0x14, MIFA)
  1565. }
  1566. Else
  1567. {
  1568. Store(0x0, MIFA)
  1569. }
  1570. \_SB_.PCI0.LPCB.EC0_.KFCL(0x0, MIFA)
  1571. }
  1572. Method(GTTP, 0x1, Serialized)
  1573. {
  1574. If(LLess(Arg0, 0x4))
  1575. {
  1576. If(LEqual(Arg0, 0x0))
  1577. {
  1578. Store(0x10, Local2)
  1579. If(DTSE)
  1580. {
  1581. Store(DTS1, Local2)
  1582. Store(DTS2, Local3)
  1583. If(LGreater(Local3, Local2))
  1584. {
  1585. Store(Local3, Local2)
  1586. }
  1587. }
  1588. }
  1589. Else
  1590. {
  1591. If(LEqual(Arg0, 0x3))
  1592. {
  1593. Store(\_SB_.PCI0.LPCB.SMAB(0x99, 0x0, 0x0), Local2)
  1594. }
  1595. If(LEqual(Arg0, 0x2))
  1596. {
  1597. Store(VGGT, Local2)
  1598. }
  1599. If(LEqual(Arg0, 0x1))
  1600. {
  1601. Store(\_SB_.PCI0.LPCB.SMAB(0x99, 0x1, 0x0), Local2)
  1602. If(LEqual(And(Local2, 0xff00, ), 0x0))
  1603. {
  1604. Store(ADCT(Local2, 0x0), Local2)
  1605. }
  1606. }
  1607. If(And(Local2, 0xff00, ))
  1608. {
  1609. Store(0x0, Local2)
  1610. }
  1611. If(And(Local2, 0x80, ))
  1612. {
  1613. Subtract(Local2, 0x100, Local2)
  1614. }
  1615. }
  1616. Multiply(Local2, 0xa, Local1)
  1617. Add(Local1, 0xaac, Local1)
  1618. }
  1619. Else
  1620. {
  1621. Store(0xb4c, Local1)
  1622. Acquire(\_SB_.PCI0.LPCB.EC0_.ECMX, 0xffff)
  1623. If(\_SB_.PCI0.LPCB.EC0_.ECRG)
  1624. {
  1625. Store(\_SB_.PCI0.LPCB.EC0_.CBT_, Local1)
  1626. }
  1627. Release(\_SB_.PCI0.LPCB.EC0_.ECMX)
  1628. }
  1629. Store(Local1, Local2)
  1630. Store(0x0, Local3)
  1631. If(LLess(Local1, 0xb4c))
  1632. {
  1633. If(LLess(DerefOf(Index(LARE, Arg0, )), 0xb4c))
  1634. {
  1635. Store(0xb4c, Index(LARP, Arg0, ))
  1636. }
  1637. Store(DerefOf(Index(LARP, Arg0, )), Local1)
  1638. }
  1639. If(LEqual(Arg0, 0x0))
  1640. {
  1641. If(LGreater(Local2, DerefOf(Index(LARE, Arg0, ))))
  1642. {
  1643. Store(0x1, Local3)
  1644. }
  1645. }
  1646. Store(Local2, Index(LARE, Arg0, ))
  1647. Store(Local1, Index(LARP, Arg0, ))
  1648. Acquire(THER, 0xffff)
  1649. Store(ShiftLeft(0x1, Arg0, ), Local2)
  1650. If(And(THSC, Local2, ))
  1651. {
  1652. If(LEqual(Arg0, 0x0))
  1653. {
  1654. Or(WHTR, Local3, WHTR)
  1655. }
  1656. If(And(WHTR, Local2, ))
  1657. {
  1658. Store(Match(DerefOf(Index(DerefOf(Index(TRIP, CATZ(Arg0), )), 0x1, )), MGT, Local1, MTR, 0x0, 0x0), Local0)
  1659. }
  1660. Else
  1661. {
  1662. Store(Match(DerefOf(Index(DerefOf(Index(TRIP, CATZ(Arg0), )), 0x0, )), MGE, Local1, MTR, 0x0, 0x0), Local0)
  1663. Decrement(Local0)
  1664. Or(WHTR, Local2, WHTR)
  1665. }
  1666. If(LOr(LNot(LEqual(Local0, DerefOf(Index(CUZO, Arg0, )))), SCPC))
  1667. {
  1668. Store(0x0, SCPC)
  1669. Store(Local0, Index(CUZO, Arg0, ))
  1670. If(LEqual(Arg0, 0x0))
  1671. {
  1672. Notify(\_TZ_.DTSZ, 0x81)
  1673. }
  1674. Else
  1675. {
  1676. If(LLess(Arg0, 0x4))
  1677. {
  1678. SETM(Local0, Arg0)
  1679. }
  1680. Else
  1681. {
  1682. Notify(\_TZ_.BATZ, 0x81)
  1683. }
  1684. }
  1685. }
  1686. And(THSC, Not(Local2, ), THSC)
  1687. }
  1688. Release(THER)
  1689. Return(Local1)
  1690. }
  1691. Method(SETM, 0x2, Serialized)
  1692. {
  1693. Store(DerefOf(Index(DerefOf(Index(DerefOf(Index(TRIP, CATZ(Arg1), )), 0x1, )), Arg0, )), Local0)
  1694. Subtract(Local0, 0xaac, Local0)
  1695. Divide(Local0, 0xa, Local1, Local6)
  1696. If(LAnd(LEqual(Arg1, 0x1), LLess(Local6, 0x7f)))
  1697. {
  1698. Store(ADCT(Local6, 0x1), Local6)
  1699. }
  1700. Store(DerefOf(Index(DerefOf(Index(DerefOf(Index(TRIP, CATZ(Arg1), )), 0x0, )), Arg0, )), Local0)
  1701. If(LLess(Local0, 0xaac))
  1702. {
  1703. Subtract(0xaac, Local0, Local1)
  1704. Divide(Local1, 0xa, Local3, Local2)
  1705. Not(Local2, Local2)
  1706. Add(Local2, 0x1, Local2)
  1707. And(Local2, 0xff, Local2)
  1708. }
  1709. Else
  1710. {
  1711. Subtract(Local0, 0xaac, Local0)
  1712. Divide(Local0, 0xa, Local1, Local2)
  1713. If(LEqual(Arg1, 0x1))
  1714. {
  1715. Store(ADCT(Local2, 0x1), Local2)
  1716. }
  1717. }
  1718. If(LEqual(Arg1, 0x1))
  1719. {
  1720. \_SB_.PCI0.LPCB.SMAB(0x98, 0xe, Local2)
  1721. \_SB_.PCI0.LPCB.SMAB(0x98, 0xd, Local6)
  1722. Notify(\_TZ_.CPUZ, 0x81)
  1723. }
  1724. If(LEqual(Arg1, 0x2))
  1725. {
  1726. Store(Local2, VGST)
  1727. Or(ShiftLeft(Local6, 0x8, ), VGST, VGST)
  1728. }
  1729. If(LEqual(Arg1, 0x3))
  1730. {
  1731. \_SB_.PCI0.LPCB.SMAB(0x98, 0xc, Local2)
  1732. \_SB_.PCI0.LPCB.SMAB(0x98, 0xb, Local6)
  1733. Notify(\_TZ_.SKNZ, 0x81)
  1734. }
  1735. }
  1736. Method(CATZ, 0x1, Serialized)
  1737. {
  1738. Store(Arg0, Local1)
  1739. Return(Local1)
  1740. }
  1741. Method(PSL_, 0x0, Serialized)
  1742. {
  1743. If(And(CFGD, 0x1000000, ))
  1744. {
  1745. Return(Package(0x2)
  1746. {
  1747. \_PR_.CPU0,
  1748. \_PR_.CPU1
  1749. })
  1750. }
  1751. Else
  1752. {
  1753. Return(Package(0x1)
  1754. {
  1755. \_PR_.CPU0
  1756. })
  1757. }
  1758. }
  1759. PowerResource(PFN0, 0x0, 0x0)
  1760. {
  1761. Method(_STA, 0x0, NotSerialized)
  1762. {
  1763. Return(FAST(0x0, 0x0))
  1764. }
  1765. Method(_ON_, 0x0, NotSerialized)
  1766. {
  1767. FOOF(0x1, 0x0, 0x0)
  1768. }
  1769. Method(_OFF, 0x0, NotSerialized)
  1770. {
  1771. FOOF(0x0, 0x0, 0x0)
  1772. }
  1773. }
  1774. PowerResource(PFN1, 0x0, 0x0)
  1775. {
  1776. Method(_STA, 0x0, NotSerialized)
  1777. {
  1778. Return(FAST(0x0, 0x1))
  1779. }
  1780. Method(_ON_, 0x0, NotSerialized)
  1781. {
  1782. FOOF(0x1, 0x0, 0x1)
  1783. }
  1784. Method(_OFF, 0x0, NotSerialized)
  1785. {
  1786. FOOF(0x0, 0x0, 0x1)
  1787. }
  1788. }
  1789. PowerResource(PFN2, 0x0, 0x0)
  1790. {
  1791. Method(_STA, 0x0, NotSerialized)
  1792. {
  1793. Return(FAST(0x0, 0x2))
  1794. }
  1795. Method(_ON_, 0x0, NotSerialized)
  1796. {
  1797. FOOF(0x1, 0x0, 0x2)
  1798. }
  1799. Method(_OFF, 0x0, NotSerialized)
  1800. {
  1801. FOOF(0x0, 0x0, 0x2)
  1802. }
  1803. }
  1804. PowerResource(PFN3, 0x0, 0x0)
  1805. {
  1806. Method(_STA, 0x0, NotSerialized)
  1807. {
  1808. Return(FAST(0x0, 0x3))
  1809. }
  1810. Method(_ON_, 0x0, NotSerialized)
  1811. {
  1812. FOOF(0x1, 0x0, 0x3)
  1813. }
  1814. Method(_OFF, 0x0, NotSerialized)
  1815. {
  1816. FOOF(0x0, 0x0, 0x3)
  1817. }
  1818. }
  1819. PowerResource(PFN4, 0x0, 0x0)
  1820. {
  1821. Method(_STA, 0x0, NotSerialized)
  1822. {
  1823. Return(FAST(0x0, 0x4))
  1824. }
  1825. Method(_ON_, 0x0, NotSerialized)
  1826. {
  1827. FOOF(0x1, 0x0, 0x4)
  1828. }
  1829. Method(_OFF, 0x0, NotSerialized)
  1830. {
  1831. FOOF(0x0, 0x0, 0x4)
  1832. }
  1833. }
  1834. PowerResource(PFN5, 0x0, 0x0)
  1835. {
  1836. Method(_STA, 0x0, NotSerialized)
  1837. {
  1838. Return(FAST(0x0, 0x5))
  1839. }
  1840. Method(_ON_, 0x0, NotSerialized)
  1841. {
  1842. FOOF(0x1, 0x0, 0x5)
  1843. }
  1844. Method(_OFF, 0x0, NotSerialized)
  1845. {
  1846. FOOF(0x0, 0x0, 0x5)
  1847. }
  1848. }
  1849. Device(FAN0)
  1850. {
  1851. Name(_HID, 0xb0cd041)
  1852. Name(_UID, 0x0)
  1853. Name(_PR0, Package(0x1)
  1854. {
  1855. PFN0
  1856. })
  1857. }
  1858. Device(FAN1)
  1859. {
  1860. Name(_HID, 0xb0cd041)
  1861. Name(_UID, 0x1)
  1862. Name(_PR0, Package(0x1)
  1863. {
  1864. PFN1
  1865. })
  1866. }
  1867. Device(FAN2)
  1868. {
  1869. Name(_HID, 0xb0cd041)
  1870. Name(_UID, 0x2)
  1871. Name(_PR0, Package(0x1)
  1872. {
  1873. PFN2
  1874. })
  1875. }
  1876. Device(FAN3)
  1877. {
  1878. Name(_HID, 0xb0cd041)
  1879. Name(_UID, 0x3)
  1880. Name(_PR0, Package(0x1)
  1881. {
  1882. PFN3
  1883. })
  1884. }
  1885. Device(FAN4)
  1886. {
  1887. Name(_HID, 0xb0cd041)
  1888. Name(_UID, 0x4)
  1889. Name(_PR0, Package(0x1)
  1890. {
  1891. PFN4
  1892. })
  1893. }
  1894. Device(FAN5)
  1895. {
  1896. Name(_HID, 0xb0cd041)
  1897. Name(_UID, 0x5)
  1898. Name(_PR0, Package(0x1)
  1899. {
  1900. PFN5
  1901. })
  1902. }
  1903. ThermalZone(DTSZ)
  1904. {
  1905. Method(_CRT, 0x0, Serialized)
  1906. {
  1907. Return(GETP(0x6, 0x0))
  1908. }
  1909. Method(_TMP, 0x0, Serialized)
  1910. {
  1911. If(LEqual(OSTH, 0x0))
  1912. {
  1913. \_TZ_.INTM(0x0)
  1914. Store(0x1, OSTH)
  1915. }
  1916. Return(GTTP(0x0))
  1917. }
  1918. }
  1919. ThermalZone(CPUZ)
  1920. {
  1921. Name(_AL0, Package(0x1)
  1922. {
  1923. FAN0
  1924. })
  1925. Name(_AL1, Package(0x1)
  1926. {
  1927. FAN1
  1928. })
  1929. Name(_AL2, Package(0x1)
  1930. {
  1931. FAN2
  1932. })
  1933. Name(_AL3, Package(0x1)
  1934. {
  1935. FAN3
  1936. })
  1937. Name(_AL4, Package(0x1)
  1938. {
  1939. FAN4
  1940. })
  1941. Name(_AL5, Package(0x1)
  1942. {
  1943. FAN5
  1944. })
  1945. Method(_AC0, 0x0, NotSerialized)
  1946. {
  1947. Return(GETP(0x5, 0x1))
  1948. }
  1949. Method(_AC1, 0x0, NotSerialized)
  1950. {
  1951. Return(GETP(0x4, 0x1))
  1952. }
  1953. Method(_AC2, 0x0, NotSerialized)
  1954. {
  1955. Return(GETP(0x3, 0x1))
  1956. }
  1957. Method(_AC3, 0x0, NotSerialized)
  1958. {
  1959. Return(GETP(0x2, 0x1))
  1960. }
  1961. Method(_AC4, 0x0, NotSerialized)
  1962. {
  1963. Return(GETP(0x1, 0x1))
  1964. }
  1965. Method(_AC5, 0x0, NotSerialized)
  1966. {
  1967. Return(GETP(0x0, 0x1))
  1968. }
  1969. Method(_PSV, 0x0, NotSerialized)
  1970. {
  1971. Return(GETP(0x6, 0x1))
  1972. }
  1973. Method(_PSL, 0x0, NotSerialized)
  1974. {
  1975. Return(PSL_())
  1976. }
  1977. Name(_TSP, 0x12c)
  1978. Name(_TC1, 0x1)
  1979. Name(_TC2, 0x2)
  1980. Method(_CRT, 0x0, Serialized)
  1981. {
  1982. Return(GETP(0x7, 0x1))
  1983. }
  1984. Method(_TMP, 0x0, Serialized)
  1985. {
  1986. Store(GTTP(0x1), Local0)
  1987. Return(Local0)
  1988. }
  1989. }
  1990. ThermalZone(SKNZ)
  1991. {
  1992. Method(_PSV, 0x0, NotSerialized)
  1993. {
  1994. Return(GETP(0x0, 0x3))
  1995. }
  1996. Method(_PSL, 0x0, NotSerialized)
  1997. {
  1998. Return(PSL_())
  1999. }
  2000. Name(_TSP, 0x12c)
  2001. Name(_TC1, 0x1)
  2002. Name(_TC2, 0x2)
  2003. Method(_CRT, 0x0, Serialized)
  2004. {
  2005. Return(GETP(0x1, 0x3))
  2006. }
  2007. Method(_TMP, 0x0, Serialized)
  2008. {
  2009. Return(GTTP(0x3))
  2010. }
  2011. }
  2012. ThermalZone(BATZ)
  2013. {
  2014. Method(_PSV, 0x0, NotSerialized)
  2015. {
  2016. Return(GETP(0x0, 0x4))
  2017. }
  2018. Method(_PSL, 0x0, NotSerialized)
  2019. {
  2020. Return(PSL_())
  2021. }
  2022. Name(_TSP, 0x12c)
  2023. Name(_TC1, 0x1)
  2024. Name(_TC2, 0x2)
  2025. Method(_CRT, 0x0, Serialized)
  2026. {
  2027. Return(\_TZ_.CPUZ._CRT())
  2028. }
  2029. Method(_TMP, 0x0, Serialized)
  2030. {
  2031. Return(GTTP(0x4))
  2032. }
  2033. }
  2034. Method(FOAA, 0x0, NotSerialized)
  2035. {
  2036. Store(0x0, Local0)
  2037. }
  2038. ThermalZone(FDTZ)
  2039. {
  2040. Name(_CRT, 0xef8)
  2041. Method(_TMP, 0x0, Serialized)
  2042. {
  2043. Store(\_SB_.GRFS(), Local0)
  2044. If(LGreater(Local0, 0x64))
  2045. {
  2046. Store(0x64, Local0)
  2047. }
  2048. Multiply(Local0, 0xa, Local0)
  2049. Add(Local0, 0xaac, Local0)
  2050. Return(Local0)
  2051. }
  2052. }
  2053. }
  2054. Name(\NIST, Package(0x10)
  2055. {
  2056. "0",
  2057. "1",
  2058. "2",
  2059. "3",
  2060. "4",
  2061. "5",
  2062. "6",
  2063. "7",
  2064. "8",
  2065. "9",
  2066. "A",
  2067. "B",
  2068. "C",
  2069. "D",
  2070. "E",
  2071. "F"
  2072. })
  2073. Method(\ISTR, 0x2, NotSerialized)
  2074. {
  2075. Store(Arg0, Local0)
  2076. Store("", Local7)
  2077. Store(Arg1, Local4)
  2078. While(LGreater(Local4, 0x0))
  2079. {
  2080. And(Local0, 0xf, Local1)
  2081. Store(DerefOf(Index(\NIST, Local1, )), Local2)
  2082. Concatenate(Local2, Local7, Local3)
  2083. Store(Local3, Local7)
  2084. ShiftRight(Local0, 0x4, Local0)
  2085. Decrement(Local4)
  2086. }
  2087. Return(Local7)
  2088. }
  2089. Method(\SRCP, 0x2, NotSerialized)
  2090. {
  2091. Store(SizeOf(Arg0), Local7)
  2092. If(LNot(LEqual(Local7, SizeOf(Arg1))))
  2093. {
  2094. Return(0x0)
  2095. }
  2096. Name(ST00, Buffer(Local7)
  2097. {
  2098. })
  2099. Name(ST01, Buffer(Local7)
  2100. {
  2101. })
  2102. Store(Arg0, ST00)
  2103. Store(Arg1, ST01)
  2104. Store(0x0, Local6)
  2105. Store(0x1, Local0)
  2106. While(LAnd(LNot(LEqual(Local6, Local7)), Local0))
  2107. {
  2108. Store(DerefOf(Index(ST00, Local6, )), Local2)
  2109. Store(DerefOf(Index(ST01, Local6, )), Local3)
  2110. Increment(Local6)
  2111. If(LNot(LEqual(Local2, Local3)))
  2112. {
  2113. Store(0x0, Local0)
  2114. }
  2115. }
  2116. Return(Local0)
  2117. }
  2118. Name(WOSI, 0xff)
  2119. Name(OSID, Package(0x3)
  2120. {
  2121. "Microsoft Windows",
  2122. "Microsoft WindowsME: Millennium Edition",
  2123. "Microsoft Windows NT"
  2124. })
  2125. Method(\SRCM, 0x3, NotSerialized)
  2126. {
  2127. Name(ST00, Buffer(0x8c)
  2128. {
  2129. })
  2130. Name(ST01, Buffer(0x8c)
  2131. {
  2132. })
  2133. Store(Arg0, ST00)
  2134. Store(Arg1, ST01)
  2135. Store(0x0, Local6)
  2136. Store(0x1, Local0)
  2137. While(LAnd(LNot(LEqual(Local6, Arg2)), Local0))
  2138. {
  2139. Store(DerefOf(Index(ST00, Local6, )), Local2)
  2140. Store(DerefOf(Index(ST01, Local6, )), Local3)
  2141. Increment(Local6)
  2142. If(LNot(LEqual(Local2, Local3)))
  2143. {
  2144. Store(0x0, Local0)
  2145. }
  2146. }
  2147. Return(Local0)
  2148. }
  2149. Method(WCOS, 0x0, Serialized)
  2150. {
  2151. If(LEqual(WOSI, 0xff))
  2152. {
  2153. Store(\_OS_, Local0)
  2154. Store(SizeOf(OSID), Local7)
  2155. Store(0x0, Local1)
  2156. While(LAnd(LLess(Local1, Local7), LEqual(WOSI, 0xff)))
  2157. {
  2158. Store(\SRCP(Local0, DerefOf(Index(OSID, Local1, ))), Local2)
  2159. If(Local2)
  2160. {
  2161. Add(Local1, 0x1, WOSI)
  2162. }
  2163. Else
  2164. {
  2165. Increment(Local1)
  2166. }
  2167. }
  2168. If(LEqual(WOSI, 0xff))
  2169. {
  2170. Store(0x0, WOSI)
  2171. }
  2172. If(LOr(LEqual(WOSI, 0x0), LEqual(WOSI, 0x3)))
  2173. {
  2174. If(CondRefOf(\_OSI, Local0))
  2175. {
  2176. If(\_OSI("Windows 2001"))
  2177. {
  2178. Store(0x4, WOSI)
  2179. }
  2180. If(\_OSI("Windows 2001 SP1"))
  2181. {
  2182. Store(0x4, WOSI)
  2183. }
  2184. If(\_OSI("Windows 2001 SP2"))
  2185. {
  2186. Store(0x5, WOSI)
  2187. }
  2188. If(\_OSI("Windows 2006"))
  2189. {
  2190. Store(0x6, WOSI)
  2191. }
  2192. If(\_OSI("Windows 2009"))
  2193. {
  2194. Store(0x7, WOSI)
  2195. }
  2196. }
  2197. }
  2198. Store(WOSI, WHOS)
  2199. }
  2200. Return(WOSI)
  2201. }
  2202. Method(UPRW, 0x2, Serialized)
  2203. {
  2204. Store(Package(0x2)
  2205. {
  2206. 0x0,
  2207. 0x0
  2208. }, Local0)
  2209. Store(Arg0, Index(Local0, 0x0, ))
  2210. If(LEqual(UWKD, 0x0))
  2211. {
  2212. Store(Arg1, Index(Local0, 0x1, ))
  2213. }
  2214. Return(Local0)
  2215. }
  2216. Name(EUPC, Package(0x4)
  2217. {
  2218. 0xff,
  2219. 0xff,
  2220. 0x0,
  2221. 0x0
  2222. })
  2223. Name(EPLD, Buffer(0x10)
  2224. {
  2225. 0x81, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00,
  2226. 0x00, 0x00, 0x00, 0x00
  2227. })
  2228. Method(CBRT, 0x2, Serialized)
  2229. {
  2230. Store(SizeOf(Arg0), Local6)
  2231. Store(SizeOf(Arg1), Local7)
  2232. If(LEqual(Local6, 0x0))
  2233. {
  2234. Store(Arg1, Local0)
  2235. Return(Local0)
  2236. }
  2237. If(LEqual(Local7, 0x0))
  2238. {
  2239. Store(Arg0, Local0)
  2240. Return(Local0)
  2241. }
  2242. Add(Local7, Local6, Local1)
  2243. Subtract(Local1, 0x2, Local1)
  2244. Store(Buffer(Local1)
  2245. {
  2246. }, Local0)
  2247. Store(0x0, Local1)
  2248. While(LLess(Local1, SizeOf(Arg0)))
  2249. {
  2250. Store(DerefOf(Index(Arg0, Local1, )), Index(Local0, Local1, ))
  2251. Increment(Local1)
  2252. }
  2253. Subtract(Local1, 0x2, Local1)
  2254. Store(0x0, Local2)
  2255. While(LLess(Local2, SizeOf(Arg1)))
  2256. {
  2257. Store(DerefOf(Index(Arg1, Local2, )), Index(Local0, Local1, ))
  2258. Increment(Local1)
  2259. Increment(Local2)
  2260. }
  2261. Return(Local0)
  2262. }
  2263. Scope(\_SB_)
  2264. {
  2265. Mutex(MSMI, 0x0)
  2266. Method(SSMI, 0x5, NotSerialized)
  2267. {
  2268. Acquire(MSMI, 0xffff)
  2269. If(Arg4)
  2270. {
  2271. Acquire(\_GL_, 0xffff)
  2272. }
  2273. ShiftLeft(Arg0, 0x10, EAX_)
  2274. Store(Arg1, EBX_)
  2275. Store(Arg2, ECX_)
  2276. Store(Arg3, EDX_)
  2277. Store(0x0, REFS)
  2278. \_SB_.PCI0.GSWS(Arg0)
  2279. Store(REFS, Local0)
  2280. If(Arg4)
  2281. {
  2282. Release(\_GL_)
  2283. }
  2284. Release(MSMI)
  2285. Return(Local0)
  2286. }
  2287. }
  2288. Scope(\_SB_)
  2289. {
  2290. Device(PCI0)
  2291. {
  2292. Name(_HPP, Package(0x4)
  2293. {
  2294. 0x10,
  2295. 0x40,
  2296. 0x0,
  2297. 0x0
  2298. })
  2299. Method(_S3D, 0x0, NotSerialized)
  2300. {
  2301. Return(0x2)
  2302. }
  2303. Method(_S4D, 0x0, NotSerialized)
  2304. {
  2305. Return(0x2)
  2306. }
  2307. Name(_HID, 0x80ad041)
  2308. Name(_CID, 0x30ad041)
  2309. Device(MCHC)
  2310. {
  2311. Name(_ADR, 0x0)
  2312. OperationRegion(HBUS, PCI_Config, 0x40, 0xc0)
  2313. Field(HBUS, DWordAcc, NoLock, Preserve)
  2314. {
  2315. EPEN, 1,
  2316. , 11,
  2317. EPBR, 20,
  2318. , 32,
  2319. MHEN, 1,
  2320. , 13,
  2321. MHBR, 18,
  2322. Offset(0x20),
  2323. PXEN, 1,
  2324. PXSZ, 2,
  2325. , 23,
  2326. PXBR, 6,
  2327. , 32,
  2328. DIEN, 1,
  2329. , 11,
  2330. DIBR, 20,
  2331. , 32,
  2332. IPEN, 1,
  2333. , 11,
  2334. IPBR, 20,
  2335. Offset(0x50),
  2336. , 4,
  2337. PM0H, 2,
  2338. , 2,
  2339. PM1L, 2,
  2340. , 2,
  2341. PM1H, 2,
  2342. , 2,
  2343. PM2L, 2,
  2344. , 2,
  2345. PM2H, 2,
  2346. , 2,
  2347. PM3L, 2,
  2348. , 2,
  2349. PM3H, 2,
  2350. , 2,
  2351. PM4L, 2,
  2352. , 2,
  2353. PM4H, 2,
  2354. , 2,
  2355. PM5L, 2,
  2356. , 2,
  2357. PM5H, 2,
  2358. , 2,
  2359. PM6L, 2,
  2360. , 2,
  2361. PM6H, 2,
  2362. , 2,
  2363. , 7,
  2364. HENA, 1,
  2365. Offset(0x62),
  2366. TUUD, 16,
  2367. Offset(0x70),
  2368. , 4,
  2369. TLUD, 12,
  2370. Offset(0x89),
  2371. , 3,
  2372. GTSE, 1,
  2373. , 4
  2374. }
  2375. OperationRegion(MCHT, SystemMemory, 0xfed11000, 0xff)
  2376. Field(MCHT, ByteAcc, NoLock, Preserve)
  2377. {
  2378. Offset(0x1e),
  2379. T0IS, 16,
  2380. Offset(0x5e),
  2381. T1IS, 16,
  2382. Offset(0xef),
  2383. ESCS, 8
  2384. }
  2385. }
  2386. Name(BUF0, Buffer(0x208)
  2387. {
  2388. 0x88, 0x0d, 0x00, 0x02, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0x00,
  2389. 0x00, 0x00, 0x00, 0x01, 0x87, 0x17, 0x00, 0x01, 0x0c, 0x03, 0x00, 0x00,
  2390. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf7, 0x0c, 0x00, 0x00, 0x00, 0x00,
  2391. 0x00, 0x00, 0xf8, 0x0c, 0x00, 0x00, 0x47, 0x01, 0xf8, 0x0c, 0xf8, 0x0c,
  2392. 0x01, 0x08, 0x87, 0x17, 0x00, 0x01, 0x0c, 0x03, 0x00, 0x00, 0x00, 0x00,
  2393. 0x00, 0x0d, 0x00, 0x00, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  2394. 0x00, 0xf3, 0x00, 0x00, 0x87, 0x17, 0x00, 0x00, 0x0c, 0x03, 0x00, 0x00,
  2395. 0x00, 0x00, 0x00, 0x00, 0x0a, 0x00, 0xff, 0xff, 0x0b, 0x00, 0x00, 0x00,
  2396. 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x87, 0x17, 0x00, 0x00, 0x0c, 0x03,
  2397. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0xff, 0x3f, 0x0c, 0x00,
  2398. 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x87, 0x17, 0x00, 0x00,
  2399. 0x0c, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x0c, 0x00, 0xff, 0x7f,
  2400. 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x87, 0x17,
  2401. 0x00, 0x00, 0x0c, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x0c, 0x00,
  2402. 0xff, 0xbf, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00,
  2403. 0x87, 0x17, 0x00, 0x00, 0x0c, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0,
  2404. 0x0c, 0x00, 0xff, 0xff, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40,
  2405. 0x00, 0x00, 0x87, 0x17, 0x00, 0x00, 0x0c, 0x03, 0x00, 0x00, 0x00, 0x00,
  2406. 0x00, 0x00, 0x0d, 0x00, 0xff, 0x3f, 0x0d, 0x00, 0x00, 0x00, 0x00, 0x00,
  2407. 0x00, 0x40, 0x00, 0x00, 0x87, 0x17, 0x00, 0x00, 0x0c, 0x03, 0x00, 0x00,
  2408. 0x00, 0x00, 0x00, 0x40, 0x0d, 0x00, 0xff, 0x7f, 0x0d, 0x00, 0x00, 0x00,
  2409. 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x87, 0x17, 0x00, 0x00, 0x0c, 0x03,
  2410. 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x0d, 0x00, 0xff, 0xbf, 0x0d, 0x00,
  2411. 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x87, 0x17, 0x00, 0x00,
  2412. 0x0c, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x0d, 0x00, 0xff, 0xff,
  2413. 0x0d, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x87, 0x17,
  2414. 0x00, 0x00, 0x0c, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0e, 0x00,
  2415. 0xff, 0x3f, 0x0e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00,
  2416. 0x87, 0x17, 0x00, 0x00, 0x0c, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40,
  2417. 0x0e, 0x00, 0xff, 0x7f, 0x0e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40,
  2418. 0x00, 0x00, 0x87, 0x17, 0x00, 0x00, 0x0c, 0x03, 0x00, 0x00, 0x00, 0x00,
  2419. 0x00, 0x80, 0x0e, 0x00, 0xff, 0xbf, 0x0e, 0x00, 0x00, 0x00, 0x00, 0x00,
  2420. 0x00, 0x40, 0x00, 0x00, 0x87, 0x17, 0x00, 0x00, 0x0c, 0x03, 0x00, 0x00,
  2421. 0x00, 0x00, 0x00, 0xc0, 0x0e, 0x00, 0xff, 0xff, 0x0e, 0x00, 0x00, 0x00,
  2422. 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x87, 0x17, 0x00, 0x00, 0x0c, 0x03,
  2423. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0f, 0x00, 0xff, 0xff, 0x0f, 0x00,
  2424. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x87, 0x17, 0x00, 0x00,
  2425. 0x0c, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  2426. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x87, 0x17,
  2427. 0x00, 0x00, 0x0c, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  2428. 0xff, 0xff, 0xdf, 0xfe, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  2429. 0x87, 0x17, 0x00, 0x00, 0x0c, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10,
  2430. 0xe0, 0xfe, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, 0xef,
  2431. 0x1f, 0x01, 0x79, 0x00
  2432. })
  2433. Method(_CRS, 0x0, Serialized)
  2434. {
  2435. If(^MCHC.PM1L)
  2436. {
  2437. CreateDWordField(BUF0, 0x7c, C0LN)
  2438. Store(Zero, C0LN)
  2439. }
  2440. If(LEqual(^MCHC.PM1L, 0x1))
  2441. {
  2442. CreateBitField(BUF0, 0x358, C0RW)
  2443. Store(Zero, C0RW)
  2444. }
  2445. If(^MCHC.PM1H)
  2446. {
  2447. CreateDWordField(BUF0, 0x96, C4LN)
  2448. Store(Zero, C4LN)
  2449. }
  2450. If(LEqual(^MCHC.PM1H, 0x1))
  2451. {
  2452. CreateBitField(BUF0, 0x428, C4RW)
  2453. Store(Zero, C4RW)
  2454. }
  2455. If(^MCHC.PM2L)
  2456. {
  2457. CreateDWordField(BUF0, 0xb0, C8LN)
  2458. Store(Zero, C8LN)
  2459. }
  2460. If(LEqual(^MCHC.PM2L, 0x1))
  2461. {
  2462. CreateBitField(BUF0, 0x4f8, C8RW)
  2463. Store(Zero, C8RW)
  2464. }
  2465. If(^MCHC.PM2H)
  2466. {
  2467. CreateDWordField(BUF0, 0xca, CCLN)
  2468. Store(Zero, CCLN)
  2469. }
  2470. If(LEqual(^MCHC.PM2H, 0x1))
  2471. {
  2472. CreateBitField(BUF0, 0x5c8, CCRW)
  2473. Store(Zero, CCRW)
  2474. }
  2475. If(^MCHC.PM3L)
  2476. {
  2477. CreateDWordField(BUF0, 0xe4, D0LN)
  2478. Store(Zero, D0LN)
  2479. }
  2480. If(LEqual(^MCHC.PM3L, 0x1))
  2481. {
  2482. CreateBitField(BUF0, 0x698, D0RW)
  2483. Store(Zero, D0RW)
  2484. }
  2485. If(^MCHC.PM3H)
  2486. {
  2487. CreateDWordField(BUF0, 0xfe, D4LN)
  2488. Store(Zero, D4LN)
  2489. }
  2490. If(LEqual(^MCHC.PM3H, 0x1))
  2491. {
  2492. CreateBitField(BUF0, 0x768, D4RW)
  2493. Store(Zero, D4RW)
  2494. }
  2495. If(^MCHC.PM4L)
  2496. {
  2497. CreateDWordField(BUF0, 0x118, D8LN)
  2498. Store(Zero, D8LN)
  2499. }
  2500. If(LEqual(^MCHC.PM4L, 0x1))
  2501. {
  2502. CreateBitField(BUF0, 0x838, D8RW)
  2503. Store(Zero, D8RW)
  2504. }
  2505. If(^MCHC.PM4H)
  2506. {
  2507. CreateDWordField(BUF0, 0x132, DCLN)
  2508. Store(Zero, DCLN)
  2509. }
  2510. If(LEqual(^MCHC.PM4H, 0x1))
  2511. {
  2512. CreateBitField(BUF0, 0x908, DCRW)
  2513. Store(Zero, DCRW)
  2514. }
  2515. If(^MCHC.PM5L)
  2516. {
  2517. CreateDWordField(BUF0, 0x14c, E0LN)
  2518. Store(Zero, E0LN)
  2519. }
  2520. If(LEqual(^MCHC.PM5L, 0x1))
  2521. {
  2522. CreateBitField(BUF0, 0x9d8, E0RW)
  2523. Store(Zero, E0RW)
  2524. }
  2525. If(^MCHC.PM5H)
  2526. {
  2527. CreateDWordField(BUF0, 0x166, E4LN)
  2528. Store(Zero, E4LN)
  2529. }
  2530. If(LEqual(^MCHC.PM5H, 0x1))
  2531. {
  2532. CreateBitField(BUF0, 0xaa8, E4RW)
  2533. Store(Zero, E4RW)
  2534. }
  2535. If(^MCHC.PM6L)
  2536. {
  2537. CreateDWordField(BUF0, 0x180, E8LN)
  2538. Store(Zero, E8LN)
  2539. }
  2540. If(LEqual(^MCHC.PM6L, 0x1))
  2541. {
  2542. CreateBitField(BUF0, 0xb78, E8RW)
  2543. Store(Zero, E8RW)
  2544. }
  2545. If(^MCHC.PM6H)
  2546. {
  2547. CreateDWordField(BUF0, 0x19a, ECLN)
  2548. Store(Zero, ECLN)
  2549. }
  2550. If(LEqual(^MCHC.PM6H, 0x1))
  2551. {
  2552. CreateBitField(BUF0, 0xc48, ECRW)
  2553. Store(Zero, ECRW)
  2554. }
  2555. If(^MCHC.PM0H)
  2556. {
  2557. CreateDWordField(BUF0, 0x1b4, F0LN)
  2558. Store(Zero, F0LN)
  2559. }
  2560. If(LEqual(^MCHC.PM0H, 0x1))
  2561. {
  2562. CreateBitField(BUF0, 0xd18, F0RW)
  2563. Store(Zero, F0RW)
  2564. }
  2565. CreateDWordField(BUF0, 0x1c2, M1MN)
  2566. CreateDWordField(BUF0, 0x1c6, M1MX)
  2567. CreateDWordField(BUF0, 0x1ce, M1LN)
  2568. ShiftLeft(^MCHC.PXBR, 0x1a, Local0)
  2569. ShiftLeft(^MCHC.TLUD, 0x14, M1MN)
  2570. Subtract(Local0, 0x1, M1MX)
  2571. Add(Subtract(Local0, M1MN, ), 0x1, M1LN)
  2572. CreateDWordField(BUF0, 0x1dc, M2MN)
  2573. CreateDWordField(BUF0, 0x1e0, M2MX)
  2574. CreateDWordField(BUF0, 0x1e8, M2LN)
  2575. ShiftRight(0x10000000, ^MCHC.PXSZ, Local1)
  2576. Add(Local0, Local1, M2MN)
  2577. Add(Subtract(M2MX, M2MN, ), 0x1, M2LN)
  2578. Return(BUF0)
  2579. }
  2580. Device(PDRC)
  2581. {
  2582. Name(_HID, 0x20cd041)
  2583. Name(_UID, 0x1)
  2584. Name(BUF0, Buffer(0x62)
  2585. {
  2586. 0x86, 0x09, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00,
  2587. 0x86, 0x09, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00,
  2588. 0x86, 0x09, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00,
  2589. 0x86, 0x09, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00,
  2590. 0x86, 0x09, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  2591. 0x86, 0x09, 0x00, 0x01, 0x00, 0x00, 0xc0, 0xfe, 0x00, 0x10, 0x00, 0x00,
  2592. 0x86, 0x09, 0x00, 0x01, 0x00, 0x00, 0xd2, 0xfe, 0x00, 0x00, 0x02, 0x00,
  2593. 0x86, 0x09, 0x00, 0x01, 0x00, 0x50, 0xd4, 0xfe, 0x00, 0xb0, 0x04, 0x00,
  2594. 0x79, 0x00
  2595. })
  2596. Method(_CRS, 0x0, Serialized)
  2597. {
  2598. CreateDWordField(BUF0, 0x4, RBR0)
  2599. ShiftLeft(\_SB_.PCI0.LPCB.RCBA, 0xe, RBR0)
  2600. CreateDWordField(BUF0, 0x10, MBR0)
  2601. ShiftLeft(\_SB_.PCI0.MCHC.MHBR, 0xe, MBR0)
  2602. CreateDWordField(BUF0, 0x1c, DBR0)
  2603. ShiftLeft(\_SB_.PCI0.MCHC.DIBR, 0xc, DBR0)
  2604. CreateDWordField(BUF0, 0x28, EBR0)
  2605. ShiftLeft(\_SB_.PCI0.MCHC.EPBR, 0xc, EBR0)
  2606. CreateDWordField(BUF0, 0x34, XBR0)
  2607. ShiftLeft(\_SB_.PCI0.MCHC.PXBR, 0x1a, XBR0)
  2608. CreateDWordField(BUF0, 0x38, XSZ0)
  2609. ShiftRight(0x10000000, \_SB_.PCI0.MCHC.PXSZ, XSZ0)
  2610. Return(BUF0)
  2611. }
  2612. }
  2613. Device(PEGP)
  2614. {
  2615. Name(_ADR, 0x10000)
  2616. Method(_PRT, 0x0, NotSerialized)
  2617. {
  2618. If(GPIC)
  2619. {
  2620. Return(Package(0x4)
  2621. {
  2622. Package(0x4)
  2623. {
  2624. 0xffff,
  2625. 0x0,
  2626. 0x0,
  2627. 0x10
  2628. },
  2629. Package(0x4)
  2630. {
  2631. 0xffff,
  2632. 0x1,
  2633. 0x0,
  2634. 0x11
  2635. },
  2636. Package(0x4)
  2637. {
  2638. 0xffff,
  2639. 0x2,
  2640. 0x0,
  2641. 0x12
  2642. },
  2643. Package(0x4)
  2644. {
  2645. 0xffff,
  2646. 0x3,
  2647. 0x0,
  2648. 0x13
  2649. }
  2650. })
  2651. }
  2652. Else
  2653. {
  2654. Return(Package(0x4)
  2655. {
  2656. Package(0x4)
  2657. {
  2658. 0xffff,
  2659. 0x0,
  2660. \_SB_.PCI0.LPCB.LNKA,
  2661. 0x0
  2662. },
  2663. Package(0x4)
  2664. {
  2665. 0xffff,
  2666. 0x1,
  2667. \_SB_.PCI0.LPCB.LNKB,
  2668. 0x0
  2669. },
  2670. Package(0x4)
  2671. {
  2672. 0xffff,
  2673. 0x2,
  2674. \_SB_.PCI0.LPCB.LNKC,
  2675. 0x0
  2676. },
  2677. Package(0x4)
  2678. {
  2679. 0xffff,
  2680. 0x3,
  2681. \_SB_.PCI0.LPCB.LNKD,
  2682. 0x0
  2683. }
  2684. })
  2685. }
  2686. }
  2687. }
  2688. Event(\_SB_.BEVT)
  2689. Device(GFX0)
  2690. {
  2691. Name(_ADR, 0x20000)
  2692. Method(_DOS, 0x1, NotSerialized)
  2693. {
  2694. Store(And(Arg0, 0x7, ), DSEN)
  2695. HDOS(Arg0)
  2696. }
  2697. Method(_DOD, 0x0, NotSerialized)
  2698. {
  2699. If(LEqual(DODC, 0x0))
  2700. {
  2701. Store(0x1, DODC)
  2702. If(SCIP())
  2703. {
  2704. HDOD()
  2705. Store(0x0, NDID)
  2706. If(LNot(LEqual(DIDL, Zero)))
  2707. {
  2708. Store(SDDL(DID1), DID1)
  2709. }
  2710. If(LNot(LEqual(DDL2, Zero)))
  2711. {
  2712. Store(SDDL(DID2), DID2)
  2713. }
  2714. If(LNot(LEqual(DDL3, Zero)))
  2715. {
  2716. Store(SDDL(DID3), DID3)
  2717. }
  2718. If(LNot(LEqual(DDL4, Zero)))
  2719. {
  2720. Store(SDDL(DID4), DID4)
  2721. }
  2722. If(LNot(LEqual(DDL5, Zero)))
  2723. {
  2724. Store(SDDL(DID5), DID5)
  2725. }
  2726. }
  2727. If(LEqual(NDID, 0x0))
  2728. {
  2729. Store(0x400, Index(DerefOf(Index(DODS, NDID, )), 0x0, ))
  2730. }
  2731. If(LEqual(NDID, 0x1))
  2732. {
  2733. Store(Or(0x10000, DID1, ), Index(DerefOf(Index(DODS, NDID, )), 0x0, ))
  2734. }
  2735. If(LEqual(NDID, 0x2))
  2736. {
  2737. Store(Or(0x10000, DID1, ), Index(DerefOf(Index(DODS, NDID, )), 0x0, ))
  2738. Store(Or(0x10000, DID2, ), Index(DerefOf(Index(DODS, NDID, )), 0x1, ))
  2739. }
  2740. If(LEqual(NDID, 0x3))
  2741. {
  2742. Store(Or(0x10000, DID1, ), Index(DerefOf(Index(DODS, NDID, )), 0x0, ))
  2743. Store(Or(0x10000, DID2, ), Index(DerefOf(Index(DODS, NDID, )), 0x1, ))
  2744. Store(Or(0x10000, DID3, ), Index(DerefOf(Index(DODS, NDID, )), 0x2, ))
  2745. }
  2746. If(LEqual(NDID, 0x4))
  2747. {
  2748. Store(Or(0x10000, DID1, ), Index(DerefOf(Index(DODS, NDID, )), 0x0, ))
  2749. Store(Or(0x10000, DID2, ), Index(DerefOf(Index(DODS, NDID, )), 0x1, ))
  2750. Store(Or(0x10000, DID3, ), Index(DerefOf(Index(DODS, NDID, )), 0x2, ))
  2751. Store(Or(0x10000, DID4, ), Index(DerefOf(Index(DODS, NDID, )), 0x3, ))
  2752. }
  2753. If(LGreater(NDID, 0x4))
  2754. {
  2755. Store(Or(0x10000, DID1, ), Index(DerefOf(Index(DODS, NDID, )), 0x0, ))
  2756. Store(Or(0x10000, DID2, ), Index(DerefOf(Index(DODS, NDID, )), 0x1, ))
  2757. Store(Or(0x10000, DID3, ), Index(DerefOf(Index(DODS, NDID, )), 0x2, ))
  2758. Store(Or(0x10000, DID4, ), Index(DerefOf(Index(DODS, NDID, )), 0x3, ))
  2759. Store(Or(0x10000, DID5, ), Index(DerefOf(Index(DODS, NDID, )), 0x4, ))
  2760. }
  2761. }
  2762. Store(NDID, Local0)
  2763. If(LGreater(NDID, 0x5))
  2764. {
  2765. Store(0x0, Local0)
  2766. }
  2767. Return(DerefOf(Index(DODS, Local0, )))
  2768. }
  2769. Device(DD01)
  2770. {
  2771. Method(_ADR, 0x0, Serialized)
  2772. {
  2773. If(LEqual(DID1, 0x0))
  2774. {
  2775. Return(0x1)
  2776. }
  2777. Else
  2778. {
  2779. Return(And(0xffff, DID1, ))
  2780. }
  2781. }
  2782. Method(_DCS, 0x0, NotSerialized)
  2783. {
  2784. Return(HDCS(DID1))
  2785. }
  2786. Method(_DGS, 0x0, NotSerialized)
  2787. {
  2788. Return(HDGS(DID1))
  2789. }
  2790. Method(_DSS, 0x1, NotSerialized)
  2791. {
  2792. HDSS(DID1, Arg0)
  2793. If(LEqual(And(Arg0, 0xc0000000, ), 0xc0000000))
  2794. {
  2795. Store(NSTE, CSTE)
  2796. }
  2797. }
  2798. }
  2799. Device(DD02)
  2800. {
  2801. Method(_ADR, 0x0, Serialized)
  2802. {
  2803. If(LEqual(DID2, 0x0))
  2804. {
  2805. Return(0x2)
  2806. }
  2807. Else
  2808. {
  2809. Return(And(0xffff, DID2, ))
  2810. }
  2811. }
  2812. Method(_DCS, 0x0, NotSerialized)
  2813. {
  2814. Return(HDCS(DID2))
  2815. }
  2816. Method(_DGS, 0x0, NotSerialized)
  2817. {
  2818. Return(HDGS(DID2))
  2819. }
  2820. Method(_DSS, 0x1, NotSerialized)
  2821. {
  2822. HDSS(DID2, Arg0)
  2823. If(LEqual(And(Arg0, 0xc0000000, ), 0xc0000000))
  2824. {
  2825. Store(NSTE, CSTE)
  2826. }
  2827. }
  2828. }
  2829. Device(DD03)
  2830. {
  2831. Method(_ADR, 0x0, Serialized)
  2832. {
  2833. If(LEqual(DID3, 0x0))
  2834. {
  2835. Return(0x3)
  2836. }
  2837. Else
  2838. {
  2839. Return(And(0xffff, DID3, ))
  2840. }
  2841. }
  2842. Method(_DCS, 0x0, NotSerialized)
  2843. {
  2844. If(LEqual(DID3, 0x0))
  2845. {
  2846. Return(0xb)
  2847. }
  2848. Else
  2849. {
  2850. Return(HDCS(DID3))
  2851. }
  2852. }
  2853. Method(_DGS, 0x0, NotSerialized)
  2854. {
  2855. Return(HDGS(DID3))
  2856. }
  2857. Method(_DSS, 0x1, NotSerialized)
  2858. {
  2859. HDSS(DID3, Arg0)
  2860. If(LEqual(And(Arg0, 0xc0000000, ), 0xc0000000))
  2861. {
  2862. Store(NSTE, CSTE)
  2863. }
  2864. }
  2865. }
  2866. Device(DD04)
  2867. {
  2868. Method(_ADR, 0x0, Serialized)
  2869. {
  2870. If(LEqual(DID4, 0x0))
  2871. {
  2872. Return(0x4)
  2873. }
  2874. Else
  2875. {
  2876. Return(And(0xffff, DID4, ))
  2877. }
  2878. }
  2879. Method(_DCS, 0x0, NotSerialized)
  2880. {
  2881. If(LEqual(DID4, 0x0))
  2882. {
  2883. Return(0xb)
  2884. }
  2885. Else
  2886. {
  2887. Return(HDCS(DID4))
  2888. }
  2889. }
  2890. Method(_DGS, 0x0, NotSerialized)
  2891. {
  2892. Return(HDGS(DID4))
  2893. }
  2894. Method(_DSS, 0x1, NotSerialized)
  2895. {
  2896. HDSS(DID4, Arg0)
  2897. If(LEqual(And(Arg0, 0xc0000000, ), 0xc0000000))
  2898. {
  2899. Store(NSTE, CSTE)
  2900. }
  2901. }
  2902. }
  2903. Device(DD05)
  2904. {
  2905. Method(_ADR, 0x0, Serialized)
  2906. {
  2907. If(LEqual(DID5, 0x0))
  2908. {
  2909. Return(0x5)
  2910. }
  2911. Else
  2912. {
  2913. Return(And(0xffff, DID5, ))
  2914. }
  2915. }
  2916. Method(_DCS, 0x0, NotSerialized)
  2917. {
  2918. If(LEqual(DID5, 0x0))
  2919. {
  2920. Return(0xb)
  2921. }
  2922. Else
  2923. {
  2924. Return(HDCS(DID5))
  2925. }
  2926. }
  2927. Method(_DGS, 0x0, NotSerialized)
  2928. {
  2929. Return(HDGS(DID5))
  2930. }
  2931. Method(_DSS, 0x1, NotSerialized)
  2932. {
  2933. HDSS(DID5, Arg0)
  2934. If(LEqual(And(Arg0, 0xc0000000, ), 0xc0000000))
  2935. {
  2936. Store(NSTE, CSTE)
  2937. }
  2938. }
  2939. }
  2940. Method(SDDL, 0x1, NotSerialized)
  2941. {
  2942. Increment(NDID)
  2943. Store(And(Arg0, 0xf0f, ), Local0)
  2944. Or(0x80000000, Local0, Local1)
  2945. If(LEqual(DIDL, Local0))
  2946. {
  2947. Return(Local1)
  2948. }
  2949. If(LEqual(DDL2, Local0))
  2950. {
  2951. Return(Local1)
  2952. }
  2953. If(LEqual(DDL3, Local0))
  2954. {
  2955. Return(Local1)
  2956. }
  2957. If(LEqual(DDL4, Local0))
  2958. {
  2959. Return(Local1)
  2960. }
  2961. If(LEqual(DDL5, Local0))
  2962. {
  2963. Return(Local1)
  2964. }
  2965. If(LEqual(DDL6, Local0))
  2966. {
  2967. Return(Local1)
  2968. }
  2969. If(LEqual(DDL7, Local0))
  2970. {
  2971. Return(Local1)
  2972. }
  2973. If(LEqual(DDL8, Local0))
  2974. {
  2975. Return(Local1)
  2976. }
  2977. Return(0x0)
  2978. }
  2979. Method(CDDS, 0x1, NotSerialized)
  2980. {
  2981. Store(And(Arg0, 0xf0f, ), Local0)
  2982. If(LEqual(0x0, Local0))
  2983. {
  2984. Return(0x1d)
  2985. }
  2986. If(LEqual(CADL, Local0))
  2987. {
  2988. Return(0x1f)
  2989. }
  2990. If(LEqual(CAL2, Local0))
  2991. {
  2992. Return(0x1f)
  2993. }
  2994. If(LEqual(CAL3, Local0))
  2995. {
  2996. Return(0x1f)
  2997. }
  2998. If(LEqual(CAL4, Local0))
  2999. {
  3000. Return(0x1f)
  3001. }
  3002. If(LEqual(CAL5, Local0))
  3003. {
  3004. Return(0x1f)
  3005. }
  3006. If(LEqual(CAL6, Local0))
  3007. {
  3008. Return(0x1f)
  3009. }
  3010. If(LEqual(CAL7, Local0))
  3011. {
  3012. Return(0x1f)
  3013. }
  3014. If(LEqual(CAL8, Local0))
  3015. {
  3016. Return(0x1f)
  3017. }
  3018. Return(0x1d)
  3019. }
  3020. Method(NDDS, 0x1, NotSerialized)
  3021. {
  3022. Store(And(Arg0, 0xf0f, ), Local0)
  3023. If(LEqual(0x0, Local0))
  3024. {
  3025. Return(0x0)
  3026. }
  3027. If(LEqual(NADL, Local0))
  3028. {
  3029. Return(0x1)
  3030. }
  3031. If(LEqual(NDL2, Local0))
  3032. {
  3033. Return(0x1)
  3034. }
  3035. If(LEqual(NDL3, Local0))
  3036. {
  3037. Return(0x1)
  3038. }
  3039. If(LEqual(NDL4, Local0))
  3040. {
  3041. Return(0x1)
  3042. }
  3043. If(LEqual(NDL5, Local0))
  3044. {
  3045. Return(0x1)
  3046. }
  3047. If(LEqual(NDL6, Local0))
  3048. {
  3049. Return(0x1)
  3050. }
  3051. If(LEqual(NDL7, Local0))
  3052. {
  3053. Return(0x1)
  3054. }
  3055. If(LEqual(NDL8, Local0))
  3056. {
  3057. Return(0x1)
  3058. }
  3059. Return(0x0)
  3060. }
  3061. Scope(\_SB_.PCI0)
  3062. {
  3063. OperationRegion(MCHP, PCI_Config, 0x40, 0xc0)
  3064. Field(MCHP, AnyAcc, NoLock, Preserve)
  3065. {
  3066. Offset(0x60),
  3067. TASM, 10,
  3068. , 6
  3069. }
  3070. }
  3071. OperationRegion(IGDP, PCI_Config, 0x40, 0xc0)
  3072. Field(IGDP, AnyAcc, NoLock, Preserve)
  3073. {
  3074. Offset(0x12),
  3075. , 1,
  3076. GIVD, 1,
  3077. , 2,
  3078. GUMA, 3,
  3079. , 9,
  3080. , 4,
  3081. GMFN, 1,
  3082. , 27,
  3083. Offset(0xa4),
  3084. ASLE, 8,
  3085. , 24,
  3086. GSSE, 1,
  3087. GSSB, 14,
  3088. GSES, 1,
  3089. Offset(0xb0),
  3090. , 12,
  3091. CDVL, 1,
  3092. , 3,
  3093. , 24,
  3094. LBPC, 8,
  3095. Offset(0xbc),
  3096. ASLS, 32
  3097. }
  3098. OperationRegion(IGDM, SystemMemory, ASLB, 0x2000)
  3099. Field(IGDM, AnyAcc, NoLock, Preserve)
  3100. {
  3101. SIGN, 128,
  3102. SIZE, 32,
  3103. OVER, 32,
  3104. SVER, 256,
  3105. VVER, 128,
  3106. GVER, 128,
  3107. MBOX, 32,
  3108. DMOD, 32,
  3109. Offset(0x100),
  3110. DRDY, 32,
  3111. CSTS, 32,
  3112. CEVT, 32,
  3113. Offset(0x120),
  3114. DIDL, 32,
  3115. DDL2, 32,
  3116. DDL3, 32,
  3117. DDL4, 32,
  3118. DDL5, 32,
  3119. DDL6, 32,
  3120. DDL7, 32,
  3121. DDL8, 32,
  3122. CPDL, 32,
  3123. CPL2, 32,
  3124. CPL3, 32,
  3125. CPL4, 32,
  3126. CPL5, 32,
  3127. CPL6, 32,
  3128. CPL7, 32,
  3129. CPL8, 32,
  3130. CADL, 32,
  3131. CAL2, 32,
  3132. CAL3, 32,
  3133. CAL4, 32,
  3134. CAL5, 32,
  3135. CAL6, 32,
  3136. CAL7, 32,
  3137. CAL8, 32,
  3138. NADL, 32,
  3139. NDL2, 32,
  3140. NDL3, 32,
  3141. NDL4, 32,
  3142. NDL5, 32,
  3143. NDL6, 32,
  3144. NDL7, 32,
  3145. NDL8, 32,
  3146. ASLP, 32,
  3147. TIDX, 32,
  3148. CHPD, 32,
  3149. CLID, 32,
  3150. CDCK, 32,
  3151. SXSW, 32,
  3152. EVTS, 32,
  3153. CNOT, 32,
  3154. NRDY, 32,
  3155. Offset(0x200),
  3156. SCIE, 1,
  3157. GEFC, 4,
  3158. GXFC, 3,
  3159. GESF, 8,
  3160. , 16,
  3161. PARM, 32,
  3162. DSLP, 32,
  3163. Offset(0x300),
  3164. ARDY, 32,
  3165. ASLC, 32,
  3166. TCHE, 32,
  3167. ALSI, 32,
  3168. BCLP, 32,
  3169. PFIT, 32,
  3170. CBLV, 32,
  3171. BCLM, 320,
  3172. CPFM, 32,
  3173. EPFM, 32,
  3174. PLUT, 592,
  3175. PFMB, 32,
  3176. CCDV, 32,
  3177. PCFT, 32,
  3178. Offset(0x400),
  3179. GVD1, 49152,
  3180. PHED, 32,
  3181. BDDC, 2048
  3182. }
  3183. Name(DBTB, Package(0x15)
  3184. {
  3185. 0x0,
  3186. 0x7,
  3187. 0x38,
  3188. 0x1c0,
  3189. 0xe00,
  3190. 0x3f,
  3191. 0x1c7,
  3192. 0xe07,
  3193. 0x1f8,
  3194. 0xe38,
  3195. 0xfc0,
  3196. 0x0,
  3197. 0x0,
  3198. 0x0,
  3199. 0x0,
  3200. 0x0,
  3201. 0x7000,
  3202. 0x7007,
  3203. 0x7038,
  3204. 0x71c0,
  3205. 0x7e00
  3206. })
  3207. Name(CDCT, Package(0x5)
  3208. {
  3209. Package(0x2)
  3210. {
  3211. 0xe4,
  3212. 0x140
  3213. },
  3214. Package(0x2)
  3215. {
  3216. 0xde,
  3217. 0x14d
  3218. },
  3219. Package(0x2)
  3220. {
  3221. 0xde,
  3222. 0x14d
  3223. },
  3224. Package(0x2)
  3225. {
  3226. 0x0,
  3227. 0x0
  3228. },
  3229. Package(0x2)
  3230. {
  3231. 0xde,
  3232. 0x14d
  3233. }
  3234. })
  3235. Name(SUCC, 0x1)
  3236. Name(NVLD, 0x2)
  3237. Name(CRIT, 0x4)
  3238. Name(NCRT, 0x6)
  3239. Method(GSCI, 0x0, Serialized)
  3240. {
  3241. Method(GBDA, 0x0, Serialized)
  3242. {
  3243. If(LEqual(GESF, 0x0))
  3244. {
  3245. Store(0x159, PARM)
  3246. Store(Zero, GESF)
  3247. Return(SUCC)
  3248. }
  3249. If(LEqual(GESF, 0x1))
  3250. {
  3251. Store(0x80, PARM)
  3252. Store(Zero, GESF)
  3253. Return(SUCC)
  3254. }
  3255. If(LEqual(GESF, 0x4))
  3256. {
  3257. Store(0x30000000, PARM)
  3258. Store(Zero, GESF)
  3259. Return(SUCC)
  3260. }
  3261. If(LEqual(GESF, 0x5))
  3262. {
  3263. Or(PARM, ShiftLeft(LIDS, 0x10, ), PARM)
  3264. Add(PARM, 0x10000, PARM)
  3265. Store(Zero, GESF)
  3266. Return(SUCC)
  3267. }
  3268. If(LEqual(GESF, 0x6))
  3269. {
  3270. Store(Zero, PARM)
  3271. Store(Zero, GESF)
  3272. Return(Zero)
  3273. }
  3274. If(LEqual(GESF, 0x7))
  3275. {
  3276. Store(GIVD, PARM)
  3277. XOr(PARM, 0x1, PARM)
  3278. Or(PARM, ShiftLeft(GMFN, 0x1, ), PARM)
  3279. Or(PARM, ShiftLeft(0x3, 0xb, ), PARM)
  3280. Or(PARM, ShiftLeft(IDMS, 0x11, ), PARM)
  3281. Or(ShiftLeft(DerefOf(Index(DerefOf(Index(CDCT, HVCO, )), CDVL, )), 0x15, ), PARM, PARM)
  3282. Store(0x1, GESF)
  3283. Return(SUCC)
  3284. }
  3285. If(LEqual(GESF, 0xa))
  3286. {
  3287. Store(0x0, PARM)
  3288. Store(0x0, GESF)
  3289. Return(Zero)
  3290. }
  3291. Store(Zero, GESF)
  3292. Return(CRIT)
  3293. }
  3294. Method(SBCB, 0x0, Serialized)
  3295. {
  3296. If(LEqual(GESF, 0x0))
  3297. {
  3298. Store(0x0, PARM)
  3299. Store(0x40, PARM)
  3300. Store(Zero, GESF)
  3301. Return(SUCC)
  3302. }
  3303. If(LEqual(GESF, 0x7))
  3304. {
  3305. If(LEqual(PARM, 0x0))
  3306. {
  3307. Store(CLID, Local0)
  3308. If(And(0x80000000, Local0, ))
  3309. {
  3310. And(CLID, 0xf, CLID)
  3311. GLID(CLID)
  3312. }
  3313. }
  3314. Store(Zero, GESF)
  3315. Store(Zero, PARM)
  3316. Return(SUCC)
  3317. }
  3318. Store(Zero, GESF)
  3319. Return(SUCC)
  3320. }
  3321. If(LEqual(GEFC, 0x4))
  3322. {
  3323. Store(GBDA(), GXFC)
  3324. }
  3325. If(LEqual(GEFC, 0x6))
  3326. {
  3327. Store(SBCB(), GXFC)
  3328. }
  3329. Store(0x0, GEFC)
  3330. Store(0x1, SCIS)
  3331. Store(0x0, GSSE)
  3332. Store(0x0, SCIE)
  3333. Return(Zero)
  3334. }
  3335. Method(PDRD, 0x0, NotSerialized)
  3336. {
  3337. If(LNot(DRDY))
  3338. {
  3339. Sleep(ASLP)
  3340. }
  3341. Return(LNot(DRDY))
  3342. }
  3343. Method(PSTS, 0x0, NotSerialized)
  3344. {
  3345. If(LGreater(CSTS, 0x2))
  3346. {
  3347. Sleep(ASLP)
  3348. }
  3349. Return(LEqual(CSTS, 0x3))
  3350. }
  3351. Method(GNOT, 0x2, NotSerialized)
  3352. {
  3353. If(PDRD())
  3354. {
  3355. Return(0x1)
  3356. }
  3357. Store(Arg0, CEVT)
  3358. Store(0x3, CSTS)
  3359. If(LAnd(LEqual(CHPD, 0x0), LEqual(Arg1, 0x0)))
  3360. {
  3361. If(LAnd(LGreater(OSYS, 0x7d0), LLess(OSYS, 0x7d6)))
  3362. {
  3363. Notify(\_SB_.PCI0, Arg1)
  3364. }
  3365. Else
  3366. {
  3367. Notify(\_SB_.PCI0.GFX0, Arg1)
  3368. }
  3369. }
  3370. Notify(\_SB_.PCI0.GFX0, 0x80)
  3371. If(LNot(PSTS()))
  3372. {
  3373. Store(0x0, CEVT)
  3374. }
  3375. Return(0x0)
  3376. }
  3377. Method(GHDS, 0x1, NotSerialized)
  3378. {
  3379. Store(Arg0, TIDX)
  3380. Return(GNOT(0x1, 0x0))
  3381. }
  3382. Method(GLID, 0x1, NotSerialized)
  3383. {
  3384. Store(Arg0, CLID)
  3385. Return(GNOT(0x2, 0x0))
  3386. }
  3387. Method(GDCK, 0x1, NotSerialized)
  3388. {
  3389. Store(Arg0, CDCK)
  3390. Return(GNOT(0x4, 0x0))
  3391. }
  3392. Method(PARD, 0x0, NotSerialized)
  3393. {
  3394. If(LNot(ARDY))
  3395. {
  3396. Sleep(ASLP)
  3397. }
  3398. Return(LNot(ARDY))
  3399. }
  3400. Method(AINT, 0x2, NotSerialized)
  3401. {
  3402. If(LNot(And(TCHE, ShiftLeft(0x1, Arg0, ), )))
  3403. {
  3404. Return(0x1)
  3405. }
  3406. If(PARD())
  3407. {
  3408. Return(0x1)
  3409. }
  3410. If(LEqual(Arg0, 0x2))
  3411. {
  3412. If(CPFM)
  3413. {
  3414. And(CPFM, 0xf, Local0)
  3415. And(EPFM, 0xf, Local1)
  3416. If(LEqual(Local0, 0x1))
  3417. {
  3418. If(And(Local1, 0x6, ))
  3419. {
  3420. Store(0x6, PFIT)
  3421. }
  3422. Else
  3423. {
  3424. If(And(Local1, 0x8, ))
  3425. {
  3426. Store(0x8, PFIT)
  3427. }
  3428. Else
  3429. {
  3430. Store(0x1, PFIT)
  3431. }
  3432. }
  3433. }
  3434. If(LEqual(Local0, 0x6))
  3435. {
  3436. If(And(Local1, 0x8, ))
  3437. {
  3438. Store(0x8, PFIT)
  3439. }
  3440. Else
  3441. {
  3442. If(And(Local1, 0x1, ))
  3443. {
  3444. Store(0x1, PFIT)
  3445. }
  3446. Else
  3447. {
  3448. Store(0x6, PFIT)
  3449. }
  3450. }
  3451. }
  3452. If(LEqual(Local0, 0x8))
  3453. {
  3454. If(And(Local1, 0x1, ))
  3455. {
  3456. Store(0x1, PFIT)
  3457. }
  3458. Else
  3459. {
  3460. If(And(Local1, 0x6, ))
  3461. {
  3462. Store(0x6, PFIT)
  3463. }
  3464. Else
  3465. {
  3466. Store(0x8, PFIT)
  3467. }
  3468. }
  3469. }
  3470. }
  3471. Else
  3472. {
  3473. XOr(PFIT, 0x7, PFIT)
  3474. }
  3475. Or(PFIT, 0x80000000, PFIT)
  3476. Store(0x4, ASLC)
  3477. }
  3478. Else
  3479. {
  3480. If(LEqual(Arg0, 0x1))
  3481. {
  3482. Store(Arg1, BCLP)
  3483. Or(BCLP, 0x80000000, BCLP)
  3484. Store(0x2, ASLC)
  3485. }
  3486. Else
  3487. {
  3488. If(LEqual(Arg0, 0x0))
  3489. {
  3490. Store(Arg1, ALSI)
  3491. Store(0x1, ASLC)
  3492. }
  3493. Else
  3494. {
  3495. Return(0x1)
  3496. }
  3497. }
  3498. }
  3499. Store(0x0, LBPC)
  3500. Return(0x0)
  3501. }
  3502. Method(SCIP, 0x0, NotSerialized)
  3503. {
  3504. If(LNot(LEqual(OVER, 0x0)))
  3505. {
  3506. Return(LNot(GSMI))
  3507. }
  3508. Return(0x0)
  3509. }
  3510. }
  3511. Scope(\_GPE)
  3512. {
  3513. Name(WOAT, 0xff)
  3514. Method(_L06, 0x0, NotSerialized)
  3515. {
  3516. If(LAnd(\_SB_.PCI0.GFX0.GSSE, LNot(GSMI)))
  3517. {
  3518. \_SB_.PCI0.GFX0.GSCI()
  3519. }
  3520. Else
  3521. {
  3522. Store(0x1, SCIS)
  3523. }
  3524. }
  3525. Method(VBRE, 0x1, Serialized)
  3526. {
  3527. If(LEqual(\_SB_.PCI0.GFX0.GIVD, 0x0))
  3528. {
  3529. If(And(Arg0, 0x80, ))
  3530. {
  3531. Notify(\_SB_.PCI0.GFX0.DD02, Arg0)
  3532. }
  3533. Else
  3534. {
  3535. If(LEqual(And(WDPE, 0x4, ), 0x0))
  3536. {
  3537. Store("VBRE method, use OpRegion method", Debug)
  3538. \_SB_.PCI0.GFX0.SBRV()
  3539. }
  3540. }
  3541. }
  3542. Else
  3543. {
  3544. If(And(Arg0, 0x80, ))
  3545. {
  3546. Notify(\_SB_.PCI0.PEGP.DGFX.LCD_, Arg0)
  3547. }
  3548. }
  3549. }
  3550. Method(VFN4, 0x0, Serialized)
  3551. {
  3552. If(LEqual(\_SB_.PCI0.GFX0.GIVD, 0x0))
  3553. {
  3554. If(LEqual(And(WDPE, 0x3, ), 0x0))
  3555. {
  3556. If(And(DCAP, 0x1, ))
  3557. {
  3558. \_SB_.PCI0.GFX0.GHDS(0x0)
  3559. }
  3560. Else
  3561. {
  3562. CNDD(0x0)
  3563. Notify(\_SB_.PCI0.GFX0, 0x80)
  3564. }
  3565. }
  3566. }
  3567. Else
  3568. {
  3569. If(LEqual(And(WDPE, 0x83, ), 0x0))
  3570. {
  3571. Notify(\_SB_.PCI0.PEGP.DGFX, 0x80)
  3572. }
  3573. }
  3574. }
  3575. Method(VDET, 0x0, Serialized)
  3576. {
  3577. If(LEqual(\_SB_.PCI0.GFX0.GIVD, 0x0))
  3578. {
  3579. \_SB_.PCI0.GFX0.GDCC(0x1)
  3580. If(LEqual(And(WDPE, 0x3, ), 0x0))
  3581. {
  3582. If(And(DCAP, 0x1, ))
  3583. {
  3584. \_SB_.PCI0.GFX0.DKET()
  3585. }
  3586. Else
  3587. {
  3588. \_SB_.SSMI(0xea74, 0x6, 0x0, 0x0, 0x0)
  3589. CNDD(0x0)
  3590. Notify(\_SB_.PCI0.GFX0, 0x80)
  3591. }
  3592. }
  3593. }
  3594. Else
  3595. {
  3596. \_SB_.SSMI(0xea74, 0x6, 0x0, 0x0, 0x0)
  3597. \_SB_.PCI0.PEGP.DGFX.GDCC(0x1)
  3598. }
  3599. }
  3600. Method(VLET, 0x0, Serialized)
  3601. {
  3602. If(LEqual(\_SB_.PCI0.GFX0.GIVD, 0x0))
  3603. {
  3604. Store(0x1, Local1)
  3605. If(LEqual(And(WDPE, 0x3, ), 0x0))
  3606. {
  3607. If(And(DCAP, 0x1, ))
  3608. {
  3609. If(\_SB_.PCI0.GFX0.GLID(\_SB_.LID_._LID()))
  3610. {
  3611. Or(0x80000000, \_SB_.PCI0.GFX0.CLID, \_SB_.PCI0.GFX0.CLID)
  3612. }
  3613. }
  3614. Else
  3615. {
  3616. \_SB_.SSMI(0xea74, 0x5, 0x0, 0x0, 0x0)
  3617. CNDD(0x1)
  3618. Notify(\_SB_.PCI0.GFX0, 0x80)
  3619. If(LLess(\WCOS(), 0x6))
  3620. {
  3621. Store(0x0, Local1)
  3622. }
  3623. }
  3624. }
  3625. }
  3626. Else
  3627. {
  3628. Store(0x1, Local1)
  3629. If(LLess(\WCOS(), 0x6))
  3630. {
  3631. \_SB_.SSMI(0xea74, 0x5, 0x0, 0x0, 0x0)
  3632. }
  3633. }
  3634. Return(Local1)
  3635. }
  3636. Method(CNDD, 0x1, NotSerialized)
  3637. {
  3638. If(LOr(Arg0, LNot(LEqual(WDST, WOAT))))
  3639. {
  3640. Store(WDST, WOAT)
  3641. If(LNot(LLess(\WCOS(), 0x4)))
  3642. {
  3643. Notify(\_SB_.PCI0, 0x0)
  3644. }
  3645. Else
  3646. {
  3647. Notify(\_SB_.PCI0.GFX0, 0x0)
  3648. }
  3649. Sleep(0x2ee)
  3650. }
  3651. }
  3652. Method(VPUP, 0x2, Serialized)
  3653. {
  3654. If(LEqual(\_SB_.PCI0.GFX0.GIVD, 0x0))
  3655. {
  3656. Store(0x1, Local0)
  3657. }
  3658. Else
  3659. {
  3660. Or(ShiftLeft(Arg1, 0x8, ), Arg0, Local0)
  3661. \_SB_.SSMI(0xea74, 0x7, Local0, 0x0, 0x0)
  3662. }
  3663. }
  3664. }
  3665. Scope(\_SB_)
  3666. {
  3667. Method(VSDD, 0x1, Serialized)
  3668. {
  3669. If(LEqual(\_SB_.PCI0.GFX0.GIVD, 0x0))
  3670. {
  3671. If(LEqual(And(WDPE, 0x3, ), 0x0))
  3672. {
  3673. If(LNot(LEqual(Arg0, WDSA)))
  3674. {
  3675. Store(Arg0, WDGN)
  3676. If(And(DCAP, 0x1, ))
  3677. {
  3678. \_SB_.PCI0.GFX0.SNXS()
  3679. }
  3680. Else
  3681. {
  3682. \_GPE.CNDD(0x0)
  3683. Notify(\_SB_.PCI0.GFX0, 0x80)
  3684. }
  3685. }
  3686. }
  3687. }
  3688. Else
  3689. {
  3690. If(LEqual(And(WDPE, 0x83, ), 0x0))
  3691. {
  3692. If(LNot(LEqual(Arg0, WDSA)))
  3693. {
  3694. Store(Arg0, WDGN)
  3695. Notify(\_SB_.PCI0.PEGP.DGFX, 0x80)
  3696. }
  3697. }
  3698. Else
  3699. {
  3700. If(And(WDPE, 0x80, ))
  3701. {
  3702. And(Arg0, WDST, WDSS)
  3703. \_SB_.SSMI(0xea74, 0x1, 0x0, 0x0, 0x0)
  3704. }
  3705. }
  3706. }
  3707. }
  3708. Method(VGDD, 0x1, Serialized)
  3709. {
  3710. If(LEqual(\_SB_.PCI0.GFX0.GIVD, 0x0))
  3711. {
  3712. If(And(DCAP, 0x1, ))
  3713. {
  3714. \_SB_.PCI0.GFX0.RFHS()
  3715. }
  3716. Else
  3717. {
  3718. If(Arg0)
  3719. {
  3720. \_SB_.SSMI(0xea74, 0x2, 0x0, 0x0, 0x0)
  3721. }
  3722. }
  3723. }
  3724. Else
  3725. {
  3726. If(Arg0)
  3727. {
  3728. \_SB_.SSMI(0xea74, 0x2, 0x0, 0x0, 0x0)
  3729. }
  3730. }
  3731. Return(WDST)
  3732. }
  3733. Method(VWAK, 0x1, Serialized)
  3734. {
  3735. If(LEqual(\_SB_.PCI0.GFX0.GIVD, 0x0))
  3736. {
  3737. If(LEqual(Arg0, 0x4))
  3738. {
  3739. \_SB_.PCI0.GFX0.GLID(\_SB_.LID_._LID())
  3740. \_SB_.PCI0.GFX0.DKET()
  3741. }
  3742. If(LNot(LLess(Arg0, 0x3)))
  3743. {
  3744. Store(BRID, Local1)
  3745. Store(BRLV, Local2)
  3746. Store(BMAP, Local3)
  3747. If(LEqual(BRCT, 0xb))
  3748. {
  3749. Store(DerefOf(Index(Local3, Local1, )), Local1)
  3750. }
  3751. Store(DerefOf(Index(Local2, Local1, )), Local0)
  3752. Or(Local0, 0x80000000, \_SB_.PCI0.GFX0.BCLP)
  3753. }
  3754. }
  3755. Else
  3756. {
  3757. Store(0x0, Local0)
  3758. }
  3759. }
  3760. }
  3761. Scope(GFX0)
  3762. {
  3763. Name(DODC, 0x0)
  3764. Name(HPDD, Package(0x5)
  3765. {
  3766. 0x400,
  3767. 0x100,
  3768. 0x200,
  3769. 0x300,
  3770. 0x301
  3771. })
  3772. Name(UIGN, 0x1)
  3773. Name(DODS, Package(0x6)
  3774. {
  3775. Package(0x1)
  3776. {
  3777. 0xffffffff
  3778. },
  3779. Package(0x1)
  3780. {
  3781. 0xffffffff
  3782. },
  3783. Package(0x2)
  3784. {
  3785. 0xffffffff,
  3786. 0xffffffff
  3787. },
  3788. Package(0x3)
  3789. {
  3790. 0xffffffff,
  3791. 0xffffffff,
  3792. 0xffffffff
  3793. },
  3794. Package(0x4)
  3795. {
  3796. 0xffffffff,
  3797. 0xffffffff,
  3798. 0xffffffff,
  3799. 0xffffffff
  3800. },
  3801. Package(0x5)
  3802. {
  3803. 0xffffffff,
  3804. 0xffffffff,
  3805. 0xffffffff,
  3806. 0xffffffff,
  3807. 0xffffffff
  3808. }
  3809. })
  3810. Name(BRWA, 0x0)
  3811. Name(UBCL, Buffer(0x28)
  3812. {
  3813. 0x00, 0x80, 0x00, 0xe4, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  3814. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  3815. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  3816. 0x00, 0x00, 0x00, 0x00
  3817. })
  3818. Method(_INI, 0x0, NotSerialized)
  3819. {
  3820. If(LEqual(BRWA, 0x0))
  3821. {
  3822. If(LGreater(\WCOS(), 0x6))
  3823. {
  3824. Store(BRLV, Local5)
  3825. Store(DerefOf(Index(Local5, 0x0, )), Local2)
  3826. Store(Local2, Index(UBCL, 0x0, ))
  3827. Store(DerefOf(Index(Local5, 0x18, )), Local2)
  3828. Store(Local2, Index(UBCL, 0x2, ))
  3829. Store(UBCL, \_SB_.PCI0.GFX0.BCLM)
  3830. Store(0x1, BRWA)
  3831. }
  3832. }
  3833. GLID(\_SB_.LID_._LID())
  3834. DKET()
  3835. Store(0x0, WDSA)
  3836. Store(0x0, WDST)
  3837. Store(0x0, WDGN)
  3838. }
  3839. Method(HDOS, 0x1, NotSerialized)
  3840. {
  3841. And(WDPE, 0xf8, Local0)
  3842. And(WDPE, 0x87, Local1)
  3843. Or(Local0, Arg0, WDPE)
  3844. If(CondRefOf(^PDOS, Local2))
  3845. {
  3846. ^PDOS(Arg0, Local1)
  3847. }
  3848. }
  3849. Method(HDOD, 0x0, NotSerialized)
  3850. {
  3851. Store(0x1, Local1)
  3852. If(And(TCHE, 0x2, ))
  3853. {
  3854. Store(0x3, Local1)
  3855. }
  3856. Or(DCAP, Local1, DCAP)
  3857. }
  3858. Method(HDCS, 0x1, Serialized)
  3859. {
  3860. Store(THPM(Arg0), Local0)
  3861. If(SCIP())
  3862. {
  3863. If(PDDS(Arg0))
  3864. {
  3865. Or(WDST, Local0, WDST)
  3866. }
  3867. Else
  3868. {
  3869. And(WDST, Not(Local0, ), WDST)
  3870. }
  3871. Store(CDDS(Arg0), Local3)
  3872. If(LEqual(Local3, 0x1f))
  3873. {
  3874. Or(WDSA, Local0, WDSA)
  3875. }
  3876. Else
  3877. {
  3878. And(WDSA, Not(Local0, ), WDSA)
  3879. }
  3880. }
  3881. Else
  3882. {
  3883. Store(0x1d, Local3)
  3884. If(And(WDSA, Local0, ))
  3885. {
  3886. Store(0x1f, Local3)
  3887. }
  3888. }
  3889. Return(Local3)
  3890. }
  3891. Method(HDGS, 0x1, Serialized)
  3892. {
  3893. Store(THPM(Arg0), Local0)
  3894. If(LAnd(SCIP(), UIGN))
  3895. {
  3896. Store(NDDS(Arg0), Local2)
  3897. If(Local2)
  3898. {
  3899. Or(WDGN, Local0, WDGN)
  3900. }
  3901. Else
  3902. {
  3903. And(WDGN, Not(Local0, ), WDGN)
  3904. }
  3905. }
  3906. Else
  3907. {
  3908. Store(0x0, Local2)
  3909. If(And(WDGN, Local0, ))
  3910. {
  3911. Store(0x1, Local2)
  3912. }
  3913. }
  3914. Return(Local2)
  3915. }
  3916. Method(HDSS, 0x2, Serialized)
  3917. {
  3918. Store(THPM(Arg0), Local0)
  3919. If(And(Arg1, 0x1, ))
  3920. {
  3921. Or(WDSS, Local0, WDSS)
  3922. }
  3923. Else
  3924. {
  3925. And(WDSS, Not(Local0, ), WDSS)
  3926. }
  3927. If(LEqual(And(Arg1, 0xc0000000, ), 0xc0000000))
  3928. {
  3929. Store(WDSS, WDSA)
  3930. }
  3931. }
  3932. Method(PDDS, 0x1, NotSerialized)
  3933. {
  3934. Store(And(Arg0, 0xf0f, ), Local0)
  3935. If(LEqual(0x0, Local0))
  3936. {
  3937. Return(0x0)
  3938. }
  3939. If(LEqual(CPDL, Local0))
  3940. {
  3941. Return(0x1)
  3942. }
  3943. If(LEqual(CPL2, Local0))
  3944. {
  3945. Return(0x1)
  3946. }
  3947. If(LEqual(CPL3, Local0))
  3948. {
  3949. Return(0x1)
  3950. }
  3951. If(LEqual(CPL4, Local0))
  3952. {
  3953. Return(0x1)
  3954. }
  3955. If(LEqual(CPL5, Local0))
  3956. {
  3957. Return(0x1)
  3958. }
  3959. If(LEqual(CPL6, Local0))
  3960. {
  3961. Return(0x1)
  3962. }
  3963. If(LEqual(CPL7, Local0))
  3964. {
  3965. Return(0x1)
  3966. }
  3967. If(LEqual(CPL8, Local0))
  3968. {
  3969. Return(0x1)
  3970. }
  3971. Return(0x0)
  3972. }
  3973. Method(THPM, 0x1, NotSerialized)
  3974. {
  3975. And(Arg0, 0xf0f, Local0)
  3976. Store(Match(HPDD, MEQ, Local0, MTR, 0x0, 0x0), Local1)
  3977. If(LEqual(Local1, Ones))
  3978. {
  3979. Store(0x0, Local2)
  3980. }
  3981. Else
  3982. {
  3983. ShiftLeft(0x1, Local1, Local2)
  3984. }
  3985. Return(Local2)
  3986. }
  3987. Method(RFHS, 0x0, Serialized)
  3988. {
  3989. If(And(DID1, 0xf00, ))
  3990. {
  3991. ^DD01._DCS()
  3992. ^DD01._DGS()
  3993. }
  3994. If(And(DID2, 0xf00, ))
  3995. {
  3996. ^DD02._DCS()
  3997. ^DD02._DGS()
  3998. }
  3999. If(And(DID3, 0xf00, ))
  4000. {
  4001. ^DD03._DCS()
  4002. ^DD03._DGS()
  4003. }
  4004. If(And(DID4, 0xf00, ))
  4005. {
  4006. ^DD04._DCS()
  4007. ^DD04._DGS()
  4008. }
  4009. If(And(DID5, 0xf00, ))
  4010. {
  4011. ^DD05._DCS()
  4012. ^DD05._DGS()
  4013. }
  4014. }
  4015. Method(SNXS, 0x0, Serialized)
  4016. {
  4017. Store(0x0, UIGN)
  4018. GHDS(0x0)
  4019. Sleep(0x1f4)
  4020. Store(0x1, UIGN)
  4021. }
  4022. Method(SBRV, 0x0, Serialized)
  4023. {
  4024. Store("Set Brightness", Debug)
  4025. If(LEqual(And(DCAP, 0x2, ), 0x0))
  4026. {
  4027. If(And(TCHE, 0x2, ))
  4028. {
  4029. Store("TCHE set", Debug)
  4030. Or(DCAP, 0x2, DCAP)
  4031. }
  4032. }
  4033. And(DCAP, 0x2, Local3)
  4034. If(Local3)
  4035. {
  4036. Store("OpRegion take control of Brightness", Debug)
  4037. Store(BRID, Local0)
  4038. Subtract(BRCT, 0x1, Local4)
  4039. If(LGreater(BRID, Local4))
  4040. {
  4041. Store(Local4, Local0)
  4042. }
  4043. If(LLess(BRID, 0x0))
  4044. {
  4045. Store(0x0, Local0)
  4046. }
  4047. Store(BRLV, Local2)
  4048. Store(BMAP, Local5)
  4049. Store("Brightness Data", Debug)
  4050. Store(Local2, Debug)
  4051. If(LEqual(BRCT, 0xb))
  4052. {
  4053. Store(DerefOf(Index(Local5, Local0, )), Local0)
  4054. }
  4055. Store(DerefOf(Index(Local2, Local0, )), Local1)
  4056. Store(Local1, Debug)
  4057. AINT(0x1, Local1)
  4058. }
  4059. Return(Local3)
  4060. }
  4061. Scope(DD02)
  4062. {
  4063. Name(BCLI, 0x0)
  4064. Name(BCLS, Package(0x3)
  4065. {
  4066. Package(0xd)
  4067. {
  4068. },
  4069. Package(0x17)
  4070. {
  4071. },
  4072. Package(0x1b)
  4073. {
  4074. }
  4075. })
  4076. Name(BCLC, 0x0)
  4077. Method(_BCL, 0x0, Serialized)
  4078. {
  4079. If(LEqual(BCLC, 0x0))
  4080. {
  4081. If(LGreater(\WCOS(), 0x6))
  4082. {
  4083. Store(BCCT, BRCT)
  4084. }
  4085. Store(0x0, Local7)
  4086. If(LNot(LLess(BRCT, 0x15)))
  4087. {
  4088. Store(0x1, BCLI)
  4089. Store(0x1, Local7)
  4090. If(LEqual(BRCT, 0x19))
  4091. {
  4092. Store(0x2, BCLI)
  4093. }
  4094. }
  4095. Store(0x0, Local1)
  4096. If(And(DCAP, 0x10, ))
  4097. {
  4098. Store(BRLV, Local0)
  4099. Store(0x0, Local5)
  4100. Store(BMAP, Local4)
  4101. While(LLess(Local1, BRCT))
  4102. {
  4103. If(Local7)
  4104. {
  4105. Store(Local1, Local3)
  4106. }
  4107. Else
  4108. {
  4109. Store(DerefOf(Index(Local4, Local1, )), Local3)
  4110. }
  4111. Store(DerefOf(Index(Local0, Local3, )), Local2)
  4112. Multiply(Local2, 0x64, Local3)
  4113. Divide(Add(Local3, 0x7f, ), 0xff, Local6, Local2)
  4114. Store(Local2, Index(DerefOf(Index(BCLS, BCLI, )), Add(Local1, 0x2, ), ))
  4115. If(LGreater(Local2, Local5))
  4116. {
  4117. Store(Local2, Local5)
  4118. }
  4119. Increment(Local1)
  4120. }
  4121. ShiftRight(BRCT, 0x1, Local3)
  4122. Store(DerefOf(Index(DerefOf(Index(BCLS, BCLI, )), Local3, )), Index(DerefOf(Index(BCLS, BCLI, )), 0x1, ))
  4123. Store(Local5, Index(DerefOf(Index(BCLS, BCLI, )), 0x0, ))
  4124. }
  4125. Else
  4126. {
  4127. Store(BCLV, Local4)
  4128. Store(BMAP, Local0)
  4129. While(LLess(Local1, Add(BRCT, 0x2, )))
  4130. {
  4131. If(LOr(Local7, LLess(Local1, 0x2)))
  4132. {
  4133. Store(Local1, Local3)
  4134. }
  4135. Else
  4136. {
  4137. Store(DerefOf(Index(Local0, Subtract(Local1, 0x2, ), )), Local3)
  4138. Add(Local3, 0x2, Local3)
  4139. }
  4140. Store(DerefOf(Index(Local4, Local3, )), Local2)
  4141. Store(Local2, Index(DerefOf(Index(BCLS, BCLI, )), Local1, ))
  4142. Increment(Local1)
  4143. }
  4144. }
  4145. Store(0x1, BCLC)
  4146. }
  4147. Return(DerefOf(Index(BCLS, BCLI, )))
  4148. }
  4149. Name(BRIG, 0x64)
  4150. Method(_BCM, 0x1, Serialized)
  4151. {
  4152. Store(0x0, Local0)
  4153. If(LGreater(\WCOS(), 0x5))
  4154. {
  4155. Or(WDPE, 0x40, WDPE)
  4156. Store(0x1, Local0)
  4157. }
  4158. Store(Arg0, BRIG)
  4159. Store(Match(DerefOf(Index(BCLS, BCLI, )), MGE, Arg0, MTR, 0x0, 0x2), Local1)
  4160. If(LEqual(Local1, Ones))
  4161. {
  4162. Subtract(SizeOf(), DerefOf(Index(BCLS, BCLI, )), )
  4163. }
  4164. }
  4165. }
  4166. }
  4167. }
  4168. }
  4169. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement