mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-06 23:51:28 +00:00
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>
42 lines
1.1 KiB
C
42 lines
1.1 KiB
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
|
|
|
|
/****************************************************************************/
|
|
/* 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_NUM_CMDS
|
|
};
|
|
|
|
#endif /* __CROS_EC_LIGHTBAR_H */
|