Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Enumerations
charger-manager.h File Reference
#include <linux/power_supply.h>
#include <linux/extcon.h>

Go to the source code of this file.

Data Structures

struct  charger_global_desc
 
struct  charger_cable
 
struct  charger_regulator
 
struct  charger_desc
 
struct  charger_manager
 

Enumerations

enum  data_source { CM_BATTERY_PRESENT, CM_NO_BATTERY, CM_FUEL_GAUGE, CM_CHARGER_STAT }
 
enum  polling_modes { CM_POLL_DISABLE = 0, CM_POLL_ALWAYS, CM_POLL_EXTERNAL_POWER_ONLY, CM_POLL_CHARGING_ONLY }
 
enum  cm_event_types {
  CM_EVENT_UNKNOWN = 0, CM_EVENT_BATT_FULL, CM_EVENT_BATT_IN, CM_EVENT_BATT_OUT,
  CM_EVENT_EXT_PWR_IN_OUT, CM_EVENT_CHG_START_STOP, CM_EVENT_OTHERS
}
 

: the name of charger cable(external connector).

struct charger_cable : the name of extcon device.

: the extcon device. : the workqueue to control charger according to the state of charger cable. If charger cable is attached, enable charger. But if charger cable is detached, disable charger. : the notifier block to receive changed state from EXTCON (External Connector) when charger cable is attached/detached. : the state of charger cable. true: the charger cable is attached false: the charger cable is detached : the instance of struct charger_regulator. : the Charger Manager representing the battery.

#define PSY_NAME_MAX   30
 

Macro Definition Documentation

#define PSY_NAME_MAX   30

Definition at line 220 of file charger-manager.h.

Enumeration Type Documentation

Enumerator:
CM_EVENT_UNKNOWN 
CM_EVENT_BATT_FULL 
CM_EVENT_BATT_IN 
CM_EVENT_BATT_OUT 
CM_EVENT_EXT_PWR_IN_OUT 
CM_EVENT_CHG_START_STOP 
CM_EVENT_OTHERS 

Definition at line 35 of file charger-manager.h.

Enumerator:
CM_BATTERY_PRESENT 
CM_NO_BATTERY 
CM_FUEL_GAUGE 
CM_CHARGER_STAT 

Definition at line 21 of file charger-manager.h.

Enumerator:
CM_POLL_DISABLE 
CM_POLL_ALWAYS 
CM_POLL_EXTERNAL_POWER_ONLY 
CM_POLL_CHARGING_ONLY 

Definition at line 28 of file charger-manager.h.