Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

8234 lines
288 KiB

  1. // CreatorID=MSFT CreatorRev=1.0.5
  2. // FileLength=34576 FileChkSum=0xb8
  3. DefinitionBlock("DSDT.AML", "DSDT", 0x01, "IBM ", "TP770 ", 0x00000001)
  4. {
  5. Scope(\_PR_)
  6. {
  7. Processor(CPU0, 0x1, 0xef10, 0x6)
  8. {
  9. }
  10. }
  11. Name(SPS_, 0x0)
  12. OperationRegion(GLEN, SystemIO, 0xef20, 0x2)
  13. Field(GLEN, WordAcc, NoLock, Preserve)
  14. {
  15. , 15,
  16. BLEN, 1
  17. }
  18. OperationRegion(GLCR, SystemIO, 0xef28, 0x4)
  19. Field(GLCR, DWordAcc, NoLock, Preserve)
  20. {
  21. PSMI, 1,
  22. PBRL, 1,
  23. PTPL, 1,
  24. , 5,
  25. PGSB, 1,
  26. PGSI, 7,
  27. PEOS, 1,
  28. , 7,
  29. PSMF, 1,
  30. PLPL, 1,
  31. , 6
  32. }
  33. OperationRegion(GPIR, SystemIO, 0xef30, 0x4)
  34. Field(GPIR, DWordAcc, NoLock, Preserve)
  35. {
  36. , 1,
  37. H8SC, 1,
  38. , 1,
  39. RAM0, 1,
  40. RAM1, 1,
  41. , 1,
  42. IRQ8, 1,
  43. SIRQ, 1,
  44. THRM, 1,
  45. BATL, 1,
  46. LID_, 1,
  47. , 1,
  48. RI__, 1,
  49. MID0, 1,
  50. MID1, 1,
  51. MID2, 1,
  52. MID3, 1,
  53. SYSA, 1,
  54. , 4
  55. }
  56. OperationRegion(GPOR, SystemIO, 0xef34, 0x4)
  57. Field(GPOR, DWordAcc, NoLock, Preserve)
  58. {
  59. IPDR, 1,
  60. , 7,
  61. EXTA, 1,
  62. , 1,
  63. ULTO, 1,
  64. HDDO, 1,
  65. EID_, 3,
  66. SUSS, 1,
  67. SUSC, 1,
  68. CPUS, 1,
  69. PCIS, 1,
  70. ZZ__, 1,
  71. SSS1, 1,
  72. , 6,
  73. PCIE, 1,
  74. , 1,
  75. SMB0, 1,
  76. SMB1, 1,
  77. , 1
  78. }
  79. Method(UBON, 0x0, NotSerialized)
  80. {
  81. If(ULTO)
  82. {
  83. Store(Zero, ULTO)
  84. }
  85. }
  86. Method(UBOF, 0x0, NotSerialized)
  87. {
  88. If(ULTO)
  89. {
  90. }
  91. Else
  92. {
  93. Store(One, ULTO)
  94. }
  95. }
  96. OperationRegion(SCIO, SystemIO, 0x15ee, 0x2)
  97. Field(SCIO, ByteAcc, NoLock, Preserve)
  98. {
  99. SINX, 8,
  100. SDAT, 8
  101. }
  102. IndexField(SINX, SDAT, ByteAcc, NoLock, Preserve)
  103. {
  104. , 4,
  105. VDPW, 1,
  106. CBPW, 1,
  107. , 2,
  108. , 16,
  109. , 3,
  110. SGCR, 1,
  111. SGCL, 1,
  112. , 3,
  113. , 3,
  114. SGDR, 1,
  115. SGDL, 1,
  116. , 3,
  117. Offset(0x1a),
  118. IRQE, 1,
  119. IRQS, 3,
  120. , 4,
  121. , 1,
  122. UBSL, 1,
  123. DASD, 1,
  124. , 21,
  125. SMSC, 4,
  126. , 4,
  127. , 8,
  128. I3ME, 1,
  129. I3MS, 1,
  130. I4ME, 1,
  131. I4MS, 1,
  132. M3ME, 1,
  133. M3MS, 1,
  134. M4ME, 1,
  135. M4MS, 1,
  136. MIQS, 8
  137. }
  138. OperationRegion(I2CB, SystemIO, 0x15ec, 0x2)
  139. Field(I2CB, ByteAcc, NoLock, Preserve)
  140. {
  141. IND0, 8,
  142. DAT0, 8
  143. }
  144. IndexField(IND0, DAT0, ByteAcc, NoLock, Preserve)
  145. {
  146. Offset(0x7f),
  147. ACI_, 8
  148. }
  149. PowerResource(PVID, 0x0, 0x0)
  150. {
  151. Name(STAT, One)
  152. Method(_STA, 0x0, NotSerialized)
  153. {
  154. Return(STAT)
  155. }
  156. Method(_ON_, 0x0, NotSerialized)
  157. {
  158. Store(One, STAT)
  159. If(LNot(VDPW))
  160. {
  161. Sleep(0xa)
  162. Store(One, VDPW)
  163. Sleep(0xc8)
  164. Store(0x5381, S_AX)
  165. Store(0xa002, S_BX)
  166. Store(0x100, S_CX)
  167. SMPI(0x81)
  168. }
  169. }
  170. Method(_OFF, 0x0, NotSerialized)
  171. {
  172. Store(Zero, STAT)
  173. If(LEqual(SPS_, 0x3))
  174. {
  175. If(VDPW)
  176. {
  177. Store(0x5381, S_AX)
  178. Store(0xa002, S_BX)
  179. Store(0x200, S_CX)
  180. SMPI(0x81)
  181. Sleep(0xa)
  182. Store(Zero, VDPW)
  183. Sleep(0xc8)
  184. }
  185. }
  186. }
  187. }
  188. PowerResource(PRSD, 0x0, 0x0)
  189. {
  190. Method(_STA, 0x0, NotSerialized)
  191. {
  192. Return(XOr(SGCR, One, ))
  193. }
  194. Method(_ON_, 0x0, NotSerialized)
  195. {
  196. Store(0x0, SGCR)
  197. Store(0x1, SGDR)
  198. Store(0x0, SGCR)
  199. }
  200. Method(_OFF, 0x0, NotSerialized)
  201. {
  202. Store(0x0, SGCR)
  203. Store(0x1, SGDR)
  204. Store(0x1, SGCR)
  205. }
  206. }
  207. Method(HBEN, 0x0, NotSerialized)
  208. {
  209. If(VCDB)
  210. {
  211. Store(0x0, SGCL)
  212. Store(0x0, SGDL)
  213. Store(0x1, SGCL)
  214. }
  215. }
  216. Method(HBDS, 0x0, NotSerialized)
  217. {
  218. If(VCDB)
  219. {
  220. Store(0x0, SGCL)
  221. Store(0x0, SGDL)
  222. Store(0x0, SGCL)
  223. }
  224. }
  225. Scope(\_SB_)
  226. {
  227. Device(LNKA)
  228. {
  229. Name(_HID, 0xf0cd041)
  230. Name(_UID, 0x1)
  231. Method(_INI, 0x0, NotSerialized)
  232. {
  233. If(W98F)
  234. {
  235. And(DerefOf(Index(_PRS, 0x2, )), 0x7f, Index(_PRS, 0x2, ))
  236. }
  237. }
  238. Method(_STA, 0x0, NotSerialized)
  239. {
  240. If(And(\_SB_.PCI0.ISA0.PIRA, 0x80, ))
  241. {
  242. Return(0x1)
  243. }
  244. Else
  245. {
  246. Return(0xb)
  247. }
  248. }
  249. Name(_PRS, Buffer(0x6)
  250. {
  251. 0x23, 0xf8, 0xde, 0x18, 0x79, 0x00
  252. })
  253. Method(_DIS, 0x0, NotSerialized)
  254. {
  255. Or(\_SB_.PCI0.ISA0.PIRA, 0x80, \_SB_.PCI0.ISA0.PIRA)
  256. }
  257. Method(_CRS, 0x0, NotSerialized)
  258. {
  259. Name(BUFA, Buffer(0x6)
  260. {
  261. 0x23, 0x00, 0x00, 0x18, 0x79, 0x00
  262. })
  263. CreateWordField(BUFA, 0x1, IRA1)
  264. And(\_SB_.PCI0.ISA0.PIRA, 0x8f, Local0)
  265. If(LLess(Local0, 0x80))
  266. {
  267. Store(ShiftLeft(One, Local0, ), IRA1)
  268. }
  269. Return(BUFA)
  270. }
  271. Method(_SRS, 0x1, NotSerialized)
  272. {
  273. CreateWordField(Arg0, 0x1, IRA2)
  274. FindSetRightBit(IRA2, Local0)
  275. And(\_SB_.PCI0.ISA0.PIRA, 0x70, Local1)
  276. Or(Local1, Decrement(Local0), Local1)
  277. Store(Local1, \_SB_.PCI0.ISA0.PIRA)
  278. }
  279. }
  280. Device(LNKB)
  281. {
  282. Name(_HID, 0xf0cd041)
  283. Name(_UID, 0x2)
  284. Method(_INI, 0x0, NotSerialized)
  285. {
  286. If(W98F)
  287. {
  288. And(DerefOf(Index(_PRS, 0x2, )), 0x7f, Index(_PRS, 0x2, ))
  289. }
  290. }
  291. Method(_STA, 0x0, NotSerialized)
  292. {
  293. If(And(\_SB_.PCI0.ISA0.PIRB, 0x80, ))
  294. {
  295. Return(0x1)
  296. }
  297. Else
  298. {
  299. Return(0xb)
  300. }
  301. }
  302. Name(_PRS, Buffer(0x6)
  303. {
  304. 0x23, 0xf8, 0xde, 0x18, 0x79, 0x00
  305. })
  306. Method(_DIS, 0x0, NotSerialized)
  307. {
  308. Or(\_SB_.PCI0.ISA0.PIRB, 0x80, \_SB_.PCI0.ISA0.PIRB)
  309. }
  310. Method(_CRS, 0x0, NotSerialized)
  311. {
  312. Name(BUFB, Buffer(0x6)
  313. {
  314. 0x23, 0x00, 0x00, 0x18, 0x79, 0x00
  315. })
  316. CreateWordField(BUFB, 0x1, IRB1)
  317. And(\_SB_.PCI0.ISA0.PIRB, 0x8f, Local0)
  318. If(LLess(Local0, 0x80))
  319. {
  320. Store(ShiftLeft(One, Local0, ), IRB1)
  321. }
  322. Return(BUFB)
  323. }
  324. Method(_SRS, 0x1, NotSerialized)
  325. {
  326. CreateWordField(Arg0, 0x1, IRB2)
  327. FindSetRightBit(IRB2, Local0)
  328. And(\_SB_.PCI0.ISA0.PIRB, 0x70, Local1)
  329. Or(Local1, Decrement(Local0), Local1)
  330. Store(Local1, \_SB_.PCI0.ISA0.PIRB)
  331. }
  332. }
  333. Device(LNKC)
  334. {
  335. Name(_HID, 0xf0cd041)
  336. Name(_UID, 0x3)
  337. Method(_INI, 0x0, NotSerialized)
  338. {
  339. If(W98F)
  340. {
  341. And(DerefOf(Index(_PRS, 0x2, )), 0x7f, Index(_PRS, 0x2, ))
  342. }
  343. }
  344. Method(_STA, 0x0, NotSerialized)
  345. {
  346. If(And(\_SB_.PCI0.ISA0.PIRC, 0x80, ))
  347. {
  348. Return(0x1)
  349. }
  350. Else
  351. {
  352. Return(0xb)
  353. }
  354. }
  355. Name(_PRS, Buffer(0x6)
  356. {
  357. 0x23, 0xf8, 0xde, 0x18, 0x79, 0x00
  358. })
  359. Method(_DIS, 0x0, NotSerialized)
  360. {
  361. Or(\_SB_.PCI0.ISA0.PIRC, 0x80, \_SB_.PCI0.ISA0.PIRC)
  362. }
  363. Method(_CRS, 0x0, NotSerialized)
  364. {
  365. Name(BUFC, Buffer(0x6)
  366. {
  367. 0x23, 0x00, 0x00, 0x18, 0x79, 0x00
  368. })
  369. CreateWordField(BUFC, 0x1, IRC1)
  370. And(\_SB_.PCI0.ISA0.PIRC, 0x8f, Local0)
  371. If(LLess(Local0, 0x80))
  372. {
  373. Store(ShiftLeft(One, Local0, ), IRC1)
  374. }
  375. Return(BUFC)
  376. }
  377. Method(_SRS, 0x1, NotSerialized)
  378. {
  379. CreateWordField(Arg0, 0x1, IRC2)
  380. FindSetRightBit(IRC2, Local0)
  381. And(\_SB_.PCI0.ISA0.PIRC, 0x70, Local1)
  382. Or(Local1, Decrement(Local0), Local1)
  383. Store(Local1, \_SB_.PCI0.ISA0.PIRC)
  384. }
  385. }
  386. Device(LNKD)
  387. {
  388. Name(_HID, 0xf0cd041)
  389. Name(_UID, 0x4)
  390. Method(_INI, 0x0, NotSerialized)
  391. {
  392. If(W98F)
  393. {
  394. And(DerefOf(Index(_PRS, 0x2, )), 0x7f, Index(_PRS, 0x2, ))
  395. }
  396. }
  397. Method(_STA, 0x0, NotSerialized)
  398. {
  399. If(And(\_SB_.PCI0.ISA0.PIRD, 0x80, ))
  400. {
  401. Return(0x1)
  402. }
  403. Else
  404. {
  405. Return(0xb)
  406. }
  407. }
  408. Name(_PRS, Buffer(0x6)
  409. {
  410. 0x23, 0xf8, 0xde, 0x18, 0x79, 0x00
  411. })
  412. Method(_DIS, 0x0, NotSerialized)
  413. {
  414. Or(\_SB_.PCI0.ISA0.PIRD, 0x80, \_SB_.PCI0.ISA0.PIRD)
  415. }
  416. Method(_CRS, 0x0, NotSerialized)
  417. {
  418. Name(BUFD, Buffer(0x6)
  419. {
  420. 0x23, 0x00, 0x00, 0x18, 0x79, 0x00
  421. })
  422. CreateWordField(BUFD, 0x1, IRD1)
  423. And(\_SB_.PCI0.ISA0.PIRD, 0x8f, Local0)
  424. If(LLess(Local0, 0x80))
  425. {
  426. Store(ShiftLeft(One, Local0, ), IRD1)
  427. }
  428. Return(BUFD)
  429. }
  430. Method(_SRS, 0x1, NotSerialized)
  431. {
  432. CreateWordField(Arg0, 0x1, IRD2)
  433. FindSetRightBit(IRD2, Local0)
  434. And(\_SB_.PCI0.ISA0.PIRD, 0x70, Local1)
  435. Or(Local1, Decrement(Local0), Local1)
  436. Store(Local1, \_SB_.PCI0.ISA0.PIRD)
  437. }
  438. }
  439. Device(LID0)
  440. {
  441. Name(_HID, 0xd0cd041)
  442. Method(_LID, 0x0, NotSerialized)
  443. {
  444. Return(PLPL)
  445. }
  446. Method(_PRW, 0x0, NotSerialized)
  447. {
  448. If(W98F)
  449. {
  450. Return(Package(0x2)
  451. {
  452. 0xb,
  453. 0x4
  454. })
  455. }
  456. Else
  457. {
  458. Return(Package(0x2)
  459. {
  460. 0xb,
  461. 0x3
  462. })
  463. }
  464. }
  465. Method(_PSW, 0x1, NotSerialized)
  466. {
  467. If(Arg0)
  468. {
  469. Store(One, \_SB_.PCI0.ISA0.EC0_.HWLO)
  470. }
  471. Else
  472. {
  473. Store(Zero, \_SB_.PCI0.ISA0.EC0_.HWLO)
  474. }
  475. }
  476. }
  477. Device(SLPB)
  478. {
  479. Name(_HID, 0xe0cd041)
  480. Name(_PRW, Package(0x2)
  481. {
  482. 0x9,
  483. 0x3
  484. })
  485. Method(_PSW, 0x1, NotSerialized)
  486. {
  487. If(Arg0)
  488. {
  489. Store(One, \_SB_.PCI0.ISA0.EC0_.HWFN)
  490. Store(One, \_SB_.PCI0.ISA0.EC0_.HWEK)
  491. }
  492. Else
  493. {
  494. Store(Zero, \_SB_.PCI0.ISA0.EC0_.HWFN)
  495. Store(Zero, \_SB_.PCI0.ISA0.EC0_.HWEK)
  496. }
  497. }
  498. }
  499. Name(ICMD, Buffer(0xe)
  500. {
  501. 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0xef, 0x00, 0x00, 0x00, 0x00, 0x00,
  502. 0x00, 0xf5
  503. })
  504. CreateByteField(ICMD, 0x5, IDC0)
  505. CreateByteField(ICMD, 0xc, IDC1)
  506. Name(ICMC, Buffer(0x7)
  507. {
  508. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xe1
  509. })
  510. CreateByteField(ICMC, 0x5, ICC0)
  511. Name(BGTM, Buffer(0x14)
  512. {
  513. })
  514. CreateDWordField(BGTM, 0x0, GTP0)
  515. CreateDWordField(BGTM, 0x4, GTD0)
  516. CreateDWordField(BGTM, 0x8, GTP1)
  517. CreateDWordField(BGTM, 0xc, GTD1)
  518. CreateDWordField(BGTM, 0x10, GTMF)
  519. Device(PCI0)
  520. {
  521. Name(_HID, 0x30ad041)
  522. Name(_ADR, 0x0)
  523. OperationRegion(X000, PCI_Config, 0x0, 0x100)
  524. Field(X000, DWordAcc, NoLock, Preserve)
  525. {
  526. Offset(0x4f),
  527. , 7,
  528. XPLD, 1
  529. }
  530. Field(X000, DWordAcc, NoLock, Preserve)
  531. {
  532. Offset(0x7a),
  533. CREN, 1,
  534. , 7
  535. }
  536. Name(_PRW, Package(0x2)
  537. {
  538. 0xb,
  539. 0x3
  540. })
  541. Method(_PSW, 0x1, NotSerialized)
  542. {
  543. If(Arg0)
  544. {
  545. Store(One, \_SB_.PCI0.ISA0.EC0_.HWPM)
  546. }
  547. Else
  548. {
  549. Store(Zero, \_SB_.PCI0.ISA0.EC0_.HWPM)
  550. }
  551. }
  552. Method(_CRS, 0x0, NotSerialized)
  553. {
  554. Name(TLCB, Buffer(0x88)
  555. {
  556. 0x88, 0x0d, 0x00, 0x02, 0x0d, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0x00,
  557. 0x00, 0x00, 0x00, 0x01, 0x47, 0x01, 0xf8, 0x0c, 0xf8, 0x0c, 0x01, 0x08,
  558. 0x88, 0x0d, 0x00, 0x01, 0x0c, 0x03, 0x00, 0x00, 0x00, 0x00, 0xf7, 0x0c,
  559. 0x00, 0x00, 0xf8, 0x0c, 0x88, 0x0d, 0x00, 0x01, 0x0c, 0x03, 0x00, 0x00,
  560. 0x00, 0x0d, 0xff, 0xff, 0x00, 0x00, 0x00, 0xf3, 0x87, 0x17, 0x00, 0x00,
  561. 0x0c, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0a, 0x00, 0xff, 0xff,
  562. 0x0b, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x87, 0x17,
  563. 0x00, 0x00, 0x0c, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x0c, 0x00,
  564. 0xff, 0xff, 0x0e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x02, 0x00,
  565. 0x87, 0x17, 0x00, 0x00, 0x0c, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  566. 0x10, 0x00, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  567. 0xf0, 0xff, 0x79, 0x00
  568. })
  569. CreateDWordField(TLCB, 0x5c, MW1N)
  570. CreateDWordField(TLCB, 0x60, MW1X)
  571. CreateDWordField(TLCB, 0x68, MW1L)
  572. CreateDWordField(TLCB, 0x76, MW2N)
  573. CreateDWordField(TLCB, 0x7a, MW2X)
  574. CreateDWordField(TLCB, 0x82, MW2L)
  575. Store(FRAS, MW1N)
  576. Store(Add(Subtract(MW1X, MW1N, ), 0x1, ), MW1L)
  577. Store(TOMP, MW2N)
  578. Store(Add(Subtract(MW2X, MW2N, ), 0x1, ), MW2L)
  579. Return(TLCB)
  580. }
  581. Name(_PRT, Package(0x5)
  582. {
  583. Package(0x4)
  584. {
  585. 0x1ffff,
  586. 0x3,
  587. \_SB_.LNKD,
  588. 0x0
  589. },
  590. Package(0x4)
  591. {
  592. 0x2ffff,
  593. 0x0,
  594. \_SB_.LNKA,
  595. 0x0
  596. },
  597. Package(0x4)
  598. {
  599. 0x2ffff,
  600. 0x1,
  601. \_SB_.LNKB,
  602. 0x0
  603. },
  604. Package(0x4)
  605. {
  606. 0x3ffff,
  607. 0x0,
  608. \_SB_.LNKA,
  609. 0x0
  610. },
  611. Package(0x4)
  612. {
  613. 0x5ffff,
  614. 0x0,
  615. \_SB_.LNKB,
  616. 0x0
  617. }
  618. })
  619. Method(_INI, 0x0, NotSerialized)
  620. {
  621. If(LEqual(SCMP(\_OS_, "Microsoft Windows"), Zero))
  622. {
  623. Store(One, W98F)
  624. }
  625. Else
  626. {
  627. Store(Zero, W98F)
  628. }
  629. If(PXDN)
  630. {
  631. And(PXDN, 0xffff0000, Local0)
  632. Add(Local0, 0xffff, Index(DerefOf(Index(_PRT, 0x0, )), 0x0, ))
  633. Add(Local0, 0x0, \_SB_.PCI0.ISA0._ADR)
  634. Add(Local0, 0x1, \_SB_.PCI0.IDE0._ADR)
  635. Add(Local0, 0x2, \_SB_.PCI0.USB0._ADR)
  636. Add(Local0, 0x3, \_SB_.PCI0.PM00._ADR)
  637. }
  638. Else
  639. {
  640. Fatal(0x2, 0x90000002, 0x0)
  641. }
  642. }
  643. Device(VID0)
  644. {
  645. Name(_ADR, 0x30000)
  646. Name(_PR0, Package(0x1)
  647. {
  648. PVID
  649. })
  650. Name(_PR1, Package(0x1)
  651. {
  652. PVID
  653. })
  654. Name(_PR2, Package(0x1)
  655. {
  656. PVID
  657. })
  658. Method(VSWT, 0x0, NotSerialized)
  659. {
  660. If(\PVID._STA())
  661. {
  662. Store(0x5381, S_AX)
  663. Store(0x1000, S_BX)
  664. Store(0x0, S_CX)
  665. SMPI(0x81)
  666. And(S_CL, 0x1, Local0)
  667. And(ESI1, 0x1, Local1)
  668. And(S_CH, 0x7, Local2)
  669. And(Local0, Local1, Local3)
  670. If(Local3)
  671. {
  672. If(LEqual(0x4, Local2))
  673. {
  674. Store(0x100, Local4)
  675. }
  676. Else
  677. {
  678. Store(0x400, Local4)
  679. }
  680. }
  681. Else
  682. {
  683. If(LEqual(0x2, Local2))
  684. {
  685. Store(0x300, Local4)
  686. }
  687. Else
  688. {
  689. If(LEqual(0x3, Local2))
  690. {
  691. Store(0x100, Local4)
  692. }
  693. Else
  694. {
  695. Store(0x200, Local4)
  696. }
  697. }
  698. }
  699. Store(0x5381, S_AX)
  700. Store(0x1001, S_BX)
  701. Store(Local4, S_CX)
  702. SMPI(0x81)
  703. }
  704. }
  705. Method(VEXP, 0x0, NotSerialized)
  706. {
  707. If(\PVID._STA())
  708. {
  709. If(VCDE)
  710. {
  711. Store(0x79, Local1)
  712. }
  713. Else
  714. {
  715. Store(0x1, Local1)
  716. }
  717. Store(0x5381, S_AX)
  718. Store(0x1003, S_BX)
  719. Store(Local1, S_CH)
  720. SMPI(0x81)
  721. }
  722. }
  723. Method(VECC, 0x0, NotSerialized)
  724. {
  725. If(\PVID._STA())
  726. {
  727. If(VCDH)
  728. {
  729. Store(0x5381, S_AX)
  730. Store(0x2, S_BX)
  731. Store(0x200, S_CX)
  732. SMPI(0x81)
  733. And(S_CH, 0x30, Local0)
  734. Store(0x5381, S_AX)
  735. Store(0x1000, S_BX)
  736. Store(0x0, S_CX)
  737. SMPI(0x81)
  738. And(S_CH, 0x7, Local1)
  739. If(Local0)
  740. {
  741. If(LEqual(Local1, 0x1))
  742. {
  743. Store(0x5381, S_AX)
  744. Store(0xa001, S_BX)
  745. Store(0x200, S_CX)
  746. SMPI(0x81)
  747. }
  748. }
  749. Else
  750. {
  751. If(LEqual(Local1, 0x2))
  752. {
  753. Store(0x5381, S_AX)
  754. Store(0xa001, S_BX)
  755. Store(0x100, S_CX)
  756. SMPI(0x81)
  757. }
  758. }
  759. }
  760. }
  761. }
  762. }
  763. Device(CBS0)
  764. {
  765. Name(_ADR, 0x20000)
  766. OperationRegion(X200, PCI_Config, 0x0, 0x100)
  767. Field(X200, DWordAcc, NoLock, Preserve)
  768. {
  769. Offset(0x40),
  770. SVID, 16,
  771. SSID, 16,
  772. LGDC, 32,
  773. Offset(0x80),
  774. SYSC, 32,
  775. Offset(0x91),
  776. CCTL, 8
  777. }
  778. Method(_INI, 0x0, NotSerialized)
  779. {
  780. Store(Zero, LGDC)
  781. And(CCTL, 0x7f, CCTL)
  782. Or(SYSC, 0x1, SYSC)
  783. }
  784. Method(DWAK, 0x1, NotSerialized)
  785. {
  786. If(LEqual(Arg0, 0x3))
  787. {
  788. ISID()
  789. }
  790. }
  791. Method(ISID, 0x0, NotSerialized)
  792. {
  793. And(SYSC, 0xffffffdf, SYSC)
  794. Store(0x1014, SVID)
  795. Store(0x92, SSID)
  796. Or(SYSC, 0x20, SYSC)
  797. }
  798. Name(_PRW, Package(0x2)
  799. {
  800. 0xb,
  801. 0x3
  802. })
  803. }
  804. Device(CBS1)
  805. {
  806. Name(_ADR, 0x20001)
  807. OperationRegion(X201, PCI_Config, 0x0, 0x100)
  808. Field(X201, DWordAcc, NoLock, Preserve)
  809. {
  810. Offset(0x40),
  811. SVID, 16,
  812. SSID, 16,
  813. LGDC, 32,
  814. Offset(0x80),
  815. SYSC, 32,
  816. Offset(0x91),
  817. CCTL, 8
  818. }
  819. Method(_INI, 0x0, NotSerialized)
  820. {
  821. Store(Zero, LGDC)
  822. And(CCTL, 0x7f, CCTL)
  823. Or(SYSC, 0x1, SYSC)
  824. }
  825. Method(DWAK, 0x1, NotSerialized)
  826. {
  827. If(LEqual(Arg0, 0x3))
  828. {
  829. ISID()
  830. }
  831. }
  832. Method(ISID, 0x0, NotSerialized)
  833. {
  834. And(SYSC, 0xffffffdf, SYSC)
  835. Store(0x1014, SVID)
  836. Store(0x92, SSID)
  837. Or(SYSC, 0x20, SYSC)
  838. }
  839. Name(_PRW, Package(0x2)
  840. {
  841. 0xb,
  842. 0x3
  843. })
  844. }
  845. Device(ISA0)
  846. {
  847. Name(_ADR, 0x10000)
  848. OperationRegion(PIRQ, PCI_Config, 0x60, 0x60)
  849. Field(PIRQ, AnyAcc, NoLock, Preserve)
  850. {
  851. PIRA, 8,
  852. PIRB, 8,
  853. PIRC, 8,
  854. PIRD, 8,
  855. Offset(0x16),
  856. CH00, 3,
  857. , 4,
  858. FE00, 1,
  859. CH01, 3,
  860. , 4,
  861. FE01, 1,
  862. Offset(0x22),
  863. P21E, 3,
  864. , 5,
  865. Offset(0x50),
  866. GCR0, 1,
  867. GCR1, 1,
  868. , 1,
  869. , 1,
  870. GCR4, 1,
  871. GCR5, 1,
  872. GCR6, 1,
  873. , 1,
  874. , 1,
  875. , 1,
  876. , 1,
  877. GCRB, 1,
  878. GCRC, 1,
  879. , 1,
  880. , 1,
  881. , 1,
  882. , 16,
  883. Offset(0x60)
  884. }
  885. OperationRegion(SIO_, SystemIO, 0x2e, 0x2)
  886. Field(SIO_, ByteAcc, NoLock, Preserve)
  887. {
  888. INDX, 8,
  889. DATA, 8
  890. }
  891. IndexField(INDX, DATA, ByteAcc, NoLock, Preserve)
  892. {
  893. FER_, 8,
  894. FAR_, 8,
  895. PTR_, 8,
  896. FCR_, 8,
  897. PCR_, 8,
  898. , 8,
  899. PMC_, 8,
  900. TUP_, 8,
  901. SID_, 8,
  902. ASC_, 8,
  903. S0LA, 8,
  904. S0CF, 8,
  905. S1LA, 8,
  906. S1CF, 8,
  907. , 16,
  908. S0HA, 8,
  909. S1HA, 8,
  910. SCF0, 8,
  911. Offset(0x18),
  912. SCF1, 8,
  913. , 16,
  914. PNP0, 8,
  915. PNP1, 8,
  916. Offset(0x40),
  917. SCF2, 8,
  918. PNP2, 8,
  919. PBAL, 8,
  920. PBAH, 8,
  921. U1AL, 8,
  922. U1AH, 8,
  923. U2AL, 8,
  924. U2AH, 8,
  925. FBAL, 8,
  926. FBAH, 8,
  927. SBAL, 8,
  928. SBAH, 8,
  929. IRQ1, 8,
  930. IRQ2, 8,
  931. IRQ3, 8,
  932. PNP3, 8,
  933. SCF3, 8,
  934. CLK_, 8
  935. }
  936. Method(WS87, 0x1, NotSerialized)
  937. {
  938. Store(Arg0, DATA)
  939. While(LNot(LEqual(DATA, Arg0)))
  940. {
  941. Store(Arg0, DATA)
  942. Store(Arg0, DATA)
  943. }
  944. }
  945. PowerResource(PSIO, 0x0, 0x0)
  946. {
  947. Name(PSTS, 0x1)
  948. Method(_STA, 0x0, NotSerialized)
  949. {
  950. Return(PSTS)
  951. }
  952. Method(_ON_, 0x0, NotSerialized)
  953. {
  954. And(PTR_, 0xfe, Local0)
  955. Store(Local0, PTR_)
  956. WS87(Local0)
  957. Store(0x1, PSTS)
  958. }
  959. Method(_OFF, 0x0, NotSerialized)
  960. {
  961. Store(0x0, PSTS)
  962. }
  963. }
  964. Device(FDC0)
  965. {
  966. Name(_HID, 0x7d041)
  967. Name(_PR0, Package(0x1)
  968. {
  969. PSIO
  970. })
  971. Name(DRQD, 0x0)
  972. Method(_STA, 0x0, NotSerialized)
  973. {
  974. Store(\_SB_.PCI0.PM00.XFE_, Local0)
  975. If(Local0)
  976. {
  977. Return(0xf)
  978. }
  979. Else
  980. {
  981. Return(0xd)
  982. }
  983. }
  984. Method(_DIS, 0x0, NotSerialized)
  985. {
  986. And(PNP2, 0x80, Local0)
  987. Store(Local0, PNP2)
  988. WS87(Local0)
  989. Store(Zero, \_SB_.PCI0.PM00.XFE_)
  990. Store(Zero, DRQD)
  991. \_SB_.PCI0.DOCK.SDCM()
  992. }
  993. Method(_CRS, 0x0, NotSerialized)
  994. {
  995. Name(FCRS, Buffer(0x18)
  996. {
  997. 0x47, 0x01, 0xf0, 0x03, 0xf0, 0x03, 0x01, 0x06, 0x47, 0x01, 0xf7, 0x03,
  998. 0xf7, 0x03, 0x01, 0x01, 0x22, 0x40, 0x00, 0x2a, 0x04, 0x00, 0x79, 0x00
  999. })
  1000. Store(0x4, DRQD)
  1001. Return(FCRS)
  1002. }
  1003. Name(_PRS, Buffer(0x18)
  1004. {
  1005. 0x47, 0x01, 0xf0, 0x03, 0xf0, 0x03, 0x01, 0x06, 0x47, 0x01, 0xf7, 0x03,
  1006. 0xf7, 0x03, 0x01, 0x01, 0x22, 0x40, 0x00, 0x2a, 0x04, 0x00, 0x79, 0x00
  1007. })
  1008. Method(_SRS, 0x1, NotSerialized)
  1009. {
  1010. And(FBAL, 0x1, Local0)
  1011. Or(Local0, 0xfc, Local0)
  1012. Store(Local0, FBAL)
  1013. WS87(Local0)
  1014. And(FBAH, 0x3, Local0)
  1015. Store(Local0, FBAH)
  1016. WS87(Local0)
  1017. And(PNP2, 0x80, Local0)
  1018. Or(Local0, 0x36, Local0)
  1019. Store(Local0, PNP2)
  1020. WS87(Local0)
  1021. If(And(FER_, 0x8, Local1))
  1022. {
  1023. }
  1024. Else
  1025. {
  1026. Or(FER_, 0x8, Local1)
  1027. Store(Local1, FER_)
  1028. WS87(Local1)
  1029. }
  1030. Store(Zero, \_SB_.PCI0.PM00.XFA_)
  1031. Store(One, \_SB_.PCI0.PM00.XFE_)
  1032. Store(0x4, DRQD)
  1033. \_SB_.PCI0.DOCK.SDCM()
  1034. }
  1035. Name(_FDI, Package(0x13)
  1036. {
  1037. 0x1,
  1038. 0x4,
  1039. 0x4f,
  1040. 0x0,
  1041. 0x12,
  1042. 0x0,
  1043. 0x1,
  1044. 0x0,
  1045. 0xd1,
  1046. 0x2,
  1047. 0x25,
  1048. 0x2,
  1049. 0x12,
  1050. 0x1b,
  1051. 0xff,
  1052. 0x65,
  1053. 0xf6,
  1054. 0xf,
  1055. 0x4
  1056. })
  1057. Device(FDD0)
  1058. {
  1059. Name(_ADR, 0x0)
  1060. Method(_STA, 0x0, NotSerialized)
  1061. {
  1062. Store(\_SB_.PCI0.ISA0.EC0_.GUID(), Local0)
  1063. If(LEqual(Local0, 0x0))
  1064. {
  1065. Return(0xb)
  1066. }
  1067. Else
  1068. {
  1069. If(LEqual(Local0, 0x1))
  1070. {
  1071. Return(0xb)
  1072. }
  1073. Else
  1074. {
  1075. If(LEqual(Local0, 0x5))
  1076. {
  1077. Return(0xb)
  1078. }
  1079. Else
  1080. {
  1081. If(LEqual(Local0, 0x9))
  1082. {
  1083. Return(0xb)
  1084. }
  1085. Else
  1086. {
  1087. If(LEqual(Local0, 0xd))
  1088. {
  1089. Return(0xb)
  1090. }
  1091. Else
  1092. {
  1093. Return(0x0)
  1094. }
  1095. }
  1096. }
  1097. }
  1098. }
  1099. }
  1100. Method(_LCK, 0x1, NotSerialized)
  1101. {
  1102. \_SB_.PCI0.ISA0.EC0_.LCKB(Arg0)
  1103. }
  1104. Method(_EJ0, 0x1, NotSerialized)
  1105. {
  1106. If(Arg0)
  1107. {
  1108. \_SB_.PCI0.ISA0.EC0_.BEJ_()
  1109. }
  1110. }
  1111. }
  1112. }
  1113. Device(UAR1)
  1114. {
  1115. Name(_HID, 0x105d041)
  1116. Name(_PR0, Package(0x2)
  1117. {
  1118. PSIO,
  1119. PRSD
  1120. })
  1121. Name(_PRW, Package(0x3)
  1122. {
  1123. 0xa,
  1124. 0x3,
  1125. PRSD
  1126. })
  1127. Method(_PSW, 0x1, NotSerialized)
  1128. {
  1129. If(Arg0)
  1130. {
  1131. }
  1132. Else
  1133. {
  1134. }
  1135. }
  1136. Method(_STA, 0x0, NotSerialized)
  1137. {
  1138. If(And(FER_, 0x2, ))
  1139. {
  1140. Return(0xf)
  1141. }
  1142. Else
  1143. {
  1144. Return(0x5)
  1145. }
  1146. }
  1147. Method(_DIS, 0x0, NotSerialized)
  1148. {
  1149. And(FER_, 0xfd, Local0)
  1150. Store(Local0, FER_)
  1151. WS87(Local0)
  1152. Store(Zero, \_SB_.PCI0.PM00.XU1E)
  1153. }
  1154. Method(_CRS, 0x0, NotSerialized)
  1155. {
  1156. Name(BUFF, Buffer(0xd)
  1157. {
  1158. 0x47, 0x01, 0xf8, 0x03, 0xf8, 0x03, 0x01, 0x08, 0x22, 0x10, 0x00, 0x79,
  1159. 0x00
  1160. })
  1161. CreateWordField(BUFF, 0x2, U1MN)
  1162. CreateWordField(BUFF, 0x4, U1MX)
  1163. CreateWordField(BUFF, 0x9, U1IQ)
  1164. ShiftLeft(And(U1AL, 0xfe, ), 0x2, Local0)
  1165. Store(Local0, U1MN)
  1166. Store(Local0, U1MX)
  1167. If(And(PNP1, 0x1, ))
  1168. {
  1169. Store(0x8, U1IQ)
  1170. }
  1171. Return(BUFF)
  1172. }
  1173. Name(_PRS, Buffer(0x37)
  1174. {
  1175. 0x31, 0x00, 0x47, 0x01, 0xf8, 0x03, 0xf8, 0x03, 0x01, 0x08, 0x22, 0x10,
  1176. 0x00, 0x31, 0x01, 0x47, 0x01, 0xf8, 0x02, 0xf8, 0x02, 0x01, 0x08, 0x22,
  1177. 0x08, 0x00, 0x31, 0x02, 0x47, 0x01, 0xe8, 0x03, 0xe8, 0x03, 0x01, 0x08,
  1178. 0x22, 0x10, 0x00, 0x31, 0x02, 0x47, 0x01, 0xe8, 0x02, 0xe8, 0x02, 0x01,
  1179. 0x08, 0x22, 0x08, 0x00, 0x38, 0x79, 0x00
  1180. })
  1181. Method(_SRS, 0x1, NotSerialized)
  1182. {
  1183. CreateWordField(Arg0, 0x2, IOAR)
  1184. CreateWordField(Arg0, 0x9, IRQM)
  1185. If(LEqual(IOAR, 0x3f8))
  1186. {
  1187. Store(0xfe, Local0)
  1188. Store(0x0, Local1)
  1189. }
  1190. Else
  1191. {
  1192. If(LEqual(IOAR, 0x2f8))
  1193. {
  1194. Store(0xbe, Local0)
  1195. Store(0x1, Local1)
  1196. }
  1197. Else
  1198. {
  1199. If(LEqual(IOAR, 0x3e8))
  1200. {
  1201. Store(0xfa, Local0)
  1202. Store(0x7, Local1)
  1203. }
  1204. Else
  1205. {
  1206. If(LEqual(IOAR, 0x2e8))
  1207. {
  1208. Store(0xba, Local0)
  1209. Store(0x5, Local1)
  1210. }
  1211. Else
  1212. {
  1213. Fatal(0x2, 0x90000002, 0x0)
  1214. }
  1215. }
  1216. }
  1217. }
  1218. And(U1AH, 0x3, Local2)
  1219. Store(Local2, U1AH)
  1220. WS87(Local2)
  1221. And(U1AL, 0x1, Local2)
  1222. Or(Local0, Local2, Local0)
  1223. Store(Local0, U1AL)
  1224. WS87(Local0)
  1225. Store(Local1, \_SB_.PCI0.PM00.XU1A)
  1226. And(PNP1, 0xf0, Local0)
  1227. If(LEqual(IRQM, 0x10))
  1228. {
  1229. Or(Local0, 0x4, Local0)
  1230. }
  1231. Else
  1232. {
  1233. If(LEqual(IRQM, 0x8))
  1234. {
  1235. Or(Local0, 0x3, Local0)
  1236. }
  1237. Else
  1238. {
  1239. Fatal(0x2, 0x90000002, 0x0)
  1240. }
  1241. }
  1242. Store(Local0, PNP1)
  1243. WS87(Local0)
  1244. Or(FER_, 0x2, Local0)
  1245. Store(Local0, FER_)
  1246. WS87(Local0)
  1247. Store(One, \_SB_.PCI0.PM00.XU1E)
  1248. }
  1249. }
  1250. Device(LPT_)
  1251. {
  1252. Name(_HID, 0x4d041)
  1253. Name(_PR0, Package(0x1)
  1254. {
  1255. PSIO
  1256. })
  1257. Method(_STA, 0x0, NotSerialized)
  1258. {
  1259. If(And(PCR_, 0x5, Local1))
  1260. {
  1261. Return(Zero)
  1262. }
  1263. Else
  1264. {
  1265. If(And(FER_, 0x1, ))
  1266. {
  1267. Return(0xf)
  1268. }
  1269. Else
  1270. {
  1271. Return(0x5)
  1272. }
  1273. }
  1274. }
  1275. Method(_DIS, 0x0, NotSerialized)
  1276. {
  1277. And(FER_, 0xfe, Local0)
  1278. Store(Local0, FER_)
  1279. WS87(Local0)
  1280. Store(Zero, \_SB_.PCI0.PM00.XPE_)
  1281. }
  1282. Method(_CRS, 0x0, NotSerialized)
  1283. {
  1284. Name(BUFF, Buffer(0xd)
  1285. {
  1286. 0x47, 0x01, 0xbc, 0x03, 0xbc, 0x03, 0x01, 0x03, 0x22, 0x80, 0x00, 0x79,
  1287. 0x00
  1288. })
  1289. CreateWordField(BUFF, 0x2, L1MN)
  1290. CreateWordField(BUFF, 0x4, L1MX)
  1291. CreateByteField(BUFF, 0x6, L1AL)
  1292. CreateByteField(BUFF, 0x7, L1LN)
  1293. CreateWordField(BUFF, 0x9, L1IQ)
  1294. If(And(PCR_, 0x5, ))
  1295. {
  1296. Store(0x0, L1MN)
  1297. Store(0x0, L1MX)
  1298. Store(0x0, L1AL)
  1299. Store(0x0, L1LN)
  1300. Store(0x0, L1IQ)
  1301. Return(BUFF)
  1302. }
  1303. And(PBAL, 0xff, Local0)
  1304. If(LEqual(Local0, 0xef))
  1305. {
  1306. }
  1307. Else
  1308. {
  1309. If(LEqual(Local0, 0xde))
  1310. {
  1311. Store(0x378, L1MN)
  1312. Store(0x378, L1MX)
  1313. }
  1314. Else
  1315. {
  1316. If(LEqual(Local0, 0x9e))
  1317. {
  1318. Store(0x278, L1MN)
  1319. Store(0x278, L1MX)
  1320. }
  1321. Else
  1322. {
  1323. Fatal(0x2, 0x90000002, 0x0)
  1324. }
  1325. }
  1326. }
  1327. And(PNP0, 0xf0, Local1)
  1328. If(LEqual(Local1, 0x0))
  1329. {
  1330. Store(0x0, L1IQ)
  1331. }
  1332. Else
  1333. {
  1334. If(LEqual(Local1, 0x50))
  1335. {
  1336. Store(0x20, L1IQ)
  1337. }
  1338. Else
  1339. {
  1340. If(LEqual(Local1, 0x70))
  1341. {
  1342. }
  1343. Else
  1344. {
  1345. Fatal(0x2, 0x90000002, 0x0)
  1346. }
  1347. }
  1348. }
  1349. Return(BUFF)
  1350. }
  1351. Name(_PRS, Buffer(0x4b)
  1352. {
  1353. 0x30, 0x47, 0x01, 0xbc, 0x03, 0xbc, 0x03, 0x01, 0x03, 0x22, 0x80, 0x00,
  1354. 0x30, 0x47, 0x01, 0x78, 0x03, 0x78, 0x03, 0x01, 0x08, 0x22, 0x80, 0x00,
  1355. 0x30, 0x47, 0x01, 0x78, 0x02, 0x78, 0x02, 0x01, 0x08, 0x22, 0x20, 0x00,
  1356. 0x30, 0x47, 0x01, 0xbc, 0x03, 0xbc, 0x03, 0x01, 0x03, 0x22, 0x00, 0x00,
  1357. 0x30, 0x47, 0x01, 0x78, 0x03, 0x78, 0x03, 0x01, 0x08, 0x22, 0x00, 0x00,
  1358. 0x30, 0x47, 0x01, 0x78, 0x02, 0x78, 0x02, 0x01, 0x08, 0x22, 0x00, 0x00,
  1359. 0x38, 0x79, 0x00
  1360. })
  1361. Method(_SRS, 0x1, NotSerialized)
  1362. {
  1363. CreateWordField(Arg0, 0x2, IOAR)
  1364. CreateWordField(Arg0, 0x9, IRQM)
  1365. If(LEqual(IOAR, 0x3bc))
  1366. {
  1367. Store(0xef, Local0)
  1368. Store(0x0, Local1)
  1369. }
  1370. Else
  1371. {
  1372. If(LEqual(IOAR, 0x378))
  1373. {
  1374. Store(0xde, Local0)
  1375. Store(0x1, Local1)
  1376. }
  1377. Else
  1378. {
  1379. If(LEqual(IOAR, 0x278))
  1380. {
  1381. Store(0x9e, Local0)
  1382. Store(0x2, Local1)
  1383. }
  1384. Else
  1385. {
  1386. Fatal(0x2, 0x90000002, 0x0)
  1387. }
  1388. }
  1389. }
  1390. And(PBAH, 0x3, Local2)
  1391. Store(Local2, PBAH)
  1392. WS87(Local2)
  1393. Store(Local0, PBAL)
  1394. WS87(Local0)
  1395. Store(Local1, \_SB_.PCI0.PM00.XPA_)
  1396. And(PNP0, 0xf, Local0)
  1397. If(LEqual(IRQM, 0x20))
  1398. {
  1399. Or(Local0, 0x50, Local0)
  1400. }
  1401. Else
  1402. {
  1403. If(LEqual(IRQM, 0x80))
  1404. {
  1405. Or(Local0, 0x70, Local0)
  1406. }
  1407. Else
  1408. {
  1409. If(LEqual(IRQM, Zero))
  1410. {
  1411. }
  1412. }
  1413. }
  1414. Store(Local0, PNP0)
  1415. WS87(Local0)
  1416. And(PCR_, 0xfa, Local0)
  1417. Store(Local0, PCR_)
  1418. WS87(Local0)
  1419. Or(FER_, 0x1, Local0)
  1420. Store(Local0, FER_)
  1421. WS87(Local0)
  1422. Store(One, \_SB_.PCI0.PM00.XPE_)
  1423. }
  1424. }
  1425. Device(ECP_)
  1426. {
  1427. Name(_HID, 0x104d041)
  1428. Name(_PR0, Package(0x1)
  1429. {
  1430. PSIO
  1431. })
  1432. Name(DRQD, 0x0)
  1433. Method(_STA, 0x0, NotSerialized)
  1434. {
  1435. And(PCR_, 0x5, Local1)
  1436. If(LEqual(Local1, 0x4))
  1437. {
  1438. If(And(FER_, 0x1, ))
  1439. {
  1440. Return(0xf)
  1441. }
  1442. Else
  1443. {
  1444. Return(0x5)
  1445. }
  1446. }
  1447. Else
  1448. {
  1449. Return(Zero)
  1450. }
  1451. }
  1452. Method(_DIS, 0x0, NotSerialized)
  1453. {
  1454. And(FER_, 0xfe, Local0)
  1455. Store(Local0, FER_)
  1456. WS87(Local0)
  1457. Store(Zero, DRQD)
  1458. \_SB_.PCI0.DOCK.SDCM()
  1459. Store(Zero, \_SB_.PCI0.PM00.XPE_)
  1460. }
  1461. Method(_CRS, 0x0, NotSerialized)
  1462. {
  1463. Name(BUFF, Buffer(0x10)
  1464. {
  1465. 0x47, 0x01, 0xbc, 0x03, 0xbc, 0x03, 0x01, 0x03, 0x22, 0x80, 0x00, 0x2a,
  1466. 0x08, 0x00, 0x79, 0x00
  1467. })
  1468. CreateWordField(BUFF, 0x2, ECMN)
  1469. CreateWordField(BUFF, 0x4, ECMX)
  1470. CreateByteField(BUFF, 0x6, ECAL)
  1471. CreateByteField(BUFF, 0x7, ECLN)
  1472. CreateWordField(BUFF, 0x9, ECIQ)
  1473. CreateWordField(BUFF, 0xc, ECDQ)
  1474. If(LNot(And(PCR_, 0x4, )))
  1475. {
  1476. Store(0x0, ECMN)
  1477. Store(0x0, ECMX)
  1478. Store(0x0, ECAL)
  1479. Store(0x0, ECLN)
  1480. Store(0x0, ECIQ)
  1481. Store(0x0, ECDQ)
  1482. Return(BUFF)
  1483. }
  1484. And(PBAL, 0xff, Local0)
  1485. If(LEqual(Local0, 0xef))
  1486. {
  1487. }
  1488. Else
  1489. {
  1490. If(LEqual(Local0, 0xde))
  1491. {
  1492. Store(0x378, ECMN)
  1493. Store(0x378, ECMX)
  1494. }
  1495. Else
  1496. {
  1497. If(LEqual(Local0, 0x9e))
  1498. {
  1499. Store(0x278, ECMN)
  1500. Store(0x278, ECMX)
  1501. }
  1502. Else
  1503. {
  1504. Fatal(0x2, 0x90000002, 0x0)
  1505. }
  1506. }
  1507. }
  1508. And(PNP0, 0xf0, Local1)
  1509. If(LEqual(Local1, 0x50))
  1510. {
  1511. Store(0x20, ECIQ)
  1512. }
  1513. Else
  1514. {
  1515. If(LEqual(Local1, 0x70))
  1516. {
  1517. }
  1518. Else
  1519. {
  1520. Fatal(0x2, 0x90000002, 0x0)
  1521. }
  1522. }
  1523. And(SCF1, 0x38, Local2)
  1524. If(LEqual(Local2, 0x0))
  1525. {
  1526. Store(0x0, ECDQ)
  1527. }
  1528. Else
  1529. {
  1530. If(LEqual(Local2, 0x8))
  1531. {
  1532. Store(0x1, ECDQ)
  1533. }
  1534. Else
  1535. {
  1536. If(LEqual(Local2, 0x10))
  1537. {
  1538. Store(0x2, ECDQ)
  1539. }
  1540. Else
  1541. {
  1542. If(LEqual(Local2, 0x20))
  1543. {
  1544. }
  1545. Else
  1546. {
  1547. Fatal(0x2, 0x90000002, 0x0)
  1548. }
  1549. }
  1550. }
  1551. }
  1552. Store(ECDQ, DRQD)
  1553. Return(BUFF)
  1554. }
  1555. Name(_PRS, Buffer(0x5d)
  1556. {
  1557. 0x30, 0x47, 0x01, 0xbc, 0x03, 0xbc, 0x03, 0x01, 0x03, 0x22, 0x80, 0x00,
  1558. 0x2a, 0x0b, 0x00, 0x30, 0x47, 0x01, 0x78, 0x03, 0x78, 0x03, 0x01, 0x08,
  1559. 0x22, 0x80, 0x00, 0x2a, 0x0b, 0x00, 0x30, 0x47, 0x01, 0x78, 0x02, 0x78,
  1560. 0x02, 0x01, 0x08, 0x22, 0x20, 0x00, 0x2a, 0x0b, 0x00, 0x30, 0x47, 0x01,
  1561. 0xbc, 0x03, 0xbc, 0x03, 0x01, 0x03, 0x22, 0x80, 0x00, 0x2a, 0x00, 0x00,
  1562. 0x30, 0x47, 0x01, 0x78, 0x03, 0x78, 0x03, 0x01, 0x08, 0x22, 0x80, 0x00,
  1563. 0x2a, 0x00, 0x00, 0x30, 0x47, 0x01, 0x78, 0x02, 0x78, 0x02, 0x01, 0x08,
  1564. 0x22, 0x20, 0x00, 0x2a, 0x00, 0x00, 0x38, 0x79, 0x00
  1565. })
  1566. Method(_SRS, 0x1, NotSerialized)
  1567. {
  1568. CreateWordField(Arg0, 0x2, IOAR)
  1569. CreateWordField(Arg0, 0x9, IRQM)
  1570. CreateByteField(Arg0, 0xc, DMAM)
  1571. If(LEqual(IOAR, 0x3bc))
  1572. {
  1573. Store(0xef, Local0)
  1574. Store(0x0, Local1)
  1575. }
  1576. Else
  1577. {
  1578. If(LEqual(IOAR, 0x378))
  1579. {
  1580. Store(0xde, Local0)
  1581. Store(0x1, Local1)
  1582. }
  1583. Else
  1584. {
  1585. If(LEqual(IOAR, 0x278))
  1586. {
  1587. Store(0x9e, Local0)
  1588. Store(0x2, Local1)
  1589. }
  1590. Else
  1591. {
  1592. Fatal(0x2, 0x90000002, 0x0)
  1593. }
  1594. }
  1595. }
  1596. And(PBAH, 0x3, Local2)
  1597. Store(Local2, PBAH)
  1598. WS87(Local2)
  1599. Store(Local0, PBAL)
  1600. WS87(Local0)
  1601. Store(Local1, \_SB_.PCI0.PM00.XPA_)
  1602. And(PNP0, 0xf, Local0)
  1603. If(LEqual(IRQM, 0x20))
  1604. {
  1605. Or(Local0, 0x50, Local0)
  1606. }
  1607. Else
  1608. {
  1609. If(LEqual(IRQM, 0x80))
  1610. {
  1611. Or(Local0, 0x70, Local0)
  1612. }
  1613. Else
  1614. {
  1615. Fatal(0x2, 0x90000002, 0x0)
  1616. }
  1617. }
  1618. Store(Local0, PNP0)
  1619. WS87(Local0)
  1620. And(SCF1, 0xc7, Local1)
  1621. If(LEqual(DMAM, 0x1))
  1622. {
  1623. Or(Local1, 0x8, Local1)
  1624. }
  1625. Else
  1626. {
  1627. If(LEqual(DMAM, 0x2))
  1628. {
  1629. Or(Local1, 0x10, Local1)
  1630. }
  1631. Else
  1632. {
  1633. If(LEqual(DMAM, 0x8))
  1634. {
  1635. Or(Local1, 0x20, Local1)
  1636. }
  1637. }
  1638. }
  1639. Store(Local1, SCF1)
  1640. WS87(Local1)
  1641. Store(DMAM, DRQD)
  1642. \_SB_.PCI0.DOCK.SDCM()
  1643. Or(PCR_, 0x4, Local0)
  1644. Store(Local0, PCR_)
  1645. WS87(Local0)
  1646. Or(FER_, 0x1, Local0)
  1647. Store(Local0, FER_)
  1648. WS87(Local0)
  1649. Store(One, \_SB_.PCI0.PM00.XPE_)
  1650. }
  1651. }
  1652. Device(FIR_)
  1653. {
  1654. Name(_HID, 0x71004d24)
  1655. Name(_CID, 0x1105d041)
  1656. Name(_PR0, Package(0x1)
  1657. {
  1658. PSIO
  1659. })
  1660. Name(DRQD, 0x0)
  1661. Method(_STA, 0x0, NotSerialized)
  1662. {
  1663. If(And(FER_, 0x4, ))
  1664. {
  1665. Return(0xf)
  1666. }
  1667. Else
  1668. {
  1669. Return(0x5)
  1670. }
  1671. }
  1672. Method(_DIS, 0x0, NotSerialized)
  1673. {
  1674. And(FER_, 0xfb, Local0)
  1675. Store(Local0, FER_)
  1676. WS87(Local0)
  1677. Store(Zero, DRQD)
  1678. \_SB_.PCI0.DOCK.SDCM()
  1679. Store(Zero, \_SB_.PCI0.PM00.XU2E)
  1680. }
  1681. Method(_CRS, 0x0, NotSerialized)
  1682. {
  1683. Name(BUFF, Buffer(0x10)
  1684. {
  1685. 0x47, 0x01, 0xf8, 0x03, 0xf8, 0x03, 0x01, 0x08, 0x22, 0x10, 0x00, 0x2a,
  1686. 0x08, 0x00, 0x79, 0x00
  1687. })
  1688. CreateWordField(BUFF, 0x2, IRMN)
  1689. CreateWordField(BUFF, 0x4, IRMX)
  1690. CreateWordField(BUFF, 0x9, IRIQ)
  1691. CreateByteField(BUFF, 0xc, IRDR)
  1692. ShiftLeft(And(U2AL, 0xfe, ), 0x2, Local0)
  1693. Store(Local0, IRMN)
  1694. Store(Local0, IRMX)
  1695. If(LEqual(And(PNP1, 0xf0, ), 0x70))
  1696. {
  1697. Store(0x80, IRIQ)
  1698. }
  1699. Else
  1700. {
  1701. If(LEqual(And(PNP1, 0xf0, ), 0x50))
  1702. {
  1703. Store(0x20, IRIQ)
  1704. }
  1705. Else
  1706. {
  1707. If(LEqual(And(PNP1, 0xf0, ), 0x40))
  1708. {
  1709. Store(0x10, IRIQ)
  1710. }
  1711. Else
  1712. {
  1713. If(LEqual(And(PNP1, 0xf0, ), 0x30))
  1714. {
  1715. Store(0x8, IRIQ)
  1716. }
  1717. Else
  1718. {
  1719. Store(0x0, IRIQ)
  1720. }
  1721. }
  1722. }
  1723. }
  1724. And(PNP3, 0x7, Local1)
  1725. If(LEqual(Local1, 0x0))
  1726. {
  1727. Store(0x0, IRDR)
  1728. }
  1729. Else
  1730. {
  1731. If(LEqual(Local1, 0x1))
  1732. {
  1733. Store(0x1, IRDR)
  1734. }
  1735. Else
  1736. {
  1737. If(LEqual(Local1, 0x2))
  1738. {
  1739. Store(0x2, IRDR)
  1740. }
  1741. Else
  1742. {
  1743. If(LEqual(Local1, 0x4))
  1744. {
  1745. Store(0x8, IRDR)
  1746. }
  1747. Else
  1748. {
  1749. Store(Zero, IRDR)
  1750. }
  1751. }
  1752. }
  1753. }
  1754. Store(IRDR, DRQD)
  1755. Return(BUFF)
  1756. }
  1757. Name(_PRS, Buffer(0x103)
  1758. {
  1759. 0x31, 0x00, 0x47, 0x01, 0xf8, 0x03, 0xf8, 0x03, 0x01, 0x08, 0x22, 0x10,
  1760. 0x00, 0x2a, 0x0b, 0x00, 0x31, 0x01, 0x47, 0x01, 0xf8, 0x02, 0xf8, 0x02,
  1761. 0x01, 0x08, 0x22, 0x08, 0x00, 0x2a, 0x0b, 0x00, 0x31, 0x02, 0x47, 0x01,
  1762. 0xe8, 0x03, 0xe8, 0x03, 0x01, 0x08, 0x22, 0x10, 0x00, 0x2a, 0x0b, 0x00,
  1763. 0x31, 0x02, 0x47, 0x01, 0xe8, 0x02, 0xe8, 0x02, 0x01, 0x08, 0x22, 0x08,
  1764. 0x00, 0x2a, 0x0b, 0x00, 0x31, 0x02, 0x47, 0x01, 0xf8, 0x03, 0xf8, 0x03,
  1765. 0x01, 0x08, 0x22, 0xa8, 0x00, 0x2a, 0x0b, 0x00, 0x31, 0x02, 0x47, 0x01,
  1766. 0xf8, 0x02, 0xf8, 0x02, 0x01, 0x08, 0x22, 0xb0, 0x00, 0x2a, 0x0b, 0x00,
  1767. 0x31, 0x02, 0x47, 0x01, 0xe8, 0x03, 0xe8, 0x03, 0x01, 0x08, 0x22, 0xa8,
  1768. 0x00, 0x2a, 0x0b, 0x00, 0x31, 0x02, 0x47, 0x01, 0xe8, 0x02, 0xe8, 0x02,
  1769. 0x01, 0x08, 0x22, 0xb0, 0x00, 0x2a, 0x0b, 0x00, 0x31, 0x02, 0x47, 0x01,
  1770. 0xf8, 0x03, 0xf8, 0x03, 0x01, 0x08, 0x22, 0x10, 0x00, 0x2a, 0x00, 0x00,
  1771. 0x31, 0x02, 0x47, 0x01, 0xf8, 0x02, 0xf8, 0x02, 0x01, 0x08, 0x22, 0x08,
  1772. 0x00, 0x2a, 0x00, 0x00, 0x31, 0x02, 0x47, 0x01, 0xe8, 0x03, 0xe8, 0x03,
  1773. 0x01, 0x08, 0x22, 0x10, 0x00, 0x2a, 0x00, 0x00, 0x31, 0x02, 0x47, 0x01,
  1774. 0xe8, 0x02, 0xe8, 0x02, 0x01, 0x08, 0x22, 0x08, 0x00, 0x2a, 0x00, 0x00,
  1775. 0x31, 0x02, 0x47, 0x01, 0xf8, 0x03, 0xf8, 0x03, 0x01, 0x08, 0x22, 0xa8,
  1776. 0x00, 0x2a, 0x00, 0x00, 0x31, 0x02, 0x47, 0x01, 0xf8, 0x02, 0xf8, 0x02,
  1777. 0x01, 0x08, 0x22, 0xb0, 0x00, 0x2a, 0x00, 0x00, 0x31, 0x02, 0x47, 0x01,
  1778. 0xe8, 0x03, 0xe8, 0x03, 0x01, 0x08, 0x22, 0xa8, 0x00, 0x2a, 0x00, 0x00,
  1779. 0x31, 0x02, 0x47, 0x01, 0xe8, 0x02, 0xe8, 0x02, 0x01, 0x08, 0x22, 0xb0,
  1780. 0x00, 0x2a, 0x00, 0x00, 0x38, 0x79, 0x00
  1781. })
  1782. Method(_SRS, 0x1, NotSerialized)
  1783. {
  1784. CreateWordField(Arg0, 0x2, IRIO)
  1785. CreateWordField(Arg0, 0x9, IRIQ)
  1786. CreateByteField(Arg0, 0xc, IRDR)
  1787. If(LEqual(IRIO, 0x3f8))
  1788. {
  1789. Store(0xfe, Local0)
  1790. Store(0x0, Local1)
  1791. }
  1792. Else
  1793. {
  1794. If(LEqual(IRIO, 0x2f8))
  1795. {
  1796. Store(0xbe, Local0)
  1797. Store(0x1, Local1)
  1798. }
  1799. Else
  1800. {
  1801. If(LEqual(IRIO, 0x3e8))
  1802. {
  1803. Store(0xfa, Local0)
  1804. Store(0x7, Local1)
  1805. }
  1806. Else
  1807. {
  1808. If(LEqual(IRIO, 0x2e8))
  1809. {
  1810. Store(0xba, Local0)
  1811. Store(0x5, Local1)
  1812. }
  1813. Else
  1814. {
  1815. Fatal(0x2, 0x90000002, 0x0)
  1816. }
  1817. }
  1818. }
  1819. }
  1820. And(U2AH, 0x3, Local2)
  1821. Store(Local2, U2AH)
  1822. WS87(Local2)
  1823. And(U2AL, 0x1, Local2)
  1824. Or(Local0, Local2, Local0)
  1825. Store(Local0, U2AL)
  1826. WS87(Local0)
  1827. Store(Local1, \_SB_.PCI0.PM00.XU2A)
  1828. And(PNP1, 0xf, Local0)
  1829. If(LEqual(IRIQ, 0x80))
  1830. {
  1831. Or(Local0, 0x70, Local0)
  1832. }
  1833. Else
  1834. {
  1835. If(LEqual(IRIQ, 0x20))
  1836. {
  1837. Or(Local0, 0x50, Local0)
  1838. }
  1839. Else
  1840. {
  1841. If(LEqual(IRIQ, 0x10))
  1842. {
  1843. Or(Local0, 0x40, Local0)
  1844. }
  1845. Else
  1846. {
  1847. If(LEqual(IRIQ, 0x8))
  1848. {
  1849. Or(Local0, 0x30, Local0)
  1850. }
  1851. Else
  1852. {
  1853. Fatal(0x2, 0x90000002, 0x0)
  1854. }
  1855. }
  1856. }
  1857. }
  1858. Store(Local0, PNP1)
  1859. WS87(Local0)
  1860. If(LEqual(IRDR, 0x0))
  1861. {
  1862. Store(0x0, Local0)
  1863. }
  1864. Else
  1865. {
  1866. If(LEqual(IRDR, 0x1))
  1867. {
  1868. Store(0x1, Local0)
  1869. }
  1870. Else
  1871. {
  1872. If(LEqual(IRDR, 0x2))
  1873. {
  1874. Store(0x2, Local0)
  1875. }
  1876. Else
  1877. {
  1878. If(LEqual(IRDR, 0x8))
  1879. {
  1880. Store(0x4, Local0)
  1881. }
  1882. Else
  1883. {
  1884. Fatal(0x2, 0x90000002, 0x0)
  1885. }
  1886. }
  1887. }
  1888. }
  1889. And(PNP3, 0xc0, Local1)
  1890. Or(Local1, Local0, Local1)
  1891. Store(Local1, PNP3)
  1892. WS87(Local1)
  1893. Store(IRDR, DRQD)
  1894. \_SB_.PCI0.DOCK.SDCM()
  1895. Or(FER_, 0x4, Local0)
  1896. Store(Local0, FER_)
  1897. WS87(Local0)
  1898. Store(One, \_SB_.PCI0.PM00.XU2E)
  1899. }
  1900. }
  1901. Device(CS10)
  1902. {
  1903. Name(_HID, 0x1000630e)
  1904. Method(_STA, 0x0, NotSerialized)
  1905. {
  1906. Acquire(MSMI, 0xffff)
  1907. Store(0x5381, S_AX)
  1908. Store(0x1a00, S_BX)
  1909. Store(0x0, S_CX)
  1910. Store(0x0, S_DX)
  1911. Store(0x0, SESI)
  1912. Store(0x0, SEDI)
  1913. SMPI(0x81)
  1914. If(LEqual(S_BX, 0x103))
  1915. {
  1916. If(LEqual(S_CL, 0x1))
  1917. {
  1918. Store(0xf, Local7)
  1919. }
  1920. Else
  1921. {
  1922. Store(0x5, Local7)
  1923. }
  1924. }
  1925. Else
  1926. {
  1927. Store(0x0, Local7)
  1928. }
  1929. Release(MSMI)
  1930. Return(Local7)
  1931. }
  1932. Method(_DIS, 0x0, NotSerialized)
  1933. {
  1934. Acquire(MSMI, 0xffff)
  1935. Store(0x5381, S_AX)
  1936. Store(0x1a01, S_BX)
  1937. Store(0x100, S_CX)
  1938. Store(0x0, S_DX)
  1939. Store(0xffff, SESI)
  1940. Store(0x0, SEDI)
  1941. SMPI(0x81)
  1942. Release(MSMI)
  1943. }
  1944. Method(_CRS, 0x0, NotSerialized)
  1945. {
  1946. Acquire(MSMI, 0xffff)
  1947. Store(0x5381, S_AX)
  1948. Store(0x1a00, S_BX)
  1949. Store(0x0, S_CX)
  1950. Store(0x0, S_DX)
  1951. Store(0x0, SESI)
  1952. Store(0x0, SEDI)
  1953. SMPI(0x81)
  1954. Store(EDI1, Local0)
  1955. Release(MSMI)
  1956. If(LEqual(Local0, 0x3))
  1957. {
  1958. Return(Buffer(0xa)
  1959. {
  1960. 0x47, 0x01, 0xf0, 0x0f, 0xf0, 0x0f, 0x01, 0x08, 0x79, 0x00
  1961. })
  1962. }
  1963. Else
  1964. {
  1965. If(LEqual(Local0, 0x2))
  1966. {
  1967. Return(Buffer(0xa)
  1968. {
  1969. 0x47, 0x01, 0x88, 0x0e, 0x88, 0x0e, 0x01, 0x08, 0x79, 0x00
  1970. })
  1971. }
  1972. Else
  1973. {
  1974. If(LEqual(Local0, 0x1))
  1975. {
  1976. Return(Buffer(0xa)
  1977. {
  1978. 0x47, 0x01, 0x38, 0x0d, 0x38, 0x0d, 0x01, 0x08, 0x79, 0x00
  1979. })
  1980. }
  1981. Else
  1982. {
  1983. Return(Buffer(0xa)
  1984. {
  1985. 0x47, 0x01, 0x38, 0x05, 0x38, 0x05, 0x01, 0x08, 0x79, 0x00
  1986. })
  1987. }
  1988. }
  1989. }
  1990. }
  1991. Name(_PRS, Buffer(0x27)
  1992. {
  1993. 0x30, 0x47, 0x01, 0x38, 0x05, 0x38, 0x05, 0x01, 0x08, 0x30, 0x47, 0x01,
  1994. 0x38, 0x0d, 0x38, 0x0d, 0x01, 0x08, 0x30, 0x47, 0x01, 0x88, 0x0e, 0x88,
  1995. 0x0e, 0x01, 0x08, 0x30, 0x47, 0x01, 0xf0, 0x0f, 0xf0, 0x0f, 0x01, 0x08,
  1996. 0x38, 0x79, 0x00
  1997. })
  1998. Method(_SRS, 0x1, NotSerialized)
  1999. {
  2000. CreateWordField(Arg0, 0x2, IOAR)
  2001. If(LEqual(IOAR, 0x538))
  2002. {
  2003. Store(0x0, Local0)
  2004. }
  2005. Else
  2006. {
  2007. If(LEqual(IOAR, 0xd38))
  2008. {
  2009. Store(0x1, Local0)
  2010. }
  2011. Else
  2012. {
  2013. If(LEqual(IOAR, 0xe88))
  2014. {
  2015. Store(0x2, Local0)
  2016. }
  2017. Else
  2018. {
  2019. If(LEqual(IOAR, 0xff0))
  2020. {
  2021. Store(0x3, Local0)
  2022. }
  2023. Else
  2024. {
  2025. Fatal(0x2, 0x90000002, 0x0)
  2026. }
  2027. }
  2028. }
  2029. }
  2030. Acquire(MSMI, 0xffff)
  2031. Store(0x5381, S_AX)
  2032. Store(0x1a01, S_BX)
  2033. Store(0x101, S_CX)
  2034. Store(0x0, S_DX)
  2035. Store(0xffff, SESI)
  2036. Store(0x0, SEDI)
  2037. Store(Local0, EDI1)
  2038. SMPI(0x81)
  2039. Release(MSMI)
  2040. }
  2041. }
  2042. Device(CS00)
  2043. {
  2044. Name(_HID, 0x630e)
  2045. Name(DRQD, 0x0)
  2046. Method(_STA, 0x0, NotSerialized)
  2047. {
  2048. Acquire(MSMI, 0xffff)
  2049. Store(0x5381, S_AX)
  2050. Store(0x1a00, S_BX)
  2051. Store(0x0, S_CX)
  2052. Store(0x0, S_DX)
  2053. Store(0x0, SESI)
  2054. Store(0x0, SEDI)
  2055. SMPI(0x81)
  2056. If(LEqual(S_BX, 0x103))
  2057. {
  2058. If(LEqual(S_CL, 0x1))
  2059. {
  2060. Store(0x5381, S_AX)
  2061. Store(0x1a02, S_BX)
  2062. Store(0x0, S_CX)
  2063. Store(0x0, S_DX)
  2064. Store(0x0, SESI)
  2065. Store(0x0, SEDI)
  2066. SMPI(0x81)
  2067. If(LEqual(S_CL, 0x1))
  2068. {
  2069. Store(0xf, Local7)
  2070. }
  2071. Else
  2072. {
  2073. Store(0x5, Local7)
  2074. }
  2075. }
  2076. Else
  2077. {
  2078. Store(0x5, Local7)
  2079. }
  2080. }
  2081. Else
  2082. {
  2083. Store(0x0, Local7)
  2084. }
  2085. Release(MSMI)
  2086. Return(Local7)
  2087. }
  2088. Method(_DIS, 0x0, NotSerialized)
  2089. {
  2090. Acquire(MSMI, 0xffff)
  2091. Store(0x5381, S_AX)
  2092. Store(0x1a02, S_BX)
  2093. Store(0x0, S_CX)
  2094. Store(0x0, S_DX)
  2095. Store(0x0, SESI)
  2096. Store(0x0, SEDI)
  2097. SMPI(0x81)
  2098. Store(0x5381, S_AX)
  2099. Store(0x1a03, S_BX)
  2100. Store(0x100, S_CX)
  2101. Store(0x0, S_DX)
  2102. SMPI(0x81)
  2103. Store(Zero, DRQD)
  2104. \_SB_.PCI0.DOCK.SDCM()
  2105. Release(MSMI)
  2106. }
  2107. Method(_CRS, 0x0, NotSerialized)
  2108. {
  2109. Name(CCRS, Buffer(0x23)
  2110. {
  2111. 0x47, 0x01, 0x30, 0x05, 0x30, 0x05, 0x01, 0x08, 0x47, 0x01, 0x88, 0x03,
  2112. 0x88, 0x03, 0x01, 0x04, 0x47, 0x01, 0x20, 0x02, 0x20, 0x02, 0x01, 0x14,
  2113. 0x22, 0x20, 0x00, 0x2a, 0x01, 0x00, 0x2a, 0x02, 0x00, 0x79, 0x00
  2114. })
  2115. CreateWordField(CCRS, 0x2, WSMN)
  2116. CreateWordField(CCRS, 0x4, WSMX)
  2117. CreateWordField(CCRS, 0x12, SBMN)
  2118. CreateWordField(CCRS, 0x14, SBMX)
  2119. CreateWordField(CCRS, 0x19, CSIQ)
  2120. CreateByteField(CCRS, 0x1c, CSDP)
  2121. CreateByteField(CCRS, 0x1f, CSDC)
  2122. Acquire(MSMI, 0xffff)
  2123. Store(0x5381, S_AX)
  2124. Store(0x1a02, S_BX)
  2125. Store(0x0, S_CX)
  2126. Store(0x0, S_DX)
  2127. Store(0x0, SESI)
  2128. Store(0x0, SEDI)
  2129. SMPI(0x81)
  2130. Store(ESI1, Local0)
  2131. Store(ESI2, Local1)
  2132. And(Local1, 0xf, Local1)
  2133. ShiftRight(ESI2, 0x4, Local2)
  2134. Store(EDI1, Local3)
  2135. ShiftRight(Local3, 0x4, Local4)
  2136. And(Local3, 0xf, Local3)
  2137. And(Local4, 0xf, Local4)
  2138. If(LEqual(Local3, 0x3))
  2139. {
  2140. Store(0xf40, WSMN)
  2141. Store(0xf40, WSMX)
  2142. }
  2143. Else
  2144. {
  2145. If(LEqual(Local3, 0x2))
  2146. {
  2147. Store(0xe80, WSMN)
  2148. Store(0xe80, WSMX)
  2149. }
  2150. Else
  2151. {
  2152. If(LEqual(Local3, 0x1))
  2153. {
  2154. Store(0x604, WSMN)
  2155. Store(0x604, WSMX)
  2156. }
  2157. Else
  2158. {
  2159. If(LEqual(Local3, 0x0))
  2160. {
  2161. }
  2162. Else
  2163. {
  2164. Fatal(0x2, 0x90000002, 0x0)
  2165. }
  2166. }
  2167. }
  2168. }
  2169. If(LEqual(Local4, 0x0))
  2170. {
  2171. Store(0x220, SBMN)
  2172. Store(0x220, SBMX)
  2173. }
  2174. Else
  2175. {
  2176. If(LEqual(Local4, 0x2))
  2177. {
  2178. Store(0x240, SBMN)
  2179. Store(0x240, SBMX)
  2180. }
  2181. Else
  2182. {
  2183. If(LEqual(Local4, 0x4))
  2184. {
  2185. Store(0x260, SBMN)
  2186. Store(0x260, SBMX)
  2187. }
  2188. Else
  2189. {
  2190. If(LEqual(Local4, 0x6))
  2191. {
  2192. Store(0x280, SBMN)
  2193. Store(0x280, SBMX)
  2194. }
  2195. Else
  2196. {
  2197. Fatal(0x2, 0x90000002, 0x0)
  2198. }
  2199. }
  2200. }
  2201. }
  2202. If(LEqual(Local0, 0xff))
  2203. {
  2204. Store(Zero, CSIQ)
  2205. }
  2206. Else
  2207. {
  2208. Store(0x1, CSIQ)
  2209. ShiftLeft(CSIQ, Local0, CSIQ)
  2210. }
  2211. If(LEqual(Local1, 0xff))
  2212. {
  2213. Store(Zero, CSDP)
  2214. }
  2215. Else
  2216. {
  2217. Store(0x1, Local6)
  2218. ShiftLeft(Local6, Local1, CSDP)
  2219. }
  2220. If(LEqual(Local2, 0xff))
  2221. {
  2222. Store(Zero, CSDC)
  2223. }
  2224. Else
  2225. {
  2226. Store(0x1, Local7)
  2227. ShiftLeft(Local7, Local2, CSDC)
  2228. }
  2229. Store(CSDP, DRQD)
  2230. Or(DRQD, CSDC, DRQD)
  2231. Release(MSMI)
  2232. Return(CCRS)
  2233. }
  2234. Name(_PRS, Buffer(0x40)
  2235. {
  2236. 0x30, 0x47, 0x01, 0x30, 0x05, 0x30, 0x05, 0x01, 0x08, 0x30, 0x47, 0x01,
  2237. 0x04, 0x06, 0x04, 0x06, 0x01, 0x08, 0x30, 0x47, 0x01, 0x80, 0x0e, 0x80,
  2238. 0x0e, 0x01, 0x08, 0x30, 0x47, 0x01, 0x40, 0x0f, 0x40, 0x0f, 0x01, 0x08,
  2239. 0x38, 0x47, 0x01, 0x88, 0x03, 0x88, 0x03, 0x01, 0x04, 0x47, 0x01, 0x20,
  2240. 0x02, 0x80, 0x02, 0x20, 0x14, 0x22, 0xa0, 0x9a, 0x2a, 0x0b, 0x00, 0x2a,
  2241. 0x0b, 0x00, 0x79, 0x00
  2242. })
  2243. Method(_SRS, 0x1, NotSerialized)
  2244. {
  2245. CreateWordField(Arg0, 0x2, SSIO)
  2246. CreateWordField(Arg0, 0x12, SBIO)
  2247. CreateWordField(Arg0, 0x19, CSIQ)
  2248. CreateByteField(Arg0, 0x1c, CSDP)
  2249. CreateByteField(Arg0, 0x1f, CSDC)
  2250. If(LEqual(SSIO, 0x530))
  2251. {
  2252. Store(0x0, Local0)
  2253. }
  2254. Else
  2255. {
  2256. If(LEqual(SSIO, 0x604))
  2257. {
  2258. Store(0x1, Local0)
  2259. }
  2260. Else
  2261. {
  2262. If(LEqual(SSIO, 0xe80))
  2263. {
  2264. Store(0x2, Local0)
  2265. }
  2266. Else
  2267. {
  2268. If(LEqual(SSIO, 0xf40))
  2269. {
  2270. Store(0x3, Local0)
  2271. }
  2272. Else
  2273. {
  2274. Fatal(0x2, 0x90000002, 0x0)
  2275. }
  2276. }
  2277. }
  2278. }
  2279. If(LEqual(SBIO, 0x220))
  2280. {
  2281. }
  2282. Else
  2283. {
  2284. If(LEqual(SBIO, 0x230))
  2285. {
  2286. Or(Local0, 0x10, Local0)
  2287. }
  2288. Else
  2289. {
  2290. If(LEqual(SBIO, 0x240))
  2291. {
  2292. Or(Local0, 0x20, Local0)
  2293. }
  2294. Else
  2295. {
  2296. If(LEqual(SBIO, 0x250))
  2297. {
  2298. Or(Local0, 0x30, Local0)
  2299. }
  2300. Else
  2301. {
  2302. If(LEqual(SBIO, 0x260))
  2303. {
  2304. Or(Local0, 0x40, Local0)
  2305. }
  2306. Else
  2307. {
  2308. If(LEqual(SBIO, 0x280))
  2309. {
  2310. Or(Local0, 0x60, Local0)
  2311. }
  2312. Else
  2313. {
  2314. Fatal(0x2, 0x90000002, 0x0)
  2315. }
  2316. }
  2317. }
  2318. }
  2319. }
  2320. }
  2321. FindSetRightBit(CSIQ, Local1)
  2322. Decrement(Local1)
  2323. FindSetRightBit(CSDP, Local4)
  2324. Decrement(Local4)
  2325. FindSetRightBit(CSDC, Local6)
  2326. Decrement(Local6)
  2327. Store(CSDP, DRQD)
  2328. Or(DRQD, CSDC, DRQD)
  2329. \_SB_.PCI0.DOCK.SDCM()
  2330. ShiftLeft(Local6, 0x4, Local6)
  2331. And(Local6, 0xf0, Local6)
  2332. Or(Local4, Local6, Local4)
  2333. Acquire(MSMI, 0xffff)
  2334. Store(0x5381, S_AX)
  2335. Store(0x1a02, S_BX)
  2336. Store(0x0, S_CX)
  2337. Store(0x0, S_DX)
  2338. Store(0x0, SESI)
  2339. Store(0x0, SEDI)
  2340. SMPI(0x81)
  2341. Store(0x5381, S_AX)
  2342. Store(0x1a03, S_BX)
  2343. And(S_CX, 0x2, S_CX)
  2344. Or(S_CX, 0x101, S_CX)
  2345. Store(0x0, S_DX)
  2346. Store(Local1, ESI1)
  2347. Store(Local4, ESI2)
  2348. Store(Local0, EDI1)
  2349. SMPI(0x81)
  2350. Store(One, \_SB_.PCI0.PM00.XA0E)
  2351. Store(One, \_SB_.PCI0.PM00.XMSS)
  2352. Release(MSMI)
  2353. }
  2354. }
  2355. Device(CS01)
  2356. {
  2357. Name(_HID, 0x100630e)
  2358. Name(_CID, 0x2fb0d041)
  2359. Method(_STA, 0x0, NotSerialized)
  2360. {
  2361. Acquire(MSMI, 0xffff)
  2362. Store(0x5381, S_AX)
  2363. Store(0x1104, S_BX)
  2364. Store(0x8000, S_CX)
  2365. SMPI(0x81)
  2366. If(And(S_BH, 0x1, ))
  2367. {
  2368. If(And(S_CL, 0x1, ))
  2369. {
  2370. Store(0xf, Local7)
  2371. }
  2372. Else
  2373. {
  2374. Store(0x5, Local7)
  2375. }
  2376. }
  2377. Else
  2378. {
  2379. Store(0x0, Local7)
  2380. }
  2381. Release(MSMI)
  2382. Return(Local7)
  2383. }
  2384. Method(_DIS, 0x0, NotSerialized)
  2385. {
  2386. Acquire(MSMI, 0xffff)
  2387. Store(0x5381, S_AX)
  2388. Store(0x1105, S_BX)
  2389. Store(0x8100, S_CX)
  2390. SMPI(0x81)
  2391. Release(MSMI)
  2392. }
  2393. Name(_PRS, Buffer(0xa)
  2394. {
  2395. 0x47, 0x01, 0x00, 0x02, 0x00, 0x02, 0x01, 0x08, 0x79, 0x00
  2396. })
  2397. Name(_CRS, Buffer(0xa)
  2398. {
  2399. 0x47, 0x01, 0x00, 0x02, 0x00, 0x02, 0x01, 0x08, 0x79, 0x00
  2400. })
  2401. Method(_SRS, 0x1, NotSerialized)
  2402. {
  2403. Acquire(MSMI, 0xffff)
  2404. Store(0x5381, S_AX)
  2405. Store(0x1105, S_BX)
  2406. Store(0x8101, S_CX)
  2407. SMPI(0x81)
  2408. Release(MSMI)
  2409. }
  2410. }
  2411. Device(CS03)
  2412. {
  2413. Name(_HID, 0x300630e)
  2414. Method(_STA, 0x0, NotSerialized)
  2415. {
  2416. Acquire(MSMI, 0xffff)
  2417. Store(0x5381, S_AX)
  2418. Store(0x1a00, S_BX)
  2419. Store(0x0, S_CX)
  2420. Store(0x0, S_DX)
  2421. Store(0x0, SESI)
  2422. Store(0x0, SEDI)
  2423. SMPI(0x81)
  2424. If(LEqual(S_BX, 0x103))
  2425. {
  2426. Store(0x5381, S_AX)
  2427. Store(0x1a04, S_BX)
  2428. Store(0x0, S_CX)
  2429. Store(0x0, S_DX)
  2430. Store(0xff00, SESI)
  2431. Store(0x0, SEDI)
  2432. SMPI(0x81)
  2433. If(LEqual(S_CL, 0x1))
  2434. {
  2435. Store(0xf, Local7)
  2436. }
  2437. Else
  2438. {
  2439. Store(0x5, Local7)
  2440. }
  2441. }
  2442. Else
  2443. {
  2444. Store(0x0, Local7)
  2445. }
  2446. Release(MSMI)
  2447. Return(Local7)
  2448. }
  2449. Method(_DIS, 0x0, NotSerialized)
  2450. {
  2451. Acquire(MSMI, 0xffff)
  2452. Store(0x5381, S_AX)
  2453. Store(0x1a04, S_BX)
  2454. Store(0x0, S_CX)
  2455. Store(0x0, S_DX)
  2456. Store(0x0, SESI)
  2457. Store(0x0, SEDI)
  2458. SMPI(0x81)
  2459. Store(0x5381, S_AX)
  2460. Store(0x1a05, S_BX)
  2461. Store(0x100, S_CX)
  2462. Store(0x0, S_DX)
  2463. SMPI(0x81)
  2464. Release(MSMI)
  2465. }
  2466. Name(_PRS, Buffer(0xd)
  2467. {
  2468. 0x47, 0x01, 0x00, 0x03, 0x30, 0x03, 0x10, 0x04, 0x22, 0xa0, 0x8e, 0x79,
  2469. 0x00
  2470. })
  2471. Method(_CRS, 0x0, NotSerialized)
  2472. {
  2473. Name(TBUF, Buffer(0xd)
  2474. {
  2475. 0x47, 0x01, 0x30, 0x03, 0x30, 0x03, 0x01, 0x04, 0x22, 0x20, 0x00, 0x79,
  2476. 0x00
  2477. })
  2478. CreateWordField(TBUF, 0x2, MDMN)
  2479. CreateWordField(TBUF, 0x4, MDMX)
  2480. CreateWordField(TBUF, 0x9, MDIQ)
  2481. Acquire(MSMI, 0xffff)
  2482. Store(0x5381, S_AX)
  2483. Store(0x1a04, S_BX)
  2484. Store(0x0, S_CX)
  2485. Store(0x0, S_DX)
  2486. Store(0xff00, SESI)
  2487. Store(0x0, SEDI)
  2488. SMPI(0x81)
  2489. If(LEqual(ESI2, 0x3))
  2490. {
  2491. Store(0x330, MDMN)
  2492. Store(0x330, MDMX)
  2493. }
  2494. Else
  2495. {
  2496. If(LEqual(ESI2, 0x2))
  2497. {
  2498. Store(0x320, MDMN)
  2499. Store(0x320, MDMX)
  2500. }
  2501. Else
  2502. {
  2503. If(LEqual(ESI2, 0x1))
  2504. {
  2505. Store(0x310, MDMN)
  2506. Store(0x310, MDMX)
  2507. }
  2508. Else
  2509. {
  2510. If(LEqual(ESI2, 0x0))
  2511. {
  2512. Store(0x300, MDMN)
  2513. Store(0x300, MDMX)
  2514. }
  2515. Else
  2516. {
  2517. Fatal(0x2, 0x90000002, 0x0)
  2518. }
  2519. }
  2520. }
  2521. }
  2522. If(LGreater(ESI1, 0xf))
  2523. {
  2524. Store(Zero, MDIQ)
  2525. }
  2526. Else
  2527. {
  2528. Store(0x1, MDIQ)
  2529. ShiftLeft(MDIQ, ESI1, MDIQ)
  2530. }
  2531. Release(MSMI)
  2532. Return(TBUF)
  2533. }
  2534. Method(_SRS, 0x1, NotSerialized)
  2535. {
  2536. CreateWordField(Arg0, 0x2, MDIO)
  2537. CreateWordField(Arg0, 0x9, MDIQ)
  2538. If(LEqual(MDIO, 0x330))
  2539. {
  2540. Store(0x3, Local1)
  2541. }
  2542. Else
  2543. {
  2544. If(LEqual(MDIO, 0x320))
  2545. {
  2546. Store(0x2, Local1)
  2547. }
  2548. Else
  2549. {
  2550. If(LEqual(MDIO, 0x310))
  2551. {
  2552. Store(0x1, Local1)
  2553. }
  2554. Else
  2555. {
  2556. If(LEqual(MDIO, 0x300))
  2557. {
  2558. Store(0x0, Local1)
  2559. }
  2560. Else
  2561. {
  2562. Fatal(0x2, 0x90000002, 0x0)
  2563. }
  2564. }
  2565. }
  2566. }
  2567. FindSetRightBit(MDIQ, Local0)
  2568. Decrement(Local0)
  2569. Acquire(MSMI, 0xffff)
  2570. Store(0x5381, S_AX)
  2571. Store(0x1a04, S_BX)
  2572. Store(0x0, S_CX)
  2573. Store(0x0, S_DX)
  2574. Store(0x0, SESI)
  2575. Store(0x0, SEDI)
  2576. SMPI(0x81)
  2577. Store(0x5381, S_AX)
  2578. Store(0x1a05, S_BX)
  2579. Store(0x101, S_CX)
  2580. Store(0x0, S_DX)
  2581. Store(Local0, ESI1)
  2582. Store(Local1, ESI2)
  2583. SMPI(0x81)
  2584. Release(MSMI)
  2585. }
  2586. }
  2587. Device(MWV0)
  2588. {
  2589. Name(_HID, 0x60374d24)
  2590. Name(DRQD, 0x0)
  2591. Method(_STA, 0x0, NotSerialized)
  2592. {
  2593. Store(0x5381, S_AX)
  2594. Store(0x1802, S_BX)
  2595. Store(0x0, S_CX)
  2596. Store(0x0, S_DX)
  2597. Store(0x0, SESI)
  2598. Store(0x0, SEDI)
  2599. SMPI(0x81)
  2600. If(LEqual(S_BH, 0x1))
  2601. {
  2602. If(LEqual(S_CL, 0x1))
  2603. {
  2604. Return(0xf)
  2605. }
  2606. Else
  2607. {
  2608. Return(0x5)
  2609. }
  2610. }
  2611. Else
  2612. {
  2613. Return(0x0)
  2614. }
  2615. }
  2616. Method(_DIS, 0x0, NotSerialized)
  2617. {
  2618. Store(0x5381, S_AX)
  2619. Store(0x1802, S_BX)
  2620. Store(0x0, S_CX)
  2621. Store(0x0, S_DX)
  2622. Store(0x0, SESI)
  2623. Store(0x0, SEDI)
  2624. SMPI(0x81)
  2625. Store(0x5381, S_AX)
  2626. Store(0x1803, S_BX)
  2627. Store(0x100, S_CX)
  2628. SMPI(0x81)
  2629. Store(Zero, DRQD)
  2630. \_SB_.PCI0.DOCK.SDCM()
  2631. }
  2632. Method(_CRS, 0x0, NotSerialized)
  2633. {
  2634. Name(MVUB, Buffer(0x1b)
  2635. {
  2636. 0x47, 0x01, 0xb0, 0x0d, 0xb0, 0x0d, 0x01, 0x10, 0x47, 0x01, 0xf8, 0x03,
  2637. 0xf8, 0x03, 0x01, 0x08, 0x22, 0x10, 0x00, 0x22, 0x00, 0x04, 0x2a, 0x01,
  2638. 0x01, 0x79, 0x00
  2639. })
  2640. CreateWordField(MVUB, 0x2, MVDN)
  2641. CreateWordField(MVUB, 0x4, MVDX)
  2642. CreateWordField(MVUB, 0x14, MVDI)
  2643. CreateByteField(MVUB, 0x17, MVDD)
  2644. CreateWordField(MVUB, 0xa, MVUN)
  2645. CreateWordField(MVUB, 0xc, MVUX)
  2646. CreateByteField(MVUB, 0xe, MVUA)
  2647. CreateByteField(MVUB, 0xf, MVUL)
  2648. CreateWordField(MVUB, 0x11, MVUI)
  2649. Store(0x5381, S_AX)
  2650. Store(0x1802, S_BX)
  2651. Store(0x0, S_CX)
  2652. Store(0x0, S_DX)
  2653. Store(0x0, SESI)
  2654. Store(0x0, SEDI)
  2655. SMPI(0x81)
  2656. If(LEqual(EDI1, 0x4))
  2657. {
  2658. Store(0x130, MVDN)
  2659. Store(0x130, MVDX)
  2660. }
  2661. Else
  2662. {
  2663. If(LEqual(EDI1, 0x5))
  2664. {
  2665. Store(0x350, MVDN)
  2666. Store(0x350, MVDX)
  2667. }
  2668. Else
  2669. {
  2670. If(LEqual(EDI1, 0x6))
  2671. {
  2672. Store(0x770, MVDN)
  2673. Store(0x770, MVDX)
  2674. }
  2675. Else
  2676. {
  2677. If(LEqual(EDI1, 0x7))
  2678. {
  2679. Store(0xdb0, MVDN)
  2680. Store(0xdb0, MVDX)
  2681. }
  2682. Else
  2683. {
  2684. Fatal(0x2, 0x90000002, 0x0)
  2685. }
  2686. }
  2687. }
  2688. }
  2689. If(LGreater(ESI1, 0xf))
  2690. {
  2691. Store(Zero, MVDI)
  2692. }
  2693. Else
  2694. {
  2695. Store(0x1, Local0)
  2696. ShiftLeft(Local0, ESI1, MVDI)
  2697. }
  2698. If(LGreater(ESI2, 0x7))
  2699. {
  2700. Store(Zero, MVDD)
  2701. }
  2702. Else
  2703. {
  2704. Store(0x1, Local0)
  2705. ShiftLeft(Local0, ESI2, MVDD)
  2706. }
  2707. Store(MVDD, DRQD)
  2708. Store(0x5381, S_AX)
  2709. Store(0x1804, S_BX)
  2710. Store(0x0, S_CX)
  2711. Store(0x0, S_DX)
  2712. Store(0x0, SESI)
  2713. Store(0x0, SEDI)
  2714. SMPI(0x81)
  2715. If(LEqual(S_CL, 0x1))
  2716. {
  2717. If(LEqual(ESI2, 0x0))
  2718. {
  2719. Store(0x3f8, MVUN)
  2720. Store(0x3f8, MVUX)
  2721. }
  2722. Else
  2723. {
  2724. If(LEqual(ESI2, 0x1))
  2725. {
  2726. Store(0x2f8, MVUN)
  2727. Store(0x2f8, MVUX)
  2728. }
  2729. Else
  2730. {
  2731. If(LEqual(ESI2, 0x2))
  2732. {
  2733. Store(0x3e8, MVUN)
  2734. Store(0x3e8, MVUX)
  2735. }
  2736. Else
  2737. {
  2738. If(LEqual(ESI2, 0x3))
  2739. {
  2740. Store(0x2e8, MVUN)
  2741. Store(0x2e8, MVUX)
  2742. }
  2743. Else
  2744. {
  2745. Fatal(0x2, 0x90000002, 0x0)
  2746. }
  2747. }
  2748. }
  2749. }
  2750. If(LGreater(ESI1, 0xf))
  2751. {
  2752. Store(Zero, MVUI)
  2753. }
  2754. Else
  2755. {
  2756. Store(0x1, Local0)
  2757. ShiftLeft(Local0, ESI1, MVUI)
  2758. }
  2759. }
  2760. Else
  2761. {
  2762. Store(0x0, MVUN)
  2763. Store(0x0, MVUX)
  2764. Store(0x0, MVUA)
  2765. Store(0x0, MVUL)
  2766. Store(0x0, MVUI)
  2767. }
  2768. Return(MVUB)
  2769. }
  2770. Name(_PRS, Buffer(0x3ab)
  2771. {
  2772. 0x30, 0x47, 0x01, 0x30, 0x01, 0x30, 0x01, 0x01, 0x10, 0x47, 0x01, 0xf8,
  2773. 0x03, 0xf8, 0x03, 0x01, 0x08, 0x22, 0xb8, 0x00, 0x22, 0xb8, 0x8c, 0x2a,
  2774. 0xc3, 0x01, 0x30, 0x47, 0x01, 0x30, 0x01, 0x30, 0x01, 0x01, 0x10, 0x47,
  2775. 0x01, 0xf8, 0x02, 0xf8, 0x02, 0x01, 0x08, 0x22, 0xb8, 0x00, 0x22, 0xb8,
  2776. 0x8c, 0x2a, 0xc3, 0x01, 0x30, 0x47, 0x01, 0x30, 0x01, 0x30, 0x01, 0x01,
  2777. 0x10, 0x47, 0x01, 0xe8, 0x03, 0xe8, 0x03, 0x01, 0x08, 0x22, 0xb8, 0x00,
  2778. 0x22, 0xb8, 0x8c, 0x2a, 0xc3, 0x01, 0x30, 0x47, 0x01, 0x30, 0x01, 0x30,
  2779. 0x01, 0x01, 0x10, 0x47, 0x01, 0xe8, 0x02, 0xe8, 0x02, 0x01, 0x08, 0x22,
  2780. 0xb8, 0x00, 0x22, 0xb8, 0x8c, 0x2a, 0xc3, 0x01, 0x30, 0x47, 0x01, 0x50,
  2781. 0x03, 0x50, 0x03, 0x01, 0x10, 0x47, 0x01, 0xf8, 0x03, 0xf8, 0x03, 0x01,
  2782. 0x08, 0x22, 0xb8, 0x00, 0x22, 0xb8, 0x8c, 0x2a, 0xc3, 0x01, 0x30, 0x47,
  2783. 0x01, 0x50, 0x03, 0x50, 0x03, 0x01, 0x10, 0x47, 0x01, 0xf8, 0x02, 0xf8,
  2784. 0x02, 0x01, 0x08, 0x22, 0xb8, 0x00, 0x22, 0xb8, 0x8c, 0x2a, 0xc3, 0x01,
  2785. 0x30, 0x47, 0x01, 0x50, 0x03, 0x50, 0x03, 0x01, 0x10, 0x47, 0x01, 0xe8,
  2786. 0x03, 0xe8, 0x03, 0x01, 0x08, 0x22, 0xb8, 0x00, 0x22, 0xb8, 0x8c, 0x2a,
  2787. 0xc3, 0x01, 0x30, 0x47, 0x01, 0x50, 0x03, 0x50, 0x03, 0x01, 0x10, 0x47,
  2788. 0x01, 0xe8, 0x02, 0xe8, 0x02, 0x01, 0x08, 0x22, 0xb8, 0x00, 0x22, 0xb8,
  2789. 0x8c, 0x2a, 0xc3, 0x01, 0x30, 0x47, 0x01, 0x70, 0x07, 0x70, 0x07, 0x01,
  2790. 0x10, 0x47, 0x01, 0xf8, 0x03, 0xf8, 0x03, 0x01, 0x08, 0x22, 0xb8, 0x00,
  2791. 0x22, 0xb8, 0x8c, 0x2a, 0xc3, 0x01, 0x30, 0x47, 0x01, 0x70, 0x07, 0x70,
  2792. 0x07, 0x01, 0x10, 0x47, 0x01, 0xf8, 0x02, 0xf8, 0x02, 0x01, 0x08, 0x22,
  2793. 0xb8, 0x00, 0x22, 0xb8, 0x8c, 0x2a, 0xc3, 0x01, 0x30, 0x47, 0x01, 0x70,
  2794. 0x07, 0x70, 0x07, 0x01, 0x10, 0x47, 0x01, 0xe8, 0x03, 0xe8, 0x03, 0x01,
  2795. 0x08, 0x22, 0xb8, 0x00, 0x22, 0xb8, 0x8c, 0x2a, 0xc3, 0x01, 0x30, 0x47,
  2796. 0x01, 0x70, 0x07, 0x70, 0x07, 0x01, 0x10, 0x47, 0x01, 0xe8, 0x02, 0xe8,
  2797. 0x02, 0x01, 0x08, 0x22, 0xb8, 0x00, 0x22, 0xb8, 0x8c, 0x2a, 0xc3, 0x01,
  2798. 0x30, 0x47, 0x01, 0xb0, 0x0d, 0xb0, 0x0d, 0x01, 0x10, 0x47, 0x01, 0xf8,
  2799. 0x03, 0xf8, 0x03, 0x01, 0x08, 0x22, 0xb8, 0x00, 0x22, 0xb8, 0x8c, 0x2a,
  2800. 0xc3, 0x01, 0x30, 0x47, 0x01, 0xb0, 0x0d, 0xb0, 0x0d, 0x01, 0x10, 0x47,
  2801. 0x01, 0xf8, 0x02, 0xf8, 0x02, 0x01, 0x08, 0x22, 0xb8, 0x00, 0x22, 0xb8,
  2802. 0x8c, 0x2a, 0xc3, 0x01, 0x30, 0x47, 0x01, 0xb0, 0x0d, 0xb0, 0x0d, 0x01,
  2803. 0x10, 0x47, 0x01, 0xe8, 0x03, 0xe8, 0x03, 0x01, 0x08, 0x22, 0xb8, 0x00,
  2804. 0x22, 0xb8, 0x8c, 0x2a, 0xc3, 0x01, 0x30, 0x47, 0x01, 0xb0, 0x0d, 0xb0,
  2805. 0x0d, 0x01, 0x10, 0x47, 0x01, 0xe8, 0x02, 0xe8, 0x02, 0x01, 0x08, 0x22,
  2806. 0xb8, 0x00, 0x22, 0xb8, 0x8c, 0x2a, 0xc3, 0x01, 0x30, 0x47, 0x01, 0x30,
  2807. 0x01, 0x30, 0x01, 0x01, 0x10, 0x47, 0x01, 0xf8, 0x03, 0xf8, 0x03, 0x01,
  2808. 0x08, 0x22, 0xb8, 0x00, 0x22, 0xb8, 0x00, 0x2a, 0xc3, 0x01, 0x30, 0x47,
  2809. 0x01, 0x30, 0x01, 0x30, 0x01, 0x01, 0x10, 0x47, 0x01, 0xf8, 0x02, 0xf8,
  2810. 0x02, 0x01, 0x08, 0x22, 0xb8, 0x00, 0x22, 0xb8, 0x00, 0x2a, 0xc3, 0x01,
  2811. 0x30, 0x47, 0x01, 0x30, 0x01, 0x30, 0x01, 0x01, 0x10, 0x47, 0x01, 0xe8,
  2812. 0x03, 0xe8, 0x03, 0x01, 0x08, 0x22, 0xb8, 0x00, 0x22, 0xb8, 0x00, 0x2a,
  2813. 0xc3, 0x01, 0x30, 0x47, 0x01, 0x30, 0x01, 0x30, 0x01, 0x01, 0x10, 0x47,
  2814. 0x01, 0xe8, 0x02, 0xe8, 0x02, 0x01, 0x08, 0x22, 0xb8, 0x00, 0x22, 0xb8,
  2815. 0x00, 0x2a, 0xc3, 0x01, 0x30, 0x47, 0x01, 0x50, 0x03, 0x50, 0x03, 0x01,
  2816. 0x10, 0x47, 0x01, 0xf8, 0x03, 0xf8, 0x03, 0x01, 0x08, 0x22, 0xb8, 0x00,
  2817. 0x22, 0xb8, 0x00, 0x2a, 0xc3, 0x01, 0x30, 0x47, 0x01, 0x50, 0x03, 0x50,
  2818. 0x03, 0x01, 0x10, 0x47, 0x01, 0xf8, 0x02, 0xf8, 0x02, 0x01, 0x08, 0x22,
  2819. 0xb8, 0x00, 0x22, 0xb8, 0x00, 0x2a, 0xc3, 0x01, 0x30, 0x47, 0x01, 0x50,
  2820. 0x03, 0x50, 0x03, 0x01, 0x10, 0x47, 0x01, 0xe8, 0x03, 0xe8, 0x03, 0x01,
  2821. 0x08, 0x22, 0xb8, 0x00, 0x22, 0xb8, 0x00, 0x2a, 0xc3, 0x01, 0x30, 0x47,
  2822. 0x01, 0x50, 0x03, 0x50, 0x03, 0x01, 0x10, 0x47, 0x01, 0xe8, 0x02, 0xe8,
  2823. 0x02, 0x01, 0x08, 0x22, 0xb8, 0x00, 0x22, 0xb8, 0x00, 0x2a, 0xc3, 0x01,
  2824. 0x30, 0x47, 0x01, 0x70, 0x07, 0x70, 0x07, 0x01, 0x10, 0x47, 0x01, 0xf8,
  2825. 0x03, 0xf8, 0x03, 0x01, 0x08, 0x22, 0xb8, 0x00, 0x22, 0xb8, 0x00, 0x2a,
  2826. 0xc3, 0x01, 0x30, 0x47, 0x01, 0x70, 0x07, 0x70, 0x07, 0x01, 0x10, 0x47,
  2827. 0x01, 0xf8, 0x02, 0xf8, 0x02, 0x01, 0x08, 0x22, 0xb8, 0x00, 0x22, 0xb8,
  2828. 0x00, 0x2a, 0xc3, 0x01, 0x30, 0x47, 0x01, 0x70, 0x07, 0x70, 0x07, 0x01,
  2829. 0x10, 0x47, 0x01, 0xe8, 0x03, 0xe8, 0x03, 0x01, 0x08, 0x22, 0xb8, 0x00,
  2830. 0x22, 0xb8, 0x00, 0x2a, 0xc3, 0x01, 0x30, 0x47, 0x01, 0x70, 0x07, 0x70,
  2831. 0x07, 0x01, 0x10, 0x47, 0x01, 0xe8, 0x02, 0xe8, 0x02, 0x01, 0x08, 0x22,
  2832. 0xb8, 0x00, 0x22, 0xb8, 0x00, 0x2a, 0xc3, 0x01, 0x30, 0x47, 0x01, 0xb0,
  2833. 0x0d, 0xb0, 0x0d, 0x01, 0x10, 0x47, 0x01, 0xf8, 0x03, 0xf8, 0x03, 0x01,
  2834. 0x08, 0x22, 0xb8, 0x00, 0x22, 0xb8, 0x00, 0x2a, 0xc3, 0x01, 0x30, 0x47,
  2835. 0x01, 0xb0, 0x0d, 0xb0, 0x0d, 0x01, 0x10, 0x47, 0x01, 0xf8, 0x02, 0xf8,
  2836. 0x02, 0x01, 0x08, 0x22, 0xb8, 0x00, 0x22, 0xb8, 0x00, 0x2a, 0xc3, 0x01,
  2837. 0x30, 0x47, 0x01, 0xb0, 0x0d, 0xb0, 0x0d, 0x01, 0x10, 0x47, 0x01, 0xe8,
  2838. 0x03, 0xe8, 0x03, 0x01, 0x08, 0x22, 0xb8, 0x00, 0x22, 0xb8, 0x00, 0x2a,
  2839. 0xc3, 0x01, 0x30, 0x47, 0x01, 0xb0, 0x0d, 0xb0, 0x0d, 0x01, 0x10, 0x47,
  2840. 0x01, 0xe8, 0x02, 0xe8, 0x02, 0x01, 0x08, 0x22, 0xb8, 0x00, 0x22, 0xb8,
  2841. 0x00, 0x2a, 0xc3, 0x01, 0x30, 0x47, 0x01, 0x30, 0x01, 0x30, 0x01, 0x01,
  2842. 0x10, 0x47, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x22, 0x00, 0x00,
  2843. 0x22, 0xb8, 0x8c, 0x2a, 0xc3, 0x01, 0x30, 0x47, 0x01, 0x50, 0x03, 0x50,
  2844. 0x03, 0x01, 0x10, 0x47, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x22,
  2845. 0x00, 0x00, 0x22, 0xb8, 0x8c, 0x2a, 0xc3, 0x01, 0x30, 0x47, 0x01, 0x70,
  2846. 0x07, 0x70, 0x07, 0x01, 0x10, 0x47, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00,
  2847. 0x00, 0x22, 0x00, 0x00, 0x22, 0xb8, 0x8c, 0x2a, 0xc3, 0x01, 0x30, 0x47,
  2848. 0x01, 0xb0, 0x0d, 0xb0, 0x0d, 0x01, 0x10, 0x47, 0x01, 0x00, 0x00, 0x00,
  2849. 0x00, 0x00, 0x00, 0x22, 0x00, 0x00, 0x22, 0xb8, 0x8c, 0x2a, 0xc3, 0x01,
  2850. 0x38, 0x79, 0x00
  2851. })
  2852. Method(_SRS, 0x1, NotSerialized)
  2853. {
  2854. CreateWordField(Arg0, 0x2, MVDA)
  2855. CreateWordField(Arg0, 0xa, MVUA)
  2856. CreateWordField(Arg0, 0x11, MVUI)
  2857. CreateWordField(Arg0, 0x14, MVDI)
  2858. CreateByteField(Arg0, 0x17, MVDD)
  2859. If(LEqual(MVDA, 0x130))
  2860. {
  2861. Store(0x4, Local1)
  2862. }
  2863. Else
  2864. {
  2865. If(LEqual(MVDA, 0x350))
  2866. {
  2867. Store(0x5, Local1)
  2868. }
  2869. Else
  2870. {
  2871. If(LEqual(MVDA, 0x770))
  2872. {
  2873. Store(0x6, Local1)
  2874. }
  2875. Else
  2876. {
  2877. If(LEqual(MVDA, 0xdb0))
  2878. {
  2879. Store(0x7, Local1)
  2880. }
  2881. Else
  2882. {
  2883. Fatal(0x3, 0x90000001, 0x0)
  2884. }
  2885. }
  2886. }
  2887. }
  2888. FindSetRightBit(MVDI, Local2)
  2889. Decrement(Local2)
  2890. FindSetRightBit(MVDD, Local3)
  2891. Decrement(Local3)
  2892. Store(MVDD, DRQD)
  2893. \_SB_.PCI0.DOCK.SDCM()
  2894. Store(0x5381, S_AX)
  2895. Store(0x1802, S_BX)
  2896. Store(0x0, S_CX)
  2897. Store(0x0, S_DX)
  2898. Store(0x0, SESI)
  2899. Store(0x0, SEDI)
  2900. SMPI(0x81)
  2901. Store(Local1, EDI1)
  2902. Store(Local2, ESI1)
  2903. Store(Local3, ESI2)
  2904. Store(0x5381, S_AX)
  2905. Store(0x1803, S_BX)
  2906. Store(0x101, S_CX)
  2907. Store(0x0, S_DX)
  2908. SMPI(0x81)
  2909. Store(0x0, Local1)
  2910. Store(0x0, Local2)
  2911. Store(0xff, Local3)
  2912. If(MVUA)
  2913. {
  2914. If(MVUI)
  2915. {
  2916. If(LEqual(MVUA, 0x3f8))
  2917. {
  2918. Store(0x0, Local2)
  2919. }
  2920. Else
  2921. {
  2922. If(LEqual(MVUA, 0x2f8))
  2923. {
  2924. Store(0x1, Local2)
  2925. }
  2926. Else
  2927. {
  2928. If(LEqual(MVUA, 0x3e8))
  2929. {
  2930. Store(0x2, Local2)
  2931. }
  2932. Else
  2933. {
  2934. If(LEqual(MVUA, 0x2e8))
  2935. {
  2936. Store(0x3, Local2)
  2937. }
  2938. Else
  2939. {
  2940. Fatal(0x3, 0x90000001, 0x0)
  2941. }
  2942. }
  2943. }
  2944. }
  2945. FindSetRightBit(MVUI, Local3)
  2946. Decrement(Local3)
  2947. Store(0x1, Local1)
  2948. }
  2949. }
  2950. Store(0x5381, S_AX)
  2951. Store(0x1804, S_BX)
  2952. Store(0x0, S_CX)
  2953. Store(0x0, S_DX)
  2954. Store(0x0, SESI)
  2955. Store(0x0, SEDI)
  2956. SMPI(0x81)
  2957. Store(Local1, S_CL)
  2958. Store(Local2, ESI2)
  2959. Store(Local3, ESI1)
  2960. Store(0x5381, S_AX)
  2961. Store(0x1805, S_BX)
  2962. Store(0x1, S_CH)
  2963. Store(0x0, S_DX)
  2964. SMPI(0x81)
  2965. }
  2966. }
  2967. Device(PIC_)
  2968. {
  2969. Name(_HID, 0xd041)
  2970. Name(_CRS, Buffer(0x15)
  2971. {
  2972. 0x47, 0x01, 0x20, 0x00, 0x20, 0x00, 0x01, 0x02, 0x47, 0x01, 0xa0, 0x00,
  2973. 0xa0, 0x00, 0x01, 0x02, 0x22, 0x04, 0x00, 0x79, 0x00
  2974. })
  2975. }
  2976. Device(TIMR)
  2977. {
  2978. Name(_HID, 0x1d041)
  2979. Name(_CRS, Buffer(0xd)
  2980. {
  2981. 0x47, 0x01, 0x40, 0x00, 0x40, 0x00, 0x01, 0x04, 0x22, 0x01, 0x00, 0x79,
  2982. 0x00
  2983. })
  2984. }
  2985. Device(DMAC)
  2986. {
  2987. Name(_HID, 0x2d041)
  2988. Name(_CRS, Buffer(0x1d)
  2989. {
  2990. 0x47, 0x01, 0x00, 0x00, 0x00, 0x00, 0x01, 0x10, 0x47, 0x01, 0x80, 0x00,
  2991. 0x80, 0x00, 0x01, 0x10, 0x47, 0x01, 0xc0, 0x00, 0xc0, 0x00, 0x01, 0x20,
  2992. 0x2a, 0x10, 0x04, 0x79, 0x00
  2993. })
  2994. }
  2995. Device(SPKR)
  2996. {
  2997. Name(_HID, 0x8d041)
  2998. Name(_CRS, Buffer(0xa)
  2999. {
  3000. 0x47, 0x01, 0x61, 0x00, 0x61, 0x00, 0x01, 0x01, 0x79, 0x00
  3001. })
  3002. Method(_PS0, 0x0, NotSerialized)
  3003. {
  3004. Store(Zero, \_SB_.PCI0.ISA0.EC0_.HCMU)
  3005. }
  3006. Method(_PS3, 0x0, NotSerialized)
  3007. {
  3008. Store(One, \_SB_.PCI0.ISA0.EC0_.HCMU)
  3009. }
  3010. }
  3011. Device(MBRD)
  3012. {
  3013. Name(_HID, 0x20cd041)
  3014. Method(_CRS, 0x0, NotSerialized)
  3015. {
  3016. Name(MBRS, Buffer(0x42)
  3017. {
  3018. 0x86, 0x09, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0a, 0x00,
  3019. 0x86, 0x09, 0x00, 0x00, 0x00, 0x00, 0x0f, 0x00, 0x00, 0x00, 0x01, 0x00,
  3020. 0x86, 0x09, 0x00, 0x01, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0xee, 0x01,
  3021. 0x86, 0x09, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0x00, 0x00, 0x01, 0x00,
  3022. 0x47, 0x01, 0x92, 0x00, 0x92, 0x00, 0x01, 0x01, 0x47, 0x01, 0xd0, 0x04,
  3023. 0xd0, 0x04, 0x01, 0x02, 0x79, 0x00
  3024. })
  3025. CreateDWordField(MBRS, 0x1c, WBAS)
  3026. CreateDWordField(MBRS, 0x20, WLEN)
  3027. Subtract(TOMP, WBAS, WLEN)
  3028. Return(MBRS)
  3029. }
  3030. Method(_PS0, 0x0, NotSerialized)
  3031. {
  3032. If(W98F)
  3033. {
  3034. If(SPS_)
  3035. {
  3036. \RSTR()
  3037. }
  3038. }
  3039. }
  3040. }
  3041. Device(MPRC)
  3042. {
  3043. Name(_HID, 0x40cd041)
  3044. Name(_CRS, Buffer(0xd)
  3045. {
  3046. 0x47, 0x01, 0xf0, 0x00, 0xf0, 0x00, 0x01, 0x10, 0x22, 0x00, 0x20, 0x79,
  3047. 0x00
  3048. })
  3049. }
  3050. Device(KBD0)
  3051. {
  3052. Name(_HID, 0x303d041)
  3053. Name(_CRS, Buffer(0x15)
  3054. {
  3055. 0x47, 0x01, 0x60, 0x00, 0x60, 0x00, 0x01, 0x01, 0x47, 0x01, 0x64, 0x00,
  3056. 0x64, 0x00, 0x01, 0x01, 0x22, 0x02, 0x00, 0x79, 0x00
  3057. })
  3058. }
  3059. Device(MOU0)
  3060. {
  3061. Name(_HID, 0x80374d24)
  3062. Name(_CID, 0x130fd041)
  3063. Name(_CRS, Buffer(0x5)
  3064. {
  3065. 0x22, 0x00, 0x10, 0x79, 0x00
  3066. })
  3067. }
  3068. Device(RTC0)
  3069. {
  3070. Name(_HID, 0xbd041)
  3071. Name(_CRS, Buffer(0xd)
  3072. {
  3073. 0x47, 0x01, 0x70, 0x00, 0x70, 0x00, 0x01, 0x04, 0x22, 0x00, 0x01, 0x79,
  3074. 0x00
  3075. })
  3076. }
  3077. Device(EC0_)
  3078. {
  3079. Name(_HID, 0x90cd041)
  3080. Method(_REG, 0x2, NotSerialized)
  3081. {
  3082. If(LEqual(Arg0, 0x3))
  3083. {
  3084. Store(Arg1, H8DR)
  3085. }
  3086. }
  3087. Method(_INI, 0x0, NotSerialized)
  3088. {
  3089. Store(SNS0, TMP0)
  3090. Store(SNS1, TMP1)
  3091. Store(SNS2, TMP2)
  3092. Store(SNS3, TMP3)
  3093. Store(SNS4, TMP4)
  3094. Store(SNS5, TMP5)
  3095. Store(SNS6, TMP6)
  3096. Store(SNS7, TMP7)
  3097. If(H8DR)
  3098. {
  3099. Store(GUID(), BDEV)
  3100. }
  3101. }
  3102. Name(_CRS, Buffer(0x12)
  3103. {
  3104. 0x47, 0x01, 0x62, 0x00, 0x62, 0x00, 0x01, 0x01, 0x47, 0x01, 0x66, 0x00,
  3105. 0x66, 0x00, 0x01, 0x01, 0x79, 0x00
  3106. })
  3107. Name(_GPE, 0x9)
  3108. OperationRegion(ECOR, EmbeddedControl, 0x0, 0x100)
  3109. Field(ECOR, ByteAcc, Lock, Preserve)
  3110. {
  3111. , 1,
  3112. HCGA, 1,
  3113. HCHK, 1,
  3114. HCSK, 1,
  3115. HCNP, 1,
  3116. HCHB, 1,
  3117. HCAC, 1,
  3118. HCTM, 1,
  3119. HCDX, 1,
  3120. HCKX, 1,
  3121. HCSM, 1,
  3122. HCID, 1,
  3123. HCWP, 1,
  3124. HCAD, 1,
  3125. HCDW, 1,
  3126. , 1,
  3127. , 8,
  3128. , 8,
  3129. , 1,
  3130. HSCL, 1,
  3131. HSLB, 1,
  3132. HSSP, 1,
  3133. HSPS, 1,
  3134. HSRM, 1,
  3135. HSDC, 1,
  3136. HSPO, 1,
  3137. HSPA, 1,
  3138. HSHA, 1,
  3139. , 1,
  3140. HS88, 1,
  3141. HS31, 1,
  3142. HS32, 1,
  3143. HS33, 1,
  3144. , 1,
  3145. HSUN, 8,
  3146. HSRP, 8,
  3147. HACC, 8,
  3148. H8ID, 8,
  3149. HSHW, 8,
  3150. HSID, 8,
  3151. HLCL, 8,
  3152. HLBL, 8,
  3153. HLMS, 8,
  3154. HICA, 8,
  3155. HAM0, 8,
  3156. HAM1, 8,
  3157. HAM2, 8,
  3158. HAM3, 8,
  3159. HAM4, 8,
  3160. HAM5, 8,
  3161. HAM6, 8,
  3162. HAM7, 8,
  3163. HAM8, 8,
  3164. HAM9, 8,
  3165. HAMA, 8,
  3166. HAMB, 8,
  3167. HAMC, 8,
  3168. HAMD, 8,
  3169. HAME, 8,
  3170. HAMF, 8,
  3171. HT00, 1,
  3172. HT01, 1,
  3173. HT02, 1,
  3174. , 4,
  3175. HT0E, 1,
  3176. HT10, 1,
  3177. HT11, 1,
  3178. HT12, 1,
  3179. , 4,
  3180. HT1E, 1,
  3181. HT20, 1,
  3182. HT21, 1,
  3183. HT22, 1,
  3184. , 4,
  3185. HT2E, 1,
  3186. HT30, 1,
  3187. HT31, 1,
  3188. HT32, 1,
  3189. , 4,
  3190. HT3E, 1,
  3191. HT40, 1,
  3192. HT41, 1,
  3193. HT42, 1,
  3194. , 4,
  3195. HT4E, 1,
  3196. HT50, 1,
  3197. HT51, 1,
  3198. HT52, 1,
  3199. , 4,
  3200. HT5E, 1,
  3201. HT60, 1,
  3202. HT61, 1,
  3203. HT62, 1,
  3204. , 4,
  3205. HT6E, 1,
  3206. HT70, 1,
  3207. HT71, 1,
  3208. HT72, 1,
  3209. , 4,
  3210. HT7E, 1,
  3211. HDID, 8,
  3212. , 8,
  3213. HATR, 8,
  3214. HT0H, 8,
  3215. HT0L, 8,
  3216. HT1H, 8,
  3217. HT1L, 8,
  3218. HFSP, 3,
  3219. , 5,
  3220. , 16,
  3221. , 8,
  3222. , 8,
  3223. HPEK, 1,
  3224. HPBP, 1,
  3225. HPIB, 1,
  3226. , 1,
  3227. HP0F, 1,
  3228. HP1F, 1,
  3229. HP2F, 1,
  3230. HP3F, 1,
  3231. , 8,
  3232. HPFN, 1,
  3233. HPH1, 1,
  3234. HPLD, 1,
  3235. HPPO, 1,
  3236. HPAC, 1,
  3237. HPH0, 1,
  3238. , 2,
  3239. HPBU, 1,
  3240. HPDE, 1,
  3241. HPM0, 1,
  3242. HPM1, 1,
  3243. HPM2, 1,
  3244. HPM3, 1,
  3245. , 2,
  3246. HB0L, 4,
  3247. , 1,
  3248. HB0C, 1,
  3249. HB0D, 1,
  3250. HB0A, 1,
  3251. HB1L, 4,
  3252. , 1,
  3253. HB1C, 1,
  3254. HB1D, 1,
  3255. HB1A, 1,
  3256. HCMU, 1,
  3257. HCKL, 1,
  3258. HCF0, 1,
  3259. HCF1, 1,
  3260. HCSL, 2,
  3261. HCTH, 1,
  3262. , 1,
  3263. , 2,
  3264. , 6,
  3265. HRSN, 8,
  3266. HPCT, 8,
  3267. HPDT, 64,
  3268. HLCM, 8,
  3269. HLDO, 4,
  3270. HLPA, 1,
  3271. HLDT, 1,
  3272. HLHR, 1,
  3273. HLCO, 1,
  3274. HLD2, 4,
  3275. HLD1, 4,
  3276. HEAD, 8,
  3277. HDTM, 16,
  3278. HRTM, 16,
  3279. HWAK, 8,
  3280. , 8,
  3281. HMPR, 8,
  3282. HMST, 5,
  3283. , 1,
  3284. HMAR, 1,
  3285. HMDN, 1,
  3286. HMAD, 8,
  3287. HMCM, 8,
  3288. HMDT, 8,
  3289. Offset(0x74),
  3290. HMBC, 8,
  3291. Offset(0x80),
  3292. Offset(0xc0),
  3293. HAKB, 16,
  3294. HAMO, 16,
  3295. Offset(0xd0),
  3296. Offset(0xe0),
  3297. HBLD, 64,
  3298. HBLV, 16,
  3299. HMID, 8,
  3300. , 8,
  3301. HCI1, 1,
  3302. HCI2, 1,
  3303. , 2,
  3304. HCDM, 1,
  3305. HCTW, 1,
  3306. HCRF, 1,
  3307. , 1,
  3308. HCNF, 1,
  3309. , 7,
  3310. HB0H, 4,
  3311. HB1H, 4,
  3312. , 8,
  3313. HBID, 64,
  3314. HBTM, 64
  3315. }
  3316. Name(HWPM, 0x0)
  3317. Name(HWLB, 0x0)
  3318. Name(HWLO, 0x0)
  3319. Name(HWDK, 0x0)
  3320. Name(HWFN, 0x0)
  3321. Name(HWEK, 0x0)
  3322. Name(HWRI, 0x0)
  3323. Method(SWAK, 0x0, NotSerialized)
  3324. {
  3325. If(HWLB)
  3326. {
  3327. Or(HAM4, 0x4, HAM4)
  3328. }
  3329. Else
  3330. {
  3331. And(HAM4, 0xfb, HAM4)
  3332. }
  3333. If(HWLO)
  3334. {
  3335. Or(HAM5, 0x4, HAM5)
  3336. }
  3337. Else
  3338. {
  3339. And(HAM5, 0xfb, HAM5)
  3340. }
  3341. If(HWDK)
  3342. {
  3343. Or(HAM6, 0x80, HAM6)
  3344. }
  3345. Else
  3346. {
  3347. And(HAM6, 0x7f, HAM6)
  3348. }
  3349. If(HWFN)
  3350. {
  3351. Or(HAM7, 0x2, Local0)
  3352. }
  3353. Else
  3354. {
  3355. And(HAM7, 0xfd, Local0)
  3356. }
  3357. If(HWEK)
  3358. {
  3359. Or(Local0, 0x4, Local0)
  3360. }
  3361. Else
  3362. {
  3363. And(Local0, 0xfb, Local0)
  3364. }
  3365. If(HWRI)
  3366. {
  3367. Or(Local0, 0x10, HAM7)
  3368. }
  3369. Else
  3370. {
  3371. And(Local0, 0xef, HAM7)
  3372. }
  3373. And(HAM4, 0x37, HAM4)
  3374. And(HAM5, 0xcf, HAM5)
  3375. And(HAM7, 0xf6, HAM7)
  3376. }
  3377. Field(ECOR, ByteAcc, Lock, Preserve)
  3378. {
  3379. Offset(0x54),
  3380. HBPU, 8,
  3381. , 8,
  3382. HBST, 16,
  3383. HBRC, 32,
  3384. HBFC, 32,
  3385. HBCC, 32,
  3386. HBVL, 16,
  3387. HBEC, 16,
  3388. HBBT, 16,
  3389. HBNF, 16,
  3390. HBTC, 16,
  3391. HBCT, 16,
  3392. , 32,
  3393. Offset(0x100)
  3394. }
  3395. Field(ECOR, ByteAcc, Lock, Preserve)
  3396. {
  3397. Offset(0x54),
  3398. HBS0, 16,
  3399. HBS1, 16,
  3400. HBS2, 16,
  3401. HBS3, 16,
  3402. HBS4, 16,
  3403. HBS5, 16,
  3404. HBS6, 16,
  3405. HBS7, 16
  3406. }
  3407. Field(ECOR, ByteAcc, Lock, Preserve)
  3408. {
  3409. Offset(0x54),
  3410. HBTS, 8,
  3411. , 8,
  3412. HBSD, 16,
  3413. HBDT, 16,
  3414. HBH0, 16,
  3415. HBL0, 16,
  3416. HBH1, 16,
  3417. HBL1, 16,
  3418. HBH2, 16,
  3419. HBL2, 16,
  3420. HBH3, 16,
  3421. HBL3, 16
  3422. }
  3423. Field(ECOR, ByteAcc, Lock, Preserve)
  3424. {
  3425. Offset(0x54),
  3426. HF_Z, 8,
  3427. HF_D, 8,
  3428. HZIP, 8,
  3429. HDVD, 8,
  3430. HMIT, 8,
  3431. HF_H, 8,
  3432. HHDD, 8,
  3433. HADP, 8,
  3434. HLS_, 8,
  3435. HF_C, 8,
  3436. HR00, 8,
  3437. HCD_, 8,
  3438. HR01, 8,
  3439. HFDD, 8,
  3440. HIMP, 8,
  3441. HNON, 8
  3442. }
  3443. Name(BF_Z, 0x81)
  3444. Name(BF_D, 0x81)
  3445. Name(BZIP, 0x81)
  3446. Name(BDVD, 0x81)
  3447. Name(BMIT, 0x0)
  3448. Name(BF_H, 0x81)
  3449. Name(BHDD, 0x81)
  3450. Name(BADP, 0x0)
  3451. Name(BLS_, 0x81)
  3452. Name(BF_C, 0x81)
  3453. Name(BR00, 0x0)
  3454. Name(BCD_, 0x81)
  3455. Name(BR01, 0x0)
  3456. Name(BFDD, 0x81)
  3457. Name(BIMP, 0x0)
  3458. Name(BNON, 0x0)
  3459. Method(LBAY, 0x1, NotSerialized)
  3460. {
  3461. Acquire(\_SB_.PCI0.ISA0.EC0_.I2CM, 0xffff)
  3462. If(Arg0)
  3463. {
  3464. Store(BF_Z, HF_Z)
  3465. Store(BF_D, HF_D)
  3466. Store(BZIP, HZIP)
  3467. Store(BDVD, HDVD)
  3468. Store(BMIT, HMIT)
  3469. Store(BF_H, HF_H)
  3470. Store(BHDD, HHDD)
  3471. Store(BADP, HADP)
  3472. Store(BLS_, HLS_)
  3473. Store(BF_C, HF_C)
  3474. Store(BR00, HR00)
  3475. Store(BCD_, HCD_)
  3476. Store(BR01, HR01)
  3477. Store(BFDD, HFDD)
  3478. Store(BIMP, HIMP)
  3479. Store(BNON, HNON)
  3480. }
  3481. Else
  3482. {
  3483. Store(0x81, HF_Z)
  3484. Store(0x81, HF_D)
  3485. Store(0x81, HZIP)
  3486. Store(0x81, HDVD)
  3487. Store(0x0, HMIT)
  3488. Store(0x81, HF_H)
  3489. Store(0x81, HHDD)
  3490. Store(0x0, HADP)
  3491. Store(0x81, HLS_)
  3492. Store(0x81, HF_C)
  3493. Store(0x0, HR00)
  3494. Store(0x81, HCD_)
  3495. Store(0x0, HR01)
  3496. Store(0x81, HFDD)
  3497. Store(0x0, HIMP)
  3498. Store(0x0, HNON)
  3499. }
  3500. Store(\_SB_.PCI0.ISA0.EC0_.I2WB(Zero, 0x1, 0x9, 0x10), Local7)
  3501. Release(\_SB_.PCI0.ISA0.EC0_.I2CM)
  3502. If(Local7)
  3503. {
  3504. Fatal(0x1, 0x80000003, Local7)
  3505. }
  3506. }
  3507. Name(TMP0, 0xbb8)
  3508. Name(TMP1, 0xbb8)
  3509. Name(TMP2, 0xbb8)
  3510. Name(TMP3, 0xbb8)
  3511. Name(TMP4, 0xbb8)
  3512. Name(TMP5, 0xbb8)
  3513. Name(TMP6, 0xbb8)
  3514. Name(TMP7, 0xbb8)
  3515. Name(IGNR, 0x2)
  3516. Method(UPDT, 0x0, NotSerialized)
  3517. {
  3518. If(IGNR)
  3519. {
  3520. Decrement(IGNR)
  3521. }
  3522. Else
  3523. {
  3524. If(H8DR)
  3525. {
  3526. If(Acquire(\_SB_.PCI0.ISA0.EC0_.I2CM, 0x64))
  3527. {
  3528. }
  3529. Else
  3530. {
  3531. Store(\_SB_.PCI0.ISA0.EC0_.I2RB(Zero, 0x1, 0x4), Local7)
  3532. If(Local7)
  3533. {
  3534. Fatal(0x1, 0x80000003, Local7)
  3535. }
  3536. Else
  3537. {
  3538. Store(HBS0, TMP0)
  3539. Store(HBS1, TMP1)
  3540. Store(HBS2, TMP2)
  3541. Store(HBS3, TMP3)
  3542. Store(HBS4, TMP4)
  3543. Store(HBS5, TMP5)
  3544. Store(HBS6, TMP6)
  3545. Store(HBS7, TMP7)
  3546. }
  3547. Release(\_SB_.PCI0.ISA0.EC0_.I2CM)
  3548. }
  3549. }
  3550. }
  3551. }
  3552. Name(F0ON, 0x0)
  3553. Name(F1ON, 0x0)
  3554. Method(SFNP, 0x2, NotSerialized)
  3555. {
  3556. Store(0xffff, Local0)
  3557. If(Arg0)
  3558. {
  3559. Store(Arg1, F1ON)
  3560. If(F0ON)
  3561. {
  3562. }
  3563. Else
  3564. {
  3565. If(Arg1)
  3566. {
  3567. Store(0x3, Local0)
  3568. }
  3569. Else
  3570. {
  3571. Store(0x0, Local0)
  3572. }
  3573. }
  3574. }
  3575. Else
  3576. {
  3577. Store(Arg1, F0ON)
  3578. If(Arg1)
  3579. {
  3580. Store(0x7, Local0)
  3581. }
  3582. Else
  3583. {
  3584. If(F1ON)
  3585. {
  3586. Store(0x3, Local0)
  3587. }
  3588. Else
  3589. {
  3590. Store(0x0, Local0)
  3591. }
  3592. }
  3593. }
  3594. If(LNot(LEqual(Local0, 0xffff)))
  3595. {
  3596. If(H8DR)
  3597. {
  3598. Store(Local0, HFSP)
  3599. }
  3600. Else
  3601. {
  3602. And(\_SB_.RBEC(0x2f), 0xf8, Local1)
  3603. \_SB_.WBEC(0x2f, Or(Local0, Local1, ))
  3604. }
  3605. }
  3606. }
  3607. Mutex(I2CM, 0x7)
  3608. Method(I2CR, 0x3, NotSerialized)
  3609. {
  3610. If(Acquire(I2CM, 0x3e8))
  3611. {
  3612. Return(0x8080)
  3613. }
  3614. Else
  3615. {
  3616. Store(Arg0, HCSL)
  3617. Store(Or(ShiftLeft(Arg1, 0x1, ), 0x1, ), HMAD)
  3618. Store(Arg2, HMCM)
  3619. Store(0x7, HMPR)
  3620. Store(CHKS(), Local7)
  3621. If(Local7)
  3622. {
  3623. Store(Local7, Local0)
  3624. }
  3625. Else
  3626. {
  3627. Store(HMDT, Local0)
  3628. }
  3629. Release(I2CM)
  3630. }
  3631. Return(Local0)
  3632. }
  3633. Method(I2CW, 0x4, NotSerialized)
  3634. {
  3635. If(Acquire(I2CM, 0x3e8))
  3636. {
  3637. Return(0x8080)
  3638. }
  3639. Else
  3640. {
  3641. Store(Arg0, HCSL)
  3642. Store(Or(ShiftLeft(Arg1, 0x1, ), 0x1, ), HMAD)
  3643. Store(Arg2, HMCM)
  3644. Store(Arg3, HMDT)
  3645. Store(0x6, HMPR)
  3646. Store(CHKS(), Local0)
  3647. Release(I2CM)
  3648. Return(Local0)
  3649. }
  3650. }
  3651. Method(I2RB, 0x3, NotSerialized)
  3652. {
  3653. Store(Arg0, HCSL)
  3654. Store(ShiftLeft(Arg1, 0x1, ), HMAD)
  3655. Store(Arg2, HMCM)
  3656. Store(0xb, HMPR)
  3657. Return(CHKS())
  3658. }
  3659. Method(I2WB, 0x4, NotSerialized)
  3660. {
  3661. Store(Arg0, HCSL)
  3662. Store(ShiftLeft(Arg1, 0x1, ), HMAD)
  3663. Store(Arg2, HMCM)
  3664. Store(Arg3, HMBC)
  3665. Store(0xa, HMPR)
  3666. Return(CHKS())
  3667. }
  3668. Method(CHKS, 0x0, NotSerialized)
  3669. {
  3670. Store(0x3e8, Local0)
  3671. While(HMPR)
  3672. {
  3673. Sleep(0x1)
  3674. Decrement(Local0)
  3675. If(LNot(Local0))
  3676. {
  3677. Return(0x8080)
  3678. }
  3679. }
  3680. If(HMDN)
  3681. {
  3682. If(HMST)
  3683. {
  3684. Return(Or(0x8000, HMST, ))
  3685. }
  3686. Else
  3687. {
  3688. Return(Zero)
  3689. }
  3690. }
  3691. Else
  3692. {
  3693. Return(0x8081)
  3694. }
  3695. }
  3696. Method(GUID, 0x0, NotSerialized)
  3697. {
  3698. Store(0x0, EID_)
  3699. Or(HDID, 0x80, HDID)
  3700. Store(0x14, Local0)
  3701. While(LAnd(Local0, And(HDID, 0x80, )))
  3702. {
  3703. Sleep(0x1)
  3704. Decrement(Local0)
  3705. }
  3706. Store(HDID, Local0)
  3707. If(And(Local0, 0x80, ))
  3708. {
  3709. Return(0xff)
  3710. }
  3711. Else
  3712. {
  3713. If(LEqual(HDID, 0xf))
  3714. {
  3715. If(HB1A)
  3716. {
  3717. Store(0x10, Local0)
  3718. }
  3719. }
  3720. Return(Local0)
  3721. }
  3722. }
  3723. Mutex(LEDM, 0x7)
  3724. Method(BLED, 0x2, NotSerialized)
  3725. {
  3726. Acquire(LEDM, 0xffff)
  3727. Store(0x18, HLMS)
  3728. If(Arg1)
  3729. {
  3730. Store(0x18, HLBL)
  3731. }
  3732. Else
  3733. {
  3734. Store(0x0, HLBL)
  3735. }
  3736. If(LEqual(Arg0, 0x0))
  3737. {
  3738. Store(0x0, HLCL)
  3739. }
  3740. Else
  3741. {
  3742. If(LEqual(Arg0, 0x1))
  3743. {
  3744. Store(0x8, HLCL)
  3745. }
  3746. Else
  3747. {
  3748. If(LEqual(Arg0, 0x2))
  3749. {
  3750. Store(0x10, HLCL)
  3751. }
  3752. Else
  3753. {
  3754. }
  3755. }
  3756. }
  3757. Sleep(0xa)
  3758. Release(LEDM)
  3759. }
  3760. Method(SYSL, 0x2, NotSerialized)
  3761. {
  3762. If(LEqual(Arg0, 0x0))
  3763. {
  3764. Store(0x1, Local0)
  3765. }
  3766. Else
  3767. {
  3768. If(LEqual(Arg0, 0x1))
  3769. {
  3770. Store(0x80, Local0)
  3771. }
  3772. Else
  3773. {
  3774. Return(0x0)
  3775. }
  3776. }
  3777. Acquire(LEDM, 0xffff)
  3778. Store(Local0, HLMS)
  3779. If(LEqual(Arg1, 0x0))
  3780. {
  3781. Store(0x0, HLBL)
  3782. Store(0x0, HLCL)
  3783. }
  3784. Else
  3785. {
  3786. If(LEqual(Arg1, 0x1))
  3787. {
  3788. Store(0x0, HLBL)
  3789. Store(Local0, HLCL)
  3790. }
  3791. Else
  3792. {
  3793. If(LEqual(Arg1, 0x2))
  3794. {
  3795. Store(Local0, HLBL)
  3796. Store(Local0, HLCL)
  3797. }
  3798. Else
  3799. {
  3800. }
  3801. }
  3802. }
  3803. Sleep(0xa)
  3804. Release(LEDM)
  3805. }
  3806. Name(BAON, 0x0)
  3807. Method(BEEP, 0x1, NotSerialized)
  3808. {
  3809. If(LGreater(Arg0, 0xf))
  3810. {
  3811. Return(0x1)
  3812. }
  3813. Else
  3814. {
  3815. If(LEqual(Arg0, 0x0))
  3816. {
  3817. Store(0x0, HSRP)
  3818. Store(Arg0, HSUN)
  3819. Store(0x0, BAON)
  3820. }
  3821. Else
  3822. {
  3823. If(LEqual(Arg0, 0xf))
  3824. {
  3825. Store(0x8, HSRP)
  3826. Store(0x1, BAON)
  3827. Store(Arg0, HSUN)
  3828. }
  3829. Else
  3830. {
  3831. If(BAON)
  3832. {
  3833. }
  3834. Else
  3835. {
  3836. Store(Arg0, HSUN)
  3837. If(LEqual(Arg0, 0x3))
  3838. {
  3839. Sleep(0xc8)
  3840. }
  3841. Else
  3842. {
  3843. If(LEqual(Arg0, 0x5))
  3844. {
  3845. Sleep(0xc8)
  3846. }
  3847. Else
  3848. {
  3849. If(LEqual(Arg0, 0x7))
  3850. {
  3851. Sleep(0x1f4)
  3852. }
  3853. }
  3854. }
  3855. }
  3856. }
  3857. }
  3858. }
  3859. }
  3860. Name(WBT0, 0x0)
  3861. Name(WBT1, 0x0)
  3862. Name(BT0I, Package(0xd)
  3863. {
  3864. 0x0,
  3865. 0x0,
  3866. 0x0,
  3867. 0x1,
  3868. 0xffffffff,
  3869. 0x0,
  3870. 0x0,
  3871. 0x0,
  3872. 0x0,
  3873. "ThinkPad Battery",
  3874. "",
  3875. "LION",
  3876. "IBM Corporation "
  3877. })
  3878. Name(BT0P, Package(0x4)
  3879. {
  3880. })
  3881. Device(AMW0)
  3882. {
  3883. Name(_HID, "*pnp0c14")
  3884. Name(_UID, 0x0)
  3885. Name(_WDG, Buffer() {
  3886. 0x5a, 0x0f, 0xBC, 0xAB, 0xa1, 0x8e, 0xd1, 0x11, 0x00, 0xa0, 0xc9, 0x06, 0x29, 0x10, 0, 0,
  3887. 65, 65, // Object Id (AA)
  3888. 1, // Instance Count
  3889. 0x05, // Flags (WMIACPI_REGFLAG_EXPENSIVE |
  3890. // WMIACPI_REGFLAG_STRING)
  3891. 0x5b, 0x0f, 0xBC, 0xAB, 0xa1, 0x8e, 0xd1, 0x11, 0x00, 0xa0, 0xc9, 0x06, 0x29, 0x10, 0, 0,
  3892. 65, 66, // Object Id (AB)
  3893. 1, // Instance Count
  3894. 0x06, // Flags (WMIACPI_REGFLAG_METHOD |
  3895. // WMIACPI_REGFLAG_STRING)
  3896. 0x5c, 0x0f, 0xBC, 0xAB, 0xa1, 0x8e, 0xd1, 0x11, 0x00, 0xa0, 0xc9, 0x06, 0x29, 0x10, 0, 0,
  3897. 0xa0, 0, // Notification Id
  3898. 1, // Instance Count
  3899. 0x08, // Flags (WMIACPI_REGFLAG_EVENT)
  3900. 0x6a, 0x0f, 0xBC, 0xAB, 0xa1, 0x8e, 0xd1, 0x11, 0x00, 0xa0, 0xc9, 0x06, 0x29, 0x10, 0, 0,
  3901. 66, 65, // Object Id (BA)
  3902. 3, // Instance Count
  3903. 0x01, // Flags (WMIACPI_REGFLAG_EXPENSIVE)
  3904. 0x6b, 0x0f, 0xBC, 0xAB, 0xa1, 0x8e, 0xd1, 0x11, 0x00, 0xa0, 0xc9, 0x06, 0x29, 0x10, 0, 0,
  3905. 66, 66, // Object Id (BB)
  3906. 3, // Instance Count
  3907. 0x02, // Flags (WMIACPI_REGFLAG_METHOD)
  3908. 0x6c, 0x0f, 0xBC, 0xAB, 0xa1, 0x8e, 0xd1, 0x11, 0x00, 0xa0, 0xc9, 0x06, 0x29, 0x10, 0, 0,
  3909. 0xb0, 0, // Notification Id
  3910. 1, // Instance Count
  3911. 0x08, // Flags (WMIACPI_REGFLAG_EVENT)
  3912. 0x7a, 0x0f, 0xBC, 0xAB, 0xa1, 0x8e, 0xd1, 0x11, 0x00, 0xa0, 0xc9, 0x06, 0x29, 0x10, 0, 0,
  3913. 67, 65, // Object Id (CA)
  3914. 3, // Instance Count
  3915. 0x00, //
  3916. })
  3917. Name(WQCA, Package(5) {
  3918. "Hello",
  3919. Buffer(3) { 1, 3, 5 },
  3920. "World",
  3921. Buffer(1) { 7 },
  3922. 0x12345678
  3923. })
  3924. Name(STAA, "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA")
  3925. Name(CCAA, 0)
  3926. Method(WCAA, 1) {
  3927. Store(Arg0, CCAA)
  3928. }
  3929. Method(WQAA, 1) {
  3930. if (LEqual(CCAA, Zero)) {
  3931. Return("Bad Data")
  3932. } else {
  3933. Return(STAA)
  3934. }
  3935. }
  3936. Method(WSAA, 2) {
  3937. Store(Arg1, STAA)
  3938. }
  3939. Name(ACEN, 0)
  3940. Name(ACED, "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA")
  3941. Method(WEA0, 1) {
  3942. Store(Arg0, ACEN)
  3943. }
  3944. Method(WMAB, 3) {
  3945. if (LEqual(Arg1, 1))
  3946. {
  3947. Store(Arg2, ACED)
  3948. if (LEqual(ACEN, 1)) {
  3949. Notify(AMW0, 0xa0)
  3950. }
  3951. Return(Arg2)
  3952. } else {
  3953. Return(Arg1)
  3954. }
  3955. }
  3956. Name(STB0, Buffer(0x10) {
  3957. 1,0,0,0, 2,0,0,0, 3,0,0,0, 4,0,0,0
  3958. })
  3959. Name(STB1, Buffer(0x10) {
  3960. 0,1,0,0, 0,2,0,0, 0,3,0,0, 0,4,0,0
  3961. })
  3962. Name(STB2, Buffer(0x10) {
  3963. 0,0,1,0, 0,0,2,0, 0,0,3,0, 0,0,4,0
  3964. })
  3965. Method(WQBA, 1) {
  3966. if (LEqual(Arg0, 0)) {
  3967. Return(STB0)
  3968. }
  3969. if (LEqual(Arg0, 1)) {
  3970. Return(STB1)
  3971. }
  3972. if (LEqual(Arg0, 2)) {
  3973. Return(STB2)
  3974. }
  3975. }
  3976. Method(WSBA, 2) {
  3977. if (LEqual(Arg0, 0)) {
  3978. Store(Arg1, STB0)
  3979. }
  3980. if (LEqual(Arg0, 1)) {
  3981. Store(Arg1, STB1)
  3982. }
  3983. if (LEqual(Arg0, 2)) {
  3984. Store(Arg1, STB2)
  3985. }
  3986. }
  3987. Name(B0ED, Buffer(0x10) {
  3988. 0,0,0,1, 0,0,0,2, 0,0,0,3, 0,0,0,4
  3989. })
  3990. Method(WMBB, 2) {
  3991. if (LEqual(Arg1, 1))
  3992. {
  3993. Store(Arg2, B0ED)
  3994. Notify(AMW0, 0xB0)
  3995. Return(Arg2)
  3996. } else {
  3997. Return(Arg1)
  3998. }
  3999. }
  4000. Method(_WED, 1) {
  4001. if (LEqual(Arg0, 0xA0)) {
  4002. Return(ACED)
  4003. }
  4004. if (LEqual(Arg0, 0xB0)) {
  4005. Return(B0ED)
  4006. }
  4007. }
  4008. }
  4009. Device(AMW1)
  4010. {
  4011. Name(_HID, "*pnp0c14")
  4012. Name(_UID, 0x1)
  4013. Name(_WDG, Buffer() {
  4014. 0x5a, 0x0f, 0xBC, 0xAB, 0xa1, 0x8e, 0xd1, 0x11, 0x00, 0xa0, 0xc9, 0x06, 0x29, 0x10, 0, 0,
  4015. 65, 65, // Object Id (AA)
  4016. 1, // Instance Count
  4017. 0x05, // Flags (WMIACPI_REGFLAG_EXPENSIVE |
  4018. // WMIACPI_REGFLAG_STRING)
  4019. 0x5b, 0x0f, 0xBC, 0xAB, 0xa1, 0x8e, 0xd1, 0x11, 0x00, 0xa0, 0xc9, 0x06, 0x29, 0x10, 0, 0,
  4020. 65, 66, // Object Id (AB)
  4021. 1, // Instance Count
  4022. 0x06, // Flags (WMIACPI_REGFLAG_METHOD |
  4023. // WMIACPI_REGFLAG_STRING)
  4024. 0x5c, 0x0f, 0xBC, 0xAB, 0xa1, 0x8e, 0xd1, 0x11, 0x00, 0xa0, 0xc9, 0x06, 0x29, 0x10, 0, 0,
  4025. 0xa0, 0, // Notification Id
  4026. 1, // Instance Count
  4027. 0x08, // Flags (WMIACPI_REGFLAG_EVENT)
  4028. 0x6a, 0x0f, 0xBC, 0xAB, 0xa1, 0x8e, 0xd1, 0x11, 0x00, 0xa0, 0xc9, 0x06, 0x29, 0x10, 0, 0,
  4029. 66, 65, // Object Id (BA)
  4030. 3, // Instance Count
  4031. 0x01, // Flags (WMIACPI_REGFLAG_EXPENSIVE)
  4032. 0x6b, 0x0f, 0xBC, 0xAB, 0xa1, 0x8e, 0xd1, 0x11, 0x00, 0xa0, 0xc9, 0x06, 0x29, 0x10, 0, 0,
  4033. 66, 66, // Object Id (BB)
  4034. 3, // Instance Count
  4035. 0x02, // Flags (WMIACPI_REGFLAG_METHOD)
  4036. 0x6c, 0x0f, 0xBC, 0xAB, 0xa1, 0x8e, 0xd1, 0x11, 0x00, 0xa0, 0xc9, 0x06, 0x29, 0x10, 0, 0,
  4037. 0xb0, 0, // Notification Id
  4038. 1, // Instance Count
  4039. 0x08, // Flags (WMIACPI_REGFLAG_EVENT)
  4040. 0x7a, 0x0f, 0xBC, 0xAB, 0xa1, 0x8e, 0xd1, 0x11, 0x00, 0xa0, 0xc9, 0x06, 0x29, 0x10, 0, 0,
  4041. 67, 65, // Object Id (CA)
  4042. 3, // Instance Count
  4043. 0x00, //
  4044. })
  4045. Name(WQCA, Package(5) {
  4046. "Hello",
  4047. Buffer(3) { 1, 3, 5 },
  4048. "World",
  4049. Buffer(1) { 7 },
  4050. 0x12345678
  4051. })
  4052. Name(STAA, "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA")
  4053. Name(CCAA, 0)
  4054. Method(WCAA, 1) {
  4055. Store(Arg0, CCAA)
  4056. }
  4057. Method(WQAA, 1) {
  4058. if (LEqual(CCAA, Zero)) {
  4059. Return("Bad Data")
  4060. } else {
  4061. Return(STAA)
  4062. }
  4063. }
  4064. Method(WSAA, 2) {
  4065. Store(Arg1, STAA)
  4066. }
  4067. Name(ACEN, 0)
  4068. Name(ACED, "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA")
  4069. Method(WEA0, 1) {
  4070. Store(Arg0, ACEN)
  4071. }
  4072. Method(WMAB, 3) {
  4073. if (LEqual(Arg1, 1))
  4074. {
  4075. Store(Arg2, ACED)
  4076. if (LEqual(ACEN, 1)) {
  4077. Notify(AMW0, 0xa0)
  4078. }
  4079. Return(Arg2)
  4080. }
  4081. Return(Arg1)
  4082. }
  4083. Name(STB0, Buffer(0x10) {
  4084. 1,0,0,0, 2,0,0,0, 3,0,0,0, 4,0,0,0
  4085. })
  4086. Name(STB1, Buffer(0x10) {
  4087. 0,1,0,0, 0,2,0,0, 0,3,0,0, 0,4,0,0
  4088. })
  4089. Name(STB2, Buffer(0x10) {
  4090. 0,0,1,0, 0,0,2,0, 0,0,3,0, 0,0,4,0
  4091. })
  4092. Method(WQBA, 1) {
  4093. if (LEqual(Arg0, 0)) {
  4094. Return(STB0)
  4095. }
  4096. if (LEqual(Arg0, 1)) {
  4097. Return(STB1)
  4098. }
  4099. if (LEqual(Arg0, 2)) {
  4100. Return(STB2)
  4101. }
  4102. }
  4103. Method(WSBA, 2) {
  4104. if (LEqual(Arg0, 0)) {
  4105. Store(Arg1, STB0)
  4106. }
  4107. if (LEqual(Arg0, 1)) {
  4108. Store(Arg1, STB1)
  4109. }
  4110. if (LEqual(Arg0, 2)) {
  4111. Store(Arg1, STB2)
  4112. }
  4113. }
  4114. Name(B0ED, Buffer(0x10) {
  4115. 0,0,0,1, 0,0,0,2, 0,0,0,3, 0,0,0,4
  4116. })
  4117. Method(WMBB, 3) {
  4118. if (LEqual(Arg1, 1))
  4119. {
  4120. Store(Arg1, B0ED)
  4121. Notify(AMW0, 0xB0)
  4122. Return(Arg2)
  4123. }
  4124. Return(Arg1)
  4125. }
  4126. Method(_WED, 1) {
  4127. if (LEqual(Arg0, 0xA0)) {
  4128. Return(ACED)
  4129. }
  4130. if (LEqual(Arg0, 0xB0)) {
  4131. Return(B0ED)
  4132. }
  4133. }
  4134. }
  4135. Device(BAT0)
  4136. {
  4137. Name(_HID, 0xa0cd041)
  4138. Name(_UID, 0x0)
  4139. Name(_PCL, Package(0x1)
  4140. {
  4141. \_SB_
  4142. })
  4143. Name(_PRW, Package(0x2)
  4144. {
  4145. 0xb,
  4146. 0x3
  4147. })
  4148. Method(_PSW, 0x1, NotSerialized)
  4149. {
  4150. If(Arg0)
  4151. {
  4152. Store(One, \_SB_.PCI0.ISA0.EC0_.HWLB)
  4153. Store(One, WBT0)
  4154. }
  4155. Else
  4156. {
  4157. If(WBT1)
  4158. {
  4159. }
  4160. Else
  4161. {
  4162. Store(Zero, \_SB_.PCI0.ISA0.EC0_.HWLB)
  4163. }
  4164. Store(Zero, WBT0)
  4165. }
  4166. }
  4167. Method(_STA, 0x0, NotSerialized)
  4168. {
  4169. If(H8DR)
  4170. {
  4171. If(HB0A)
  4172. {
  4173. Return(0x1f)
  4174. }
  4175. Else
  4176. {
  4177. Return(0xf)
  4178. }
  4179. }
  4180. Else
  4181. {
  4182. If(And(\_SB_.RBEC(0x38), 0x80, ))
  4183. {
  4184. Return(0x1f)
  4185. }
  4186. Else
  4187. {
  4188. Return(0xf)
  4189. }
  4190. }
  4191. }
  4192. Method(_BIF, 0x0, NotSerialized)
  4193. {
  4194. Acquire(I2CM, 0xffff)
  4195. Store(I2RB(Zero, 0x1, 0x10), Local7)
  4196. If(LEqual(Local7, Zero))
  4197. {
  4198. Store(HBPU, Index(BT0I, 0x0, ))
  4199. Store(HBRC, Index(BT0I, 0x1, ))
  4200. Store(HBFC, Index(BT0I, 0x2, ))
  4201. Store(0xffffffff, Index(BT0I, 0x4, ))
  4202. Store(HBRC, Local0)
  4203. Store(Divide(Local0, 0x14, , ), Index(BT0I, 0x5, ))
  4204. Store(Divide(Local0, 0x21, , ), Index(BT0I, 0x6, ))
  4205. }
  4206. Release(I2CM)
  4207. If(Local7)
  4208. {
  4209. Fatal(0x1, 0x80000003, Local7)
  4210. }
  4211. Return(BT0I)
  4212. }
  4213. Method(_BST, 0x0, NotSerialized)
  4214. {
  4215. Acquire(I2CM, 0xffff)
  4216. Store(I2RB(Zero, 0x1, 0x10), Local7)
  4217. If(Local7)
  4218. {
  4219. }
  4220. Else
  4221. {
  4222. Store(HBVL, Local0)
  4223. Store(Local0, Index(BT0P, 0x3, ))
  4224. Store(HBCC, Index(BT0P, 0x2, ))
  4225. Store(HBEC, Local1)
  4226. If(LNot(LLess(Local1, 0x8000)))
  4227. {
  4228. Store(Subtract(0x10000, Local1, ), Local2)
  4229. }
  4230. Else
  4231. {
  4232. Store(Local1, Local2)
  4233. }
  4234. Multiply(Local0, Local2, Local1)
  4235. Store(Divide(Local1, 0x3e8, , ), Index(BT0P, 0x1, ))
  4236. If(HB0C)
  4237. {
  4238. Store(0x2, Index(BT0P, 0x0, ))
  4239. }
  4240. Else
  4241. {
  4242. If(HB0D)
  4243. {
  4244. Store(0x1, Index(BT0P, 0x0, ))
  4245. }
  4246. Else
  4247. {
  4248. Store(0x0, Index(BT0P, 0x0, ))
  4249. }
  4250. }
  4251. If(LGreater(HB0L, 0x3))
  4252. {
  4253. }
  4254. Else
  4255. {
  4256. Or(DerefOf(Index(BT0P, 0x0, )), 0x4, Index(BT0P, 0x0, ))
  4257. }
  4258. }
  4259. Release(I2CM)
  4260. Return(BT0P)
  4261. }
  4262. Method(_BTP, 0x1, NotSerialized)
  4263. {
  4264. Or(HAM4, 0x10, HAM4)
  4265. Divide(Arg0, 0xa, Local0, Local1)
  4266. And(Local1, 0xff, HT0L)
  4267. And(ShiftRight(Local1, 0x8, ), 0xff, HT0H)
  4268. }
  4269. }
  4270. Name(BT1I, Package(0xd)
  4271. {
  4272. 0x0,
  4273. 0x0,
  4274. 0x0,
  4275. 0x1,
  4276. 0xffffffff,
  4277. 0x0,
  4278. 0x0,
  4279. 0x0,
  4280. 0x0,
  4281. "ThinkPad Battery",
  4282. "",
  4283. "LION",
  4284. "IBM Corporation "
  4285. })
  4286. Name(BT1P, Package(0x4)
  4287. {
  4288. })
  4289. Device(BAT1)
  4290. {
  4291. Name(_HID, 0xa0cd041)
  4292. Name(_UID, 0x1)
  4293. Name(_PCL, Package(0x1)
  4294. {
  4295. \_SB_
  4296. })
  4297. Name(_PRW, Package(0x2)
  4298. {
  4299. 0xb,
  4300. 0x3
  4301. })
  4302. Method(_PSW, 0x1, NotSerialized)
  4303. {
  4304. If(Arg0)
  4305. {
  4306. Store(One, \_SB_.PCI0.ISA0.EC0_.HWLB)
  4307. Store(One, WBT1)
  4308. }
  4309. Else
  4310. {
  4311. Store(Zero, \_SB_.PCI0.ISA0.EC0_.HWLB)
  4312. Store(Zero, WBT1)
  4313. }
  4314. }
  4315. Method(_STA, 0x0, NotSerialized)
  4316. {
  4317. If(H8DR)
  4318. {
  4319. If(HB1A)
  4320. {
  4321. Return(0x1f)
  4322. }
  4323. Else
  4324. {
  4325. Return(0xf)
  4326. }
  4327. }
  4328. Else
  4329. {
  4330. If(And(\_SB_.RBEC(0x39), 0x80, ))
  4331. {
  4332. Return(0x1f)
  4333. }
  4334. Else
  4335. {
  4336. Return(0xf)
  4337. }
  4338. }
  4339. }
  4340. Method(_BIF, 0x0, NotSerialized)
  4341. {
  4342. Acquire(I2CM, 0xffff)
  4343. Store(I2RB(Zero, 0x1, 0x11), Local7)
  4344. If(LEqual(Local7, Zero))
  4345. {
  4346. Store(HBPU, Index(BT1I, 0x0, ))
  4347. Store(HBRC, Index(BT1I, 0x1, ))
  4348. Store(HBFC, Index(BT1I, 0x2, ))
  4349. Store(0xffffffff, Index(BT1I, 0x4, ))
  4350. Store(HBRC, Local0)
  4351. Store(Divide(Local0, 0x5, , ), Index(BT1I, 0x5, ))
  4352. Store(Divide(Local0, 0xa, , ), Index(BT1I, 0x6, ))
  4353. }
  4354. Release(I2CM)
  4355. If(Local7)
  4356. {
  4357. Fatal(0x1, 0x80000003, Local7)
  4358. }
  4359. Return(BT1I)
  4360. }
  4361. Method(_BST, 0x0, NotSerialized)
  4362. {
  4363. Acquire(I2CM, 0xffff)
  4364. Store(I2RB(Zero, 0x1, 0x11), Local7)
  4365. If(Local7)
  4366. {
  4367. }
  4368. Else
  4369. {
  4370. Store(HBVL, Local0)
  4371. Store(Local0, Index(BT1P, 0x3, ))
  4372. Store(HBCC, Index(BT1P, 0x2, ))
  4373. Store(HBEC, Local1)
  4374. If(LNot(LLess(Local1, 0x8000)))
  4375. {
  4376. Store(Subtract(0x10000, Local1, ), Local2)
  4377. }
  4378. Else
  4379. {
  4380. Store(Local1, Local2)
  4381. }
  4382. Multiply(Local0, Local2, Local1)
  4383. Store(Divide(Local1, 0x3e8, , ), Index(BT1P, 0x1, ))
  4384. If(HB1C)
  4385. {
  4386. Store(0x2, Index(BT1P, 0x0, ))
  4387. }
  4388. Else
  4389. {
  4390. If(HB1D)
  4391. {
  4392. Store(0x1, Index(BT1P, 0x0, ))
  4393. }
  4394. Else
  4395. {
  4396. Store(0x0, Index(BT1P, 0x0, ))
  4397. }
  4398. }
  4399. If(LGreater(HB1L, 0x3))
  4400. {
  4401. }
  4402. Else
  4403. {
  4404. Or(DerefOf(Index(BT1P, 0x0, )), 0x4, Index(BT1P, 0x0, ))
  4405. }
  4406. }
  4407. Release(I2CM)
  4408. Return(BT1P)
  4409. }
  4410. Method(_BTP, 0x1, NotSerialized)
  4411. {
  4412. Or(HAM4, 0x20, HAM4)
  4413. Divide(Arg0, 0xa, Local0, Local1)
  4414. And(Local1, 0xff, HT1L)
  4415. And(ShiftRight(Local1, 0x8, ), 0xff, HT1H)
  4416. }
  4417. }
  4418. Device(AC__)
  4419. {
  4420. Name(_HID, "ACPI0003")
  4421. Name(_UID, 0x0)
  4422. Name(_PCL, Package(0x1)
  4423. {
  4424. \_SB_
  4425. })
  4426. Method(_PSR, 0x0, NotSerialized)
  4427. {
  4428. Return(HPAC)
  4429. }
  4430. Method(_STA, 0x0, NotSerialized)
  4431. {
  4432. Return(0xf)
  4433. }
  4434. }
  4435. Method(_Q11, 0x0, NotSerialized)
  4436. {
  4437. Store(0x5381, S_AX)
  4438. Store(0x7111, S_BX)
  4439. SMPI(0x81)
  4440. }
  4441. Method(_Q13, 0x0, NotSerialized)
  4442. {
  4443. Notify(\_SB_.SLPB, 0x80)
  4444. }
  4445. Method(_Q16, 0x0, NotSerialized)
  4446. {
  4447. Return(\_SB_.PCI0.VID0.VSWT())
  4448. }
  4449. Method(_Q17, 0x0, NotSerialized)
  4450. {
  4451. Return(\_SB_.PCI0.VID0.VEXP())
  4452. }
  4453. Method(_Q20, 0x0, NotSerialized)
  4454. {
  4455. Notify(BAT0, 0x80)
  4456. Notify(BAT1, 0x80)
  4457. }
  4458. Method(_Q21, 0x0, NotSerialized)
  4459. {
  4460. Notify(BAT0, 0x80)
  4461. Notify(BAT1, 0x80)
  4462. }
  4463. Method(_Q22, 0x0, NotSerialized)
  4464. {
  4465. Notify(BAT0, 0x80)
  4466. Notify(BAT1, 0x80)
  4467. }
  4468. Method(_Q23, 0x0, NotSerialized)
  4469. {
  4470. Notify(BAT0, 0x81)
  4471. Notify(BAT1, 0x81)
  4472. Notify(BAT0, 0x80)
  4473. Notify(BAT1, 0x80)
  4474. Notify(\_TZ_.THM6, 0x80)
  4475. Notify(\_TZ_.THM7, 0x80)
  4476. }
  4477. Method(_Q24, 0x0, NotSerialized)
  4478. {
  4479. Notify(BAT0, 0x80)
  4480. }
  4481. Method(_Q25, 0x0, NotSerialized)
  4482. {
  4483. Notify(BAT1, 0x80)
  4484. }
  4485. Method(_Q26, 0x0, NotSerialized)
  4486. {
  4487. HBDS()
  4488. Notify(AC__, 0x0)
  4489. }
  4490. Method(_Q27, 0x0, NotSerialized)
  4491. {
  4492. HBEN()
  4493. Notify(AC__, 0x0)
  4494. }
  4495. Method(_Q40, 0x0, NotSerialized)
  4496. {
  4497. \_TZ_.THM0.UPSV()
  4498. Notify(\_TZ_.THM0, 0x81)
  4499. }
  4500. Method(_Q41, 0x0, NotSerialized)
  4501. {
  4502. \_TZ_.THM1.UPSV()
  4503. Notify(\_TZ_.THM1, 0x81)
  4504. }
  4505. Method(_Q42, 0x0, NotSerialized)
  4506. {
  4507. \_TZ_.THM2.UPSV()
  4508. Notify(\_TZ_.THM2, 0x81)
  4509. }
  4510. Method(_Q44, 0x0, NotSerialized)
  4511. {
  4512. \_TZ_.THM4.UPSV()
  4513. Notify(\_TZ_.THM4, 0x81)
  4514. }
  4515. Method(_Q45, 0x0, NotSerialized)
  4516. {
  4517. \_TZ_.THM5.UPSV()
  4518. Notify(\_TZ_.THM5, 0x81)
  4519. }
  4520. Method(_Q46, 0x0, NotSerialized)
  4521. {
  4522. \_TZ_.THM6.UPSV()
  4523. Notify(\_TZ_.THM6, 0x81)
  4524. }
  4525. Method(_Q47, 0x0, NotSerialized)
  4526. {
  4527. \_TZ_.THM7.UPSV()
  4528. Notify(\_TZ_.THM7, 0x81)
  4529. }
  4530. Method(_Q2A, 0x0, NotSerialized)
  4531. {
  4532. Notify(\_SB_.LID0, 0x80)
  4533. }
  4534. Method(_Q2B, 0x0, NotSerialized)
  4535. {
  4536. Notify(\_SB_.LID0, 0x80)
  4537. }
  4538. Method(_Q37, 0x0, NotSerialized)
  4539. {
  4540. If(H8DR)
  4541. {
  4542. Store(\_SB_.PCI0.ISA0.EC0_.I2CR(Zero, 0x40, 0x4), Local0)
  4543. If(LEqual(And(Local0, 0x8000, ), 0x8000))
  4544. {
  4545. Store(0x0, Local0)
  4546. }
  4547. }
  4548. Else
  4549. {
  4550. Store(0x5381, S_AX)
  4551. Store(0x9012, S_BX)
  4552. Store(0x4, S_CX)
  4553. SMPI(0x81)
  4554. If(S_AH)
  4555. {
  4556. Store(0x0, Local0)
  4557. }
  4558. Else
  4559. {
  4560. And(S_CH, 0xf0, Local0)
  4561. }
  4562. }
  4563. If(LEqual(Local0, 0x10))
  4564. {
  4565. Notify(\_SB_.PCI0.DOCK, 0x0)
  4566. }
  4567. If(LEqual(Local0, 0x40))
  4568. {
  4569. Signal(\_SB_.PCI0.DOCK.CNCT)
  4570. }
  4571. If(LEqual(Local0, 0x20))
  4572. {
  4573. Notify(\_SB_.PCI0.DOCK, 0x1)
  4574. }
  4575. If(LEqual(Local0, 0x50))
  4576. {
  4577. If(H8DR)
  4578. {
  4579. \_SB_.PCI0.ISA0.EC0_.I2CW(Zero, 0x40, 0x5, 0xc)
  4580. }
  4581. Else
  4582. {
  4583. Store(0x5381, S_AX)
  4584. Store(0x9012, S_BX)
  4585. Store(0xc05, S_CX)
  4586. SMPI(0x81)
  4587. }
  4588. Signal(\_SB_.PCI0.DOCK.EJT0)
  4589. }
  4590. }
  4591. Method(_Q3B, 0x0, NotSerialized)
  4592. {
  4593. Store(SMSC, Local0)
  4594. Store(0xf, SMSC)
  4595. If(LAnd(Local0, 0x4))
  4596. {
  4597. Return(\_SB_.PCI0.VID0.VECC())
  4598. }
  4599. Else
  4600. {
  4601. }
  4602. }
  4603. Method(_Q3D, 0x0, NotSerialized)
  4604. {
  4605. Store(0x5381, S_AX)
  4606. Store(0x90c0, S_BX)
  4607. Store(0x0, S_CX)
  4608. SMPI(0x81)
  4609. }
  4610. Method(_Q7F, 0x0, NotSerialized)
  4611. {
  4612. Or(ACI_, 0x1, ACI_)
  4613. And(ACI_, 0xfe, ACI_)
  4614. }
  4615. Name(HBLK, 0x1)
  4616. Name(BDEV, 0x0)
  4617. Name(BERR, 0x0)
  4618. Event(EBEJ)
  4619. Method(_Q2C, 0x0, NotSerialized)
  4620. {
  4621. If(LEqual(BERR, 0x2))
  4622. {
  4623. }
  4624. Else
  4625. {
  4626. If(HBLK)
  4627. {
  4628. Store(GUID(), BDEV)
  4629. NBEJ()
  4630. }
  4631. Else
  4632. {
  4633. }
  4634. }
  4635. }
  4636. Method(_Q2D, 0x0, NotSerialized)
  4637. {
  4638. If(LEqual(BERR, 0x2))
  4639. {
  4640. }
  4641. Else
  4642. {
  4643. Reset(EBEJ)
  4644. Store(GUID(), BDEV)
  4645. NBIN()
  4646. }
  4647. }
  4648. Method(_Q38, 0x0, NotSerialized)
  4649. {
  4650. Sleep(0x64)
  4651. If(LEqual(BERR, 0x2))
  4652. {
  4653. }
  4654. Else
  4655. {
  4656. Store(GUID(), Local0)
  4657. If(LEqual(Local0, 0xf))
  4658. {
  4659. If(HBLK)
  4660. {
  4661. BLED(0x2, 0x0)
  4662. BEEP(0xa)
  4663. Store(0x2, BERR)
  4664. }
  4665. Else
  4666. {
  4667. BLED(0x0, 0x0)
  4668. If(LEqual(Local0, 0x10))
  4669. {
  4670. Notify(BAT1, 0x81)
  4671. }
  4672. }
  4673. Signal(EBEJ)
  4674. }
  4675. Else
  4676. {
  4677. If(HBLK)
  4678. {
  4679. Store(GUID(), BDEV)
  4680. NBIN()
  4681. Reset(EBEJ)
  4682. }
  4683. Else
  4684. {
  4685. }
  4686. }
  4687. }
  4688. }
  4689. Method(NBEJ, 0x0, NotSerialized)
  4690. {
  4691. Store(BDEV, Local0)
  4692. If(LEqual(Local0, 0xff))
  4693. {
  4694. BLED(0x0, 0x0)
  4695. Store(One, HBLK)
  4696. }
  4697. Else
  4698. {
  4699. If(LEqual(Local0, 0xf))
  4700. {
  4701. BLED(0x0, 0x0)
  4702. Store(Zero, HBLK)
  4703. }
  4704. Else
  4705. {
  4706. If(LEqual(Local0, 0x10))
  4707. {
  4708. If(HPAC)
  4709. {
  4710. BLED(0x1, 0x0)
  4711. Store(Zero, HBLK)
  4712. }
  4713. Else
  4714. {
  4715. If(HB0A)
  4716. {
  4717. BLED(0x1, 0x0)
  4718. Store(Zero, HBLK)
  4719. }
  4720. Else
  4721. {
  4722. BLED(0x2, 0x1)
  4723. BEEP(0xf)
  4724. Store(One, HBLK)
  4725. Store(0x1, BERR)
  4726. }
  4727. }
  4728. }
  4729. Else
  4730. {
  4731. If(LEqual(Local0, 0xd))
  4732. {
  4733. BLED(0x1, 0x1)
  4734. Notify(\_SB_.PCI0.ISA0.FDC0.FDD0, 0x1)
  4735. }
  4736. Else
  4737. {
  4738. BLED(0x1, 0x1)
  4739. If(\_SB_.PCI0.ISA0.GCR4)
  4740. {
  4741. Notify(\_SB_.PCI0.IDE0.IDEP.IDPS, 0x1)
  4742. }
  4743. Else
  4744. {
  4745. Notify(\_SB_.PCI0.IDE0.IDES.IDSM, 0x1)
  4746. }
  4747. }
  4748. }
  4749. }
  4750. }
  4751. }
  4752. Method(NBIN, 0x0, NotSerialized)
  4753. {
  4754. Store(BDEV, Local0)
  4755. If(LEqual(Local0, 0xff))
  4756. {
  4757. \UBON()
  4758. BLED(0x0, 0x0)
  4759. Store(One, HBLK)
  4760. }
  4761. Else
  4762. {
  4763. If(LEqual(Local0, 0xf))
  4764. {
  4765. BLED(0x0, 0x0)
  4766. Store(One, HBLK)
  4767. }
  4768. Else
  4769. {
  4770. If(LEqual(Local0, 0x10))
  4771. {
  4772. BLED(0x0, 0x0)
  4773. Notify(BAT1, 0x81)
  4774. Store(One, HBLK)
  4775. }
  4776. Else
  4777. {
  4778. If(LEqual(Local0, 0xd))
  4779. {
  4780. \UBON()
  4781. BLED(0x1, 0x1)
  4782. Notify(\_SB_.PCI0.ISA0.FDC0.FDD0, 0x0)
  4783. }
  4784. Else
  4785. {
  4786. BLED(0x1, 0x1)
  4787. \UBON()
  4788. If(\_SB_.PCI0.ISA0.GCR4)
  4789. {
  4790. Notify(\_SB_.PCI0.IDE0.IDEP.IDPS, 0x0)
  4791. }
  4792. Else
  4793. {
  4794. Notify(\_SB_.PCI0.IDE0.IDES.IDSM, 0x0)
  4795. }
  4796. }
  4797. }
  4798. }
  4799. }
  4800. }
  4801. Method(LCKB, 0x1, NotSerialized)
  4802. {
  4803. If(Arg0)
  4804. {
  4805. Store(One, HBLK)
  4806. BLED(0x0, 0x0)
  4807. }
  4808. Else
  4809. {
  4810. Store(Zero, HBLK)
  4811. }
  4812. }
  4813. Method(BEJ_, 0x0, NotSerialized)
  4814. {
  4815. BLED(0x1, 0x0)
  4816. \UBOF()
  4817. Wait(EBEJ, 0xffff)
  4818. }
  4819. Method(BPTS, 0x1, NotSerialized)
  4820. {
  4821. If(LGreater(Arg0, 0x4))
  4822. {
  4823. }
  4824. Else
  4825. {
  4826. If(LGreater(Arg0, 0x2))
  4827. {
  4828. If(BERR)
  4829. {
  4830. }
  4831. Else
  4832. {
  4833. Store(GUID(), BDEV)
  4834. }
  4835. LBAY(0x0)
  4836. }
  4837. Else
  4838. {
  4839. LBAY(0x0)
  4840. }
  4841. And(HAM7, 0xfe, HAM7)
  4842. If(BAON)
  4843. {
  4844. BEEP(0x0)
  4845. }
  4846. }
  4847. }
  4848. Method(BWAK, 0x1, NotSerialized)
  4849. {
  4850. If(LGreater(Arg0, 0x4))
  4851. {
  4852. }
  4853. Else
  4854. {
  4855. If(LGreater(Arg0, 0x2))
  4856. {
  4857. If(LEqual(BERR, 0x2))
  4858. {
  4859. }
  4860. Else
  4861. {
  4862. Store(GUID(), Local3)
  4863. If(BERR)
  4864. {
  4865. If(LNot(LEqual(Local3, BDEV)))
  4866. {
  4867. }
  4868. Else
  4869. {
  4870. Store(0x0, BERR)
  4871. BEEP(0x0)
  4872. }
  4873. }
  4874. Else
  4875. {
  4876. If(LNot(LEqual(Local3, BDEV)))
  4877. {
  4878. Store(Local3, BDEV)
  4879. NBIN()
  4880. }
  4881. }
  4882. }
  4883. }
  4884. Else
  4885. {
  4886. }
  4887. Or(HAM7, 0x1, HAM7)
  4888. }
  4889. }
  4890. }
  4891. }
  4892. Device(IDE0)
  4893. {
  4894. Name(_ADR, 0x10001)
  4895. OperationRegion(X140, PCI_Config, 0x40, 0x10)
  4896. Field(X140, DWordAcc, NoLock, Preserve)
  4897. {
  4898. , 1,
  4899. XPI0, 1,
  4900. , 2,
  4901. , 1,
  4902. XPI1, 1,
  4903. , 2,
  4904. XPRT, 2,
  4905. , 2,
  4906. XPIS, 2,
  4907. XPSE, 1,
  4908. XPE_, 1,
  4909. , 1,
  4910. XSI0, 1,
  4911. , 2,
  4912. , 1,
  4913. XSI1, 1,
  4914. , 2,
  4915. XSRT, 2,
  4916. , 2,
  4917. XSIS, 2,
  4918. XSSE, 1,
  4919. XSE_, 1,
  4920. XVRT, 2,
  4921. XVIS, 2,
  4922. , 4,
  4923. , 24,
  4924. XEP0, 1,
  4925. XEP1, 1,
  4926. XES0, 1,
  4927. XES1, 1,
  4928. , 4,
  4929. , 8,
  4930. XUP0, 2,
  4931. , 2,
  4932. XUP1, 2,
  4933. , 2,
  4934. XUS0, 2,
  4935. , 2,
  4936. XUS1, 2,
  4937. , 2
  4938. }
  4939. Method(CHKB, 0x0, NotSerialized)
  4940. {
  4941. Store(\_SB_.PCI0.ISA0.EC0_.GUID(), Local0)
  4942. If(LEqual(Local0, 0x0))
  4943. {
  4944. Return(0x1)
  4945. }
  4946. Else
  4947. {
  4948. If(LEqual(Local0, 0x1))
  4949. {
  4950. Return(0x1)
  4951. }
  4952. Else
  4953. {
  4954. If(LEqual(Local0, 0x2))
  4955. {
  4956. Return(0x1)
  4957. }
  4958. Else
  4959. {
  4960. If(LEqual(Local0, 0x3))
  4961. {
  4962. Return(0x1)
  4963. }
  4964. Else
  4965. {
  4966. If(LEqual(Local0, 0x5))
  4967. {
  4968. Return(0x1)
  4969. }
  4970. Else
  4971. {
  4972. If(LEqual(Local0, 0x6))
  4973. {
  4974. Return(0x1)
  4975. }
  4976. Else
  4977. {
  4978. If(LEqual(Local0, 0x8))
  4979. {
  4980. Return(0x1)
  4981. }
  4982. Else
  4983. {
  4984. If(LEqual(Local0, 0x9))
  4985. {
  4986. Return(0x1)
  4987. }
  4988. Else
  4989. {
  4990. If(LEqual(Local0, 0xb))
  4991. {
  4992. Return(0x1)
  4993. }
  4994. Else
  4995. {
  4996. Return(0x0)
  4997. }
  4998. }
  4999. }
  5000. }
  5001. }
  5002. }
  5003. }
  5004. }
  5005. }
  5006. }
  5007. Device(IDEP)
  5008. {
  5009. Name(_ADR, 0x0)
  5010. Method(_GTM, 0x0, NotSerialized)
  5011. {
  5012. Subtract(0x5, XPIS, Local0)
  5013. Subtract(0x4, XPRT, Local1)
  5014. Add(Local0, Local1, Local0)
  5015. Multiply(0x1e, Local0, Local0)
  5016. If(LGreater(Local0, 0xf0))
  5017. {
  5018. Store(0x384, Local0)
  5019. }
  5020. If(XEP0)
  5021. {
  5022. Store(0x11, Local4)
  5023. If(LEqual(XUP0, 0x0))
  5024. {
  5025. Store(0x78, Local1)
  5026. }
  5027. Else
  5028. {
  5029. If(LEqual(XUP0, 0x1))
  5030. {
  5031. Store(0x50, Local1)
  5032. }
  5033. Else
  5034. {
  5035. Store(0x3c, Local1)
  5036. }
  5037. }
  5038. }
  5039. Else
  5040. {
  5041. Store(0x10, Local4)
  5042. Store(Local0, Local1)
  5043. }
  5044. If(XPI0)
  5045. {
  5046. Or(Local4, 0x2, Local4)
  5047. }
  5048. If(XPSE)
  5049. {
  5050. Subtract(0x5, XVIS, Local2)
  5051. Subtract(0x4, XVRT, Local3)
  5052. Add(Local2, Local3, Local2)
  5053. Multiply(0x1e, Local2, Local2)
  5054. If(LGreater(Local2, 0xf0))
  5055. {
  5056. Store(0x384, Local2)
  5057. }
  5058. If(XEP1)
  5059. {
  5060. Or(Local4, 0x4, Local4)
  5061. If(LEqual(XUP1, 0x0))
  5062. {
  5063. Store(0x78, Local3)
  5064. }
  5065. Else
  5066. {
  5067. If(LEqual(XUP1, 0x1))
  5068. {
  5069. Store(0x50, Local3)
  5070. }
  5071. Else
  5072. {
  5073. Store(0x3c, Local3)
  5074. }
  5075. }
  5076. }
  5077. Else
  5078. {
  5079. Store(Local2, Local3)
  5080. }
  5081. }
  5082. Else
  5083. {
  5084. Store(Local0, Local2)
  5085. Store(Local1, Local3)
  5086. }
  5087. If(XPI1)
  5088. {
  5089. Or(Local4, 0x8, Local4)
  5090. }
  5091. Store(Local0, GTP0)
  5092. Store(Local1, GTD0)
  5093. Store(Local2, GTP1)
  5094. Store(Local3, GTD1)
  5095. Store(Local4, GTMF)
  5096. Return(BGTM)
  5097. }
  5098. Method(_STM, 0x3, NotSerialized)
  5099. {
  5100. CreateDWordField(Arg0, 0x0, STP0)
  5101. CreateDWordField(Arg0, 0x4, STD0)
  5102. CreateDWordField(Arg0, 0x8, STP1)
  5103. CreateDWordField(Arg0, 0xc, STD1)
  5104. CreateDWordField(Arg0, 0x10, STMF)
  5105. If(And(STMF, 0x2, ))
  5106. {
  5107. Store(One, XPI0)
  5108. }
  5109. Else
  5110. {
  5111. Store(Zero, XPI0)
  5112. }
  5113. If(And(STMF, 0x8, ))
  5114. {
  5115. Store(One, XPI1)
  5116. }
  5117. Else
  5118. {
  5119. Store(Zero, XPI1)
  5120. }
  5121. If(LGreater(STP0, 0x78))
  5122. {
  5123. If(LGreater(STP0, 0xb4))
  5124. {
  5125. If(LGreater(STP0, 0xf0))
  5126. {
  5127. Store(0x0, XPIS)
  5128. Store(0x0, XPRT)
  5129. }
  5130. Else
  5131. {
  5132. Store(0x1, XPIS)
  5133. Store(0x0, XPRT)
  5134. }
  5135. }
  5136. Else
  5137. {
  5138. Store(0x2, XPIS)
  5139. Store(0x1, XPRT)
  5140. }
  5141. }
  5142. Else
  5143. {
  5144. Store(0x2, XPIS)
  5145. Store(0x3, XPRT)
  5146. }
  5147. If(And(STMF, 0x1, ))
  5148. {
  5149. Store(One, XEP0)
  5150. If(LGreater(STD0, 0x3c))
  5151. {
  5152. If(LGreater(STD0, 0x50))
  5153. {
  5154. Store(0x0, XUP0)
  5155. }
  5156. Else
  5157. {
  5158. Store(0x1, XUP0)
  5159. }
  5160. }
  5161. Else
  5162. {
  5163. Store(0x2, XUP0)
  5164. }
  5165. }
  5166. Else
  5167. {
  5168. Store(Zero, XEP0)
  5169. }
  5170. If(STP1)
  5171. {
  5172. Store(One, XPSE)
  5173. If(LGreater(STP1, 0x78))
  5174. {
  5175. If(LGreater(STP1, 0xb4))
  5176. {
  5177. If(LGreater(STP1, 0xf0))
  5178. {
  5179. Store(0x0, XVIS)
  5180. Store(0x0, XVRT)
  5181. }
  5182. Else
  5183. {
  5184. Store(0x1, XVIS)
  5185. Store(0x0, XVRT)
  5186. }
  5187. }
  5188. Else
  5189. {
  5190. Store(0x2, XVIS)
  5191. Store(0x1, XVRT)
  5192. }
  5193. }
  5194. Else
  5195. {
  5196. Store(0x2, XVIS)
  5197. Store(0x3, XVRT)
  5198. }
  5199. If(And(STMF, 0x4, ))
  5200. {
  5201. Store(One, XEP1)
  5202. If(LGreater(STD1, 0x3c))
  5203. {
  5204. If(LGreater(STD1, 0x50))
  5205. {
  5206. Store(0x0, XUP1)
  5207. }
  5208. Else
  5209. {
  5210. Store(0x1, XUP1)
  5211. }
  5212. }
  5213. Else
  5214. {
  5215. Store(0x2, XUP1)
  5216. }
  5217. }
  5218. Else
  5219. {
  5220. Store(Zero, XEP1)
  5221. }
  5222. }
  5223. Else
  5224. {
  5225. Store(Zero, XPSE)
  5226. }
  5227. }
  5228. Method(_STA, 0x0, NotSerialized)
  5229. {
  5230. If(XPE_)
  5231. {
  5232. Return(0xf)
  5233. }
  5234. Else
  5235. {
  5236. Return(0x1)
  5237. }
  5238. }
  5239. Device(IDPM)
  5240. {
  5241. Name(_ADR, 0x0)
  5242. Method(_GTF, 0x0, NotSerialized)
  5243. {
  5244. Store(0xa0, IDC0)
  5245. Store(0xa0, IDC1)
  5246. Return(ICMD)
  5247. }
  5248. }
  5249. Device(IDPS)
  5250. {
  5251. Name(_ADR, 0x1)
  5252. Method(_STA, 0x0, NotSerialized)
  5253. {
  5254. If(\_SB_.PCI0.ISA0.GCR4)
  5255. {
  5256. If(XPSE)
  5257. {
  5258. Return(0xf)
  5259. }
  5260. Else
  5261. {
  5262. Return(0x0)
  5263. }
  5264. }
  5265. Else
  5266. {
  5267. Return(0x0)
  5268. }
  5269. }
  5270. Method(_EJ0, 0x1, NotSerialized)
  5271. {
  5272. If(Arg0)
  5273. {
  5274. \_SB_.PCI0.ISA0.EC0_.BEJ_()
  5275. }
  5276. }
  5277. Method(_LCK, 0x1, NotSerialized)
  5278. {
  5279. \_SB_.PCI0.ISA0.EC0_.LCKB(Arg0)
  5280. }
  5281. Method(_GTF, 0x0, NotSerialized)
  5282. {
  5283. If(LEqual(\_SB_.PCI0.ISA0.EC0_.GUID(), 0x6))
  5284. {
  5285. Store(0xb0, IDC0)
  5286. Store(0xb0, IDC1)
  5287. Return(ICMD)
  5288. }
  5289. Else
  5290. {
  5291. Store(0xb0, ICC0)
  5292. Return(ICMC)
  5293. }
  5294. }
  5295. }
  5296. }
  5297. Device(IDES)
  5298. {
  5299. Name(_ADR, 0x1)
  5300. Method(_GTM, 0x0, NotSerialized)
  5301. {
  5302. Subtract(0x5, XSIS, Local0)
  5303. Subtract(0x4, XSRT, Local1)
  5304. Add(Local0, Local1, Local0)
  5305. Multiply(0x1e, Local0, Local0)
  5306. If(LGreater(Local0, 0xf0))
  5307. {
  5308. Store(0x384, Local0)
  5309. }
  5310. If(XES0)
  5311. {
  5312. Store(0x11, Local2)
  5313. If(LEqual(XUS0, 0x0))
  5314. {
  5315. Store(0x78, Local1)
  5316. }
  5317. Else
  5318. {
  5319. If(LEqual(XUS0, 0x1))
  5320. {
  5321. Store(0x50, Local1)
  5322. }
  5323. Else
  5324. {
  5325. Store(0x3c, Local1)
  5326. }
  5327. }
  5328. }
  5329. Else
  5330. {
  5331. Store(0x10, Local2)
  5332. Store(Local0, Local1)
  5333. }
  5334. If(XSI0)
  5335. {
  5336. Or(Local2, 0x2, Local2)
  5337. }
  5338. Store(Local0, GTP0)
  5339. Store(Local1, GTD0)
  5340. Store(Zero, GTP1)
  5341. Store(Zero, GTD1)
  5342. Store(Local2, GTMF)
  5343. Return(BGTM)
  5344. }
  5345. Method(_STM, 0x3, NotSerialized)
  5346. {
  5347. CreateDWordField(Arg0, 0x0, STP0)
  5348. CreateDWordField(Arg0, 0x4, STD0)
  5349. CreateDWordField(Arg0, 0x8, STP1)
  5350. CreateDWordField(Arg0, 0xc, STD1)
  5351. CreateDWordField(Arg0, 0x10, STMF)
  5352. If(And(STMF, 0x2, ))
  5353. {
  5354. Store(One, XSI0)
  5355. }
  5356. Else
  5357. {
  5358. Store(Zero, XSI0)
  5359. }
  5360. If(LGreater(STP0, 0x78))
  5361. {
  5362. If(LGreater(STP0, 0xb4))
  5363. {
  5364. If(LGreater(STP0, 0xf0))
  5365. {
  5366. Store(0x0, XSIS)
  5367. Store(0x0, XSRT)
  5368. }
  5369. Else
  5370. {
  5371. Store(0x1, XSIS)
  5372. Store(0x0, XSRT)
  5373. }
  5374. }
  5375. Else
  5376. {
  5377. Store(0x2, XSIS)
  5378. Store(0x1, XSRT)
  5379. }
  5380. }
  5381. Else
  5382. {
  5383. Store(0x2, XSIS)
  5384. Store(0x3, XSRT)
  5385. }
  5386. If(And(STMF, 0x1, ))
  5387. {
  5388. Store(One, XES0)
  5389. If(LGreater(STD0, 0x3c))
  5390. {
  5391. If(LGreater(STD0, 0x50))
  5392. {
  5393. Store(0x0, XUS0)
  5394. }
  5395. Else
  5396. {
  5397. Store(0x1, XUS0)
  5398. }
  5399. }
  5400. Else
  5401. {
  5402. Store(0x2, XUS0)
  5403. }
  5404. }
  5405. Else
  5406. {
  5407. Store(Zero, XES0)
  5408. }
  5409. }
  5410. Method(_STA, 0x0, NotSerialized)
  5411. {
  5412. If(\_SB_.PCI0.ISA0.GCR4)
  5413. {
  5414. Return(0x0)
  5415. }
  5416. Else
  5417. {
  5418. If(XSE_)
  5419. {
  5420. Return(0xf)
  5421. }
  5422. Else
  5423. {
  5424. Return(0x1)
  5425. }
  5426. }
  5427. }
  5428. Device(IDSM)
  5429. {
  5430. Name(_ADR, 0x0)
  5431. Method(_EJ0, 0x1, NotSerialized)
  5432. {
  5433. If(Arg0)
  5434. {
  5435. \_SB_.PCI0.ISA0.EC0_.BEJ_()
  5436. }
  5437. }
  5438. Method(_LCK, 0x1, NotSerialized)
  5439. {
  5440. \_SB_.PCI0.ISA0.EC0_.LCKB(Arg0)
  5441. }
  5442. Method(_STA, 0x0, NotSerialized)
  5443. {
  5444. If(\_SB_.PCI0.ISA0.GCR4)
  5445. {
  5446. Return(0x0)
  5447. }
  5448. Else
  5449. {
  5450. If(XSE_)
  5451. {
  5452. Return(0xf)
  5453. }
  5454. Else
  5455. {
  5456. Return(0x0)
  5457. }
  5458. }
  5459. }
  5460. Method(_GTF, 0x0, NotSerialized)
  5461. {
  5462. If(LEqual(\_SB_.PCI0.ISA0.EC0_.GUID(), 0x6))
  5463. {
  5464. Store(0xa0, IDC0)
  5465. Store(0xa0, IDC1)
  5466. Return(ICMD)
  5467. }
  5468. Else
  5469. {
  5470. Store(0xa0, ICC0)
  5471. Return(ICMC)
  5472. }
  5473. }
  5474. }
  5475. }
  5476. }
  5477. Device(PM00)
  5478. {
  5479. Name(_ADR, 0x10003)
  5480. OperationRegion(X3DA, PCI_Config, 0x5c, 0x4)
  5481. Field(X3DA, DWordAcc, NoLock, Preserve)
  5482. {
  5483. XA1E, 1,
  5484. XA1D, 2,
  5485. XA2E, 1,
  5486. , 1,
  5487. XA2A, 2,
  5488. XA3E, 1,
  5489. XA3A, 2,
  5490. , 15,
  5491. XA0E, 1,
  5492. , 5,
  5493. XPE_, 1
  5494. }
  5495. OperationRegion(X3DB, PCI_Config, 0x60, 0x4)
  5496. Field(X3DB, DWordAcc, NoLock, Preserve)
  5497. {
  5498. XG9A, 16,
  5499. , 4,
  5500. XGAM, 1,
  5501. , 3,
  5502. XMSS, 1,
  5503. XPA_, 2,
  5504. , 1,
  5505. XFA_, 1,
  5506. XFE_, 1,
  5507. , 2
  5508. }
  5509. OperationRegion(X3DC, PCI_Config, 0x64, 0x4)
  5510. Field(X3DC, DWordAcc, NoLock, Preserve)
  5511. {
  5512. XGAD, 16,
  5513. , 8,
  5514. XU1A, 3,
  5515. XU1E, 1,
  5516. XU2A, 3,
  5517. XU2E, 1
  5518. }
  5519. OperationRegion(SMBC, PCI_Config, 0xd2, 0x1)
  5520. Field(SMBC, ByteAcc, NoLock, Preserve)
  5521. {
  5522. SBHE, 1,
  5523. SBIS, 3
  5524. }
  5525. OperationRegion(SMBR, SystemIO, 0xefa0, 0x6)
  5526. Field(SMBR, ByteAcc, NoLock, Preserve)
  5527. {
  5528. SBHS, 8,
  5529. SBSS, 8,
  5530. SBHC, 8,
  5531. SBCM, 8,
  5532. SBAD, 8,
  5533. SBDT, 8
  5534. }
  5535. Mutex(MSMB, 0x7)
  5536. Method(RSMB, 0x2, NotSerialized)
  5537. {
  5538. Acquire(MSMB, 0xffff)
  5539. Store(SBHE, Local0)
  5540. Store(SBIS, Local1)
  5541. Store(0x0, SBIS)
  5542. Store(0x1, SBHE)
  5543. Store(0xff, Local2)
  5544. While(LAnd(And(SBHS, 0x1, ), Local2))
  5545. {
  5546. Stall(0x15)
  5547. Decrement(Local2)
  5548. }
  5549. Store(0xff, Local2)
  5550. While(LAnd(And(SBSS, 0x1, ), Local2))
  5551. {
  5552. Stall(0x15)
  5553. Decrement(Local2)
  5554. }
  5555. Store(0x1e, SBHS)
  5556. Store(0x3c, SBSS)
  5557. Store(SBHC, Local2)
  5558. Store(Or(ShiftLeft(Arg0, 0x1, ), 0x1, ), SBAD)
  5559. Store(Arg1, SBCM)
  5560. Store(0x8, SBHC)
  5561. Store(0x48, SBHC)
  5562. Store(0xff, Local2)
  5563. While(LAnd(And(SBHS, 0x1, ), Local2))
  5564. {
  5565. Stall(0x15)
  5566. Decrement(Local2)
  5567. }
  5568. Store(0xff, Local2)
  5569. While(LAnd(LNot(And(SBHS, 0x2, )), Local2))
  5570. {
  5571. Stall(0x15)
  5572. Decrement(Local2)
  5573. }
  5574. Store(Or(SBHS, 0x2, ), SBHS)
  5575. Store(SBDT, Local3)
  5576. Store(SBHC, Local2)
  5577. Store(Local1, SBIS)
  5578. Store(Local0, SBHE)
  5579. Release(MSMB)
  5580. Return(Local3)
  5581. }
  5582. }
  5583. Device(USB0)
  5584. {
  5585. Name(_ADR, 0x10002)
  5586. Name(_PRW, Package(0x2)
  5587. {
  5588. 0x8,
  5589. 0x2
  5590. })
  5591. }
  5592. Device(DOCK)
  5593. {
  5594. Name(_ADR, 0x40000)
  5595. OperationRegion(X400, PCI_Config, 0x0, 0x100)
  5596. Field(X400, DWordAcc, NoLock, Preserve)
  5597. {
  5598. Offset(0xd0),
  5599. KNX0, 16,
  5600. KNX1, 16,
  5601. KNY0, 16,
  5602. KNY1, 16,
  5603. , 32,
  5604. KNPC, 8,
  5605. , 24,
  5606. KND0, 8,
  5607. KNB0, 8,
  5608. KNB1, 8,
  5609. KNWC, 8,
  5610. KNT0, 8,
  5611. KNT1, 8,
  5612. KNRC, 8,
  5613. KNRS, 8,
  5614. KNAC, 8,
  5615. KNDM, 8,
  5616. KNMC, 16,
  5617. KNNB, 16,
  5618. KNNL, 16,
  5619. KNR0, 32,
  5620. KNR1, 32,
  5621. KNR2, 32,
  5622. KNR3, 32
  5623. }
  5624. Name(_PRT, Package(0xf)
  5625. {
  5626. Package(0x4)
  5627. {
  5628. 0xffff,
  5629. 0x3,
  5630. \_SB_.LNKD,
  5631. 0x0
  5632. },
  5633. Package(0x4)
  5634. {
  5635. 0x1ffff,
  5636. 0x0,
  5637. \_SB_.LNKB,
  5638. 0x0
  5639. },
  5640. Package(0x4)
  5641. {
  5642. 0x2ffff,
  5643. 0x0,
  5644. \_SB_.LNKC,
  5645. 0x0
  5646. },
  5647. Package(0x4)
  5648. {
  5649. 0x4ffff,
  5650. 0x0,
  5651. \_SB_.LNKA,
  5652. 0x0
  5653. },
  5654. Package(0x4)
  5655. {
  5656. 0x4ffff,
  5657. 0x1,
  5658. \_SB_.LNKB,
  5659. 0x0
  5660. },
  5661. Package(0x4)
  5662. {
  5663. 0x4ffff,
  5664. 0x2,
  5665. \_SB_.LNKC,
  5666. 0x0
  5667. },
  5668. Package(0x4)
  5669. {
  5670. 0x4ffff,
  5671. 0x3,
  5672. \_SB_.LNKD,
  5673. 0x0
  5674. },
  5675. Package(0x4)
  5676. {
  5677. 0x5ffff,
  5678. 0x0,
  5679. \_SB_.LNKB,
  5680. 0x0
  5681. },
  5682. Package(0x4)
  5683. {
  5684. 0x5ffff,
  5685. 0x1,
  5686. \_SB_.LNKC,
  5687. 0x0
  5688. },
  5689. Package(0x4)
  5690. {
  5691. 0x5ffff,
  5692. 0x2,
  5693. \_SB_.LNKD,
  5694. 0x0
  5695. },
  5696. Package(0x4)
  5697. {
  5698. 0x5ffff,
  5699. 0x3,
  5700. \_SB_.LNKA,
  5701. 0x0
  5702. },
  5703. Package(0x4)
  5704. {
  5705. 0x6ffff,
  5706. 0x0,
  5707. \_SB_.LNKC,
  5708. 0x0
  5709. },
  5710. Package(0x4)
  5711. {
  5712. 0x6ffff,
  5713. 0x1,
  5714. \_SB_.LNKD,
  5715. 0x0
  5716. },
  5717. Package(0x4)
  5718. {
  5719. 0x6ffff,
  5720. 0x2,
  5721. \_SB_.LNKA,
  5722. 0x0
  5723. },
  5724. Package(0x4)
  5725. {
  5726. 0x6ffff,
  5727. 0x3,
  5728. \_SB_.LNKB,
  5729. 0x0
  5730. }
  5731. })
  5732. Name(DOID, 0x0)
  5733. Name(SPCI, 0x7)
  5734. Method(_INI, 0x0, NotSerialized)
  5735. {
  5736. Store(GDID(), DOID)
  5737. }
  5738. Method(_STA, 0x0, NotSerialized)
  5739. {
  5740. Store(DOID, Local0)
  5741. If(LEqual(Local0, 0x9f))
  5742. {
  5743. Store(0xf, Local1)
  5744. }
  5745. Else
  5746. {
  5747. If(LEqual(Local0, 0x8f))
  5748. {
  5749. Store(0xf, Local1)
  5750. }
  5751. Else
  5752. {
  5753. If(LEqual(Local0, 0x7f))
  5754. {
  5755. Store(0xf, Local1)
  5756. }
  5757. Else
  5758. {
  5759. If(LEqual(Local0, 0x6f))
  5760. {
  5761. Store(0xf, Local1)
  5762. }
  5763. Else
  5764. {
  5765. If(LEqual(Local0, 0x5f))
  5766. {
  5767. Store(0xf, Local1)
  5768. }
  5769. Else
  5770. {
  5771. Store(0xc, Local1)
  5772. }
  5773. }
  5774. }
  5775. }
  5776. }
  5777. Return(Local1)
  5778. }
  5779. Name(_UID, 0x0)
  5780. Method(_BDN, 0x0, NotSerialized)
  5781. {
  5782. Return(GDID())
  5783. }
  5784. Name(_PRW, Package(0x2)
  5785. {
  5786. 0xb,
  5787. 0x3
  5788. })
  5789. Method(_PSW, 0x1, NotSerialized)
  5790. {
  5791. If(Arg0)
  5792. {
  5793. Store(One, \_SB_.PCI0.ISA0.EC0_.HWDK)
  5794. }
  5795. Else
  5796. {
  5797. Store(Zero, \_SB_.PCI0.ISA0.EC0_.HWDK)
  5798. }
  5799. }
  5800. Method(_EJ0, 0x1, NotSerialized)
  5801. {
  5802. If(Arg0)
  5803. {
  5804. Sleep(0x1f4)
  5805. }
  5806. }
  5807. Method(_EJ4, 0x1, NotSerialized)
  5808. {
  5809. }
  5810. Event(CNCT)
  5811. Event(EJT0)
  5812. Method(_DCK, 0x1, NotSerialized)
  5813. {
  5814. If(Arg0)
  5815. {
  5816. Store(0x5381, S_AX)
  5817. Store(0x8231, S_BX)
  5818. Store(0xf012, S_CX)
  5819. SMPI(0x81)
  5820. Store(0x0, PCIE)
  5821. Sleep(0x12c)
  5822. If(W98F)
  5823. {
  5824. MPCI(0x8000203e, 0xff, 0x40)
  5825. Sleep(0x64)
  5826. MPCI(0x8000203e, 0xbf, 0x0)
  5827. WPCI(0x8000200c, 0x8)
  5828. WPCI(0x8000200d, 0xa8)
  5829. WPCI(0x80002019, SPCI)
  5830. WPCI(0x8000201a, 0xd)
  5831. WPCI(0x8000201c, 0xf0)
  5832. WPCI(0x8000201d, 0x0)
  5833. WPCI(0x80002020, 0xf0)
  5834. WPCI(0x80002021, 0xff)
  5835. WPCI(0x80002022, 0x0)
  5836. WPCI(0x80002023, 0x0)
  5837. WPCI(0x80002024, 0xf0)
  5838. WPCI(0x80002025, 0xff)
  5839. WPCI(0x80002026, 0x0)
  5840. WPCI(0x80002027, 0x0)
  5841. }
  5842. Store(0x31, KNPC)
  5843. Store(0x13, KND0)
  5844. Store(0x1f, KNB0)
  5845. Store(0x1f, KNB1)
  5846. Store(0xf, KNWC)
  5847. Store(0x0, KNT0)
  5848. Store(0x0, KNT1)
  5849. Store(0x0, KNRC)
  5850. Store(0x21, KNAC)
  5851. Store(0x51, KNMC)
  5852. Store(0xfff0, KNNB)
  5853. Store(0x0, KNNL)
  5854. SDCM()
  5855. If(W98F)
  5856. {
  5857. MPCI(0x80002004, 0xff, 0x7)
  5858. }
  5859. Store(Zero, \_SB_.PCI0.XPLD)
  5860. Store(Zero, \_SB_.PCI0.ISA0.P21E)
  5861. If(W98F)
  5862. {
  5863. \_SB_.PCI0.DOCK.ISA1._REG(0x2, 0x1)
  5864. \_SB_.PCI0.DOCK.IDE1._REG(0x2, 0x1)
  5865. \_SB_.PCI0.DOCK.CBS0._REG(0x2, 0x1)
  5866. \_SB_.PCI0.DOCK.CBS1._REG(0x2, 0x1)
  5867. }
  5868. Reset(\_SB_.PCI0.DOCK.CNCT)
  5869. If(H8DR)
  5870. {
  5871. Store(\_SB_.PCI0.ISA0.EC0_.I2CW(0x0, 0x40, 0x5, 0x84), Local0)
  5872. If(LEqual(And(Local0, 0x8000, ), 0x8000))
  5873. {
  5874. Return(0x0)
  5875. }
  5876. Stall(0xfa)
  5877. Stall(0xfa)
  5878. }
  5879. Else
  5880. {
  5881. Store(0x5381, S_AX)
  5882. Store(0x9012, S_BX)
  5883. Store(0x8405, S_CX)
  5884. SMPI(0x81)
  5885. If(S_AH)
  5886. {
  5887. Return(0x0)
  5888. }
  5889. }
  5890. Wait(CNCT, 0xffff)
  5891. Store(GDID(), DOID)
  5892. }
  5893. Else
  5894. {
  5895. Reset(EJT0)
  5896. If(H8DR)
  5897. {
  5898. Store(\_SB_.PCI0.ISA0.EC0_.I2CW(0x0, 0x40, 0x5, 0x85), Local0)
  5899. If(LEqual(And(Local0, 0x8000, ), 0x8000))
  5900. {
  5901. Return(0x0)
  5902. }
  5903. }
  5904. Else
  5905. {
  5906. Store(0x5381, S_AX)
  5907. Store(0x9012, S_BX)
  5908. Store(0x8505, S_CX)
  5909. SMPI(0x81)
  5910. If(S_AH)
  5911. {
  5912. Return(0x0)
  5913. }
  5914. }
  5915. Wait(EJT0, 0xffff)
  5916. Store(One, \_SB_.PCI0.XPLD)
  5917. Store(0x7, \_SB_.PCI0.ISA0.P21E)
  5918. Store(0x1, PCIE)
  5919. Store(0x5381, S_AX)
  5920. Store(0x8231, S_BX)
  5921. Store(0xf000, S_CX)
  5922. SMPI(0x81)
  5923. Store(0x0, DOID)
  5924. }
  5925. Return(0x1)
  5926. }
  5927. Method(GDID, 0x0, NotSerialized)
  5928. {
  5929. If(PCIE)
  5930. {
  5931. Return(0x0)
  5932. }
  5933. Else
  5934. {
  5935. Return(RDID())
  5936. }
  5937. }
  5938. Method(RDID, 0x0, NotSerialized)
  5939. {
  5940. If(H8DR)
  5941. {
  5942. Store(0x0, Local0)
  5943. While(LNot(LEqual(Local0, 0x10)))
  5944. {
  5945. Store(\_SB_.PCI0.ISA0.EC0_.I2CR(Zero, 0x40, 0x0), Local1)
  5946. If(LAnd(LNot(LEqual(Local1, 0x8080)), LNot(LEqual(Local1, 0x8018))))
  5947. {
  5948. If(LNot(LEqual(And(Local1, 0x8000, ), 0x8000)))
  5949. {
  5950. Return(Local1)
  5951. }
  5952. Else
  5953. {
  5954. Return(0x0)
  5955. }
  5956. }
  5957. Increment(Local0)
  5958. }
  5959. Return(0x0)
  5960. }
  5961. Else
  5962. {
  5963. Store(0x5381, S_AX)
  5964. Store(0x9012, S_BX)
  5965. Store(0x0, S_CX)
  5966. SMPI(0x81)
  5967. If(LEqual(S_AH, 0x0))
  5968. {
  5969. Return(S_CH)
  5970. }
  5971. Else
  5972. {
  5973. Return(0x0)
  5974. }
  5975. }
  5976. }
  5977. Method(GMGP, 0x0, NotSerialized)
  5978. {
  5979. Store(GDID(), Local0)
  5980. If(LEqual(Local0, 0x9f))
  5981. {
  5982. Store(0x1, Local1)
  5983. }
  5984. Else
  5985. {
  5986. If(LEqual(Local0, 0x8f))
  5987. {
  5988. Store(0x1, Local1)
  5989. }
  5990. Else
  5991. {
  5992. If(LEqual(Local0, 0x7f))
  5993. {
  5994. Store(0x1, Local1)
  5995. }
  5996. Else
  5997. {
  5998. Store(0x0, Local1)
  5999. }
  6000. }
  6001. }
  6002. Return(Local1)
  6003. }
  6004. Method(GPCS, 0x0, NotSerialized)
  6005. {
  6006. Store(GDID(), Local0)
  6007. If(LNot(LEqual(Local0, 0x0)))
  6008. {
  6009. Store(0x1, Local1)
  6010. }
  6011. Else
  6012. {
  6013. Store(0x0, Local1)
  6014. }
  6015. Return(Local1)
  6016. }
  6017. Method(SDCM, 0x0, NotSerialized)
  6018. {
  6019. If(LEqual(PCIE, 0x1))
  6020. {
  6021. Return(0x0)
  6022. }
  6023. Store(0x0, Local0)
  6024. Or(Local0, \_SB_.PCI0.ISA0.FIR_.DRQD, Local0)
  6025. Or(Local0, \_SB_.PCI0.ISA0.ECP_.DRQD, Local0)
  6026. Or(Local0, \_SB_.PCI0.ISA0.FDC0.DRQD, Local0)
  6027. Or(Local0, \_SB_.PCI0.ISA0.CS00.DRQD, Local0)
  6028. Or(Local0, \_SB_.PCI0.ISA0.MWV0.DRQD, Local0)
  6029. XOr(Local0, 0xff, KNDM)
  6030. }
  6031. Name(PHLD, 0x0)
  6032. Method(DPTS, 0x1, NotSerialized)
  6033. {
  6034. If(LEqual(Arg0, 0x3))
  6035. {
  6036. Store(PCIE, Local0)
  6037. Store(0x0, PCIE)
  6038. Sleep(0x12c)
  6039. Store(KNPC, PHLD)
  6040. Store(Local0, PCIE)
  6041. Store(One, \_SB_.PCI0.ISA0.EC0_.HWDK)
  6042. }
  6043. }
  6044. Method(DWAK, 0x1, NotSerialized)
  6045. {
  6046. If(LEqual(Arg0, 0x3))
  6047. {
  6048. Store(PCIE, Local0)
  6049. Store(0x0, PCIE)
  6050. Sleep(0x12c)
  6051. Store(PHLD, KNPC)
  6052. Store(Local0, PCIE)
  6053. If(WDCK)
  6054. {
  6055. Notify(\_SB_.PCI0.DOCK, 0x1)
  6056. }
  6057. Else
  6058. {
  6059. If(DOID)
  6060. {
  6061. \_SB_.PCI0.DOCK.CBS0.DWAK(Arg0)
  6062. \_SB_.PCI0.DOCK.CBS1.DWAK(Arg0)
  6063. }
  6064. Else
  6065. {
  6066. If(RDID())
  6067. {
  6068. Notify(\_SB_.PCI0.DOCK, 0x0)
  6069. }
  6070. }
  6071. }
  6072. }
  6073. }
  6074. Device(ISA1)
  6075. {
  6076. Name(_ADR, 0x0)
  6077. OperationRegion(X000, PCI_Config, 0x0, 0x100)
  6078. Field(X000, DWordAcc, NoLock, Preserve)
  6079. {
  6080. Offset(0x4c),
  6081. IORT, 8,
  6082. , 8,
  6083. XBCS, 16,
  6084. Offset(0x60),
  6085. PRQA, 8,
  6086. PRQB, 8,
  6087. PRQC, 8,
  6088. PRQD, 8,
  6089. SIRQ, 8,
  6090. , 32,
  6091. TOM_, 8,
  6092. MSTA, 16,
  6093. Offset(0x76),
  6094. DMA0, 8,
  6095. DMA1, 8,
  6096. Offset(0x80),
  6097. APIC, 8,
  6098. , 8,
  6099. DLC_, 8,
  6100. Offset(0x90),
  6101. DMAC, 16,
  6102. Offset(0xb0),
  6103. GENC, 32,
  6104. Offset(0xcb),
  6105. RTCC, 8
  6106. }
  6107. Method(_REG, 0x2, NotSerialized)
  6108. {
  6109. If(LAnd(LEqual(Arg0, 0x2), LEqual(Arg1, 0x1)))
  6110. {
  6111. Or(And(IORT, 0x0, ), 0x5, IORT)
  6112. Or(And(XBCS, 0xf800, ), 0x400, XBCS)
  6113. Or(And(PRQA, 0x70, ), 0x80, PRQA)
  6114. Or(And(PRQB, 0x70, ), 0x80, PRQB)
  6115. Or(And(PRQC, 0x70, ), 0x80, PRQC)
  6116. Or(And(PRQD, 0x70, ), 0x80, PRQD)
  6117. Or(And(SIRQ, 0x0, ), 0x90, SIRQ)
  6118. Or(And(TOM_, 0x1, ), 0xfa, TOM_)
  6119. Or(And(MSTA, 0x7f7f, ), 0x8080, MSTA)
  6120. Or(And(DMA0, 0x78, ), 0x4, DMA0)
  6121. Or(And(DMA1, 0x78, ), 0x4, DMA1)
  6122. Or(And(APIC, 0x80, ), 0x0, APIC)
  6123. Or(And(DLC_, 0xf0, ), 0x0, DLC_)
  6124. Or(And(DMAC, 0x300, ), 0x0, DMAC)
  6125. Or(And(GENC, 0x4002080, ), 0x1001c90d, GENC)
  6126. Or(And(RTCC, 0xc2, ), 0x25, RTCC)
  6127. }
  6128. }
  6129. }
  6130. Device(IDE1)
  6131. {
  6132. Name(_ADR, 0x1)
  6133. OperationRegion(X140, PCI_Config, 0x40, 0x10)
  6134. Field(X140, DWordAcc, NoLock, Preserve)
  6135. {
  6136. , 16,
  6137. , 1,
  6138. XTI0, 1,
  6139. , 2,
  6140. , 1,
  6141. XTI1, 1,
  6142. , 2,
  6143. XTRT, 2,
  6144. , 2,
  6145. XTIS, 2,
  6146. XTSE, 1,
  6147. XTE_, 1,
  6148. , 4,
  6149. XWRT, 2,
  6150. XWIS, 2,
  6151. , 24,
  6152. XFP0, 1,
  6153. XFP1, 1,
  6154. XFS0, 1,
  6155. XFS1, 1,
  6156. , 4,
  6157. , 8,
  6158. XVP0, 2,
  6159. , 2,
  6160. XVP1, 2,
  6161. , 2,
  6162. XVS0, 2,
  6163. , 2,
  6164. XVS1, 2,
  6165. , 2
  6166. }
  6167. Method(_REG, 0x2, NotSerialized)
  6168. {
  6169. If(LAnd(LEqual(Arg0, 0x2), LEqual(Arg1, 0x1)))
  6170. {
  6171. Store(0x7, IRQS)
  6172. Store(0x1, IRQE)
  6173. Store(0x1, DASD)
  6174. If(W98F)
  6175. {
  6176. Or(ShiftLeft(SPCI, 0x10, ), 0x80000100, Local0)
  6177. WPCI(Or(Local0, 0xd, ), 0x20)
  6178. WPCI(Or(Local0, 0x20, ), 0xe1)
  6179. WPCI(Or(Local0, 0x21, ), 0xfc)
  6180. Store(0x1, XTE_)
  6181. MPCI(Or(Local0, 0x4, ), 0xff, 0x5)
  6182. }
  6183. }
  6184. }
  6185. Method(_STA, 0x0, NotSerialized)
  6186. {
  6187. Store(\_SB_.PCI0.DOCK.GDID(), Local0)
  6188. If(LEqual(Local0, 0x9f))
  6189. {
  6190. Store(0xf, Local1)
  6191. }
  6192. Else
  6193. {
  6194. If(LEqual(Local0, 0x8f))
  6195. {
  6196. Store(0xf, Local1)
  6197. }
  6198. Else
  6199. {
  6200. If(LEqual(Local0, 0x7f))
  6201. {
  6202. Store(0xf, Local1)
  6203. }
  6204. Else
  6205. {
  6206. Store(0x0, Local1)
  6207. }
  6208. }
  6209. }
  6210. Return(Local1)
  6211. }
  6212. Device(IDED)
  6213. {
  6214. Method(_ADR, 0x0, NotSerialized)
  6215. {
  6216. If(And(KNMC, 0x800, ))
  6217. {
  6218. If(LEqual(KNX0, 0x1e0))
  6219. {
  6220. Return(0x2)
  6221. }
  6222. Else
  6223. {
  6224. If(LEqual(KNX0, 0x168))
  6225. {
  6226. Return(0x3)
  6227. }
  6228. Else
  6229. {
  6230. Return(0x3)
  6231. }
  6232. }
  6233. }
  6234. Else
  6235. {
  6236. Return(0x1)
  6237. }
  6238. }
  6239. Method(_GTM, 0x0, NotSerialized)
  6240. {
  6241. Subtract(0x5, XTIS, Local0)
  6242. Subtract(0x4, XTRT, Local1)
  6243. Add(Local0, Local1, Local0)
  6244. Multiply(0x1e, Local0, Local0)
  6245. If(LGreater(Local0, 0xf0))
  6246. {
  6247. Store(0x384, Local0)
  6248. }
  6249. If(XFS0)
  6250. {
  6251. Store(0x11, Local4)
  6252. If(LEqual(XVS0, 0x0))
  6253. {
  6254. Store(0x78, Local1)
  6255. }
  6256. Else
  6257. {
  6258. If(LEqual(XVS0, 0x1))
  6259. {
  6260. Store(0x50, Local1)
  6261. }
  6262. Else
  6263. {
  6264. Store(0x3c, Local1)
  6265. }
  6266. }
  6267. }
  6268. Else
  6269. {
  6270. Store(0x10, Local4)
  6271. Store(Local0, Local1)
  6272. }
  6273. If(XTI0)
  6274. {
  6275. Or(Local4, 0x2, Local4)
  6276. }
  6277. If(XTSE)
  6278. {
  6279. Subtract(0x5, XWIS, Local2)
  6280. Subtract(0x4, XWRT, Local3)
  6281. Add(Local2, Local3, Local2)
  6282. Multiply(0x1e, Local2, Local2)
  6283. If(LGreater(Local2, 0xf0))
  6284. {
  6285. Store(0x384, Local2)
  6286. }
  6287. If(XVS1)
  6288. {
  6289. Or(Local4, 0x4, Local4)
  6290. If(LEqual(XVS1, 0x0))
  6291. {
  6292. Store(0x78, Local3)
  6293. }
  6294. Else
  6295. {
  6296. If(LEqual(XVS1, 0x1))
  6297. {
  6298. Store(0x50, Local3)
  6299. }
  6300. Else
  6301. {
  6302. Store(0x3c, Local3)
  6303. }
  6304. }
  6305. }
  6306. Else
  6307. {
  6308. Store(Local2, Local3)
  6309. }
  6310. If(XTI1)
  6311. {
  6312. Or(Local4, 0x8, Local4)
  6313. }
  6314. }
  6315. Else
  6316. {
  6317. Store(Local0, Local2)
  6318. Store(Local1, Local3)
  6319. }
  6320. Store(Local0, GTP0)
  6321. Store(Local1, GTD0)
  6322. Store(Local2, GTP1)
  6323. Store(Local3, GTD1)
  6324. Store(Local4, GTMF)
  6325. Return(BGTM)
  6326. }
  6327. Method(_STM, 0x3, NotSerialized)
  6328. {
  6329. CreateDWordField(Arg0, 0x0, STP0)
  6330. CreateDWordField(Arg0, 0x4, STD0)
  6331. CreateDWordField(Arg0, 0x8, STP1)
  6332. CreateDWordField(Arg0, 0xc, STD1)
  6333. CreateDWordField(Arg0, 0x10, STMF)
  6334. If(And(STMF, 0x2, ))
  6335. {
  6336. Store(One, XTI0)
  6337. }
  6338. Else
  6339. {
  6340. Store(Zero, XTI0)
  6341. }
  6342. If(And(STMF, 0x4, ))
  6343. {
  6344. Store(One, XTI1)
  6345. }
  6346. Else
  6347. {
  6348. Store(Zero, XTI1)
  6349. }
  6350. If(LGreater(STP0, 0x78))
  6351. {
  6352. If(LGreater(STP0, 0xb4))
  6353. {
  6354. If(LGreater(STP0, 0xf0))
  6355. {
  6356. Store(0x0, XTIS)
  6357. Store(0x0, XTRT)
  6358. }
  6359. Else
  6360. {
  6361. Store(0x1, XTIS)
  6362. Store(0x0, XTRT)
  6363. }
  6364. }
  6365. Else
  6366. {
  6367. Store(0x2, XTIS)
  6368. Store(0x1, XTRT)
  6369. }
  6370. }
  6371. Else
  6372. {
  6373. Store(0x2, XTIS)
  6374. Store(0x3, XTRT)
  6375. }
  6376. If(And(STMF, 0x1, ))
  6377. {
  6378. Store(One, XFS0)
  6379. If(LGreater(STD0, 0x3c))
  6380. {
  6381. If(LGreater(STD0, 0x50))
  6382. {
  6383. Store(0x0, XVS0)
  6384. }
  6385. Else
  6386. {
  6387. Store(0x1, XVS0)
  6388. }
  6389. }
  6390. Else
  6391. {
  6392. Store(0x2, XVS0)
  6393. }
  6394. }
  6395. Else
  6396. {
  6397. Store(Zero, XFP0)
  6398. }
  6399. If(STP1)
  6400. {
  6401. Store(One, XTSE)
  6402. If(LGreater(STP1, 0x78))
  6403. {
  6404. If(LGreater(STP1, 0xb4))
  6405. {
  6406. If(LGreater(STP1, 0xf0))
  6407. {
  6408. Store(0x0, XWIS)
  6409. Store(0x0, XWRT)
  6410. }
  6411. Else
  6412. {
  6413. Store(0x1, XWIS)
  6414. Store(0x0, XWRT)
  6415. }
  6416. }
  6417. Else
  6418. {
  6419. Store(0x2, XWIS)
  6420. Store(0x1, XWRT)
  6421. }
  6422. }
  6423. Else
  6424. {
  6425. Store(0x2, XWIS)
  6426. Store(0x3, XWRT)
  6427. }
  6428. If(And(STMF, 0x4, ))
  6429. {
  6430. Store(One, XFS1)
  6431. If(LGreater(STD1, 0x3c))
  6432. {
  6433. If(LGreater(STD1, 0x50))
  6434. {
  6435. Store(0x0, XVS1)
  6436. }
  6437. Else
  6438. {
  6439. Store(0x1, XVS1)
  6440. }
  6441. }
  6442. Else
  6443. {
  6444. Store(0x2, XVS1)
  6445. }
  6446. }
  6447. Else
  6448. {
  6449. Store(Zero, XFS1)
  6450. }
  6451. }
  6452. Else
  6453. {
  6454. Store(Zero, XTSE)
  6455. }
  6456. }
  6457. Method(_STA, 0x0, NotSerialized)
  6458. {
  6459. If(XTE_)
  6460. {
  6461. Return(0xf)
  6462. }
  6463. Else
  6464. {
  6465. Return(0x1)
  6466. }
  6467. }
  6468. Device(IDTM)
  6469. {
  6470. Name(_ADR, 0x0)
  6471. Method(_STA, 0x0, NotSerialized)
  6472. {
  6473. If(XTE_)
  6474. {
  6475. Return(0xf)
  6476. }
  6477. Else
  6478. {
  6479. Return(0x1)
  6480. }
  6481. }
  6482. Method(_GTF, 0x0, NotSerialized)
  6483. {
  6484. Store(0xa0, IDC0)
  6485. Store(0xa0, IDC1)
  6486. Return(ICMD)
  6487. }
  6488. }
  6489. Device(IDTS)
  6490. {
  6491. Name(_ADR, 0x1)
  6492. Method(_STA, 0x0, NotSerialized)
  6493. {
  6494. If(XTSE)
  6495. {
  6496. Return(0xf)
  6497. }
  6498. Else
  6499. {
  6500. Return(0x1)
  6501. }
  6502. }
  6503. Method(_GTF, 0x0, NotSerialized)
  6504. {
  6505. Store(0xb0, IDC0)
  6506. Store(0xb0, IDC1)
  6507. Return(ICMD)
  6508. }
  6509. }
  6510. }
  6511. }
  6512. Device(USB1)
  6513. {
  6514. Name(_ADR, 0x2)
  6515. }
  6516. Device(CBS0)
  6517. {
  6518. OperationRegion(X200, PCI_Config, 0x0, 0x100)
  6519. Field(X200, DWordAcc, NoLock, Preserve)
  6520. {
  6521. Offset(0x40),
  6522. SVID, 16,
  6523. SSID, 16,
  6524. LGDC, 32,
  6525. Offset(0x80),
  6526. SYSC, 32,
  6527. Offset(0x8b),
  6528. GPI3, 8,
  6529. IRQM, 32,
  6530. , 8,
  6531. CCTL, 8,
  6532. DCTL, 8,
  6533. DIAG, 8
  6534. }
  6535. Name(_ADR, 0x0)
  6536. Method(_INI, 0x0, NotSerialized)
  6537. {
  6538. If(\_SB_.PCI0.DOCK.GPCS())
  6539. {
  6540. If(LEqual(GDID(), 0x20))
  6541. {
  6542. Store(0x0, _ADR)
  6543. }
  6544. Else
  6545. {
  6546. Store(0x20000, _ADR)
  6547. }
  6548. ISID()
  6549. Store(0x0, LGDC)
  6550. Store(0x0, GPI3)
  6551. Store(0xfba97543, IRQM)
  6552. Store(0x2, CCTL)
  6553. Store(0x62, DCTL)
  6554. Store(0x60, DIAG)
  6555. If(LEqual(\_SB_.PCI0.DOCK.GDID(), 0x20))
  6556. {
  6557. Store(0x44c073, SYSC)
  6558. }
  6559. Else
  6560. {
  6561. Store(0x28449061, SYSC)
  6562. }
  6563. }
  6564. }
  6565. Method(DWAK, 0x1, NotSerialized)
  6566. {
  6567. If(LEqual(Arg0, 0x3))
  6568. {
  6569. _INI()
  6570. }
  6571. }
  6572. Method(_REG, 0x2, NotSerialized)
  6573. {
  6574. If(LAnd(LEqual(Arg0, 0x2), LEqual(Arg1, 0x1)))
  6575. {
  6576. _INI()
  6577. }
  6578. }
  6579. Method(ISID, 0x0, NotSerialized)
  6580. {
  6581. Store(GVER(), Local0)
  6582. If(LOr(LEqual(Local0, 0x2), LEqual(Local0, 0x3)))
  6583. {
  6584. And(SYSC, 0xffffffdf, SYSC)
  6585. Store(0x1014, SVID)
  6586. Store(0xbb, SSID)
  6587. Or(SYSC, 0x20, SYSC)
  6588. }
  6589. }
  6590. }
  6591. Device(CBS1)
  6592. {
  6593. OperationRegion(X201, PCI_Config, 0x0, 0x100)
  6594. Field(X201, DWordAcc, NoLock, Preserve)
  6595. {
  6596. Offset(0x40),
  6597. SVID, 16,
  6598. SSID, 16,
  6599. LGDC, 32,
  6600. Offset(0x80),
  6601. SYSC, 32,
  6602. Offset(0x8b),
  6603. GPI3, 8,
  6604. IRQM, 32,
  6605. , 8,
  6606. CCTL, 8,
  6607. DCTL, 8,
  6608. DIAG, 8
  6609. }
  6610. Name(_ADR, 0x1)
  6611. Method(_INI, 0x0, NotSerialized)
  6612. {
  6613. If(\_SB_.PCI0.DOCK.GPCS())
  6614. {
  6615. If(LEqual(GDID(), 0x20))
  6616. {
  6617. Store(0x1, _ADR)
  6618. }
  6619. Else
  6620. {
  6621. Store(0x20001, _ADR)
  6622. }
  6623. ISID()
  6624. Store(0x0, LGDC)
  6625. Store(0x0, GPI3)
  6626. Store(0xfba97543, IRQM)
  6627. Store(0x2, CCTL)
  6628. Store(0x62, DCTL)
  6629. Store(0x60, DIAG)
  6630. If(LEqual(\_SB_.PCI0.DOCK.GDID(), 0x20))
  6631. {
  6632. Store(0x44c073, SYSC)
  6633. }
  6634. Else
  6635. {
  6636. Store(0x28449061, SYSC)
  6637. }
  6638. }
  6639. }
  6640. Method(DWAK, 0x1, NotSerialized)
  6641. {
  6642. If(LEqual(Arg0, 0x3))
  6643. {
  6644. _INI()
  6645. }
  6646. }
  6647. Method(_REG, 0x2, NotSerialized)
  6648. {
  6649. If(LAnd(LEqual(Arg0, 0x2), LEqual(Arg1, 0x1)))
  6650. {
  6651. _INI()
  6652. }
  6653. }
  6654. Method(ISID, 0x0, NotSerialized)
  6655. {
  6656. Store(GVER(), Local0)
  6657. If(LOr(LEqual(Local0, 0x2), LEqual(Local0, 0x3)))
  6658. {
  6659. And(SYSC, 0xffffffdf, SYSC)
  6660. Store(0x1014, SVID)
  6661. Store(0xbb, SSID)
  6662. Or(SYSC, 0x20, SYSC)
  6663. }
  6664. }
  6665. }
  6666. Method(GVER, 0x0, NotSerialized)
  6667. {
  6668. Store(GDID(), Local0)
  6669. If(LEqual(Local0, 0x9f))
  6670. {
  6671. Store(0x1, Local1)
  6672. }
  6673. Else
  6674. {
  6675. If(LEqual(Local0, 0x8f))
  6676. {
  6677. Store(0x1, Local1)
  6678. }
  6679. Else
  6680. {
  6681. If(LEqual(Local0, 0x7f))
  6682. {
  6683. Store(0x2, Local1)
  6684. }
  6685. Else
  6686. {
  6687. If(LEqual(Local0, 0x6f))
  6688. {
  6689. Store(0x2, Local1)
  6690. }
  6691. Else
  6692. {
  6693. If(LEqual(Local0, 0x5f))
  6694. {
  6695. Store(0x3, Local1)
  6696. }
  6697. Else
  6698. {
  6699. If(LEqual(Local0, 0x20))
  6700. {
  6701. Store(0x3, Local1)
  6702. }
  6703. Else
  6704. {
  6705. Store(0x0, Local1)
  6706. }
  6707. }
  6708. }
  6709. }
  6710. }
  6711. }
  6712. Return(Local1)
  6713. }
  6714. }
  6715. }
  6716. Method(RBEC, 0x1, NotSerialized)
  6717. {
  6718. Acquire(MSMI, 0xffff)
  6719. Store(0x5381, S_AX)
  6720. Store(0x9180, S_BX)
  6721. Store(0x101, S_CX)
  6722. Store(Arg0, ESI1)
  6723. SMPI(0x81)
  6724. Store(S_BL, Local7)
  6725. Release(MSMI)
  6726. Return(Local7)
  6727. }
  6728. Method(WBEC, 0x2, NotSerialized)
  6729. {
  6730. Acquire(MSMI, 0xffff)
  6731. Store(0x5381, S_AX)
  6732. Store(0x9181, S_BX)
  6733. Store(0x2, S_CX)
  6734. Store(Arg0, ESI1)
  6735. Store(Arg1, ESI2)
  6736. SMPI(0x81)
  6737. Release(MSMI)
  6738. }
  6739. Method(RPCI, 0x1, NotSerialized)
  6740. {
  6741. Acquire(MSMI, 0xffff)
  6742. Store(0x5381, S_AX)
  6743. Store(0x90c1, S_BX)
  6744. Store(0x0, S_CX)
  6745. Store(Arg0, SESI)
  6746. SMPI(0x81)
  6747. Store(S_CL, Local7)
  6748. Release(MSMI)
  6749. Return(Local7)
  6750. }
  6751. Method(WPCI, 0x2, NotSerialized)
  6752. {
  6753. Acquire(MSMI, 0xffff)
  6754. Store(0x5381, S_AX)
  6755. Store(0x90c1, S_BX)
  6756. Store(0x1, S_CH)
  6757. Store(Arg0, SESI)
  6758. Store(Arg1, S_CL)
  6759. SMPI(0x81)
  6760. If(S_AH)
  6761. {
  6762. Store(0x0, Local7)
  6763. }
  6764. Else
  6765. {
  6766. Store(0x1, Local7)
  6767. }
  6768. Release(MSMI)
  6769. Return(Local7)
  6770. }
  6771. Method(MPCI, 0x3, NotSerialized)
  6772. {
  6773. Store(RPCI(Arg0), Local0)
  6774. And(Local0, Arg1, Local0)
  6775. Or(Local0, Arg2, Local0)
  6776. WPCI(Arg0, Local0)
  6777. Return(RPCI(Arg0))
  6778. }
  6779. }
  6780. Method(\_PTS, 0x1, NotSerialized)
  6781. {
  6782. If(LEqual(Arg0, SPS_))
  6783. {
  6784. }
  6785. Else
  6786. {
  6787. Store(Arg0, SPS_)
  6788. If(LNot(LEqual(Arg0, 0x5)))
  6789. {
  6790. Store(0x2, \_SB_.PCI0.ISA0.EC0_.IGNR)
  6791. }
  6792. If(LEqual(Arg0, 0x1))
  6793. {
  6794. Store(0x5381, S_AX)
  6795. Store(0x9091, S_BX)
  6796. SMPI(0x81)
  6797. Store(One, BLEN)
  6798. }
  6799. Else
  6800. {
  6801. If(LEqual(Arg0, 0x2))
  6802. {
  6803. Store(0x5381, S_AX)
  6804. Store(0x9092, S_BX)
  6805. SMPI(0x81)
  6806. Store(One, BLEN)
  6807. Store(One, \_SB_.PCI0.CREN)
  6808. }
  6809. Else
  6810. {
  6811. If(LEqual(Arg0, 0x3))
  6812. {
  6813. Store(0x5381, S_AX)
  6814. Store(0x9093, S_BX)
  6815. SMPI(0x81)
  6816. \_SB_.PCI0.DOCK.DPTS(Arg0)
  6817. \PVID._OFF()
  6818. Store(One, BLEN)
  6819. Store(Zero, \_SB_.PCI0.ISA0.EC0_.HCAC)
  6820. }
  6821. Else
  6822. {
  6823. If(LEqual(Arg0, 0x4))
  6824. {
  6825. Store(0x5381, S_AX)
  6826. Store(0x9094, S_BX)
  6827. SMPI(0x81)
  6828. }
  6829. Else
  6830. {
  6831. If(LEqual(Arg0, 0x5))
  6832. {
  6833. If(W98F)
  6834. {
  6835. Store(0x5381, S_AX)
  6836. Store(0x9095, S_BX)
  6837. SMPI(0x81)
  6838. }
  6839. }
  6840. Else
  6841. {
  6842. }
  6843. }
  6844. }
  6845. }
  6846. }
  6847. If(LNot(LEqual(Arg0, 0x5)))
  6848. {
  6849. Store(Zero, \_SB_.PCI0.ISA0.EC0_.HSPA)
  6850. \_SB_.PCI0.ISA0.EC0_.BPTS(Arg0)
  6851. \_SB_.PCI0.ISA0.EC0_.SWAK()
  6852. }
  6853. }
  6854. }
  6855. Name(WAKI, Package(0x2)
  6856. {
  6857. 0x0,
  6858. 0x0
  6859. })
  6860. Method(\_WAK, 0x1, NotSerialized)
  6861. {
  6862. Store(SPS_, Index(WAKI, 0x1, ))
  6863. If(WBAT)
  6864. {
  6865. Store(0x1, Index(WAKI, 0x0, ))
  6866. }
  6867. Else
  6868. {
  6869. Store(0x0, Index(WAKI, 0x0, ))
  6870. }
  6871. RSTR()
  6872. If(LEqual(Arg0, 0x1))
  6873. {
  6874. Store(0x5381, S_AX)
  6875. Store(0x9099, S_BX)
  6876. SMPI(0x81)
  6877. }
  6878. Else
  6879. {
  6880. If(LEqual(Arg0, 0x2))
  6881. {
  6882. Store(0x5381, S_AX)
  6883. Store(0x909a, S_BX)
  6884. SMPI(0x81)
  6885. }
  6886. Else
  6887. {
  6888. If(LEqual(Arg0, 0x3))
  6889. {
  6890. \_SB_.PCI0.DOCK.DWAK(Arg0)
  6891. \_SB_.PCI0.CBS0.DWAK(Arg0)
  6892. \_SB_.PCI0.CBS1.DWAK(Arg0)
  6893. Store(0x5381, S_AX)
  6894. Store(0x909b, S_BX)
  6895. SMPI(0x81)
  6896. }
  6897. Else
  6898. {
  6899. If(LEqual(Arg0, 0x4))
  6900. {
  6901. Store(0x5381, S_AX)
  6902. Store(0x909c, S_BX)
  6903. SMPI(0x81)
  6904. }
  6905. Else
  6906. {
  6907. If(LEqual(Arg0, 0x5))
  6908. {
  6909. Store(0x5381, S_AX)
  6910. Store(0x909d, S_BX)
  6911. SMPI(0x81)
  6912. }
  6913. Else
  6914. {
  6915. }
  6916. }
  6917. }
  6918. }
  6919. }
  6920. \_SB_.PCI0.ISA0.EC0_.BWAK(Arg0)
  6921. Return(WAKI)
  6922. }
  6923. Method(RSTR, 0x0, NotSerialized)
  6924. {
  6925. Store(Zero, SPS_)
  6926. Store(Zero, BLEN)
  6927. Store(Zero, \_SB_.PCI0.ISA0.EC0_.HWDK)
  6928. If(W98F)
  6929. {
  6930. Notify(\_SB_.PCI0.ISA0.LPT_, 0x0)
  6931. Notify(\_SB_.PCI0.ISA0.ECP_, 0x0)
  6932. }
  6933. }
  6934. Name(\_S0_, Package(0x4)
  6935. {
  6936. 0x5,
  6937. 0x5,
  6938. 0x0,
  6939. 0x0
  6940. })
  6941. Name(\_S1_, Package(0x4)
  6942. {
  6943. 0x4,
  6944. 0x4,
  6945. 0x0,
  6946. 0x0
  6947. })
  6948. Name(\_S4_, Package(0x4)
  6949. {
  6950. 0x0,
  6951. 0x0,
  6952. 0x0,
  6953. 0x0
  6954. })
  6955. Name(\_S5_, Package(0x4)
  6956. {
  6957. 0x0,
  6958. 0x0,
  6959. 0x0,
  6960. 0x0
  6961. })
  6962. Method(_S2_, 0x0, NotSerialized)
  6963. {
  6964. If(BXPT)
  6965. {
  6966. Return(Package(0x4)
  6967. {
  6968. 0x7,
  6969. 0x7,
  6970. 0x0,
  6971. 0x0
  6972. })
  6973. }
  6974. Else
  6975. {
  6976. Return(Package(0x4)
  6977. {
  6978. 0x3,
  6979. 0x3,
  6980. 0x0,
  6981. 0x0
  6982. })
  6983. }
  6984. }
  6985. Method(_S3_, 0x0, NotSerialized)
  6986. {
  6987. If(BXPT)
  6988. {
  6989. Return(Package(0x4)
  6990. {
  6991. 0x6,
  6992. 0x6,
  6993. 0x0,
  6994. 0x0
  6995. })
  6996. }
  6997. Else
  6998. {
  6999. Return(Package(0x4)
  7000. {
  7001. 0x1,
  7002. 0x1,
  7003. 0x0,
  7004. 0x0
  7005. })
  7006. }
  7007. }
  7008. Scope(\_SI_)
  7009. {
  7010. Method(_SST, 0x1, NotSerialized)
  7011. {
  7012. If(H8DR)
  7013. {
  7014. If(LEqual(Arg0, 0x1))
  7015. {
  7016. If(SPS_)
  7017. {
  7018. \_SB_.PCI0.ISA0.EC0_.BEEP(0x5)
  7019. }
  7020. \_SB_.PCI0.ISA0.EC0_.SYSL(0x0, 0x1)
  7021. \_SB_.PCI0.ISA0.EC0_.SYSL(0x1, 0x0)
  7022. }
  7023. Else
  7024. {
  7025. If(LEqual(Arg0, 0x2))
  7026. {
  7027. \_SB_.PCI0.ISA0.EC0_.SYSL(0x0, 0x1)
  7028. \_SB_.PCI0.ISA0.EC0_.SYSL(0x1, 0x2)
  7029. And(\_SB_.PCI0.ISA0.EC0_.HAM5, 0xf7, \_SB_.PCI0.ISA0.EC0_.HAM5)
  7030. }
  7031. Else
  7032. {
  7033. If(LEqual(Arg0, 0x3))
  7034. {
  7035. If(LGreater(SPS_, 0x3))
  7036. {
  7037. \_SB_.PCI0.ISA0.EC0_.BEEP(0x7)
  7038. }
  7039. Else
  7040. {
  7041. \_SB_.PCI0.ISA0.EC0_.BEEP(0x3)
  7042. }
  7043. If(LEqual(SPS_, 0x3))
  7044. {
  7045. \_SB_.PCI0.ISA0.EC0_.SYSL(0x0, 0x0)
  7046. }
  7047. Else
  7048. {
  7049. \_SB_.PCI0.ISA0.EC0_.SYSL(0x0, 0x1)
  7050. }
  7051. \_SB_.PCI0.ISA0.EC0_.SYSL(0x1, 0x1)
  7052. Or(\_SB_.PCI0.ISA0.EC0_.HAM5, 0x8, \_SB_.PCI0.ISA0.EC0_.HAM5)
  7053. }
  7054. Else
  7055. {
  7056. If(LEqual(Arg0, 0x4))
  7057. {
  7058. \_SB_.PCI0.ISA0.EC0_.BEEP(0x3)
  7059. }
  7060. Else
  7061. {
  7062. }
  7063. }
  7064. }
  7065. }
  7066. }
  7067. Else
  7068. {
  7069. }
  7070. }
  7071. Method(_MSG, 0x1, NotSerialized)
  7072. {
  7073. Store(0x5381, S_AX)
  7074. Store(0x909f, S_BX)
  7075. Store(Arg0, S_CX)
  7076. SMPI(0x81)
  7077. }
  7078. }
  7079. Scope(\_GPE)
  7080. {
  7081. Method(_L08, 0x0, NotSerialized)
  7082. {
  7083. Notify(\_SB_.PCI0.USB0, 0x2)
  7084. }
  7085. Method(_L0A, 0x0, NotSerialized)
  7086. {
  7087. Notify(\_SB_.PCI0.ISA0.UAR1, 0x2)
  7088. }
  7089. Method(_L0B, 0x0, NotSerialized)
  7090. {
  7091. If(WPME)
  7092. {
  7093. Notify(\_SB_.PCI0, 0x2)
  7094. Store(Zero, WPME)
  7095. }
  7096. Else
  7097. {
  7098. If(WBAT)
  7099. {
  7100. Notify(\_SB_.PCI0.ISA0.EC0_.BAT0, 0x80)
  7101. Notify(\_SB_.PCI0.ISA0.EC0_.BAT1, 0x80)
  7102. Store(Zero, WBAT)
  7103. }
  7104. Else
  7105. {
  7106. If(WLID)
  7107. {
  7108. Notify(\_SB_.LID0, 0x2)
  7109. Store(Zero, WLID)
  7110. }
  7111. Else
  7112. {
  7113. If(WDCK)
  7114. {
  7115. Notify(\_SB_.SLPB, 0x2)
  7116. Store(Zero, WDCK)
  7117. }
  7118. Else
  7119. {
  7120. If(WFN_)
  7121. {
  7122. Notify(\_SB_.SLPB, 0x2)
  7123. Store(Zero, WFN_)
  7124. }
  7125. Else
  7126. {
  7127. If(WKBD)
  7128. {
  7129. Notify(\_SB_.SLPB, 0x2)
  7130. Store(Zero, WKBD)
  7131. }
  7132. Else
  7133. {
  7134. If(WRI_)
  7135. {
  7136. Notify(\_SB_.PCI0.CBS0, 0x2)
  7137. Store(Zero, WRI_)
  7138. }
  7139. Else
  7140. {
  7141. If(WRES)
  7142. {
  7143. Store(Zero, WRES)
  7144. }
  7145. Else
  7146. {
  7147. Not(PLPL, PLPL)
  7148. }
  7149. }
  7150. }
  7151. }
  7152. }
  7153. }
  7154. }
  7155. }
  7156. }
  7157. }
  7158. Method(NATZ, 0x1, NotSerialized)
  7159. {
  7160. Notify(\_TZ_.THM0, Arg0)
  7161. Notify(\_TZ_.THM1, Arg0)
  7162. Notify(\_TZ_.THM2, Arg0)
  7163. If(MPGP)
  7164. {
  7165. Notify(\_TZ_.THM4, Arg0)
  7166. }
  7167. Notify(\_TZ_.THM5, Arg0)
  7168. Notify(\_TZ_.THM6, Arg0)
  7169. Notify(\_TZ_.THM7, Arg0)
  7170. }
  7171. Scope(\_TZ_)
  7172. {
  7173. Name(PSV0, 0x0)
  7174. Name(PSV1, 0x0)
  7175. Name(PSV2, 0x0)
  7176. Name(PSV3, 0x0)
  7177. Name(PSV4, 0x0)
  7178. Name(PSV5, 0x0)
  7179. Name(PSV6, 0x0)
  7180. Name(PSV7, 0x0)
  7181. Device(FAN0)
  7182. {
  7183. Name(_HID, 0xb0cd041)
  7184. Name(_UID, 0x0)
  7185. Name(_PR0, Package(0x1)
  7186. {
  7187. PFN0
  7188. })
  7189. }
  7190. Device(FAN1)
  7191. {
  7192. Name(_HID, 0xb0cd041)
  7193. Name(_UID, 0x1)
  7194. Name(_PR0, Package(0x1)
  7195. {
  7196. PFN1
  7197. })
  7198. Method(_STA, 0x0, NotSerialized)
  7199. {
  7200. Return(0xb)
  7201. }
  7202. }
  7203. PowerResource(PFN0, 0x0, 0x0)
  7204. {
  7205. Method(_STA, 0x0, NotSerialized)
  7206. {
  7207. Return(\_SB_.PCI0.ISA0.EC0_.F0ON)
  7208. }
  7209. Method(_ON_, 0x0, NotSerialized)
  7210. {
  7211. \_SB_.PCI0.ISA0.EC0_.SFNP(0x0, 0x1)
  7212. }
  7213. Method(_OFF, 0x0, NotSerialized)
  7214. {
  7215. \_SB_.PCI0.ISA0.EC0_.SFNP(0x0, 0x0)
  7216. }
  7217. }
  7218. PowerResource(PFN1, 0x0, 0x0)
  7219. {
  7220. Method(_STA, 0x0, NotSerialized)
  7221. {
  7222. Return(\_SB_.PCI0.ISA0.EC0_.F1ON)
  7223. }
  7224. Method(_ON_, 0x0, NotSerialized)
  7225. {
  7226. \_SB_.PCI0.ISA0.EC0_.SFNP(0x1, 0x1)
  7227. }
  7228. Method(_OFF, 0x0, NotSerialized)
  7229. {
  7230. \_SB_.PCI0.ISA0.EC0_.SFNP(0x1, 0x0)
  7231. }
  7232. }
  7233. ThermalZone(THM0)
  7234. {
  7235. Name(MODE, 0x1)
  7236. Name(TBL0, Package(0x2)
  7237. {
  7238. Package(0x3)
  7239. {
  7240. Package(0x2)
  7241. {
  7242. 0xd86,
  7243. 0xd59
  7244. },
  7245. Package(0x2)
  7246. {
  7247. 0xd7c,
  7248. 0xd4f
  7249. },
  7250. Package(0x2)
  7251. {
  7252. 0xd72,
  7253. 0xd45
  7254. }
  7255. },
  7256. Package(0x3)
  7257. {
  7258. Package(0x2)
  7259. {
  7260. 0xd72,
  7261. 0xd45
  7262. },
  7263. Package(0x2)
  7264. {
  7265. 0xd86,
  7266. 0xd59
  7267. },
  7268. Package(0x2)
  7269. {
  7270. 0xd7c,
  7271. 0xd4f
  7272. }
  7273. }
  7274. })
  7275. Method(UPSV, 0x0, NotSerialized)
  7276. {
  7277. If(MODE)
  7278. {
  7279. If(\_SB_.PCI0.ISA0.EC0_.HT00)
  7280. {
  7281. Store(0x1, PSV0)
  7282. }
  7283. Else
  7284. {
  7285. Store(0x0, PSV0)
  7286. }
  7287. }
  7288. Else
  7289. {
  7290. If(\_SB_.PCI0.ISA0.EC0_.HT02)
  7291. {
  7292. Store(0x1, PSV0)
  7293. }
  7294. Else
  7295. {
  7296. Store(0x0, PSV0)
  7297. }
  7298. }
  7299. }
  7300. Method(MODP, 0x1, NotSerialized)
  7301. {
  7302. Return(Index(DerefOf(Index(TBL0, MODE, )), Arg0, ))
  7303. }
  7304. Method(_TMP, 0x0, NotSerialized)
  7305. {
  7306. \_SB_.PCI0.ISA0.EC0_.UPDT()
  7307. If(\_SB_.PCI0.ISA0.EC0_.TMP0)
  7308. {
  7309. Return(\_SB_.PCI0.ISA0.EC0_.TMP0)
  7310. }
  7311. Else
  7312. {
  7313. Return(0xbb8)
  7314. }
  7315. }
  7316. Method(_AC0, 0x0, NotSerialized)
  7317. {
  7318. Return(DerefOf(Index(DerefOf(MODP(0x1)), \_SB_.PCI0.ISA0.EC0_.F0ON, )))
  7319. }
  7320. Method(_AC1, 0x0, NotSerialized)
  7321. {
  7322. Return(DerefOf(Index(DerefOf(MODP(0x2)), \_SB_.PCI0.ISA0.EC0_.F1ON, )))
  7323. }
  7324. Name(_CRT, 0xdb8)
  7325. Method(_SCP, 0x1, NotSerialized)
  7326. {
  7327. Store(Arg0, MODE)
  7328. Notify(\_TZ_.THM0, 0x81)
  7329. }
  7330. Name(_AL0, Package(0x1)
  7331. {
  7332. FAN0
  7333. })
  7334. Name(_AL1, Package(0x1)
  7335. {
  7336. FAN1
  7337. })
  7338. Method(_PSV, 0x0, NotSerialized)
  7339. {
  7340. Return(DerefOf(Index(DerefOf(MODP(0x0)), PSV0, )))
  7341. }
  7342. Name(_PSL, Package(0x1)
  7343. {
  7344. \_PR_.CPU0
  7345. })
  7346. Method(_TC1, 0x0, NotSerialized)
  7347. {
  7348. Return(0x3)
  7349. }
  7350. Method(_TC2, 0x0, NotSerialized)
  7351. {
  7352. Return(0x4)
  7353. }
  7354. Method(_TSP, 0x0, NotSerialized)
  7355. {
  7356. Return(0x258)
  7357. }
  7358. }
  7359. ThermalZone(THM1)
  7360. {
  7361. Name(MODE, 0x1)
  7362. Name(TBL0, Package(0x2)
  7363. {
  7364. Package(0x3)
  7365. {
  7366. Package(0x2)
  7367. {
  7368. 0xda4,
  7369. 0xd77
  7370. },
  7371. Package(0x2)
  7372. {
  7373. 0xd9a,
  7374. 0xd6d
  7375. },
  7376. Package(0x2)
  7377. {
  7378. 0xd90,
  7379. 0xd63
  7380. }
  7381. },
  7382. Package(0x3)
  7383. {
  7384. Package(0x2)
  7385. {
  7386. 0xd90,
  7387. 0xd63
  7388. },
  7389. Package(0x2)
  7390. {
  7391. 0xda4,
  7392. 0xd77
  7393. },
  7394. Package(0x2)
  7395. {
  7396. 0xd9a,
  7397. 0xd6d
  7398. }
  7399. }
  7400. })
  7401. Method(UPSV, 0x0, NotSerialized)
  7402. {
  7403. If(MODE)
  7404. {
  7405. If(\_SB_.PCI0.ISA0.EC0_.HT10)
  7406. {
  7407. Store(0x1, PSV1)
  7408. }
  7409. Else
  7410. {
  7411. Store(0x0, PSV1)
  7412. }
  7413. }
  7414. Else
  7415. {
  7416. If(\_SB_.PCI0.ISA0.EC0_.HT12)
  7417. {
  7418. Store(0x1, PSV1)
  7419. }
  7420. Else
  7421. {
  7422. Store(0x0, PSV1)
  7423. }
  7424. }
  7425. }
  7426. Method(MODP, 0x1, NotSerialized)
  7427. {
  7428. Return(Index(DerefOf(Index(TBL0, MODE, )), Arg0, ))
  7429. }
  7430. Method(_TMP, 0x0, NotSerialized)
  7431. {
  7432. If(\_SB_.PCI0.ISA0.EC0_.TMP1)
  7433. {
  7434. Return(\_SB_.PCI0.ISA0.EC0_.TMP1)
  7435. }
  7436. Else
  7437. {
  7438. Return(0xbb8)
  7439. }
  7440. }
  7441. Method(_AC0, 0x0, NotSerialized)
  7442. {
  7443. Return(DerefOf(Index(DerefOf(MODP(0x1)), \_SB_.PCI0.ISA0.EC0_.F0ON, )))
  7444. }
  7445. Method(_AC1, 0x0, NotSerialized)
  7446. {
  7447. Return(DerefOf(Index(DerefOf(MODP(0x2)), \_SB_.PCI0.ISA0.EC0_.F1ON, )))
  7448. }
  7449. Name(_CRT, 0xdb8)
  7450. Method(_SCP, 0x1, NotSerialized)
  7451. {
  7452. Store(Arg0, MODE)
  7453. Notify(\_TZ_.THM1, 0x81)
  7454. }
  7455. Name(_AL0, Package(0x1)
  7456. {
  7457. FAN0
  7458. })
  7459. Name(_AL1, Package(0x1)
  7460. {
  7461. FAN1
  7462. })
  7463. }
  7464. ThermalZone(THM2)
  7465. {
  7466. Name(MODE, 0x1)
  7467. Name(TBL0, Package(0x2)
  7468. {
  7469. Package(0x3)
  7470. {
  7471. Package(0x2)
  7472. {
  7473. 0xd04,
  7474. 0xcd7
  7475. },
  7476. Package(0x2)
  7477. {
  7478. 0xcfa,
  7479. 0xccd
  7480. },
  7481. Package(0x2)
  7482. {
  7483. 0xcd2,
  7484. 0xca5
  7485. }
  7486. },
  7487. Package(0x3)
  7488. {
  7489. Package(0x2)
  7490. {
  7491. 0xcd2,
  7492. 0xca5
  7493. },
  7494. Package(0x2)
  7495. {
  7496. 0xd04,
  7497. 0xcd7
  7498. },
  7499. Package(0x2)
  7500. {
  7501. 0xcfa,
  7502. 0xccd
  7503. }
  7504. }
  7505. })
  7506. Method(UPSV, 0x0, NotSerialized)
  7507. {
  7508. If(MODE)
  7509. {
  7510. If(\_SB_.PCI0.ISA0.EC0_.HT20)
  7511. {
  7512. Store(0x1, PSV2)
  7513. }
  7514. Else
  7515. {
  7516. Store(0x0, PSV2)
  7517. }
  7518. }
  7519. Else
  7520. {
  7521. If(\_SB_.PCI0.ISA0.EC0_.HT22)
  7522. {
  7523. Store(0x1, PSV2)
  7524. }
  7525. Else
  7526. {
  7527. Store(0x0, PSV2)
  7528. }
  7529. }
  7530. }
  7531. Method(MODP, 0x1, NotSerialized)
  7532. {
  7533. Return(Index(DerefOf(Index(TBL0, MODE, )), Arg0, ))
  7534. }
  7535. Method(_TMP, 0x0, NotSerialized)
  7536. {
  7537. If(\_SB_.PCI0.ISA0.EC0_.TMP2)
  7538. {
  7539. Return(\_SB_.PCI0.ISA0.EC0_.TMP2)
  7540. }
  7541. Else
  7542. {
  7543. Return(0xbb8)
  7544. }
  7545. }
  7546. Method(_AC0, 0x0, NotSerialized)
  7547. {
  7548. Return(DerefOf(Index(DerefOf(MODP(0x1)), \_SB_.PCI0.ISA0.EC0_.F0ON, )))
  7549. }
  7550. Method(_AC1, 0x0, NotSerialized)
  7551. {
  7552. Return(DerefOf(Index(DerefOf(MODP(0x2)), \_SB_.PCI0.ISA0.EC0_.F1ON, )))
  7553. }
  7554. Name(_CRT, 0xdcc)
  7555. Method(_SCP, 0x1, NotSerialized)
  7556. {
  7557. Store(Arg0, MODE)
  7558. Notify(\_TZ_.THM2, 0x81)
  7559. }
  7560. Name(_AL0, Package(0x1)
  7561. {
  7562. FAN0
  7563. })
  7564. Name(_AL1, Package(0x1)
  7565. {
  7566. FAN1
  7567. })
  7568. }
  7569. ThermalZone(THM4)
  7570. {
  7571. Name(MODE, 0x1)
  7572. Name(TBL0, Package(0x2)
  7573. {
  7574. Package(0x3)
  7575. {
  7576. Package(0x2)
  7577. {
  7578. 0xd04,
  7579. 0xcd7
  7580. },
  7581. Package(0x2)
  7582. {
  7583. 0xcfa,
  7584. 0xccd
  7585. },
  7586. Package(0x2)
  7587. {
  7588. 0xcf0,
  7589. 0xcc3
  7590. }
  7591. },
  7592. Package(0x3)
  7593. {
  7594. Package(0x2)
  7595. {
  7596. 0xcf0,
  7597. 0xcc3
  7598. },
  7599. Package(0x2)
  7600. {
  7601. 0xd04,
  7602. 0xcd7
  7603. },
  7604. Package(0x2)
  7605. {
  7606. 0xcfa,
  7607. 0xccd
  7608. }
  7609. }
  7610. })
  7611. Method(UPSV, 0x0, NotSerialized)
  7612. {
  7613. If(MODE)
  7614. {
  7615. If(\_SB_.PCI0.ISA0.EC0_.HT40)
  7616. {
  7617. Store(0x1, PSV4)
  7618. }
  7619. Else
  7620. {
  7621. Store(0x0, PSV4)
  7622. }
  7623. }
  7624. Else
  7625. {
  7626. If(\_SB_.PCI0.ISA0.EC0_.HT42)
  7627. {
  7628. Store(0x1, PSV4)
  7629. }
  7630. Else
  7631. {
  7632. Store(0x0, PSV4)
  7633. }
  7634. }
  7635. }
  7636. Method(MODP, 0x1, NotSerialized)
  7637. {
  7638. Return(Index(DerefOf(Index(TBL0, MODE, )), Arg0, ))
  7639. }
  7640. Method(_TMP, 0x0, NotSerialized)
  7641. {
  7642. If(\_SB_.PCI0.ISA0.EC0_.TMP4)
  7643. {
  7644. Return(\_SB_.PCI0.ISA0.EC0_.TMP4)
  7645. }
  7646. Else
  7647. {
  7648. Return(0xbb8)
  7649. }
  7650. }
  7651. Method(_AC0, 0x0, NotSerialized)
  7652. {
  7653. Return(DerefOf(Index(DerefOf(MODP(0x1)), \_SB_.PCI0.ISA0.EC0_.F0ON, )))
  7654. }
  7655. Method(_AC1, 0x0, NotSerialized)
  7656. {
  7657. Return(DerefOf(Index(DerefOf(MODP(0x2)), \_SB_.PCI0.ISA0.EC0_.F1ON, )))
  7658. }
  7659. Name(_CRT, 0xd22)
  7660. Method(_SCP, 0x1, NotSerialized)
  7661. {
  7662. Store(Arg0, MODE)
  7663. Notify(\_TZ_.THM4, 0x81)
  7664. }
  7665. Name(_AL0, Package(0x1)
  7666. {
  7667. FAN0
  7668. })
  7669. Name(_AL1, Package(0x1)
  7670. {
  7671. FAN1
  7672. })
  7673. }
  7674. ThermalZone(THM5)
  7675. {
  7676. Name(MODE, 0x1)
  7677. Name(TBL0, Package(0x2)
  7678. {
  7679. Package(0x3)
  7680. {
  7681. Package(0x2)
  7682. {
  7683. 0xd04,
  7684. 0xce1
  7685. },
  7686. Package(0x2)
  7687. {
  7688. 0xcfa,
  7689. 0xcd7
  7690. },
  7691. Package(0x2)
  7692. {
  7693. 0xcf0,
  7694. 0xccd
  7695. }
  7696. },
  7697. Package(0x3)
  7698. {
  7699. Package(0x2)
  7700. {
  7701. 0xcf0,
  7702. 0xccd
  7703. },
  7704. Package(0x2)
  7705. {
  7706. 0xd04,
  7707. 0xce1
  7708. },
  7709. Package(0x2)
  7710. {
  7711. 0xcfa,
  7712. 0xcd7
  7713. }
  7714. }
  7715. })
  7716. Method(UPSV, 0x0, NotSerialized)
  7717. {
  7718. If(MODE)
  7719. {
  7720. If(\_SB_.PCI0.ISA0.EC0_.HT50)
  7721. {
  7722. Store(0x1, PSV5)
  7723. }
  7724. Else
  7725. {
  7726. Store(0x0, PSV5)
  7727. }
  7728. }
  7729. Else
  7730. {
  7731. If(\_SB_.PCI0.ISA0.EC0_.HT52)
  7732. {
  7733. Store(0x1, PSV5)
  7734. }
  7735. Else
  7736. {
  7737. Store(0x0, PSV5)
  7738. }
  7739. }
  7740. }
  7741. Method(MODP, 0x1, NotSerialized)
  7742. {
  7743. Return(Index(DerefOf(Index(TBL0, MODE, )), Arg0, ))
  7744. }
  7745. Method(_TMP, 0x0, NotSerialized)
  7746. {
  7747. If(\_SB_.PCI0.ISA0.EC0_.TMP5)
  7748. {
  7749. Return(\_SB_.PCI0.ISA0.EC0_.TMP5)
  7750. }
  7751. Else
  7752. {
  7753. Return(0xbb8)
  7754. }
  7755. }
  7756. Method(_AC0, 0x0, NotSerialized)
  7757. {
  7758. Return(DerefOf(Index(DerefOf(MODP(0x1)), \_SB_.PCI0.ISA0.EC0_.F0ON, )))
  7759. }
  7760. Method(_AC1, 0x0, NotSerialized)
  7761. {
  7762. Return(DerefOf(Index(DerefOf(MODP(0x2)), \_SB_.PCI0.ISA0.EC0_.F1ON, )))
  7763. }
  7764. Name(_CRT, 0xd2c)
  7765. Method(_SCP, 0x1, NotSerialized)
  7766. {
  7767. Store(Arg0, MODE)
  7768. Notify(\_TZ_.THM5, 0x81)
  7769. }
  7770. Name(_AL0, Package(0x1)
  7771. {
  7772. FAN0
  7773. })
  7774. Name(_AL1, Package(0x1)
  7775. {
  7776. FAN1
  7777. })
  7778. }
  7779. ThermalZone(THM6)
  7780. {
  7781. Name(MODE, 0x1)
  7782. Name(TBL0, Package(0x2)
  7783. {
  7784. Package(0x3)
  7785. {
  7786. Package(0x2)
  7787. {
  7788. 0xd54,
  7789. 0xd27
  7790. },
  7791. Package(0x2)
  7792. {
  7793. 0xd4a,
  7794. 0xd1d
  7795. },
  7796. Package(0x2)
  7797. {
  7798. 0xd40,
  7799. 0xd13
  7800. }
  7801. },
  7802. Package(0x3)
  7803. {
  7804. Package(0x2)
  7805. {
  7806. 0xd40,
  7807. 0xd13
  7808. },
  7809. Package(0x2)
  7810. {
  7811. 0xd54,
  7812. 0xd27
  7813. },
  7814. Package(0x2)
  7815. {
  7816. 0xd4a,
  7817. 0xd1d
  7818. }
  7819. }
  7820. })
  7821. Method(UPSV, 0x0, NotSerialized)
  7822. {
  7823. If(MODE)
  7824. {
  7825. If(\_SB_.PCI0.ISA0.EC0_.HT60)
  7826. {
  7827. Store(0x1, PSV6)
  7828. }
  7829. Else
  7830. {
  7831. Store(0x0, PSV6)
  7832. }
  7833. }
  7834. Else
  7835. {
  7836. If(\_SB_.PCI0.ISA0.EC0_.HT62)
  7837. {
  7838. Store(0x1, PSV6)
  7839. }
  7840. Else
  7841. {
  7842. Store(0x0, PSV6)
  7843. }
  7844. }
  7845. }
  7846. Method(MODP, 0x1, NotSerialized)
  7847. {
  7848. Return(Index(DerefOf(Index(TBL0, MODE, )), Arg0, ))
  7849. }
  7850. Method(_TMP, 0x0, NotSerialized)
  7851. {
  7852. If(\_SB_.PCI0.ISA0.EC0_.TMP6)
  7853. {
  7854. Return(\_SB_.PCI0.ISA0.EC0_.TMP6)
  7855. }
  7856. Else
  7857. {
  7858. Return(0xbb8)
  7859. }
  7860. }
  7861. Method(_AC0, 0x0, NotSerialized)
  7862. {
  7863. Return(DerefOf(Index(DerefOf(MODP(0x1)), \_SB_.PCI0.ISA0.EC0_.F0ON, )))
  7864. }
  7865. Method(_AC1, 0x0, NotSerialized)
  7866. {
  7867. Return(DerefOf(Index(DerefOf(MODP(0x2)), \_SB_.PCI0.ISA0.EC0_.F1ON, )))
  7868. }
  7869. Name(_CRT, 0xd68)
  7870. Method(_SCP, 0x1, NotSerialized)
  7871. {
  7872. Store(Arg0, MODE)
  7873. Notify(\_TZ_.THM6, 0x81)
  7874. }
  7875. Name(_AL0, Package(0x1)
  7876. {
  7877. FAN0
  7878. })
  7879. Name(_AL1, Package(0x1)
  7880. {
  7881. FAN1
  7882. })
  7883. }
  7884. ThermalZone(THM7)
  7885. {
  7886. Name(MODE, 0x1)
  7887. Name(TBL0, Package(0x2)
  7888. {
  7889. Package(0x3)
  7890. {
  7891. Package(0x2)
  7892. {
  7893. 0xd54,
  7894. 0xd27
  7895. },
  7896. Package(0x2)
  7897. {
  7898. 0xd4a,
  7899. 0xd1d
  7900. },
  7901. Package(0x2)
  7902. {
  7903. 0xd40,
  7904. 0xd13
  7905. }
  7906. },
  7907. Package(0x3)
  7908. {
  7909. Package(0x2)
  7910. {
  7911. 0xd40,
  7912. 0xd13
  7913. },
  7914. Package(0x2)
  7915. {
  7916. 0xd54,
  7917. 0xd27
  7918. },
  7919. Package(0x2)
  7920. {
  7921. 0xd4a,
  7922. 0xd1d
  7923. }
  7924. }
  7925. })
  7926. Method(UPSV, 0x0, NotSerialized)
  7927. {
  7928. If(MODE)
  7929. {
  7930. If(\_SB_.PCI0.ISA0.EC0_.HT70)
  7931. {
  7932. Store(0x1, PSV7)
  7933. }
  7934. Else
  7935. {
  7936. Store(0x0, PSV7)
  7937. }
  7938. }
  7939. Else
  7940. {
  7941. If(\_SB_.PCI0.ISA0.EC0_.HT72)
  7942. {
  7943. Store(0x1, PSV7)
  7944. }
  7945. Else
  7946. {
  7947. Store(0x0, PSV7)
  7948. }
  7949. }
  7950. }
  7951. Method(MODP, 0x1, NotSerialized)
  7952. {
  7953. Return(Index(DerefOf(Index(TBL0, MODE, )), Arg0, ))
  7954. }
  7955. Method(_TMP, 0x0, NotSerialized)
  7956. {
  7957. If(\_SB_.PCI0.ISA0.EC0_.TMP7)
  7958. {
  7959. Return(\_SB_.PCI0.ISA0.EC0_.TMP7)
  7960. }
  7961. Else
  7962. {
  7963. Return(0xbb8)
  7964. }
  7965. }
  7966. Method(_AC0, 0x0, NotSerialized)
  7967. {
  7968. Return(DerefOf(Index(DerefOf(MODP(0x1)), \_SB_.PCI0.ISA0.EC0_.F0ON, )))
  7969. }
  7970. Method(_AC1, 0x0, NotSerialized)
  7971. {
  7972. Return(DerefOf(Index(DerefOf(MODP(0x2)), \_SB_.PCI0.ISA0.EC0_.F1ON, )))
  7973. }
  7974. Name(_CRT, 0xd68)
  7975. Method(_SCP, 0x1, NotSerialized)
  7976. {
  7977. Store(Arg0, MODE)
  7978. Notify(\_TZ_.THM7, 0x81)
  7979. }
  7980. Name(_AL0, Package(0x1)
  7981. {
  7982. FAN0
  7983. })
  7984. Name(_AL1, Package(0x1)
  7985. {
  7986. FAN1
  7987. })
  7988. }
  7989. }
  7990. Mutex(MSMI, 0x7)
  7991. OperationRegion(MNVS, SystemMemory, 0x1fdf000, 0x1000)
  7992. Field(MNVS, DWordAcc, NoLock, Preserve)
  7993. {
  7994. Offset(0xfc0),
  7995. S_AL, 8,
  7996. S_AH, 8,
  7997. , 16,
  7998. S_BL, 8,
  7999. S_BH, 8,
  8000. , 16,
  8001. S_CL, 8,
  8002. S_CH, 8,
  8003. , 16,
  8004. S_DL, 8,
  8005. S_DH, 8,
  8006. , 16,
  8007. EDI1, 8,
  8008. EDI2, 8,
  8009. EDI3, 8,
  8010. EDI4, 8,
  8011. ESI1, 8,
  8012. ESI2, 8,
  8013. ESI3, 8,
  8014. ESI4, 8,
  8015. SXAL, 8,
  8016. SXAH, 8
  8017. }
  8018. Field(MNVS, DWordAcc, NoLock, Preserve)
  8019. {
  8020. Offset(0xfc0),
  8021. S_AX, 16,
  8022. , 16,
  8023. S_BX, 16,
  8024. , 16,
  8025. S_CX, 16,
  8026. , 16,
  8027. S_DX, 16,
  8028. , 16,
  8029. SEDI, 32,
  8030. SESI, 32,
  8031. SXAX, 16
  8032. }
  8033. Field(MNVS, DWordAcc, NoLock, Preserve)
  8034. {
  8035. Offset(0xf00),
  8036. PXDN, 32,
  8037. VCDD, 3,
  8038. VCDI, 1,
  8039. VCDS, 1,
  8040. VCDE, 1,
  8041. VCDB, 1,
  8042. VCDH, 1,
  8043. VCDR, 24,
  8044. WPME, 1,
  8045. WBAT, 1,
  8046. WLID, 1,
  8047. WDCK, 1,
  8048. WFN_, 1,
  8049. WKBD, 1,
  8050. WRI_, 1,
  8051. WRES, 1,
  8052. WKRS, 24,
  8053. MPGP, 1,
  8054. CPUT, 2,
  8055. SPDI, 29,
  8056. TOMP, 32,
  8057. FRAS, 32,
  8058. SNS0, 32,
  8059. SNS1, 32,
  8060. SNS2, 32,
  8061. SNS3, 32,
  8062. SNS4, 32,
  8063. SNS5, 32,
  8064. SNS6, 32,
  8065. SNS7, 32,
  8066. HDHD, 8,
  8067. HDSE, 8,
  8068. TTC1, 8,
  8069. TTC2, 8,
  8070. TTSP, 16,
  8071. , 16,
  8072. W98F, 1,
  8073. , 7,
  8074. H8DR, 1,
  8075. , 3,
  8076. BXPT, 1,
  8077. , 2,
  8078. , 17
  8079. }
  8080. OperationRegion(APMC, SystemIO, 0xb2, 0x1)
  8081. Field(APMC, ByteAcc, NoLock, Preserve)
  8082. {
  8083. APMD, 8
  8084. }
  8085. Event(DMMY)
  8086. Method(SMPI, 0x1, NotSerialized)
  8087. {
  8088. Store(S_AX, Local0)
  8089. Store(S_BX, Local1)
  8090. Store(S_CX, Local2)
  8091. Store(S_DX, Local3)
  8092. Store(SEDI, Local4)
  8093. Store(SESI, Local5)
  8094. Store(0x81, APMD)
  8095. While(LEqual(S_AH, 0xa6))
  8096. {
  8097. If(W98F)
  8098. {
  8099. Wait(DMMY, 0x64)
  8100. }
  8101. Else
  8102. {
  8103. Sleep(0x64)
  8104. }
  8105. Store(Local0, S_AX)
  8106. Store(Local1, S_BX)
  8107. Store(Local2, S_CX)
  8108. Store(Local3, S_DX)
  8109. Store(Local4, SEDI)
  8110. Store(Local5, SESI)
  8111. Store(0x81, APMD)
  8112. }
  8113. }
  8114. Method(MIN_, 0x2, NotSerialized)
  8115. {
  8116. If(LLess(Arg0, Arg1))
  8117. {
  8118. Return(Arg0)
  8119. }
  8120. Else
  8121. {
  8122. Return(Arg1)
  8123. }
  8124. }
  8125. Method(SLEN, 0x1, NotSerialized)
  8126. {
  8127. Return(SizeOf(Arg0))
  8128. }
  8129. Method(S2BF, 0x1, Serialized)
  8130. {
  8131. Add(SLEN(Arg0), One, Local0)
  8132. Name(BUFF, Buffer(Local0)
  8133. {
  8134. })
  8135. Store(Arg0, BUFF)
  8136. Return(BUFF)
  8137. }
  8138. Method(SCMP, 0x2, NotSerialized)
  8139. {
  8140. Store(S2BF(Arg0), Local0)
  8141. Store(S2BF(Arg1), Local1)
  8142. Store(Zero, Local4)
  8143. Store(SLEN(Arg0), Local5)
  8144. Store(SLEN(Arg1), Local6)
  8145. Store(MIN_(Local5, Local6), Local7)
  8146. While(LLess(Local4, Local7))
  8147. {
  8148. Store(DerefOf(Index(Local0, Local4, )), Local2)
  8149. Store(DerefOf(Index(Local1, Local4, )), Local3)
  8150. If(LGreater(Local2, Local3))
  8151. {
  8152. Return(One)
  8153. }
  8154. Else
  8155. {
  8156. If(LLess(Local2, Local3))
  8157. {
  8158. Return(Ones)
  8159. }
  8160. }
  8161. Increment(Local4)
  8162. }
  8163. If(LLess(Local4, Local5))
  8164. {
  8165. Return(One)
  8166. }
  8167. Else
  8168. {
  8169. If(LLess(Local4, Local6))
  8170. {
  8171. Return(Ones)
  8172. }
  8173. Else
  8174. {
  8175. Return(Zero)
  8176. }
  8177. }
  8178. }
  8179. }