bcrmgf_netif_rx() uses in_interrupt to chose between netif_rx() and netif_rx_ni(). in_interrupt() usage in drivers is phased out. Convey the execution mode via an 'inirq' argument through the various callchains leading to brcmf_netif_rx(): brcmf_pcie_isr_thread() <- Task context brcmf_proto_msgbuf_rx_trigger() brcmf_msgbuf_process_rx() brcmf_msgbuf_process_msgtype() brcmf_msgbuf_process_rx_complete() brcmf_netif_mon_rx() brcmf_netif_rx(isirq = false) brcmf_netif_rx(isirq = false) brcmf_sdio_readframes() <- Task context sdio_claim_host() might sleep brcmf_rx_frame(isirq = false) brcmf_sdio_rxglom() <- Task context sdio_claim_host() might sleep brcmf_rx_frame(isirq = false) brcmf_usb_rx_complete() <- Interrupt context brcmf_rx_frame(isirq = true) brcmf_rx_frame() brcmf_proto_rxreorder() brcmf_proto_bcdc_rxreorder() brcmf_fws_rxreorder() brcmf_netif_rx() brcmf_netif_rx() Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: Arend van Spriel <arend.vanspriel@broadcom.com> Cc: Kalle Valo <kvalo@codeaurora.org> Signed-off-by: David S. Miller <davem@davemloft.net>
47 lines
1.7 KiB
C
47 lines
1.7 KiB
C
// SPDX-License-Identifier: ISC
|
|
/*
|
|
* Copyright (c) 2012 Broadcom Corporation
|
|
*/
|
|
|
|
#ifndef FWSIGNAL_H_
|
|
#define FWSIGNAL_H_
|
|
|
|
/**
|
|
* enum brcmf_fws_fifo - fifo indices used by dongle firmware.
|
|
*
|
|
* @BRCMF_FWS_FIFO_FIRST: first fifo, ie. background.
|
|
* @BRCMF_FWS_FIFO_AC_BK: fifo for background traffic.
|
|
* @BRCMF_FWS_FIFO_AC_BE: fifo for best-effort traffic.
|
|
* @BRCMF_FWS_FIFO_AC_VI: fifo for video traffic.
|
|
* @BRCMF_FWS_FIFO_AC_VO: fifo for voice traffic.
|
|
* @BRCMF_FWS_FIFO_BCMC: fifo for broadcast/multicast (AP only).
|
|
* @BRCMF_FWS_FIFO_ATIM: fifo for ATIM (AP only).
|
|
* @BRCMF_FWS_FIFO_COUNT: number of fifos.
|
|
*/
|
|
enum brcmf_fws_fifo {
|
|
BRCMF_FWS_FIFO_FIRST,
|
|
BRCMF_FWS_FIFO_AC_BK = BRCMF_FWS_FIFO_FIRST,
|
|
BRCMF_FWS_FIFO_AC_BE,
|
|
BRCMF_FWS_FIFO_AC_VI,
|
|
BRCMF_FWS_FIFO_AC_VO,
|
|
BRCMF_FWS_FIFO_BCMC,
|
|
BRCMF_FWS_FIFO_ATIM,
|
|
BRCMF_FWS_FIFO_COUNT
|
|
};
|
|
|
|
struct brcmf_fws_info *brcmf_fws_attach(struct brcmf_pub *drvr);
|
|
void brcmf_fws_detach(struct brcmf_fws_info *fws);
|
|
void brcmf_fws_debugfs_create(struct brcmf_pub *drvr);
|
|
bool brcmf_fws_queue_skbs(struct brcmf_fws_info *fws);
|
|
bool brcmf_fws_fc_active(struct brcmf_fws_info *fws);
|
|
void brcmf_fws_hdrpull(struct brcmf_if *ifp, s16 siglen, struct sk_buff *skb);
|
|
int brcmf_fws_process_skb(struct brcmf_if *ifp, struct sk_buff *skb);
|
|
|
|
void brcmf_fws_reset_interface(struct brcmf_if *ifp);
|
|
void brcmf_fws_add_interface(struct brcmf_if *ifp);
|
|
void brcmf_fws_del_interface(struct brcmf_if *ifp);
|
|
void brcmf_fws_bustxfail(struct brcmf_fws_info *fws, struct sk_buff *skb);
|
|
void brcmf_fws_bus_blocked(struct brcmf_pub *drvr, bool flow_blocked);
|
|
void brcmf_fws_rxreorder(struct brcmf_if *ifp, struct sk_buff *skb, bool inirq);
|
|
|
|
#endif /* FWSIGNAL_H_ */
|