blob: 4f1c57e5b5c91769e9f02fc4d035a0df43d4cbdb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
/*
* linux/drivers/power/fg/fg.h
*
* TI Fuel Gauge driver for Linux
*
* Copyright (C) 2008-2009 Texas Instruments, Inc.
* Author: Texas Instruments, Inc.
*
* This package is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*/
#ifdef CONFIG_FUEL_GAUGE
#ifndef __FG_H
#define __FG_H
#include <linux/init.h>
#include <linux/types.h>
#include <linux/time.h>
#include <linux/power/ti-fg.h>
void fg_init(struct cell_state *cell, short voltage);
void fg_process(struct cell_state *cell, short delta_q, short voltage,
short cur, short temperature);
void fg_learn_capacity(struct cell_state *cell, unsigned short capacity);
#endif
#endif
|