1 /* SPDX-License-Identifier: GPL-2.0-only */
5 /* APIs to access P2SB inside PCH/SoC die */
8 * Calculate PCR register base at specified PID
11 Method (PCRB, 1, NotSerialized)
13 Return (GPCR(PCH_P2SB, Arg0))
17 * Read a PCR register at specified PID and offset
19 * Arg1 - Register Offset
21 Method (PCRR, 2, Serialized)
23 Return (RPCR(PCH_P2SB, Arg0, Arg1))
27 * AND a value with PCR register at specified PID and offset
29 * Arg1 - Register Offset
32 Method (PCRA, 3, Serialized)
34 APCR(PCH_P2SB, Arg0, Arg1, Arg2)
38 * OR a value with PCR register at specified PID and offset
40 * Arg1 - Register Offset
43 Method (PCRO, 3, Serialized)
45 OPCR(PCH_P2SB, Arg0, Arg1, Arg2)