blob: d58393c50ac0b168b965d9365e8354a569632671 [file] [log] [blame]
Andrey Petrov1b325dd2020-03-20 12:12:12 -07001/* SPDX-License-Identifier: GPL-2.0-only */
Andrey Petrov1b325dd2020-03-20 12:12:12 -07002
3/* The APM port can be used for generating software SMIs */
4
5OperationRegion (APMP, SystemIO, 0xb2, 2)
6Field (APMP, ByteAcc, NoLock, Preserve)
7{
8 APMC, 8, // APM command
9 APMS, 8 // APM status
10}
11
Angel Ponsf0ed8462022-05-02 16:52:57 +020012#include <arch/x86/acpi/post.asl>
Andrey Petrov1b325dd2020-03-20 12:12:12 -070013
Felix Singerfa06bcb2022-12-26 09:32:47 +010014Name(\APC1, 0) // IIO IOAPIC
Andrey Petrov1b325dd2020-03-20 12:12:12 -070015
Andrey Petrov1b325dd2020-03-20 12:12:12 -070016/*
17 * The _PTS method (Prepare To Sleep) is called before the OS is
18 * entering a sleep state. The sleep state number is passed in Arg0
19 */
20
21Method(_PTS,1)
22{
23}
24
25/* The _WAK method is called on system wakeup */
26
27Method(_WAK,1)
28{
29 Return(Package(){0,0})
30}