Page MenuHomeFreeBSD
Paste P369

OSUP
ActivePublic

Authored by jhb on Feb 28 2020, 6:10 PM.
Scope (\_GPE)
{
Method (OSUP, 1, Serialized)
{
ADBG (Concatenate ("OSUP=", ToHexString (Arg0)))
Local0 = (Arg0 + 0x0548)
OperationRegion (PXVD, SystemMemory, Local0, 0x08)
Field (PXVD, DWordAcc, NoLock, Preserve)
{
TB2P, 32,
P2TB, 32
}
Local1 = 0x64
P2TB = 0x0D
While ((Local1 > 0x00))
{
Local1 = (Local1 - 0x01)
Local2 = TB2P /* \_GPE.OSUP.TB2P */
If ((Local2 == 0xFFFFFFFF))
{
ADBG ("Dev gone")
Return (0x02)
}
If ((Local2 & 0x01))
{
ADBG ("Cmd acknowledged")
Break
}
Sleep (0x32)
}
If ((TRWA == 0x01))
{
P2TB = 0x0C
}
Else
{
P2TB = 0x00
}
ADBG ("End-of-OSUP")
Return (0x01)
}

Event Timeline

jhb created this object in space S1 Global.