-
Notifications
You must be signed in to change notification settings - Fork 76
/
bh.h
36 lines (31 loc) · 1.26 KB
/
bh.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/*
* Data Transmission thread for XRadio drivers
*
* Copyright (c) 2013, XRadio
* Author: XRadio
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
#ifndef XRADIO_BH_H
#define XRADIO_BH_H
#define XRADIO_BH_THREAD "xradio_bh"
/* extern */ struct xradio_common;
#define SDIO_BLOCK_SIZE (528)
int xradio_register_bh(struct xradio_common *hw_priv);
void xradio_unregister_bh(struct xradio_common *hw_priv);
void xradio_irq_handler(struct xradio_common *hw_priv);
void xradio_bh_wakeup(struct xradio_common *hw_priv);
int xradio_bh_suspend(struct xradio_common *hw_priv);
int xradio_bh_resume(struct xradio_common *hw_priv);
/* Must be called from BH thread. */
void xradio_enable_powersave(struct xradio_vif *priv, bool enable);
int wsm_release_tx_buffer(struct xradio_common *hw_priv, int count);
int wsm_release_vif_tx_buffer(struct xradio_common *hw_priv, int if_id,
int count);
int xradio_init_resv_skb(struct xradio_common *hw_priv);
void xradio_deinit_resv_skb(struct xradio_common *hw_priv);
int xradio_realloc_resv_skb(struct xradio_common *hw_priv,
struct sk_buff *skb);
#endif /* XRADIO_BH_H */