Linux Kernel
3.7.1
|
#include <linux/io.h>
#include <linux/module.h>
#include <linux/irq.h>
#include <linux/interrupt.h>
#include <linux/rtc.h>
#include <linux/slab.h>
#include <linux/workqueue.h>
#include <linux/platform_device.h>
#include <linux/power/charger-manager.h>
#include <linux/regulator/consumer.h>
#include <linux/sysfs.h>
Go to the source code of this file.
Macros | |
#define | CM_JIFFIES_SMALL (2) |
#define | CM_MIN_VALID(x, y) x = (((y > 0) && ((x) > (y))) ? (y) : (x)) |
#define | CM_RTC_SMALL (2) |
#define | UEVENT_BUF_SIZE 32 |
#define | NUM_CHARGER_PSY_OPTIONAL (4) |
Functions | |
bool | cm_suspend_again (void) |
EXPORT_SYMBOL_GPL (cm_suspend_again) | |
int | setup_charger_manager (struct charger_global_desc *gd) |
EXPORT_SYMBOL_GPL (setup_charger_manager) | |
MODULE_DEVICE_TABLE (platform, charger_manager_id) | |
late_initcall (charger_manager_init) | |
module_exit (charger_manager_cleanup) | |
void | cm_notify_event (struct power_supply *psy, enum cm_event_types type, char *msg) |
EXPORT_SYMBOL_GPL (cm_notify_event) | |
MODULE_AUTHOR ("MyungJoo Ham <[email protected]>") | |
MODULE_DESCRIPTION ("Charger Manager") | |
MODULE_LICENSE ("GPL") | |
#define CM_JIFFIES_SMALL (2) |
Definition at line 42 of file charger-manager.c.
Definition at line 45 of file charger-manager.c.
#define CM_RTC_SMALL (2) |
Definition at line 51 of file charger-manager.c.
#define NUM_CHARGER_PSY_OPTIONAL (4) |
Definition at line 904 of file charger-manager.c.
#define UEVENT_BUF_SIZE 32 |
Definition at line 53 of file charger-manager.c.
void cm_notify_event | ( | struct power_supply * | psy, |
enum cm_event_types | type, | ||
char * | msg | ||
) |
cm_notify_event - charger driver notify Charger Manager of charger event : pointer to instance of charger's power_supply : type of charger event : optional message passed to uevent_notify fuction
Definition at line 1864 of file charger-manager.c.
cm_suspend_again - Determine whether suspend again or not
Returns true if the system should be suspended again Returns false if the system should be woken up
Definition at line 1047 of file charger-manager.c.
EXPORT_SYMBOL_GPL | ( | cm_suspend_again | ) |
EXPORT_SYMBOL_GPL | ( | setup_charger_manager | ) |
EXPORT_SYMBOL_GPL | ( | cm_notify_event | ) |
late_initcall | ( | charger_manager_init | ) |
MODULE_AUTHOR | ( | "MyungJoo Ham <[email protected]>" | ) |
MODULE_DESCRIPTION | ( | "Charger Manager" | ) |
MODULE_DEVICE_TABLE | ( | platform | , |
charger_manager_id | |||
) |
module_exit | ( | charger_manager_cleanup | ) |
MODULE_LICENSE | ( | "GPL" | ) |
int setup_charger_manager | ( | struct charger_global_desc * | gd | ) |
setup_charger_manager - initialize charger_global_desc data : pointer to instance of charger_global_desc
Definition at line 1094 of file charger-manager.c.