1
2
3
4
5
6
7
8
9
10 #ifndef __PDA_POWER_H__
11 #define __PDA_POWER_H__
12
13 #define PDA_POWER_CHARGE_AC (1 << 0)
14 #define PDA_POWER_CHARGE_USB (1 << 1)
15
16 struct device;
17
18 struct pda_power_pdata {
19 int (*init)(struct device *dev);
20 int (*is_ac_online)(void);
21 int (*is_usb_online)(void);
22 void (*set_charge)(int flags);
23 void (*exit)(struct device *dev);
24 int (*suspend)(pm_message_t state);
25 int (*resume)(void);
26
27 char **supplied_to;
28 size_t num_supplicants;
29
30 unsigned int wait_for_status;
31 unsigned int wait_for_charger;
32 unsigned int polling_interval;
33
34 unsigned long ac_max_uA;
35
36 bool use_otg_notifier;
37 };
38
39 #endif