diff options
author | Aun-Ali Zaidi <admin@kodeit.net> | 2015-12-10 18:29:55 -0600 |
---|---|---|
committer | Gedare Bloom <gedare@rtems.org> | 2015-12-11 09:20:34 -0500 |
commit | 32c2cd2be1067ebe32cdabccbc8aa16126ae3a32 (patch) | |
tree | 7c4e2f70630f4849308cf2cfe22a796098188e54 /c/src/lib/libbsp/arm/nds/dswifi/arm9/source/wifi_arm9.h | |
parent | score: Untangle thread actions (diff) | |
download | rtems-32c2cd2be1067ebe32cdabccbc8aa16126ae3a32.tar.bz2 |
arm/nds: Remove
updates #2450.
Diffstat (limited to 'c/src/lib/libbsp/arm/nds/dswifi/arm9/source/wifi_arm9.h')
-rw-r--r-- | c/src/lib/libbsp/arm/nds/dswifi/arm9/source/wifi_arm9.h | 122 |
1 files changed, 0 insertions, 122 deletions
diff --git a/c/src/lib/libbsp/arm/nds/dswifi/arm9/source/wifi_arm9.h b/c/src/lib/libbsp/arm/nds/dswifi/arm9/source/wifi_arm9.h deleted file mode 100644 index 3b354636cd..0000000000 --- a/c/src/lib/libbsp/arm/nds/dswifi/arm9/source/wifi_arm9.h +++ /dev/null @@ -1,122 +0,0 @@ -// DS Wifi interface code -// Copyright (C) 2005-2006 Stephen Stair - sgstair@akkit.org - http://www.akkit.org -// wifi_arm9.c - arm9 wifi support header -/****************************************************************************** -DSWifi Lib and test materials are licenced under the MIT open source licence: -Copyright (c) 2005-2006 Stephen Stair - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to deal in -the Software without restriction, including without limitation the rights to -use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies -of the Software, and to permit persons to whom the Software is furnished to do -so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. -******************************************************************************/ - - -#ifndef WIFI_ARM9_H -#define WIFI_ARM9_H - -#include "wifi_shared.h" - - - -// default option is to use 128k heap -#define WIFIINIT_OPTION_USEHEAP_128 0x0000 -#define WIFIINIT_OPTION_USEHEAP_64 0x1000 -#define WIFIINIT_OPTION_USEHEAP_256 0x2000 -#define WIFIINIT_OPTION_USEHEAP_512 0x3000 -#define WIFIINIT_OPTION_USECUSTOMALLOC 0x4000 -#define WIFIINIT_OPTION_HEAPMASK 0xF000 - -#ifdef WIFI_USE_TCP_SGIP - -#ifdef __cplusplus -extern "C" { -#endif - - -#ifdef __cplusplus -}; -#endif - - -#endif - -extern volatile Wifi_MainStruct * WifiData; - -enum WIFIGETDATA { - WIFIGETDATA_MACADDRESS, // MACADDRESS: returns data in the buffer, requires at least 6 bytes - WIFIGETDATA_NUMWFCAPS, // NUM WFC APS: returns number between 0 and 3, doesn't use buffer. - - MAX_WIFIGETDATA -}; - -// Wifi Packet Handler function: (int packetID, int packetlength) - packetID is only valid while the called function is executing. -// call Wifi_RxRawReadPacket while in the packet handler function, to retreive the data to a local buffer. -typedef void (*WifiPacketHandler)(int, int); - -// Wifi Sync Handler function: Callback function that is called when the arm7 needs to be told to synchronize with new fifo data. -// If this callback is used (see Wifi_SetSyncHandler()), it should send a message via the fifo to the arm7, which will call Wifi_Sync() on arm7. -typedef void (*WifiSyncHandler)(void); - - -#ifdef __cplusplus -extern "C" { -#endif - -extern void Wifi_CopyMacAddr(volatile void * dest, volatile void * src); -extern int Wifi_CmpMacAddr(volatile void * mac1, volatile void * mac2); - -extern unsigned long Wifi_Init(int initflags); -extern int Wifi_CheckInit(void); - -extern int Wifi_RawTxFrame(u16 datalen, u16 rate, u16 * data); -extern void Wifi_SetSyncHandler(WifiSyncHandler wshfunc); -extern void Wifi_RawSetPacketHandler(WifiPacketHandler wphfunc); -extern int Wifi_RxRawReadPacket(s32 packetID, s32 readlength, u16 * data); - -extern void Wifi_DisableWifi(void); -extern void Wifi_EnableWifi(void); -extern void Wifi_SetPromiscuousMode(int enable); -extern void Wifi_ScanMode(void); -extern void Wifi_SetChannel(int channel); - -extern int Wifi_GetNumAP(void); -extern int Wifi_GetAPData(int apnum, Wifi_AccessPoint * apdata); -extern int Wifi_FindMatchingAP(int numaps, Wifi_AccessPoint * apdata, Wifi_AccessPoint * match_dest); -extern int Wifi_ConnectAP(Wifi_AccessPoint * apdata, int wepmode, int wepkeyid, u8 * wepkey); -extern void Wifi_AutoConnect(void); - -extern int Wifi_AssocStatus(void); -extern int Wifi_DisconnectAP(void); -extern int Wifi_GetData(int datatype, int bufferlen, unsigned char * buffer); - - -extern void Wifi_Update(void); -extern void Wifi_Sync(void); - -#ifdef WIFI_USE_TCP_SGIP -extern void Wifi_Timer(int num_ms); -extern void Wifi_SetIP(u32 IPaddr, u32 gateway, u32 subnetmask, u32 dns1, u32 dns2); -extern u32 Wifi_GetIP(void); - -#endif - -#ifdef __cplusplus -}; -#endif - - -#endif |