Debian Codegraph @

src/mainboard/acer/aspire_vn7_572g/dsdt.asl

raw
1 /* SPDX-License-Identifier: GPL-2.0-only */
2
3 #include <acpi/acpi.h>
4 DefinitionBlock(
5 "dsdt.aml",
6 "DSDT",
7 ACPI_DSDT_REV_2,
8 OEM_ID,
9 ACPI_TABLE_CREATOR,
10 0x20141018 // OEM revision
11 )
12 {
13 #include <acpi/dsdt_top.asl>
14 #include <soc/intel/common/block/acpi/acpi/platform.asl>
15 #include <soc/intel/common/block/acpi/acpi/globalnvs.asl>
16 #include <cpu/intel/common/acpi/cpu.asl>
17 #include <southbridge/intel/common/acpi/sleepstates.asl>
18
19 /* SW SMI ports */
20 OperationRegion (DPRT, SystemIO, 0xB2, 2)
21 Field (DPRT, ByteAcc, Lock, Preserve)
22 {
23 SSMP, 8,
24 SSDP, 8
25 }
26
27 Name (ESMI, 0xDD) // NOTE: Could insert into SSDT at runtime
28 /* Returns a non-zero integer if SMI function failed */
29 Method (TRPS, 3, Serialized)
30 {
31 Printf ("SMIF: %o", ToHexString (Arg0))
32 Printf ("Param0: %o", ToHexString (Arg1))
33 Printf ("Param1: %o", ToHexString (Arg2))
34
35 Local0 = Arg1
36 Local0 |= (Arg2 << 4)
37 Printf ("Local0: %o", ToHexString (Local0))
38
39 SMIF = Arg0
40 SSDP = Local0
41 /* NOTE: To use a general IO trap, program the range
42 into a PCR_PSTH_TRPREGx. Otherwise, this is APM. */
43 SSMP = ESMI
44 Return (SMIF)
45 }
46
47 Device (\_SB.PCI0)
48 {
49 #include <soc/intel/skylake/acpi/systemagent.asl>
50 #include <soc/intel/skylake/acpi/pch.asl>
51 #include "acpi/brightness_levels.asl"
52 }
53
54 #include "acpi/mainboard.asl"
55 }