Advertisement
Guest User

Untitled

a guest
Dec 7th, 2016
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.12 KB | None | 0 0
  1. # Change method _PTS where Arg0 is 0x05 (shutdown)
  2. #
  3. into method label _PTS code_regex (If\s*\(LEqual\s*\(Arg0,\s*0x05\)\)\s*\n\s*\{\s*\n)(?:[^\n\}]+\n)+(\s*\}) replace_matched
  4. begin
  5. %1
  6. Store (One, \\_SB.PCI0.PX40.AG3E)\n
  7. Store (Zero, SLPE)\n
  8. Sleep (0x10)\n
  9. %2\n
  10. Else\n
  11. {\n
  12. Store (Zero, \\_SB.PCI0.PX40.AG3E)\n
  13. }
  14. end;
  15. into method label \_PTS code_regex (If\s*\(LEqual\s*\(Arg0,\s*0x05\)\)\s*\n\s*\{\s*\n)(?:[^\n\}]+\n)+(\s*\}) replace_matched
  16. begin
  17. %1
  18. Store (One, \\_SB.PCI0.PX40.AG3E)\n
  19. Store (Zero, SLPE)\n
  20. Sleep (0x10)\n
  21. %2\n
  22. Else\n
  23. {\n
  24. Store (Zero, \\_SB.PCI0.PX40.AG3E)\n
  25. }
  26. end;
  27. into definitionblock code_regex . code_regex_not OperationRegion\s*\(PMRS insert
  28. begin
  29. OperationRegion (PMRS, SystemIO, 0x0430, One)\n
  30. Field (PMRS, ByteAcc, NoLock, Preserve)\n
  31. {\n
  32. , 4, \n
  33. SLPE, 1\n
  34. }
  35. end;
  36. into device label PX40 insert
  37. begin
  38. OperationRegion (LPC0, PCI_Config, 0xA4, 0x02)\n
  39. Field (LPC0, ByteAcc, NoLock, Preserve)\n
  40. {\n
  41. AG3E, 1\n
  42. }\n
  43. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement