Advertisement
Guest User

Untitled

a guest
Feb 15th, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.43 KB | None | 0 0
  1. Device (PS2M)
  2. {
  3. Name (_HID, EisaId ("PNP0F03") /* Microsoft PS/2-style Mouse */) // _HID: Hardware ID
  4. Name (_UID, Zero) // _UID: Unique ID
  5. Name (LDN, 0x06)
  6. Name (_CID, EisaId ("PNP0F13") /* PS/2 Mouse */) // _CID: Compatible ID
  7. Method (_STA, 0, NotSerialized) // _STA: Status
  8. {
  9. If ((IOST & 0x4000))
  10. {
  11. Return (0x0F)
  12. }
  13. Else
  14. {
  15. If ((UEMU == 0x5A5A))
  16. {
  17. If ((OSYS >= 0x07DC))
  18. {
  19. Return (Zero)
  20. }
  21. Else
  22. {
  23. Return (0x0F)
  24. }
  25. }
  26.  
  27. Return (Zero)
  28. }
  29. }
  30.  
  31. Name (CRS1, ResourceTemplate ()
  32. {
  33. IRQNoFlags ()
  34. {12}
  35. })
  36. Name (CRS2, ResourceTemplate ()
  37. {
  38. IO (Decode16,
  39. 0x0060, // Range Minimum
  40. 0x0060, // Range Maximum
  41. 0x00, // Alignment
  42. 0x01, // Length
  43. )
  44. IO (Decode16,
  45. 0x0064, // Range Minimum
  46. 0x0064, // Range Maximum
  47. 0x00, // Alignment
  48. 0x01, // Length
  49. )
  50. IRQNoFlags ()
  51. {12}
  52. })
  53. Method (_CRS, 0, NotSerialized) // _CRS: Current Resource Settings
  54. {
  55. If ((IOST & 0x0400))
  56. {
  57. Return (CRS1) /* \_SB_.PCI0.LPCB.PS2M.CRS1 */
  58. }
  59. Else
  60. {
  61. Return (CRS2) /* \_SB_.PCI0.LPCB.PS2M.CRS2 */
  62. }
  63. }
  64.  
  65. Name (_PRS, ResourceTemplate () // _PRS: Possible Resource Settings
  66. {
  67. StartDependentFn (0x00, 0x00)
  68. {
  69. IRQNoFlags ()
  70. {12}
  71. }
  72. EndDependentFn ()
  73. })
  74. Method (_PSW, 1, NotSerialized) // _PSW: Power State Wake
  75. {
  76. MSFG = Arg0
  77. }
  78.  
  79. Scope (\)
  80. {
  81. Name (MSFG, One)
  82. }
  83.  
  84. Method (_PRW, 0, NotSerialized) // _PRW: Power Resources for Wake
  85. {
  86. Return (GPRW (0x1D, 0x03))
  87. }
  88. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement