summaryrefslogtreecommitdiff
path: root/zephyr/subsys/ap_pwrseq/include/x86_common_pwrseq.h
blob: 6eee6ce140b63fd9763a9044a7a97d40b3a6f0dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/* Copyright 2022 The Chromium OS Authors. All rights reserved.
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */

#ifndef __X86_COMMON_PWRSEQ_H__
#define __X86_COMMON_PWRSEQ_H__

#include <logging/log.h>
#include <ap_power/ap_power_interface.h>
#include <ap_power_override_functions.h>
#include <power_signals.h>
#include <x86_power_signals.h>

/* This encapsulates the attributes of the state machine */
struct pwrseq_context {
	/* On power-on start boot up sequence */
	enum power_states_ndsx power_state;
	/* Indicate should exit G3 power state or not */
	bool want_g3_exit;
#if defined(PWRSEQ_REQUIRE_ESPI)
	bool espi_ready;
#endif

};

#endif /* __X86_COMMON_PWRSEQ_H__ */