mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-29 18:11:05 +00:00
More cleanup to come... BUG=chrome-os-partner:7839 TEST=manual Lights should blink in various ways, depending on the CPU state. Also try the konami code on the keyboard. Change-Id: I90be9aabb611278ed509493fbab4d5faff74e24c Signed-off-by: Bill Richardson <wfrichar@chromium.org>
37 lines
1008 B
C
37 lines
1008 B
C
/* 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.
|
|
*/
|
|
|
|
/* Ask the EC to set the lightbar state to reflect the CPU activity */
|
|
|
|
#ifndef __CROS_EC_LIGHTBAR_H
|
|
#define __CROS_EC_LIGHTBAR_H
|
|
|
|
enum lightbar_sequence {
|
|
LIGHTBAR_NULL = 0, /* not used */
|
|
/* CPU states */
|
|
LIGHTBAR_S5, /* 1 */
|
|
LIGHTBAR_S3, /* 2 */
|
|
LIGHTBAR_S0, /* 3 */
|
|
/* CPU state transitions */
|
|
LIGHTBAR_S5S3, /* 4 */
|
|
LIGHTBAR_S3S0, /* 5 */
|
|
LIGHTBAR_S0S3, /* 6 */
|
|
LIGHTBAR_S3S5, /* 7 */
|
|
/* Who's in charge? */
|
|
LIGHTBAR_EC_STOP, /* 8 - EC ignore LEDs */
|
|
LIGHTBAR_EC_RUN, /* 9 - EC drive LEDs */
|
|
/* Extra patterns */
|
|
LIGHTBAR_PULSE, /* a */
|
|
LIGHTBAR_TEST, /* b */
|
|
LIGHTBAR_KONAMI, /* c */
|
|
/* that's all */
|
|
LIGHTBAR_NUM_SEQUENCES
|
|
};
|
|
|
|
/* Request a preset sequence from the lightbar task. */
|
|
void lightbar_sequence(enum lightbar_sequence s);
|
|
|
|
#endif /* __CROS_EC_LIGHTBAR_H */
|