Skip to content

Commit

Permalink
dsl: Fix operator has no effect and DTGP
Browse files Browse the repository at this point in the history
DTGP from SourceFourge repo built in the app, operator fix was found on a quick Google search, someone had a close issue adn worked "fine". The warnings will be fixed after I get it working 70/80% if I manage to do that.

Signed-off-by: Ícaro Hoff <icarohoff@gmail.com>
  • Loading branch information
GalaticStryder committed Jan 2, 2016
1 parent 723700d commit 5c46b2e
Showing 1 changed file with 32 additions and 2 deletions.
34 changes: 32 additions & 2 deletions ascpi-tables/dsl/DSDT.dsl
Original file line number Diff line number Diff line change
Expand Up @@ -10701,7 +10701,7 @@ P8XH (One, 0xAB)
{
Store (\_SB.PCI0.LPCB.EC0.LIDF, Local0)
Not (Local0, Local0)
Add (Local0, 0x02)
Add (Local0, 0x02, Local0)
If (\_SB.PCI0.IGPU.GLID (Local0))
{
Or (0x80000000, \_SB.PCI0.IGPU.CLID, \_SB.PCI0.IGPU.CLID)
Expand Down Expand Up @@ -16809,7 +16809,7 @@ P8XH (One, 0xAB)
{
Store (LIDF, Local0)
Not (Local0, Local0)
Add (Local0, 0x02)
Add (Local0, 0x02, Local0)
If (^^^IGPU.GLID (Local0))
{
Or (0x80000000, ^^^IGPU.CLID, ^^^IGPU.CLID)
Expand Down Expand Up @@ -18680,5 +18680,35 @@ P8XH (One, 0xAB)
Method (WAK, 1, NotSerialized)
{
}
Method (DTGP, 5, NotSerialized)
{
If (LEqual (Arg0, Buffer (0x10)
{
/* 0000 */ 0xC6, 0xB7, 0xB5, 0xA0, 0x18, 0x13, 0x1C, 0x44,
/* 0008 */ 0xB0, 0xC9, 0xFE, 0x69, 0x5E, 0xAF, 0x94, 0x9B
}))
{
If (LEqual (Arg1, One))
{
If (LEqual (Arg2, Zero))
{
Store (Buffer (One)
{
0x03
}, Arg4)
Return (One)
}
If (LEqual (Arg2, One))
{
Return (One)
}
}
}
Store (Buffer (One)
{
0x00
}, Arg4)
Return (Zero)
}
}

0 comments on commit 5c46b2e

Please sign in to comment.