blob: dec4c857c2f786dcd018544ebf1b86ff4d43805d [file] [log] [blame]
/*
* Copyright (c) 2012 Broadcom Corporation
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
* SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
* OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
* CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#ifndef GARNET_DRIVERS_WLAN_THIRD_PARTY_BROADCOM_BRCMFMAC_FWSIGNAL_H_
#define GARNET_DRIVERS_WLAN_THIRD_PARTY_BROADCOM_BRCMFMAC_FWSIGNAL_H_
#include <zircon/types.h>
#include "core.h"
#include "linuxisms.h"
#include "netbuf.h"
zx_status_t brcmf_fws_attach(struct brcmf_pub* drvr, struct brcmf_fws_info** fws_out);
void brcmf_fws_detach(struct brcmf_fws_info* fws);
bool brcmf_fws_queue_netbufs(struct brcmf_fws_info* fws);
bool brcmf_fws_fc_active(struct brcmf_fws_info* fws);
void brcmf_fws_hdrpull(struct brcmf_if* ifp, int16_t siglen, struct brcmf_netbuf* netbuf);
zx_status_t brcmf_fws_process_netbuf(struct brcmf_if* ifp, struct brcmf_netbuf* netbuf);
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 brcmf_netbuf* netbuf);
void brcmf_fws_bus_blocked(struct brcmf_pub* drvr, bool flow_blocked);
void brcmf_fws_rxreorder(struct brcmf_if* ifp, struct brcmf_netbuf* netbuf);
#endif /* GARNET_DRIVERS_WLAN_THIRD_PARTY_BROADCOM_BRCMFMAC_FWSIGNAL_H_ */