Debian Codegraph @

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

raw
1 /* SPDX-License-Identifier: GPL-2.0-only */
2
3 #include "pcrlib.asl"
4
5 /* APIs to access P2SB inside IOE die */
6
7 /*
8 * Calculate PCR register base at specified PID
9 * Arg0 - PCR Port ID
10 */
11 Method (ICRB, 1, NotSerialized)
12 {
13 Return (GPCR(IOE_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 (ICRR, 2, Serialized)
22 {
23 Return (RPCR(IOE_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 (ICRA, 3, Serialized)
33 {
34 APCR(IOE_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 (ICRO, 3, Serialized)
44 {
45 OPCR(IOE_P2SB, Arg0, Arg1, Arg2)
46 }