1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 External (\_SB.PCI0.PEG0.PEGP.NPON, MethodObj)
4 External (\_SB.PCI0.PEG0.PEGP.NPOF, MethodObj)
6 OperationRegion (PCIC, PCI_Config, 0x00, 0x100)
7 Field (PCIC, AnyAcc, NoLock, Preserve)
10 CEDR, 1, /* Correctable Error Detected, RW/1C/V */
13 LASX, 1, /* Link Active Status */
16 LREN, 1, /* LTR Enabled */
19 NCB7, 1, /* Scratch bit to save L2/3 state */
22 L23E, 1, /* L23_Rdy Entry request */
23 L23R, 1 /* L23_Rdy Detect Transition */
26 /* L2/3 Entry sequence */
27 Method (DL23, 0, Serialized)
44 /* L2/3 exit seqeuence */
45 Method (LD23, 0, Serialized)
79 /* PEG Power Resource */
80 PowerResource (PGPR, 0, 0)
82 Method (_ON, 0, Serialized)
84 /* Power up GPU from GCOFF (or GC6 exit if deferred) */
85 \_SB.PCI0.PEG0.PEGP.NPON ()
88 Method (_OFF, 0, Serialized)
90 /* Power down GPU to GCOFF (or GC6 entry if deferred) */
92 \_SB.PCI0.PEG0.PEGP.NPOF ()
97 Name (_PR0, Package() { PGPR })
98 Name (_PR2, Package() { PGPR })
99 Name (_PR3, Package() { PGPR })