musb_qmu.h 764 B

12345678910111213141516171819202122
  1. #ifndef _MUSB_QMU_H_
  2. #define _MUSB_QMU_H_
  3. #ifdef MUSB_QMU_SUPPORT
  4. #include "musb_core.h" /* for struct musb */
  5. extern int musb_qmu_init(struct musb *musb);
  6. extern void musb_qmu_exit(struct musb *musb);
  7. extern void musb_kick_D_CmdQ(struct musb *musb, struct musb_request *request);
  8. extern void musb_disable_q_all(struct musb *musb);
  9. extern irqreturn_t musb_q_irq(struct musb *musb);
  10. extern void musb_flush_qmu(u32 ep_num, u8 isRx);
  11. extern void musb_restart_qmu(struct musb *musb, u32 ep_num, u8 isRx);
  12. extern bool musb_is_qmu_stop(u32 ep_num, u8 isRx);
  13. extern void musb_tx_zlp_qmu(struct musb *musb, u32 ep_num);
  14. /*FIXME, not good layer present */
  15. extern void mtk_qmu_enable(struct musb *musb, u8 EP_Num, u8 isRx);
  16. extern void __iomem *qmu_base;
  17. #endif
  18. #endif