PageRenderTime 28ms CodeModel.GetById 0ms RepoModel.GetById 0ms app.codeStats 1ms

/drivers/net/wireless/tiwlan1251/pform/linux/inc/osAdapter.h

http://github.com/CyanogenMod/cm-kernel
C Header | 100 lines | 38 code | 22 blank | 40 comment | 0 complexity | 9f6a8d27201020950e8d9d30f5ba185b MD5 | raw file
Possible License(s): AGPL-1.0, GPL-2.0, LGPL-2.0
  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. #ifndef __OSADAPTER_H_
  36. #define __OSADAPTER_H_
  37. # include "windows_types.h"
  38. #include "osApi.h"
  39. #include "osDebug.h"
  40. #include "paramOut.h"
  41. /**/
  42. /* This tag will appear in any crash dump of the system that occurs*/
  43. /* subsequently. The tag will be presented in the reverse order, so*/
  44. /* it would appear as 'TIWL' (TI Wireless Lan) if pool is dumped or*/
  45. /* when tracking pool usage in the debugger.*/
  46. /**/
  47. #define TIWLN_MEM_TAG (*(PULONG)"LWIT")
  48. #define TI_VENDOR_ID 0x104C
  49. #define MAX_ADAPTERS_NUM 4
  50. #define MAX_MULTICAST_ADDRESSES 32
  51. #define ETH_ADDR_SIZE 6
  52. #define ETH_HEADER_SIZE 14
  53. #define MAX_IO_BUFFER_COMPLETE_SIZE 300
  54. #define DISABLE_PENDING_OFF 0
  55. #define DISABLE_PENDING_AUTO 1
  56. #define DISABLE_PENDING_ALWAYS 2
  57. typedef struct {
  58. TI_HANDLE CoreHalCtx; /* pointer to ConfigManager */
  59. NDIS_HANDLE ConfigHandle;
  60. TI_HANDLE hEvHandler;
  61. ULONG LinkSpeed;
  62. UCHAR CurrentAddr[ETH_ADDR_SIZE];
  63. BOOLEAN bCurrentAddrFromRegistry;
  64. OS_802_11_WEP DefaultWepKeys[DOT11_MAX_DEFAULT_WEP_KEYS];
  65. TI_HANDLE SystemProtect;
  66. BOOLEAN IntMode;
  67. BOOLEAN ExtMode;
  68. ULONG SlotNumber;
  69. ULONG etherMaxPayloadSize;
  70. BOOL EepromSupported;
  71. UINT8 qosClassifierTable[OS_CLSFR_TABLE_SIZE];
  72. PUINT8 pIoBuffer;
  73. PULONG pIoCompleteBuffSize ;
  74. struct completion *IoctlComp;
  75. int *pCompleteReply;
  76. UINT8 IoCompleteBuff[MAX_IO_BUFFER_COMPLETE_SIZE];
  77. } TIWLN_ADAPTER_T, *PTIWLN_ADAPTER_T;
  78. #endif