Files
OpenCellular/test/adapter_externs.h
Bill Richardson 8c7a18616f Falco: throttle if battery current drain is too high
I missed this requirement the first time. Now it's here. Also adding a test
for it as well.

BUG=chrome-os-partner:20739
BRANCH=falco
TEST=manual

make BOARD=falco runtests

Change-Id: I88aac8d12d09f7970b04c4aa02b6986b5ea16306
Signed-off-by: Bill Richardson <wfrichar@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/66684
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
2013-08-23 10:38:57 -07:00

22 lines
751 B
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.
*/
#ifndef __ADAPTER_EXTERNS_H
#define __ADAPTER_EXTERNS_H
/* Normally private symbols from the modules that we're testing. */
extern enum adapter_type ac_adapter;
extern struct adapter_id_vals ad_id_vals[];
extern struct adapter_limits
ad_limits[][NUM_AC_TURBO_STATES][NUM_AC_THRESHOLDS];
extern int ac_turbo;
extern int ap_is_throttled;
extern void check_threshold(int current, struct adapter_limits *lim);
extern struct adapter_limits batt_limits[NUM_BATT_THRESHOLDS];
extern void watch_battery_closely(struct power_state_context *ctx);
#endif /* __ADAPTER_EXTERNS_H */