1 // SPDX-License-Identifier: ISC 2 /* 3 * Copyright (c) 2013 Broadcom Corporation 4 */ 5 #ifndef BRCMFMAC_BCDC_H 6 #define BRCMFMAC_BCDC_H 7 8 #ifdef CONFIG_BRCMFMAC_PROTO_BCDC 9 int brcmf_proto_bcdc_attach(struct brcmf_pub *drvr); 10 void brcmf_proto_bcdc_detach_pre_delif(struct brcmf_pub *drvr); 11 void brcmf_proto_bcdc_detach_post_delif(struct brcmf_pub *drvr); 12 void brcmf_proto_bcdc_txflowblock(struct device *dev, bool state); 13 void brcmf_proto_bcdc_txcomplete(struct device *dev, struct sk_buff *txp, 14 bool success); 15 struct brcmf_fws_info *drvr_to_fws(struct brcmf_pub *drvr); 16 #else 17 static inline int brcmf_proto_bcdc_attach(struct brcmf_pub *drvr) { return 0; } 18 static void brcmf_proto_bcdc_detach_pre_delif(struct brcmf_pub *drvr) {}; 19 static inline void brcmf_proto_bcdc_detach_post_delif(struct brcmf_pub *drvr) {} 20 #endif 21 22 #endif /* BRCMFMAC_BCDC_H */ 23