diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/usb/intel_mid_otg.h | 2 | ||||
-rw-r--r-- | include/linux/usb/penwell_otg.h | 10 |
2 files changed, 12 insertions, 0 deletions
diff --git a/include/linux/usb/intel_mid_otg.h b/include/linux/usb/intel_mid_otg.h index a0ccf795f36..c9ec4169a9e 100644 --- a/include/linux/usb/intel_mid_otg.h +++ b/include/linux/usb/intel_mid_otg.h @@ -162,6 +162,8 @@ struct intel_mid_otg_xceiv *otg_to_mid_xceiv(struct otg_transceiver *otg) #define MID_OTG_NOTIFY_HOSTREMOVE 0x0008 #define MID_OTG_NOTIFY_CLIENTADD 0x0009 #define MID_OTG_NOTIFY_CLIENTREMOVE 0x000a +#define MID_OTG_NOTIFY_CLIENTFS 0x000b +#define MID_OTG_NOTIFY_CLIENTHS 0x000c static inline int intel_mid_otg_register_notifier(struct intel_mid_otg_xceiv *iotg, diff --git a/include/linux/usb/penwell_otg.h b/include/linux/usb/penwell_otg.h index d5cefcf52e9..77776caa87a 100644 --- a/include/linux/usb/penwell_otg.h +++ b/include/linux/usb/penwell_otg.h @@ -304,6 +304,11 @@ struct penwell_otg { struct notifier_block iotg_notifier; struct adp_status adp; + + spinlock_t charger_lock; + struct otg_bc_cap charging_cap; + int (*bc_callback)(void *arg, int event, struct otg_bc_cap *cap); + void *bc_arg; }; static inline @@ -312,4 +317,9 @@ struct penwell_otg *iotg_to_penwell(struct intel_mid_otg_xceiv *iotg) return container_of(iotg, struct penwell_otg, iotg); } +extern int penwell_otg_query_charging_cap(struct otg_bc_cap *cap); +extern void *penwell_otg_register_bc_callback( + int (*cb)(void *, int, struct otg_bc_cap *), void *arg); +extern int penwell_otg_unregister_bc_callback(void *handler); + #endif /* __PENWELL_OTG_H__ */ |