Debian Codegraph @

tests/aslts/src/runtime/collections/bdemo/ACPICA/0259/ssdt.asl

raw
1 DefinitionBlock(
2 "ssdt.aml", // Output filename
3 "SSDT", // Signature
4 0x02, // DSDT Revision
5 "Intel", // OEMID
6 "Many", // TABLE ID
7 0x00000001 // OEM Revision
8 ) {
9
10 Device (AUXD) {
11
12 OperationRegion (OPR0, 0x80, 0x00, 0x4)
13
14 Field (OPR0, DWordAcc, NoLock, Preserve) {
15 RF00, 32}
16
17 Name (REGC, Ones)
18 Name (REGP, 0)
19
20 Method(_REG, 2)
21 {
22 Store("\\AUXD._REG:", Debug)
23 Store(arg0, Debug)
24 Store(arg1, Debug)
25
26 if (LEqual(arg0, 0x80)) {
27 Store(REGC, REGP)
28 Store(arg1, REGC)
29 }
30 }
31
32 Method(ACC0)
33 {
34 Store("\\AUXD.ACC0:", Debug)
35 Store(RF00, Debug)
36 Store(REGP, Debug)
37 if (LNotEqual(REGC, 1)) {
38 Store("Error: REGC != 1", Debug)
39 Store(REGC, Debug)
40 }
41 }
42 }
43 }