105491d2cSKalle Valo /* 205491d2cSKalle Valo * Copyright (c) 2012 Broadcom Corporation 305491d2cSKalle Valo * 405491d2cSKalle Valo * Permission to use, copy, modify, and/or distribute this software for any 505491d2cSKalle Valo * purpose with or without fee is hereby granted, provided that the above 605491d2cSKalle Valo * copyright notice and this permission notice appear in all copies. 705491d2cSKalle Valo * 805491d2cSKalle Valo * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 905491d2cSKalle Valo * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 1005491d2cSKalle Valo * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY 1105491d2cSKalle Valo * SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 1205491d2cSKalle Valo * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION 1305491d2cSKalle Valo * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN 1405491d2cSKalle Valo * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 1505491d2cSKalle Valo */ 1605491d2cSKalle Valo 1705491d2cSKalle Valo #ifndef _fwil_h_ 1805491d2cSKalle Valo #define _fwil_h_ 1905491d2cSKalle Valo 2005491d2cSKalle Valo /******************************************************************************* 2105491d2cSKalle Valo * Dongle command codes that are interpreted by firmware 2205491d2cSKalle Valo ******************************************************************************/ 2305491d2cSKalle Valo #define BRCMF_C_GET_VERSION 1 2405491d2cSKalle Valo #define BRCMF_C_UP 2 2505491d2cSKalle Valo #define BRCMF_C_DOWN 3 2605491d2cSKalle Valo #define BRCMF_C_SET_PROMISC 10 2705491d2cSKalle Valo #define BRCMF_C_GET_RATE 12 2805491d2cSKalle Valo #define BRCMF_C_GET_INFRA 19 2905491d2cSKalle Valo #define BRCMF_C_SET_INFRA 20 3005491d2cSKalle Valo #define BRCMF_C_GET_AUTH 21 3105491d2cSKalle Valo #define BRCMF_C_SET_AUTH 22 3205491d2cSKalle Valo #define BRCMF_C_GET_BSSID 23 3305491d2cSKalle Valo #define BRCMF_C_GET_SSID 25 3405491d2cSKalle Valo #define BRCMF_C_SET_SSID 26 3505491d2cSKalle Valo #define BRCMF_C_TERMINATED 28 3605491d2cSKalle Valo #define BRCMF_C_GET_CHANNEL 29 3705491d2cSKalle Valo #define BRCMF_C_SET_CHANNEL 30 3805491d2cSKalle Valo #define BRCMF_C_GET_SRL 31 3905491d2cSKalle Valo #define BRCMF_C_SET_SRL 32 4005491d2cSKalle Valo #define BRCMF_C_GET_LRL 33 4105491d2cSKalle Valo #define BRCMF_C_SET_LRL 34 4205491d2cSKalle Valo #define BRCMF_C_GET_RADIO 37 4305491d2cSKalle Valo #define BRCMF_C_SET_RADIO 38 4405491d2cSKalle Valo #define BRCMF_C_GET_PHYTYPE 39 4505491d2cSKalle Valo #define BRCMF_C_SET_KEY 45 4605491d2cSKalle Valo #define BRCMF_C_GET_REGULATORY 46 4705491d2cSKalle Valo #define BRCMF_C_SET_REGULATORY 47 4805491d2cSKalle Valo #define BRCMF_C_SET_PASSIVE_SCAN 49 4905491d2cSKalle Valo #define BRCMF_C_SCAN 50 5005491d2cSKalle Valo #define BRCMF_C_SCAN_RESULTS 51 5105491d2cSKalle Valo #define BRCMF_C_DISASSOC 52 5205491d2cSKalle Valo #define BRCMF_C_REASSOC 53 5305491d2cSKalle Valo #define BRCMF_C_SET_ROAM_TRIGGER 55 5405491d2cSKalle Valo #define BRCMF_C_SET_ROAM_DELTA 57 5505491d2cSKalle Valo #define BRCMF_C_GET_BCNPRD 75 5605491d2cSKalle Valo #define BRCMF_C_SET_BCNPRD 76 5705491d2cSKalle Valo #define BRCMF_C_GET_DTIMPRD 77 5805491d2cSKalle Valo #define BRCMF_C_SET_DTIMPRD 78 5905491d2cSKalle Valo #define BRCMF_C_SET_COUNTRY 84 6005491d2cSKalle Valo #define BRCMF_C_GET_PM 85 6105491d2cSKalle Valo #define BRCMF_C_SET_PM 86 6205491d2cSKalle Valo #define BRCMF_C_GET_REVINFO 98 6305491d2cSKalle Valo #define BRCMF_C_GET_CURR_RATESET 114 6405491d2cSKalle Valo #define BRCMF_C_GET_AP 117 6505491d2cSKalle Valo #define BRCMF_C_SET_AP 118 6605491d2cSKalle Valo #define BRCMF_C_SET_SCB_AUTHORIZE 121 6705491d2cSKalle Valo #define BRCMF_C_SET_SCB_DEAUTHORIZE 122 6805491d2cSKalle Valo #define BRCMF_C_GET_RSSI 127 6905491d2cSKalle Valo #define BRCMF_C_GET_WSEC 133 7005491d2cSKalle Valo #define BRCMF_C_SET_WSEC 134 7105491d2cSKalle Valo #define BRCMF_C_GET_PHY_NOISE 135 7205491d2cSKalle Valo #define BRCMF_C_GET_BSS_INFO 136 733f5893d1SHante Meuleman #define BRCMF_C_GET_GET_PKTCNTS 137 7405491d2cSKalle Valo #define BRCMF_C_GET_BANDLIST 140 7505491d2cSKalle Valo #define BRCMF_C_SET_SCB_TIMEOUT 158 7605491d2cSKalle Valo #define BRCMF_C_GET_ASSOCLIST 159 7705491d2cSKalle Valo #define BRCMF_C_GET_PHYLIST 180 7805491d2cSKalle Valo #define BRCMF_C_SET_SCAN_CHANNEL_TIME 185 7905491d2cSKalle Valo #define BRCMF_C_SET_SCAN_UNASSOC_TIME 187 8005491d2cSKalle Valo #define BRCMF_C_SCB_DEAUTHENTICATE_FOR_REASON 201 81*7705ba6fSArend van Spriel #define BRCMF_C_SET_ASSOC_PREFER 205 8205491d2cSKalle Valo #define BRCMF_C_GET_VALID_CHANNELS 217 8305491d2cSKalle Valo #define BRCMF_C_GET_KEY_PRIMARY 235 8405491d2cSKalle Valo #define BRCMF_C_SET_KEY_PRIMARY 236 8505491d2cSKalle Valo #define BRCMF_C_SET_SCAN_PASSIVE_TIME 258 8605491d2cSKalle Valo #define BRCMF_C_GET_VAR 262 8705491d2cSKalle Valo #define BRCMF_C_SET_VAR 263 8805491d2cSKalle Valo 8905491d2cSKalle Valo s32 brcmf_fil_cmd_data_set(struct brcmf_if *ifp, u32 cmd, void *data, u32 len); 9005491d2cSKalle Valo s32 brcmf_fil_cmd_data_get(struct brcmf_if *ifp, u32 cmd, void *data, u32 len); 9105491d2cSKalle Valo s32 brcmf_fil_cmd_int_set(struct brcmf_if *ifp, u32 cmd, u32 data); 9205491d2cSKalle Valo s32 brcmf_fil_cmd_int_get(struct brcmf_if *ifp, u32 cmd, u32 *data); 9305491d2cSKalle Valo 9405491d2cSKalle Valo s32 brcmf_fil_iovar_data_set(struct brcmf_if *ifp, char *name, const void *data, 9505491d2cSKalle Valo u32 len); 9605491d2cSKalle Valo s32 brcmf_fil_iovar_data_get(struct brcmf_if *ifp, char *name, void *data, 9705491d2cSKalle Valo u32 len); 9805491d2cSKalle Valo s32 brcmf_fil_iovar_int_set(struct brcmf_if *ifp, char *name, u32 data); 9905491d2cSKalle Valo s32 brcmf_fil_iovar_int_get(struct brcmf_if *ifp, char *name, u32 *data); 10005491d2cSKalle Valo 10105491d2cSKalle Valo s32 brcmf_fil_bsscfg_data_set(struct brcmf_if *ifp, char *name, void *data, 10205491d2cSKalle Valo u32 len); 10305491d2cSKalle Valo s32 brcmf_fil_bsscfg_data_get(struct brcmf_if *ifp, char *name, void *data, 10405491d2cSKalle Valo u32 len); 10505491d2cSKalle Valo s32 brcmf_fil_bsscfg_int_set(struct brcmf_if *ifp, char *name, u32 data); 10605491d2cSKalle Valo s32 brcmf_fil_bsscfg_int_get(struct brcmf_if *ifp, char *name, u32 *data); 10705491d2cSKalle Valo 10805491d2cSKalle Valo #endif /* _fwil_h_ */ 109