Skip to content

Latest commit

 

History

History
executable file
·
40 lines (36 loc) · 881 Bytes

SSDT-NDGP_OFF.md

File metadata and controls

executable file
·
40 lines (36 loc) · 881 Bytes
//
DefinitionBlock("", "SSDT", 2, "OCLT", "NDGP", 0)
{
    External(_SB.PCI0.RP13.PXSX._ON, MethodObj)
    External(_SB.PCI0.RP13.PXSX._OFF, MethodObj)
 
    If (_OSI ("Darwin"))
    {
        Device(DGPU)
        {
            Name(_HID, "DGPU1000")
            Method (_INI, 0, NotSerialized)
            {
                _OFF()
            }
            
            Method (_ON, 0, NotSerialized)
            {
                //path:
                If (CondRefOf (\_SB.PCI0.RP13.PXSX._ON))
                {
                    \_SB.PCI0.RP13.PXSX._ON()
                }
            }
            
            Method (_OFF, 0, NotSerialized)
            {
                //path:
                If (CondRefOf (\_SB.PCI0.RP13.PXSX._OFF))
                {
                    \_SB.PCI0.RP13.PXSX._OFF()
                }
            }
        }
    }
}
//EOF