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

Go to the source code of this file.

Data Structures

struct  pmu_battery_info
 

Macros

#define PMU_MAX_BATTERIES   2
 
#define PMU_PWR_AC_PRESENT   0x00000001
 
#define PMU_BATT_PRESENT   0x00000001
 
#define PMU_BATT_CHARGING   0x00000002
 
#define PMU_BATT_TYPE_MASK   0x000000f0
 
#define PMU_BATT_TYPE_SMART   0x00000010 /* Smart battery */
 
#define PMU_BATT_TYPE_HOOPER   0x00000020 /* 3400/3500 */
 
#define PMU_BATT_TYPE_COMET   0x00000030 /* 2400 */
 
#define pmu_sys_suspended   0
 

Functions

int find_via_pmu (void)
 
int pmu_request (struct adb_request *req, void(*done)(struct adb_request *), int nbytes,...)
 
int pmu_queue_request (struct adb_request *req)
 
void pmu_poll (void)
 
void pmu_poll_adb (void)
 
void pmu_wait_complete (struct adb_request *req)
 
void pmu_enable_irled (int on)
 
void pmu_restart (void)
 
void pmu_shutdown (void)
 
void pmu_unlock (void)
 
int pmu_present (void)
 
int pmu_get_model (void)
 
void pmu_backlight_set_sleep (int sleep)
 
void pmu_backlight_init (void)
 

Variables

int pmu_battery_count
 
struct pmu_battery_info pmu_batteries [PMU_MAX_BATTERIES]
 
unsigned int pmu_power_flags
 

Macro Definition Documentation

#define PMU_BATT_CHARGING   0x00000002

Definition at line 54 of file pmu.h.

#define PMU_BATT_PRESENT   0x00000001

Definition at line 53 of file pmu.h.

#define PMU_BATT_TYPE_COMET   0x00000030 /* 2400 */

Definition at line 58 of file pmu.h.

#define PMU_BATT_TYPE_HOOPER   0x00000020 /* 3400/3500 */

Definition at line 57 of file pmu.h.

#define PMU_BATT_TYPE_MASK   0x000000f0

Definition at line 55 of file pmu.h.

#define PMU_BATT_TYPE_SMART   0x00000010 /* Smart battery */

Definition at line 56 of file pmu.h.

#define PMU_MAX_BATTERIES   2

Definition at line 47 of file pmu.h.

#define PMU_PWR_AC_PRESENT   0x00000001

Definition at line 50 of file pmu.h.

#define pmu_sys_suspended   0

Definition at line 82 of file pmu.h.

Function Documentation

int find_via_pmu ( void  )

Definition at line 197 of file setup.c.

void pmu_backlight_init ( void  )

Definition at line 145 of file via-pmu-backlight.c.

void pmu_backlight_set_sleep ( int  sleep)
void pmu_enable_irled ( int  on)

Definition at line 1672 of file via-pmu.c.

int pmu_get_model ( void  )

Definition at line 585 of file via-pmu.c.

void pmu_poll ( void  )

Definition at line 1239 of file via-pmu.c.

void pmu_poll_adb ( void  )

Definition at line 1249 of file via-pmu.c.

int pmu_present ( void  )

Definition at line 1742 of file via-pmu.c.

int pmu_queue_request ( struct adb_request req)

Definition at line 1123 of file via-pmu.c.

int pmu_request ( struct adb_request req,
void(*)(struct adb_request *)  done,
int  nbytes,
  ... 
)

Definition at line 1097 of file via-pmu.c.

void pmu_restart ( void  )

Definition at line 1687 of file via-pmu.c.

void pmu_shutdown ( void  )

Definition at line 1712 of file via-pmu.c.

void pmu_unlock ( void  )

Definition at line 1639 of file via-pmu.c.

void pmu_wait_complete ( struct adb_request req)

Definition at line 1264 of file via-pmu.c.

Variable Documentation

Definition at line 168 of file via-pmu.c.

int pmu_battery_count

Definition at line 165 of file via-pmu.c.

unsigned int pmu_power_flags

Definition at line 167 of file via-pmu.c.