0001
0002
0003
0004
0005
0006
0007
0008 #ifndef WFX_BH_H
0009 #define WFX_BH_H
0010
0011 #include <linux/atomic.h>
0012 #include <linux/wait.h>
0013 #include <linux/completion.h>
0014 #include <linux/workqueue.h>
0015
0016 struct wfx_dev;
0017
0018 struct wfx_hif {
0019 struct work_struct bh;
0020 struct completion ctrl_ready;
0021 wait_queue_head_t tx_buffers_empty;
0022 atomic_t ctrl_reg;
0023 int rx_seqnum;
0024 int tx_seqnum;
0025 int tx_buffers_used;
0026 };
0027
0028 void wfx_bh_register(struct wfx_dev *wdev);
0029 void wfx_bh_unregister(struct wfx_dev *wdev);
0030 void wfx_bh_request_rx(struct wfx_dev *wdev);
0031 void wfx_bh_request_tx(struct wfx_dev *wdev);
0032 void wfx_bh_poll_irq(struct wfx_dev *wdev);
0033
0034 #endif