Link: https://lore.kernel.org/r/20260217200002.683975158@linuxfoundation.org Tested-by: Florian Fainelli <florian.fainelli@broadcom.com> Tested-by: Takeshi Ogasawara <takeshi.ogasawara@futuring-girl.com> Tested-by: Peter Schneider <pschneider1968@googlemail.com> Tested-by: Jon Hunter <jonathanh@nvidia.com> Tested-by: Salvatore Bonaccorso <carnil@debian.org> Tested-by: Brett A C Sheffield <bacs@librecast.net> Tested-by: Mark Brown <broonie@kernel.org> Tested-by: Luna Jernberg <droidbittin@gmail.com> Tested-by: Ronald Warsow <rwarsow@gmx.de> Tested-by: Justin M. Forbes <jforbes@fedoraproject.org> Tested-by: Ron Economos <re@w6rz.net> Tested-by: Miguel Ojeda <ojeda@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
35 lines
758 B
C
35 lines
758 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* Interrupt bottom half (BH).
|
|
*
|
|
* Copyright (c) 2017-2020, Silicon Laboratories, Inc.
|
|
* Copyright (c) 2010, ST-Ericsson
|
|
*/
|
|
#ifndef WFX_BH_H
|
|
#define WFX_BH_H
|
|
|
|
#include <linux/atomic.h>
|
|
#include <linux/wait.h>
|
|
#include <linux/completion.h>
|
|
#include <linux/workqueue.h>
|
|
|
|
struct wfx_dev;
|
|
|
|
struct wfx_hif {
|
|
struct work_struct bh;
|
|
struct completion ctrl_ready;
|
|
wait_queue_head_t tx_buffers_empty;
|
|
atomic_t ctrl_reg;
|
|
int rx_seqnum;
|
|
int tx_seqnum;
|
|
int tx_buffers_used;
|
|
};
|
|
|
|
void wfx_bh_register(struct wfx_dev *wdev);
|
|
void wfx_bh_unregister(struct wfx_dev *wdev);
|
|
void wfx_bh_request_rx(struct wfx_dev *wdev);
|
|
void wfx_bh_request_tx(struct wfx_dev *wdev);
|
|
void wfx_bh_poll_irq(struct wfx_dev *wdev);
|
|
|
|
#endif
|