This source file includes following definitions.
- ci_otg_queue_work
1
2
3
4
5
6
7
8 #ifndef __DRIVERS_USB_CHIPIDEA_OTG_H
9 #define __DRIVERS_USB_CHIPIDEA_OTG_H
10
11 u32 hw_read_otgsc(struct ci_hdrc *ci, u32 mask);
12 void hw_write_otgsc(struct ci_hdrc *ci, u32 mask, u32 data);
13 int ci_hdrc_otg_init(struct ci_hdrc *ci);
14 void ci_hdrc_otg_destroy(struct ci_hdrc *ci);
15 enum ci_role ci_otg_role(struct ci_hdrc *ci);
16 void ci_handle_vbus_change(struct ci_hdrc *ci);
17 static inline void ci_otg_queue_work(struct ci_hdrc *ci)
18 {
19 disable_irq_nosync(ci->irq);
20 if (queue_work(ci->wq, &ci->work) == false)
21 enable_irq(ci->irq);
22 }
23
24 #endif