1 /**************************************************************************** 2 **+-----------------------------------------------------------------------+** 3 **| |** 4 **| Copyright(c) 1998 - 2008 Texas Instruments. All rights reserved. |** 5 **| All rights reserved. |** 6 **| |** 7 **| Redistribution and use in source and binary forms, with or without |** 8 **| modification, are permitted provided that the following conditions |** 9 **| are met: |** 10 **| |** 11 **| * Redistributions of source code must retain the above copyright |** 12 **| notice, this list of conditions and the following disclaimer. |** 13 **| * Redistributions in binary form must reproduce the above copyright |** 14 **| notice, this list of conditions and the following disclaimer in |** 15 **| the documentation and/or other materials provided with the |** 16 **| distribution. |** 17 **| * Neither the name Texas Instruments nor the names of its |** 18 **| contributors may be used to endorse or promote products derived |** 19 **| from this software without specific prior written permission. |** 20 **| |** 21 **| THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |** 22 **| "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |** 23 **| LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR |** 24 **| A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT |** 25 **| OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |** 26 **| SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |** 27 **| LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |** 28 **| DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |** 29 **| THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |** 30 **| (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |** 31 **| OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |** 32 **| |** 33 **+-----------------------------------------------------------------------+** 34 ****************************************************************************/ 35 36 37 #ifndef __OSADAPTER_H_ 38 #define __OSADAPTER_H_ 39 40 # include "windows_types.h" 41 42 #include "osApi.h" 43 #include "osDebug.h" 44 #include "paramOut.h" 45 46 /**/ 47 /* This tag will appear in any crash dump of the system that occurs*/ 48 /* subsequently. The tag will be presented in the reverse order, so*/ 49 /* it would appear as 'TIWL' (TI Wireless Lan) if pool is dumped or*/ 50 /* when tracking pool usage in the debugger.*/ 51 /**/ 52 #define TIWLN_MEM_TAG (*(PULONG)"LWIT") 53 54 #define TI_VENDOR_ID 0x104C 55 56 #define MAX_ADAPTERS_NUM 4 57 #define MAX_MULTICAST_ADDRESSES 32 58 59 #define ETH_ADDR_SIZE 6 60 #define ETH_HEADER_SIZE 14 61 62 #define MAX_IO_BUFFER_COMPLETE_SIZE 300 63 64 65 66 #define DISABLE_PENDING_OFF 0 67 #define DISABLE_PENDING_AUTO 1 68 #define DISABLE_PENDING_ALWAYS 2 69 70 typedef struct { 71 TI_HANDLE CoreHalCtx; /* pointer to ConfigManager */ 72 NDIS_HANDLE ConfigHandle; 73 TI_HANDLE hEvHandler; 74 ULONG LinkSpeed; 75 UCHAR CurrentAddr[ETH_ADDR_SIZE]; 76 BOOLEAN bCurrentAddrFromRegistry; 77 OS_802_11_WEP DefaultWepKeys[DOT11_MAX_DEFAULT_WEP_KEYS]; 78 TI_HANDLE SystemProtect; 79 80 BOOLEAN IntMode; 81 BOOLEAN ExtMode; 82 83 ULONG SlotNumber; 84 ULONG etherMaxPayloadSize; 85 BOOL EepromSupported; 86 UINT8 qosClassifierTable[OS_CLSFR_TABLE_SIZE]; 87 PUINT8 pIoBuffer; 88 PULONG pIoCompleteBuffSize ; 89 struct completion *IoctlComp; 90 int *pCompleteReply; 91 92 UINT8 IoCompleteBuff[MAX_IO_BUFFER_COMPLETE_SIZE]; 93 94 95 } TIWLN_ADAPTER_T, *PTIWLN_ADAPTER_T; 96 97 98 99 #endif 100 101