0001
0002
0003
0004
0005
0006
0007
0008
0009
0010 #ifndef __PDA_POWER_H__
0011 #define __PDA_POWER_H__
0012
0013 #define PDA_POWER_CHARGE_AC (1 << 0)
0014 #define PDA_POWER_CHARGE_USB (1 << 1)
0015
0016 struct device;
0017
0018 struct pda_power_pdata {
0019 int (*init)(struct device *dev);
0020 int (*is_ac_online)(void);
0021 int (*is_usb_online)(void);
0022 void (*set_charge)(int flags);
0023 void (*exit)(struct device *dev);
0024 int (*suspend)(pm_message_t state);
0025 int (*resume)(void);
0026
0027 char **supplied_to;
0028 size_t num_supplicants;
0029
0030 unsigned int wait_for_status;
0031 unsigned int wait_for_charger;
0032 unsigned int polling_interval;
0033
0034 unsigned long ac_max_uA;
0035
0036 bool use_otg_notifier;
0037 };
0038
0039 #endif