Debian Codegraph @

src/soc/intel/xeon_sp/gnr/acpi/gpe.asl

raw
1 /* SPDX-License-Identifier: GPL-2.0-only */
2
3 #include <soc/iomap.h>
4
5 Scope (\_SB)
6 {
7 Scope (\_GPE)
8 {
9 OperationRegion (PMIO, SystemIO, ACPI_BASE_ADDRESS, 0xFF)
10 Field (PMIO, ByteAcc, NoLock, Preserve) {
11 Offset(0x34), /* 0x34, SMI/SCI STS*/
12 , 9,
13 SGCS, 1, /* SWGPE STS BIT */
14
15 Offset(0x40), /* 0x40, SMI/SCI_EN*/
16 , 17,
17 SGPC, 1, /* SWGPE CTRL BIT */
18
19 Offset(0x6C), /* 0x6C, General Purpose Event 0 Status [127:96] */
20 , 2,
21 SGPS, 1, /* SWGPE STATUS */
22
23 Offset(0x7C), /* 0x7C, General Purpose Event 0 Enable [127:96] */
24 , 2,
25 SGPE, 1 /* SWGPE ENABLE */
26 }
27 Method (_L62, 0, NotSerialized)
28 {
29 DBGO("\\_GPE\\_L62\n")
30 SGPC = 0 // clear SWGPE control
31 SGPS = 1 // clear SWGPE Status
32 }
33 }
34 }