linux/drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil.h

// SPDX-License-Identifier: ISC
/*
 * Copyright (c) 2012 Broadcom Corporation
 */

#ifndef _fwil_h_
#define _fwil_h_

/*******************************************************************************
 * Dongle command codes that are interpreted by firmware
 ******************************************************************************/
#define BRCMF_C_GET_VERSION
#define BRCMF_C_UP
#define BRCMF_C_DOWN
#define BRCMF_C_SET_PROMISC
#define BRCMF_C_GET_RATE
#define BRCMF_C_GET_INFRA
#define BRCMF_C_SET_INFRA
#define BRCMF_C_GET_AUTH
#define BRCMF_C_SET_AUTH
#define BRCMF_C_GET_BSSID
#define BRCMF_C_GET_SSID
#define BRCMF_C_SET_SSID
#define BRCMF_C_TERMINATED
#define BRCMF_C_GET_CHANNEL
#define BRCMF_C_SET_CHANNEL
#define BRCMF_C_GET_SRL
#define BRCMF_C_SET_SRL
#define BRCMF_C_GET_LRL
#define BRCMF_C_SET_LRL
#define BRCMF_C_GET_RADIO
#define BRCMF_C_SET_RADIO
#define BRCMF_C_GET_PHYTYPE
#define BRCMF_C_SET_KEY
#define BRCMF_C_GET_REGULATORY
#define BRCMF_C_SET_REGULATORY
#define BRCMF_C_SET_PASSIVE_SCAN
#define BRCMF_C_SCAN
#define BRCMF_C_SCAN_RESULTS
#define BRCMF_C_DISASSOC
#define BRCMF_C_REASSOC
#define BRCMF_C_SET_ROAM_TRIGGER
#define BRCMF_C_SET_ROAM_DELTA
#define BRCMF_C_GET_BCNPRD
#define BRCMF_C_SET_BCNPRD
#define BRCMF_C_GET_DTIMPRD
#define BRCMF_C_SET_DTIMPRD
#define BRCMF_C_SET_COUNTRY
#define BRCMF_C_GET_PM
#define BRCMF_C_SET_PM
#define BRCMF_C_GET_REVINFO
#define BRCMF_C_GET_MONITOR
#define BRCMF_C_SET_MONITOR
#define BRCMF_C_GET_CURR_RATESET
#define BRCMF_C_GET_AP
#define BRCMF_C_SET_AP
#define BRCMF_C_SET_SCB_AUTHORIZE
#define BRCMF_C_SET_SCB_DEAUTHORIZE
#define BRCMF_C_GET_RSSI
#define BRCMF_C_GET_WSEC
#define BRCMF_C_SET_WSEC
#define BRCMF_C_GET_PHY_NOISE
#define BRCMF_C_GET_BSS_INFO
#define BRCMF_C_GET_GET_PKTCNTS
#define BRCMF_C_GET_BANDLIST
#define BRCMF_C_SET_SCB_TIMEOUT
#define BRCMF_C_GET_ASSOCLIST
#define BRCMF_C_GET_PHYLIST
#define BRCMF_C_SET_SCAN_CHANNEL_TIME
#define BRCMF_C_SET_SCAN_UNASSOC_TIME
#define BRCMF_C_SCB_DEAUTHENTICATE_FOR_REASON
#define BRCMF_C_SET_ASSOC_PREFER
#define BRCMF_C_GET_VALID_CHANNELS
#define BRCMF_C_SET_FAKEFRAG
#define BRCMF_C_GET_KEY_PRIMARY
#define BRCMF_C_SET_KEY_PRIMARY
#define BRCMF_C_SET_SCAN_PASSIVE_TIME
#define BRCMF_C_GET_VAR
#define BRCMF_C_SET_VAR
#define BRCMF_C_SET_WSEC_PMK

s32 brcmf_fil_cmd_data_set(struct brcmf_if *ifp, u32 cmd, void *data, u32 len);
s32 brcmf_fil_cmd_data_get(struct brcmf_if *ifp, u32 cmd, void *data, u32 len);
static inline
s32 brcmf_fil_cmd_int_set(struct brcmf_if *ifp, u32 cmd, u32 data)
{}
static inline
s32 brcmf_fil_cmd_int_get(struct brcmf_if *ifp, u32 cmd, u32 *data)
{}
static inline
s32 brcmf_fil_cmd_int_query(struct brcmf_if *ifp, u32 cmd, u32 *data)
{}

s32 brcmf_fil_iovar_data_set(struct brcmf_if *ifp, const char *name,
			     const void *data, u32 len);
s32 brcmf_fil_iovar_data_get(struct brcmf_if *ifp, const char *name, void *data,
			     u32 len);
static inline
s32 brcmf_fil_iovar_int_set(struct brcmf_if *ifp, const char *name, u32 data)
{}
static inline
s32 brcmf_fil_iovar_int_get(struct brcmf_if *ifp, const char *name, u32 *data)
{}
static inline
s32 brcmf_fil_iovar_int_query(struct brcmf_if *ifp, const char *name, u32 *data)
{}


s32 brcmf_fil_bsscfg_data_set(struct brcmf_if *ifp, const char *name,
			      void *data, u32 len);
s32 brcmf_fil_bsscfg_data_get(struct brcmf_if *ifp, const char *name,
			      void *data, u32 len);
static inline
s32 brcmf_fil_bsscfg_int_set(struct brcmf_if *ifp, const char *name, u32 data)
{}
static inline
s32 brcmf_fil_bsscfg_int_get(struct brcmf_if *ifp, const char *name, u32 *data)
{}
static inline
s32 brcmf_fil_bsscfg_int_query(struct brcmf_if *ifp, const char *name, u32 *data)
{}

s32 brcmf_fil_xtlv_data_set(struct brcmf_if *ifp, const char *name, u16 id,
			    void *data, u32 len);
s32 brcmf_fil_xtlv_data_get(struct brcmf_if *ifp, const char *name, u16 id,
			    void *data, u32 len);
static inline
s32 brcmf_fil_xtlv_int_set(struct brcmf_if *ifp, const char *name, u16 id,
			   u32 data)
{}
static inline
s32 brcmf_fil_xtlv_int_get(struct brcmf_if *ifp, const char *name, u16 id,
			   u32 *data)
{}
static inline
s32 brcmf_fil_xtlv_int8_get(struct brcmf_if *ifp, const char *name, u16 id,
			    u8 *data)
{}
static inline
s32 brcmf_fil_xtlv_int16_get(struct brcmf_if *ifp, const char *name, u16 id,
			     u16 *data)
{}

#endif /* _fwil_h_ */