Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Enumerations
abx500.h File Reference
#include <linux/regulator/machine.h>

Go to the source code of this file.

Data Structures

struct  abx500_init_settings
 
struct  abx500_res_to_temp
 
struct  abx500_v_to_cap
 
struct  abx500_fg_parameters
 
struct  abx500_maxim_parameters
 
struct  abx500_battery_type
 
struct  abx500_bm_capacity_levels
 
struct  abx500_bm_charger_parameters
 
struct  abx500_bm_data
 
struct  abx500_chargalg_platform_data
 
struct  abx500_charger_platform_data
 
struct  abx500_btemp_platform_data
 
struct  abx500_fg_platform_data
 
struct  abx500_bm_plat_data
 
struct  abx500_ops
 

Enumerations

enum  abx500_adc_therm { ABx500_ADC_THERM_BATCTRL, ABx500_ADC_THERM_BATTEMP }
 

Functions

: battery technology

struct abx500_battery_type - different batteries supported

: battery upper resistance limit : battery lower resistance limit : Maximum battery capacity in mAh : Nominal voltage of the battery in mV : max voltage upto which battery can be charged battery charging termination current in mA battery voltage limit that will trigger a new full charging cycle in the case where maintenan- -ce charging has been disabled : charger current in normal state in mA : charger voltage in normal state in mV : charger current in maintenance A state in mA : charger voltage in maintenance A state in mV : charge time in maintenance A state : charger current in maintenance B state in mA : charger voltage in maintenance B state in mV : charge time in maintenance B state : charger current in temp low/high state in mA : charger voltage in temp low/high state in mV' : battery inner resistance in mOhm. : number of elements in r_to_t_tbl : table containing resistance to temp points : number of elements in v_to_cap_tbl : Voltage to capacity (in %) table number of elements in the batres_tbl battery internal resistance vs temperature table

int abx500_set_register_interruptible (struct device *dev, u8 bank, u8 reg, u8 value)
 
int abx500_get_register_interruptible (struct device *dev, u8 bank, u8 reg, u8 *value)
 
int abx500_get_register_page_interruptible (struct device *dev, u8 bank, u8 first_reg, u8 *regvals, u8 numregs)
 
int abx500_set_register_page_interruptible (struct device *dev, u8 bank, u8 first_reg, u8 *regvals, u8 numregs)
 
int abx500_mask_and_set_register_interruptible (struct device *dev, u8 bank, u8 reg, u8 bitmask, u8 bitvalues)
 
int abx500_get_chip_id (struct device *dev)
 
int abx500_event_registers_startup_state_get (struct device *dev, u8 *event)
 
int abx500_startup_irq_enabled (struct device *dev, unsigned int irq)
 
int abx500_register_ops (struct device *core_dev, struct abx500_ops *ops)
 
void abx500_remove_ops (struct device *dev)
 

Enumeration Type Documentation

Enumerator:
ABx500_ADC_THERM_BATCTRL 
ABx500_ADC_THERM_BATTEMP 

Definition at line 39 of file abx500.h.

Function Documentation

int abx500_event_registers_startup_state_get ( struct device dev,
u8 event 
)

Definition at line 132 of file abx500-core.c.

int abx500_get_chip_id ( struct device dev)

Definition at line 120 of file abx500-core.c.

int abx500_get_register_interruptible ( struct device dev,
u8  bank,
u8  reg,
u8 value 
)

Definition at line 79 of file abx500-core.c.

int abx500_get_register_page_interruptible ( struct device dev,
u8  bank,
u8  first_reg,
u8 regvals,
u8  numregs 
)

Definition at line 92 of file abx500-core.c.

int abx500_mask_and_set_register_interruptible ( struct device dev,
u8  bank,
u8  reg,
u8  bitmask,
u8  bitvalues 
)

abx500_mask_and_set_register_inerruptible() - Modifies selected bits of a target register

: The AB sub device. : The i2c bank number. : The bit mask to use. : The new bit values.

Updates the value of an AB register: value -> ((value & ~bitmask) | (bitvalues & bitmask))

Definition at line 106 of file abx500-core.c.

int abx500_register_ops ( struct device core_dev,
struct abx500_ops ops 
)

Definition at line 35 of file abx500-core.c.

void abx500_remove_ops ( struct device dev)

Definition at line 52 of file abx500-core.c.

int abx500_set_register_interruptible ( struct device dev,
u8  bank,
u8  reg,
u8  value 
)

Definition at line 66 of file abx500-core.c.

int abx500_set_register_page_interruptible ( struct device dev,
u8  bank,
u8  first_reg,
u8 regvals,
u8  numregs 
)
int abx500_startup_irq_enabled ( struct device dev,
unsigned int  irq 
)

Definition at line 144 of file abx500-core.c.