Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Fields
ab8500_fg Struct Reference

Data Fields

struct devicedev
 
struct list_head node
 
int irq
 
int vbat
 
int vbat_nom
 
int inst_curr
 
int avg_curr
 
int bat_temp
 
int fg_samples
 
int accu_charge
 
int recovery_cnt
 
int high_curr_cnt
 
int init_cnt
 
bool recovery_needed
 
bool high_curr_mode
 
bool init_capacity
 
bool turn_off_fg
 
enum ab8500_fg_calibration_state calib_state
 
enum ab8500_fg_discharge_state discharge_state
 
enum ab8500_fg_charge_state charge_state
 
struct completion ab8500_fg_complete
 
struct ab8500_fg_flags flags
 
struct ab8500_fg_battery_capacity bat_cap
 
struct ab8500_fg_avg_cap avg_cap
 
struct ab8500parent
 
struct ab8500_gpadcgpadc
 
struct abx500_fg_platform_datapdata
 
struct abx500_bm_databat
 
struct power_supply fg_psy
 
struct workqueue_structfg_wq
 
struct delayed_work fg_periodic_work
 
struct delayed_work fg_low_bat_work
 
struct delayed_work fg_reinit_work
 
struct work_struct fg_work
 
struct work_struct fg_acc_cur_work
 
struct delayed_work fg_check_hw_failure_work
 
struct mutex cc_lock
 
struct kobject fg_kobject
 

Detailed Description

struct ab8500_fg - ab8500 FG device information : Pointer to the structure device : a list of AB8500 FGs, hence prepared for reentrance holds the CCEOC interrupt number : Battery voltage in mV : Nominal battery voltage in mV : Instantenous battery current in mA : Average battery current in mA battery temperature : Number of samples used in the FG accumulation : Accumulated charge from the last conversion : Counter for recovery mode : Counter for high current mode : Counter for init mode : Indicate if recovery is needed : Indicate if we're in high current mode : Indicate if initial capacity measuring should be done : True if fg was off before current measurement State during offset calibration : Current discharge state : Current charge state Completion struct used for the instant current reading : Structure for information about events triggered : Structure for battery capacity specific parameters : Average capacity filter : Pointer to the struct ab8500 : Pointer to the struct gpadc : Pointer to the abx500_fg platform data : Pointer to the abx500_bm platform data : Structure that holds the FG specific battery properties : Work queue for running the FG algorithm : Work to run the FG algorithm periodically : Work to check low bat condition Work used to reset and reinitialise the FG algorithm : Work to run the FG algorithm instantly : Work to read the FG accumulator : Work for checking HW state : Mutex for locking the CC : Structure of type kobject

Definition at line 188 of file ab8500_fg.c.

Field Documentation

struct completion ab8500_fg_complete

Definition at line 209 of file ab8500_fg.c.

int accu_charge

Definition at line 198 of file ab8500_fg.c.

Definition at line 212 of file ab8500_fg.c.

int avg_curr

Definition at line 195 of file ab8500_fg.c.

Definition at line 216 of file ab8500_fg.c.

Definition at line 211 of file ab8500_fg.c.

int bat_temp

Definition at line 196 of file ab8500_fg.c.

enum ab8500_fg_calibration_state calib_state

Definition at line 206 of file ab8500_fg.c.

struct mutex cc_lock

Definition at line 225 of file ab8500_fg.c.

enum ab8500_fg_charge_state charge_state

Definition at line 208 of file ab8500_fg.c.

struct device* dev

Definition at line 189 of file ab8500_fg.c.

enum ab8500_fg_discharge_state discharge_state

Definition at line 207 of file ab8500_fg.c.

struct work_struct fg_acc_cur_work

Definition at line 223 of file ab8500_fg.c.

struct delayed_work fg_check_hw_failure_work

Definition at line 224 of file ab8500_fg.c.

struct kobject fg_kobject

Definition at line 226 of file ab8500_fg.c.

struct delayed_work fg_low_bat_work

Definition at line 220 of file ab8500_fg.c.

struct delayed_work fg_periodic_work

Definition at line 219 of file ab8500_fg.c.

Definition at line 217 of file ab8500_fg.c.

struct delayed_work fg_reinit_work

Definition at line 221 of file ab8500_fg.c.

int fg_samples

Definition at line 197 of file ab8500_fg.c.

Definition at line 222 of file ab8500_fg.c.

Definition at line 218 of file ab8500_fg.c.

Definition at line 210 of file ab8500_fg.c.

Definition at line 214 of file ab8500_fg.c.

int high_curr_cnt

Definition at line 200 of file ab8500_fg.c.

bool high_curr_mode

Definition at line 203 of file ab8500_fg.c.

bool init_capacity

Definition at line 204 of file ab8500_fg.c.

int init_cnt

Definition at line 201 of file ab8500_fg.c.

int inst_curr

Definition at line 194 of file ab8500_fg.c.

int irq

Definition at line 191 of file ab8500_fg.c.

Definition at line 190 of file ab8500_fg.c.

struct ab8500* parent

Definition at line 213 of file ab8500_fg.c.

Definition at line 215 of file ab8500_fg.c.

int recovery_cnt

Definition at line 199 of file ab8500_fg.c.

bool recovery_needed

Definition at line 202 of file ab8500_fg.c.

bool turn_off_fg

Definition at line 205 of file ab8500_fg.c.

int vbat

Definition at line 192 of file ab8500_fg.c.

int vbat_nom

Definition at line 193 of file ab8500_fg.c.


The documentation for this struct was generated from the following file: