Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Change method _PTS where Arg0 is 0x05 (shutdown)
- #
- into method label _PTS code_regex (If\s*\(LEqual\s*\(Arg0,\s*0x05\)\)\s*\n\s*\{\s*\n)(?:[^\n\}]+\n)+(\s*\}) replace_matched
- begin
- %1
- Store (One, \\_SB.PCI0.PX40.AG3E)\n
- Store (Zero, SLPE)\n
- Sleep (0x10)\n
- %2\n
- Else\n
- {\n
- Store (Zero, \\_SB.PCI0.PX40.AG3E)\n
- }
- end;
- into method label \_PTS code_regex (If\s*\(LEqual\s*\(Arg0,\s*0x05\)\)\s*\n\s*\{\s*\n)(?:[^\n\}]+\n)+(\s*\}) replace_matched
- begin
- %1
- Store (One, \\_SB.PCI0.PX40.AG3E)\n
- Store (Zero, SLPE)\n
- Sleep (0x10)\n
- %2\n
- Else\n
- {\n
- Store (Zero, \\_SB.PCI0.PX40.AG3E)\n
- }
- end;
- into definitionblock code_regex . code_regex_not OperationRegion\s*\(PMRS insert
- begin
- OperationRegion (PMRS, SystemIO, 0x0430, One)\n
- Field (PMRS, ByteAcc, NoLock, Preserve)\n
- {\n
- , 4, \n
- SLPE, 1\n
- }
- end;
- into device label PX40 insert
- begin
- OperationRegion (LPC0, PCI_Config, 0xA4, 0x02)\n
- Field (LPC0, ByteAcc, NoLock, Preserve)\n
- {\n
- AG3E, 1\n
- }\n
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement