Debian Codegraph @

src/soc/intel/common/acpi/pch_pcr.asl

raw
1 /* SPDX-License-Identifier: GPL-2.0-only */
2
3 #include "pcrlib.asl"
4
5 /* APIs to access P2SB inside PCH/SoC die */
6
7 /*
8 * Calculate PCR register base at specified PID
9 * Arg0 - PCR Port ID
10 */
11 Method (PCRB, 1, NotSerialized)
12 {
13 Return (GPCR(PCH_P2SB, Arg0))
14 }
15
16 /*
17 * Read a PCR register at specified PID and offset
18 * Arg0 - PCR Port ID
19 * Arg1 - Register Offset
20 */
21 Method (PCRR, 2, Serialized)
22 {
23 Return (RPCR(PCH_P2SB, Arg0, Arg1))
24 }
25
26 /*
27 * AND a value with PCR register at specified PID and offset
28 * Arg0 - PCR Port ID
29 * Arg1 - Register Offset
30 * Arg2 - Value to AND
31 */
32 Method (PCRA, 3, Serialized)
33 {
34 APCR(PCH_P2SB, Arg0, Arg1, Arg2)
35 }
36
37 /*
38 * OR a value with PCR register at specified PID and offset
39 * Arg0 - PCR Port ID
40 * Arg1 - Register Offset
41 * Arg2 - Value to OR
42 */
43 Method (PCRO, 3, Serialized)
44 {
45 OPCR(PCH_P2SB, Arg0, Arg1, Arg2)
46 }