Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
apm_power.c File Reference
#include <linux/module.h>
#include <linux/device.h>
#include <linux/power_supply.h>
#include <linux/apm-emulation.h>

Go to the source code of this file.

Data Structures

struct  find_bat_param
 

Macros

#define PSY_PROP(psy, prop, val)
 
#define _MPSY_PROP(prop, val)
 
#define MPSY_PROP(prop, val)   _MPSY_PROP(POWER_SUPPLY_PROP_##prop, val)
 

Enumerations

enum  apm_source { SOURCE_ENERGY, SOURCE_CHARGE, SOURCE_VOLTAGE }
 

Functions

 module_init (apm_battery_init)
 
 module_exit (apm_battery_exit)
 
 MODULE_AUTHOR ("Eugeny Boger <[email protected]>")
 
 MODULE_DESCRIPTION ("APM emulation driver for battery monitoring class")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define _MPSY_PROP (   prop,
  val 
)
Value:
(main_battery->get_property(main_battery, \
prop, val))

Definition at line 21 of file apm_power.c.

#define MPSY_PROP (   prop,
  val 
)    _MPSY_PROP(POWER_SUPPLY_PROP_##prop, val)

Definition at line 24 of file apm_power.c.

#define PSY_PROP (   psy,
  prop,
  val 
)
Value:
(psy->get_property(psy, \
POWER_SUPPLY_PROP_##prop, val))

Definition at line 18 of file apm_power.c.

Enumeration Type Documentation

enum apm_source
Enumerator:
SOURCE_ENERGY 
SOURCE_CHARGE 
SOURCE_VOLTAGE 

Definition at line 29 of file apm_power.c.

Function Documentation

MODULE_AUTHOR ( "Eugeny Boger <[email protected]>"  )
MODULE_DESCRIPTION ( "APM emulation driver for battery monitoring class )
module_exit ( apm_battery_exit  )
module_init ( apm_battery_init  )
MODULE_LICENSE ( "GPL"  )