mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-08 00:21:46 +00:00
On dual battery systems, this allows to keep both batteries
information in similar structures. This also means that battery
information can only be fetched via host commands
EC_CMD_BATTERY_GET_STATIC/DYNAMIC (next CL will make it possible
to fetch the information via shared memory/ACPI).
BRANCH=none
BUG=b:65697620
TEST=Boot lux/wand, dual-battery algorithm works, AP can fetch
both battery information via host commands.
Change-Id: I3c087e8f378c5cef0006f6bfe58335228a880e5b
Signed-off-by: Nicolas Boichat <drinkcat@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/888381
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Reviewed-by: Furquan Shaikh <furquan@chromium.org>
21 lines
569 B
C
21 lines
569 B
C
/* Copyright 2017 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.
|
|
*
|
|
* EC-EC communication, functions and definition for slave.
|
|
*/
|
|
|
|
#ifndef EC_EC_COMM_SLAVE_H_
|
|
#define EC_EC_COMM_SLAVE_H_
|
|
|
|
#include <stdint.h>
|
|
#include "consumer.h"
|
|
#include "queue.h"
|
|
|
|
extern struct queue const ec_ec_comm_slave_input;
|
|
extern struct queue const ec_ec_comm_slave_output;
|
|
|
|
void ec_ec_comm_slave_written(struct consumer const *consumer, size_t count);
|
|
|
|
#endif /* EC_EC_COMM_SLAVE_H_ */
|