···14141515#include <linux/types.h>16161717-#ifdef __cplusplus1818-extern "C" {1919-#endif2020-2117/* The age of the BlueCore chip. This is probably not useful, if2218 you know the age then you can probably work out the version directly. */2319enum chip_helper_bluecore_age···403407 enum chip_helper_window_type type,404408 u32 offset,405409 u16 *page, u16 *addr, u32 *len);406406-407407-#ifdef __cplusplus408408-/* Close the extern "C" */409409-}410410-411411-/*412412- * This is the C++ API.413413- */414414-415415-class ChipHelper416416-{417417-public:418418- /* If this constructor is used then a GetVersionXXX function419419- should be called next. */420420- ChipHelper();421421-422422- /* copy constructor */423423- ChipHelper(ChipDescript * desc);424424-425425- /* The default constructor assume a BC7 / UF105x series chip426426- and that the number given is the value of UNIFI_GBL_CHIP_VERSION427427- (0xFE81) */428428- ChipHelper(u16 version);429429-430430- /* This returns the C interface magic token from a C++ instance. */431431- ChipDescript* GetDescript() const432432- {433433- return m_desc;434434- }435435-436436-437437- /* Clear out theis class (set it to the null token). */438438- void ClearVersion();439439-440440- /* Load this class with data for a specific chip. */441441- void GetVersionAny(u16 from_FF9A, u16 from_FE81);442442- void GetVersionUniFi(u16 version);443443- void GetVersionBlueCore(chip_helper_bluecore_age age, u16 version);444444- void GetVersionSdio(u8 sdio_version);445445-446446- /* Helpers to build the definitions of the member functions. */447447-#define CHIP_HELPER_DEF0_CPP_DEC(ret_type, name, info) \448448- ret_type name() const;449449-#define CHIP_HELPER_DEF1_CPP_DEC(ret_type, name, type1, name1) \450450- ret_type name(type1 name1) const;451451-452452- CHIP_HELPER_LIST(CPP_DEC)453453-454454-455455- /* The DecodeWindow function, see the description of the C version. */456456- s32 DecodeWindow(chip_helper_window_index window,457457- chip_helper_window_type type,458458- u32 offset,459459- u16 &page, u16 &addr, u32 &len) const;460460-461461-private:462462- ChipDescript *m_desc;463463-};464464-465465-#endif /* __cplusplus */466410467411#endif
···14141515#include "csr_wifi_hip_chiphelper.h"16161717-#ifdef __cplusplus1818-extern "C" {1919-#endif /* __cplusplus */2020-2117/* This GP stuff should be somewhere else? */22182319/* Memory spaces encoded in top byte of Generic Pointer type */···196200 /* Information on the different windows */197201 const struct window_info_t *windows[CHIP_HELPER_WINDOW_COUNT];198202};199199-200200-#ifdef __cplusplus201201-}202202-#endif /* __cplusplus */203203204204#endif /* CSR_WIFI_HIP_CHIPHELPER_PRIVATE_H__ */
···101101/* FUNCTION DECLARATIONS */102102/******************************************************************************/103103104104-#ifdef __cplusplus105105-extern "C" {106106-#endif /* __cplusplus */107107-108104/******************************************************************************109105 * SigGetNumDataRefs - Retrieve pointers to data-refs from a signal.110106 *···124128 * The size (in bytes) of the given signal.125129 */126130s32 SigGetSize(const CSR_SIGNAL *aSignal);127127-128128-#ifdef __cplusplus129129-}130130-#endif /* __cplusplus */131131-132131133132#endif /* __CSR_WIFI_HIP_SIGNALS_H__ */
···1313#ifndef CSR_WIFI_NME_AP_CONVERTER_INIT_H__1414#define CSR_WIFI_NME_AP_CONVERTER_INIT_H__15151616-#ifdef __cplusplus1717-extern "C" {1818-#endif1919-2016#ifndef CSR_WIFI_NME_ENABLE2117#error CSR_WIFI_NME_ENABLE MUST be defined inorder to use csr_wifi_nme_ap_converter_init.h2218#endif···3741#define CsrWifiNmeApConverterInit()38423943#endif /* EXCLUDE_CSR_WIFI_NME_AP_MODULE */4040-4141-#ifdef __cplusplus4242-}4343-#endif44444545#endif /* CSR_WIFI_NME_AP_CONVERTER_INIT_H__ */
-10
drivers/staging/csr/csr_wifi_nme_ap_lib.h
···2222#include "csr_wifi_nme_ap_prim.h"2323#include "csr_wifi_nme_task.h"24242525-2626-#ifdef __cplusplus2727-extern "C" {2828-#endif2929-3025#ifndef CSR_WIFI_NME_ENABLE3126#error CSR_WIFI_NME_ENABLE MUST be defined inorder to use csr_wifi_nme_ap_lib.h3227#endif···509514510515#define CsrWifiNmeApWpsRegisterCfmSend(dst__, interfaceTag__, status__) \511516 CsrWifiNmeApWpsRegisterCfmSendTo(dst__, CSR_WIFI_NME_IFACEQUEUE, interfaceTag__, status__)512512-513513-514514-#ifdef __cplusplus515515-}516516-#endif517517518518#endif /* CSR_WIFI_NME_AP_LIB_H__ */
-9
drivers/staging/csr/csr_wifi_nme_ap_prim.h
···2222#include "csr_wifi_sme_ap_prim.h"2323#include "csr_wifi_nme_prim.h"24242525-#ifdef __cplusplus2626-extern "C" {2727-#endif2828-2925#ifndef CSR_WIFI_NME_ENABLE3026#error CSR_WIFI_NME_ENABLE MUST be defined inorder to use csr_wifi_nme_ap_prim.h3127#endif···489493 CsrWifiMacAddress peerMacAddress;490494 CsrWifiMacAddress peerDeviceAddress;491495} CsrWifiNmeApStationInd;492492-493493-494494-#ifdef __cplusplus495495-}496496-#endif497496498497#endif /* CSR_WIFI_NME_AP_PRIM_H__ */499498
···17171818#include "csr_wifi_nme_ap_prim.h"19192020-#ifdef __cplusplus2121-extern "C" {2222-#endif2323-2420#ifndef CSR_WIFI_NME_ENABLE2521#error CSR_WIFI_NME_ENABLE MUST be defined inorder to use csr_wifi_nme_ap_serialize.h2622#endif···9195extern size_t CsrWifiNmeApStationIndSizeof(void *msg);9296#define CsrWifiNmeApStationIndSerFree CsrWifiNmeApPfree93979494-9595-#ifdef __cplusplus9696-}9797-#endif9898#endif /* CSR_WIFI_NME_AP_SERIALIZE_H__ */9999-
-8
drivers/staging/csr/csr_wifi_nme_converter_init.h
···1313#ifndef CSR_WIFI_NME_CONVERTER_INIT_H__1414#define CSR_WIFI_NME_CONVERTER_INIT_H__15151616-#ifdef __cplusplus1717-extern "C" {1818-#endif1919-2016#ifndef CSR_WIFI_NME_ENABLE2117#error CSR_WIFI_NME_ENABLE MUST be defined inorder to use csr_wifi_nme_converter_init.h2218#endif···3438#define CsrWifiNmeConverterInit()35393640#endif /* EXCLUDE_CSR_WIFI_NME_MODULE */3737-3838-#ifdef __cplusplus3939-}4040-#endif41414242#endif /* CSR_WIFI_NME_CONVERTER_INIT_H__ */
-9
drivers/staging/csr/csr_wifi_nme_lib.h
···2323#include "csr_wifi_nme_task.h"242425252626-#ifdef __cplusplus2727-extern "C" {2828-#endif2929-3026#ifndef CSR_WIFI_NME_ENABLE3127#error CSR_WIFI_NME_ENABLE MUST be defined inorder to use csr_wifi_nme_lib.h3228#endif···1041104510421046#define CsrWifiNmeWpsReqSend(src__, interfaceTag__, pin__, ssid__, bssid__) \10431047 CsrWifiNmeWpsReqSendTo(CSR_WIFI_NME_IFACEQUEUE, src__, interfaceTag__, pin__, ssid__, bssid__)10441044-10451045-10461046-#ifdef __cplusplus10471047-}10481048-#endif1049104810501049#endif /* CSR_WIFI_NME_LIB_H__ */
-9
drivers/staging/csr/csr_wifi_nme_prim.h
···2121#include "csr_wifi_fsm_event.h"2222#include "csr_wifi_sme_prim.h"23232424-#ifdef __cplusplus2525-extern "C" {2626-#endif2727-2824#ifndef CSR_WIFI_NME_ENABLE2925#error CSR_WIFI_NME_ENABLE MUST be defined inorder to use csr_wifi_nme_prim.h3026#endif···16521656 CsrWifiFsmEvent common;16531657 CsrResult status;16541658} CsrWifiNmeEventMaskSetCfm;16551655-16561656-16571657-#ifdef __cplusplus16581658-}16591659-#endif1660165916611660#endif /* CSR_WIFI_NME_PRIM_H__ */16621661
-8
drivers/staging/csr/csr_wifi_nme_serialize.h
···1616#include "csr_wifi_msgconv.h"1717#include "csr_wifi_nme_prim.h"18181919-#ifdef __cplusplus2020-extern "C" {2121-#endif2222-2319#ifndef CSR_WIFI_NME_ENABLE2420#error CSR_WIFI_NME_ENABLE MUST be defined inorder to use csr_wifi_nme_serialize.h2521#endif···162166#define CsrWifiNmeEventMaskSetCfmSizeof CsrWifiEventCsrUint16Sizeof163167#define CsrWifiNmeEventMaskSetCfmSerFree CsrWifiNmePfree164168165165-166166-#ifdef __cplusplus167167-}168168-#endif169169#endif /* CSR_WIFI_NME_SERIALIZE_H__ */170170
-8
drivers/staging/csr/csr_wifi_nme_task.h
···1616#include <linux/types.h>1717#include "csr_sched.h"18181919-#ifdef __cplusplus2020-extern "C" {2121-#endif2222-2319#ifndef CSR_WIFI_NME_ENABLE2420#error CSR_WIFI_NME_ENABLE MUST be defined inorder to use csr_wifi_nme_task.h2521#endif···2529void CsrWifiNmeInit(void **gash);2630void CsrWifiNmeDeinit(void **gash);2731void CsrWifiNmeHandler(void **gash);2828-2929-#ifdef __cplusplus3030-}3131-#endif32323333#endif /* CSR_WIFI_NME_TASK_H__ */3434
-8
drivers/staging/csr/csr_wifi_private_common.h
···1111#ifndef CSR_WIFI_PRIVATE_COMMON_H__1212#define CSR_WIFI_PRIVATE_COMMON_H__13131414-#ifdef __cplusplus1515-extern "C" {1616-#endif1717-1814/**1915 * @brief maximum number of STAs allowed to be connected2016 *···7680#define CSR_WIFI_MODE_AMP ((CsrWifiInterfaceMode) 0x05)7781#define CSR_WIFI_MODE_WPS_ENROLLEE ((CsrWifiInterfaceMode) 0x06)7882#define CSR_WIFI_MODE_IBSS ((CsrWifiInterfaceMode) 0x07)7979-8080-#ifdef __cplusplus8181-}8282-#endif83838484#endif8585
-8
drivers/staging/csr/csr_wifi_result.h
···13131414#include "csr_result.h"15151616-#ifdef __cplusplus1717-extern "C" {1818-#endif1919-2016/* THIS FILE SHOULD CONTAIN ONLY RESULT CODES */21172218/* Result Codes */···2226#define CSR_WIFI_HIP_RESULT_NO_MEMORY ((CsrResult) 4) /* Fatal error, no memory */2327#define CSR_WIFI_HIP_RESULT_RANGE ((CsrResult) 5) /* Request exceeds the range of a file or a buffer */2428#define CSR_WIFI_HIP_RESULT_NOT_FOUND ((CsrResult) 6) /* A file (typically a f/w patch) is not found */2525-2626-#ifdef __cplusplus2727-}2828-#endif29293030#endif /* CSR_WIFI_RESULT_H__ */3131
···2222#include "csr_wifi_sme_ap_prim.h"2323#include "csr_wifi_sme_task.h"24242525-2626-#ifdef __cplusplus2727-extern "C" {2828-#endif2929-3025#ifndef CSR_WIFI_AP_ENABLE3126#error CSR_WIFI_AP_ENABLE MUST be defined inorder to use csr_wifi_sme_ap_lib.h3227#endif···770775#define CsrWifiSmeApWpsRegistrationStartedCfmSend(dst__, interfaceTag__, status__) \771776 CsrWifiSmeApWpsRegistrationStartedCfmSendTo(dst__, CSR_WIFI_SME_IFACEQUEUE, interfaceTag__, status__)772777773773-774774-#ifdef __cplusplus775775-}776776-#endif777778778779#endif /* CSR_WIFI_SME_AP_LIB_H__ */
-8
drivers/staging/csr/csr_wifi_sme_ap_prim.h
···2020#include "csr_wifi_fsm_event.h"2121#include "csr_wifi_sme_prim.h"22222323-#ifdef __cplusplus2424-extern "C" {2525-#endif2626-2723#ifndef CSR_WIFI_AP_ENABLE2824#error CSR_WIFI_AP_ENABLE MUST be defined inorder to use csr_wifi_sme_ap_prim.h2925#endif···10251029 CsrWifiSmeApBaSession baSession;10261030} CsrWifiSmeApBaDeleteCfm;1027103110281028-10291029-#ifdef __cplusplus10301030-}10311031-#endif1032103210331033#endif /* CSR_WIFI_SME_AP_PRIM_H__ */10341034
···1111#ifndef CSR_WIFI_VIF_UTILS_H1212#define CSR_WIFI_VIF_UTILS_H13131414-#ifdef __cplusplus1515-extern "C" {1616-#endif1717-1814/* STANDARD INCLUDES ********************************************************/19152016/* PROJECT INCLUDES *********************************************************/···2226/* Common macros for NME and SME to be used temporarily until SoftMAC changes are made */2327#define CSR_WIFI_NUM_INTERFACES (u8)0x12428#define CSR_WIFI_INTERFACE_IN_USE (u16)0x02525-2626-#ifdef __cplusplus2727-}2828-#endif29293030#endif /* CSR_WIFI_VIF_UTILS_H */3131