xref: /freebsd/sys/contrib/dev/broadcom/brcm80211/brcmfmac/bcdc.h (revision b4c3e9b5b09c829b4135aff738bd2893ed052377)
1*b4c3e9b5SBjoern A. Zeeb // SPDX-License-Identifier: ISC
2*b4c3e9b5SBjoern A. Zeeb /*
3*b4c3e9b5SBjoern A. Zeeb  * Copyright (c) 2013 Broadcom Corporation
4*b4c3e9b5SBjoern A. Zeeb  */
5*b4c3e9b5SBjoern A. Zeeb #ifndef BRCMFMAC_BCDC_H
6*b4c3e9b5SBjoern A. Zeeb #define BRCMFMAC_BCDC_H
7*b4c3e9b5SBjoern A. Zeeb 
8*b4c3e9b5SBjoern A. Zeeb #ifdef CONFIG_BRCMFMAC_PROTO_BCDC
9*b4c3e9b5SBjoern A. Zeeb int brcmf_proto_bcdc_attach(struct brcmf_pub *drvr);
10*b4c3e9b5SBjoern A. Zeeb void brcmf_proto_bcdc_detach(struct brcmf_pub *drvr);
11*b4c3e9b5SBjoern A. Zeeb void brcmf_proto_bcdc_txflowblock(struct device *dev, bool state);
12*b4c3e9b5SBjoern A. Zeeb void brcmf_proto_bcdc_txcomplete(struct device *dev, struct sk_buff *txp,
13*b4c3e9b5SBjoern A. Zeeb 				 bool success);
14*b4c3e9b5SBjoern A. Zeeb struct brcmf_fws_info *drvr_to_fws(struct brcmf_pub *drvr);
15*b4c3e9b5SBjoern A. Zeeb #else
brcmf_proto_bcdc_attach(struct brcmf_pub * drvr)16*b4c3e9b5SBjoern A. Zeeb static inline int brcmf_proto_bcdc_attach(struct brcmf_pub *drvr) { return 0; }
brcmf_proto_bcdc_detach(struct brcmf_pub * drvr)17*b4c3e9b5SBjoern A. Zeeb static inline void brcmf_proto_bcdc_detach(struct brcmf_pub *drvr) {}
18*b4c3e9b5SBjoern A. Zeeb #endif
19*b4c3e9b5SBjoern A. Zeeb 
20*b4c3e9b5SBjoern A. Zeeb #endif /* BRCMFMAC_BCDC_H */
21