Linux Audio

Check our new training course

Loading...
v6.13.7
 1/* SPDX-License-Identifier: GPL-2.0-only */
 2/*
 3 * Interrupt bottom half (BH).
 4 *
 5 * Copyright (c) 2017-2020, Silicon Laboratories, Inc.
 6 * Copyright (c) 2010, ST-Ericsson
 7 */
 8#ifndef WFX_BH_H
 9#define WFX_BH_H
10
11#include <linux/atomic.h>
12#include <linux/wait.h>
13#include <linux/completion.h>
14#include <linux/workqueue.h>
15
16struct wfx_dev;
17
18struct wfx_hif {
19	struct work_struct bh;
20	struct completion ctrl_ready;
21	wait_queue_head_t tx_buffers_empty;
22	atomic_t ctrl_reg;
23	int rx_seqnum;
24	int tx_seqnum;
25	int tx_buffers_used;
26};
27
28void wfx_bh_register(struct wfx_dev *wdev);
29void wfx_bh_unregister(struct wfx_dev *wdev);
30void wfx_bh_request_rx(struct wfx_dev *wdev);
31void wfx_bh_request_tx(struct wfx_dev *wdev);
32void wfx_bh_poll_irq(struct wfx_dev *wdev);
33
34#endif
v6.9.4
 1/* SPDX-License-Identifier: GPL-2.0-only */
 2/*
 3 * Interrupt bottom half (BH).
 4 *
 5 * Copyright (c) 2017-2020, Silicon Laboratories, Inc.
 6 * Copyright (c) 2010, ST-Ericsson
 7 */
 8#ifndef WFX_BH_H
 9#define WFX_BH_H
10
11#include <linux/atomic.h>
12#include <linux/wait.h>
13#include <linux/completion.h>
14#include <linux/workqueue.h>
15
16struct wfx_dev;
17
18struct wfx_hif {
19	struct work_struct bh;
20	struct completion ctrl_ready;
21	wait_queue_head_t tx_buffers_empty;
22	atomic_t ctrl_reg;
23	int rx_seqnum;
24	int tx_seqnum;
25	int tx_buffers_used;
26};
27
28void wfx_bh_register(struct wfx_dev *wdev);
29void wfx_bh_unregister(struct wfx_dev *wdev);
30void wfx_bh_request_rx(struct wfx_dev *wdev);
31void wfx_bh_request_tx(struct wfx_dev *wdev);
32void wfx_bh_poll_irq(struct wfx_dev *wdev);
33
34#endif