xref: /openbmc/linux/drivers/net/wireless/st/cw1200/bh.h (revision bbecb07f)
1 /*
2  * Device handling thread interface for mac80211 ST-Ericsson CW1200 drivers
3  *
4  * Copyright (c) 2010, ST-Ericsson
5  * Author: Dmitry Tarnyagin <dmitry.tarnyagin@lockless.no>
6  *
7  * This program is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License version 2 as
9  * published by the Free Software Foundation.
10  */
11 
12 #ifndef CW1200_BH_H
13 #define CW1200_BH_H
14 
15 /* extern */ struct cw1200_common;
16 
17 int cw1200_register_bh(struct cw1200_common *priv);
18 void cw1200_unregister_bh(struct cw1200_common *priv);
19 void cw1200_irq_handler(struct cw1200_common *priv);
20 void cw1200_bh_wakeup(struct cw1200_common *priv);
21 int cw1200_bh_suspend(struct cw1200_common *priv);
22 int cw1200_bh_resume(struct cw1200_common *priv);
23 /* Must be called from BH thread. */
24 void cw1200_enable_powersave(struct cw1200_common *priv,
25 			     bool enable);
26 int wsm_release_tx_buffer(struct cw1200_common *priv, int count);
27 
28 #endif /* CW1200_BH_H */
29