summaryrefslogtreecommitdiff
path: root/include/x86_power.h
blob: ec0adeb34ec53daecb6c5ebe1877ca265cc17a4c (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
28
29
/* Copyright (c) 2012 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.
 */

/* x86 power module for Chrome EC */

#ifndef __CROS_EC_X86_POWER_H
#define __CROS_EC_X86_POWER_H

#include "common.h"
#include "gpio.h"

/* Interrupt handler for input GPIOs */
void x86_power_interrupt(enum gpio_signal signal);

/* Informs the power module that the CPU has overheated (too_hot=1) or is
 * no longer too hot (too_hot=0). */
void x86_power_cpu_overheated(int too_hot);

/* Immediately shuts down power to the main processor and chipset.  This is
 * intended for use when the system is too hot or battery power is critical. */
void x86_power_force_shutdown(void);

/* Reset the x86.  If cold_reset!=0, forces a cold reset by sending
 * power-not-ok; otherwise, just pulses the reset line to the x86. */
void x86_power_reset(int cold_reset);

#endif  /* __CROS_EC_X86_POWER_H */