Guest User

Untitled

a guest
Jul 11th, 2018
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.74 KB | None | 0 0
  1. Device (HDEF)
  2. {
  3. Name (_ADR, 0x001B0000)
  4. Method (_PRW, 0, NotSerialized)
  5. {
  6. Return (Package (0x02)
  7. {
  8. 0x0D,
  9. 0x05
  10. })
  11. }
  12.  
  13. Method (_DSM, 4, NotSerialized)
  14. {
  15. Store (Package (0x06)
  16. {
  17. "layout-id",
  18. Buffer (0x04)
  19. {
  20. 0x0C, 0x00, 0x00, 0x00
  21. },
  22.  
  23. "device-type",
  24. Buffer (0x0F)
  25. {
  26. "Realtek ALC885"
  27. },
  28.  
  29. "PinConfigurations",
  30. Buffer (Zero) {}
  31. }, Local0)
  32. DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
  33. Return (Local0)
  34. }
  35.  
  36. }
  37.  
  38. Name (BUFA, ResourceTemplate ()
  39. {
  40. IRQ (Level, ActiveLow, Shared, )
  41. {3,4,5,6,7,9,10,11,12,14,15}
  42. })
  43. Name (BUFB, ResourceTemplate ()
  44. {
  45. IRQ (Level, ActiveLow, Shared, _Y0A)
  46. {}
  47. })
  48. CreateWordField (BUFB, \_SB.PCI0._Y0A._INT, IRQV)
  49. Device (LNKA)
  50. {
  51. Name (_HID, EisaId ("PNP0C0F"))
  52. Name (_UID, 0x01)
  53. Method (_STA, 0, NotSerialized)
  54. {
  55. And (PIRA, 0x80, Local0)
  56. If (LEqual (Local0, 0x80))
  57. {
  58. Return (0x09)
  59. }
  60. Else
  61. {
  62. Return (0x0B)
  63. }
  64. }
  65.  
  66. Method (_PRS, 0, NotSerialized)
  67. {
  68. Return (BUFA)
  69. }
  70.  
  71. Method (_DIS, 0, NotSerialized)
  72. {
  73. Or (PIRA, 0x80, PIRA)
  74. }
  75.  
  76. Method (_CRS, 0, NotSerialized)
  77. {
  78. And (PIRA, 0x0F, Local0)
  79. ShiftLeft (0x01, Local0, IRQV)
  80. Return (BUFB)
  81. }
  82.  
  83. Method (_SRS, 1, NotSerialized)
  84. {
  85. CreateWordField (Arg0, 0x01, IRQ1)
  86. FindSetRightBit (IRQ1, Local0)
  87. Decrement (Local0)
  88. Store (Local0, PIRA)
  89. }
  90. }
Add Comment
Please, Sign In to add comment