bh.h 822 B

12345678910111213141516171819202122232425
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * Device handling thread interface for mac80211 ST-Ericsson CW1200 drivers
  4. *
  5. * Copyright (c) 2010, ST-Ericsson
  6. * Author: Dmitry Tarnyagin <[email protected]>
  7. */
  8. #ifndef CW1200_BH_H
  9. #define CW1200_BH_H
  10. /* extern */ struct cw1200_common;
  11. int cw1200_register_bh(struct cw1200_common *priv);
  12. void cw1200_unregister_bh(struct cw1200_common *priv);
  13. void cw1200_irq_handler(struct cw1200_common *priv);
  14. void cw1200_bh_wakeup(struct cw1200_common *priv);
  15. int cw1200_bh_suspend(struct cw1200_common *priv);
  16. int cw1200_bh_resume(struct cw1200_common *priv);
  17. /* Must be called from BH thread. */
  18. void cw1200_enable_powersave(struct cw1200_common *priv,
  19. bool enable);
  20. int wsm_release_tx_buffer(struct cw1200_common *priv, int count);
  21. #endif /* CW1200_BH_H */