blob: ee7b33c04d56abea6dfb450420b3e9d205ea5a3e [file] [log] [blame]
Angel Pons210a0082020-04-02 23:48:24 +02001/* SPDX-License-Identifier: GPL-2.0-only */
Duncan Lauried9781742018-10-15 15:18:01 +00002
3#ifndef EC_GOOGLE_WILCO_SMM_H
4#define EC_GOOGLE_WILCO_SMM_H
5
6/* Handlers for SMI events */
7
8/**
9 * wilco_ec_smi_sleep
10 *
11 * Perform EC actions before suspend or power-off.
12 *
13 * @slp_type: Requested sleep type
14 */
15void wilco_ec_smi_sleep(int slp_type);
16
17/**
18 * wilco_ec_smi_apmc
19 *
20 * Perform EC actions on ACPI OS commands.
21 * This is used when the OS enables or disables ACPI.
22 *
23 * @apmc: OS command
24 */
25void wilco_ec_smi_apmc(int apmc);
26
27/**
28 * wilco_ec_smi_espi
29 *
30 * Perform EC actions on EC eSPI SMI interrupt.
31 */
32void wilco_ec_smi_espi(void);
33
34#endif /* EC_GOOGLE_WILCO_SMM_H */