blob: ea483149047d0914a1361bb5153eaf135891a3d7 (
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
/* 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
/****************************************************************************/
/* Internal stuff */
/* Define the types of sequences */
#define LBMSG(state) LIGHTBAR_##state
#include "lightbar_msg_list.h"
enum lightbar_sequence {
LIGHTBAR_MSG_LIST
LIGHTBAR_NUM_SEQUENCES
};
#undef LBMSG
/* Request a preset sequence from the lightbar task. */
void lightbar_sequence(enum lightbar_sequence s);
/****************************************************************************/
/* External stuff */
/* These are the commands available to the EC console or via LPC. */
enum lightbar_command {
LIGHTBAR_CMD_DUMP,
LIGHTBAR_CMD_OFF,
LIGHTBAR_CMD_ON,
LIGHTBAR_CMD_INIT,
LIGHTBAR_CMD_BRIGHTNESS,
LIGHTBAR_CMD_SEQ,
LIGHTBAR_CMD_REG,
LIGHTBAR_CMD_RGB,
LIGHTBAR_CMD_GET_SEQ,
LIGHTBAR_CMD_DEMO,
LIGHTBAR_NUM_CMDS
};
/* These are used for demo purposes */
extern void demo_battery_level(int inc);
extern void demo_is_charging(int ischarge);
extern void demo_brightness(int inc);
#endif /* __CROS_EC_LIGHTBAR_H */
|