mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-27 18:25:05 +00:00
More of same. Comment changes only; no code changes. BUG=chrome-os-partner:18343 BRANCH=none TEST=build all platforms; pass unit tests Change-Id: I8c42ed7d332cd9d461067e1aeac670855106cbcd Signed-off-by: Randall Spangler <rspangler@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/175405 Reviewed-by: Bill Richardson <wfrichar@chromium.org>
40 lines
1.0 KiB
C
40 lines
1.0 KiB
C
/* Copyright (c) 2013 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.
|
|
*/
|
|
|
|
/* External power via USB on Spring for Chrome EC */
|
|
|
|
#ifndef __CROS_EC_EXTPOWER_SPRING_H
|
|
#define __CROS_EC_EXTPOWER_SPRING_H
|
|
|
|
#include "common.h"
|
|
|
|
/*
|
|
* TODO(crosbug.com/p/23813): this currently piggy-backs on the charger task.
|
|
* Should be able to move updates to deferred functions and get rid of all the
|
|
* ifdef's in the charger task. At that point, all these APIs will be internal
|
|
* to the extpower module and this entire header file can go away.
|
|
*/
|
|
|
|
/**
|
|
* Properly limit input power on EC boot.
|
|
*
|
|
* Called from charger task.
|
|
*/
|
|
void extpower_charge_init(void);
|
|
|
|
/**
|
|
* Update external power state.
|
|
*
|
|
* Called from charger task.
|
|
*/
|
|
void extpower_charge_update(int force_update);
|
|
|
|
/**
|
|
* Return non-zero if external power needs update from charge task.
|
|
*/
|
|
int extpower_charge_needs_update(void);
|
|
|
|
#endif /* __CROS_EC_EXTPOWER_SPRING_H */
|