/* 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 #include "consumer.h" #include "queue.h" #if defined(CONFIG_EC_EC_COMM_SLAVE) && defined(CONFIG_EC_EC_COMM_BATTERY) #define CONFIG_EC_EC_COMM_BATTERY_SLAVE #endif /* TODO(b:65697620): Move these to battery.h, depending on a config option. */ extern struct ec_response_battery_static_info base_battery_static; extern struct ec_response_battery_dynamic_info base_battery_dynamic; 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_ */