Guest User

Untitled

a guest
Nov 23rd, 2017
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.99 KB | None | 0 0
  1. Device (GPED)
  2. {
  3. Name (_ADR, Zero) // _ADR: Address
  4. Name (_HID, "INT0002" /* Virtual GPIO Controller */) // _HID: Hardware ID
  5. Name (_CID, "INT0002" /* Virtual GPIO Controller */) // _CID: Compatible ID
  6. Name (_DDN, "Virtual GPIO controller") // _DDN: DOS Device Name
  7. Name (_UID, One) // _UID: Unique ID
  8. Name (INST, One)
  9. Name (XTMP, Zero)
  10. OperationRegion (SCIS, SystemMemory, 0xFED030C0, 0x04)
  11. Field (SCIS, DWordAcc, NoLock, Preserve)
  12. {
  13. , 1,
  14. LHAD, 1,
  15. LATA, 1,
  16. LDIO, 1,
  17. LARD, 1,
  18. LIO1, 1,
  19. LCEP, 1,
  20. LANB, 1,
  21. LHCI, 1,
  22. LOTG, 1,
  23. LECI, 1,
  24. LHSI, 1
  25. }
  26.  
  27. Method (_DSM, 4, NotSerialized) // _DSM: Device-Specific Method
  28. {
  29. If ((Arg0 == ToUUID ("8b38b469-6f95-4b08-9b02-2defcc2d2c35")))
  30. {
  31. If ((Arg2 == Zero))
  32. {
  33. If ((Arg1 == One))
  34. {
  35. Return (Buffer (One)
  36. {
  37. 0x03 // .
  38. })
  39. }
  40. }
  41.  
  42. If ((Arg2 == One))
  43. {
  44. Return ((PMBS + 0x20))
  45. }
  46.  
  47. Return (Zero)
  48. }
  49. Else
  50. {
  51. Return (Buffer (One)
  52. {
  53. 0x00 // .
  54. })
  55. }
  56. }
  57.  
  58. Method (_CRS, 0, Serialized) // _CRS: Current Resource Settings
  59. {
  60. Name (RBUF, ResourceTemplate ()
  61. {
  62. Interrupt (ResourceConsumer, Level, ActiveHigh, Exclusive, ,, )
  63. {
  64. 0x00000009,
  65. }
  66. })
  67. Return (RBUF) /* \_SB_.GPED._CRS.RBUF */
  68. }
  69.  
  70. Method (_STA, 0, NotSerialized) // _STA: Status
  71. {
  72. If ((OSYS >= 0x07DD))
  73. {
  74. If ((PB1E & One))
  75. {
  76. Return (Zero)
  77. }
  78. }
  79.  
  80. Return (Zero)
  81. }
  82.  
  83. Method (_AEI, 0, Serialized) // _AEI: ACPI Event Interrupts
  84. {
  85. Name (RBUF, ResourceTemplate ()
  86. {
  87. GpioInt (Edge, ActiveHigh, ExclusiveAndWake, PullDown, 0x0000,
  88. "\\_SB.GPED", 0x00, ResourceConsumer, ,
  89. )
  90. { // Pin list
  91. 0x0002
  92. }
  93. })
  94. Return (RBUF) /* \_SB_.GPED._AEI.RBUF */
  95. }
  96.  
  97. Method (_E02, 0, NotSerialized) // _Exx: Edge-Triggered GPE
  98. {
  99. If ((PWBS == One))
  100. {
  101. PWBS = One
  102. Notify (PWRB, 0x80) // Status Change
  103. }
  104.  
  105. If ((PMEB == One))
  106. {
  107. PMEB = One
  108. }
  109.  
  110. If ((^^PCI0.SATA.PMES == One))
  111. {
  112. ^^PCI0.SATA.PMES = One
  113. Notify (^^PCI0.SATA, 0x02) // Device Wake
  114. }
  115.  
  116. If ((^^PCI0.HDEF.PMES == One))
  117. {
  118. ^^PCI0.HDEF.PMES = One
  119. Notify (^^PCI0.HDEF, 0x02) // Device Wake
  120. }
  121.  
  122. If ((^^PCI0.XHC1.PMES == One))
  123. {
  124. ^^PCI0.XHC1.PMES = One
  125. Notify (^^PCI0.XHC1, 0x02) // Device Wake
  126. }
  127. }
  128. }
Add Comment
Please, Sign In to add comment