diff options
Diffstat (limited to 'chip/g/rbox.h')
-rw-r--r-- | chip/g/rbox.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/chip/g/rbox.h b/chip/g/rbox.h new file mode 100644 index 0000000000..e327faaf8e --- /dev/null +++ b/chip/g/rbox.h @@ -0,0 +1,28 @@ +/* Copyright 2016 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 __CROS_RBOX_H +#define __CROS_RBOX_H + +/** + * Return true if the power button output shows it is pressed + */ +int rbox_powerbtn_is_pressed(void); + +/** + * Return true if power button rbox output override is enabled + */ +int rbox_powerbtn_override_is_enabled(void); + +/** + * Disable the output override + */ +void rbox_powerbtn_release(void); + +/** + * Override power button output to force a power button press + */ +void rbox_powerbtn_press(void); +#endif /* __CROS_RBOX_H */ |