summaryrefslogtreecommitdiff
path: root/include/lightbar.h
diff options
context:
space:
mode:
authorBill Richardson <wfrichar@chromium.org>2012-04-25 13:56:09 -0700
committerBill Richardson <wfrichar@chromium.org>2012-04-25 18:42:36 -0700
commite763812a3a420e313d8784ad1c0ab510f2c174b3 (patch)
tree79aed3667377eb4358ab667ad9a137def24ec23a /include/lightbar.h
parent93a4ed6bcdaef3b36865b04a41c3e26ffd96108c (diff)
downloadchrome-ec-e763812a3a420e313d8784ad1c0ab510f2c174b3.tar.gz
Give ectool the same lightbar commands as the console.
BUG=chrome-os-partner:7839 TEST=manual Try "lightbar help" on the EC console and "ectool lightbar help" on the host. You should see the same commands and behavior. Change-Id: I6e879e8bb892ef5ada7ef85a97fdf243149f4cb6 Signed-off-by: Bill Richardson <wfrichar@chromium.org>
Diffstat (limited to 'include/lightbar.h')
-rw-r--r--include/lightbar.h21
1 files changed, 20 insertions, 1 deletions
diff --git a/include/lightbar.h b/include/lightbar.h
index a18f236f3f..0cc19e2b9b 100644
--- a/include/lightbar.h
+++ b/include/lightbar.h
@@ -7,8 +7,11 @@
#ifndef __CROS_EC_LIGHTBAR_H
#define __CROS_EC_LIGHTBAR_H
+/****************************************************************************/
+/* Internal stuff */
+
/* Define the types of sequences */
-#define LBMSG(state) LIGHTBAR_##state,
+#define LBMSG(state) LIGHTBAR_##state
#include "lightbar_msg_list.h"
enum lightbar_sequence {
LIGHTBAR_MSG_LIST
@@ -19,4 +22,20 @@ enum lightbar_sequence {
/* 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_NUM_CMDS
+};
+
#endif /* __CROS_EC_LIGHTBAR_H */