home *** CD-ROM | disk | FTP | other *** search
/ PC Welt 2006 November (DVD) / PCWELT_11_2006.ISO / casper / filesystem.squashfs / usr / src / linux-headers-2.6.17-6 / include / prism2 / prism2mgmt.h < prev   
Encoding:
C/C++ Source or Header  |  2006-08-11  |  7.5 KB  |  183 lines

  1. /* src/prism2/include/prism2/prism2mgmt.h
  2. *
  3. * Declares the mgmt command handler functions
  4. *
  5. * Copyright (C) 1999 AbsoluteValue Systems, Inc.  All Rights Reserved.
  6. * --------------------------------------------------------------------
  7. *
  8. * linux-wlan
  9. *
  10. *   The contents of this file are subject to the Mozilla Public
  11. *   License Version 1.1 (the "License"); you may not use this file
  12. *   except in compliance with the License. You may obtain a copy of
  13. *   the License at http://www.mozilla.org/MPL/
  14. *
  15. *   Software distributed under the License is distributed on an "AS
  16. *   IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
  17. *   implied. See the License for the specific language governing
  18. *   rights and limitations under the License.
  19. *
  20. *   Alternatively, the contents of this file may be used under the
  21. *   terms of the GNU Public License version 2 (the "GPL"), in which
  22. *   case the provisions of the GPL are applicable instead of the
  23. *   above.  If you wish to allow the use of your version of this file
  24. *   only under the terms of the GPL and not to allow others to use
  25. *   your version of this file under the MPL, indicate your decision
  26. *   by deleting the provisions above and replace them with the notice
  27. *   and other provisions required by the GPL.  If you do not delete
  28. *   the provisions above, a recipient may use your version of this
  29. *   file under either the MPL or the GPL.
  30. *
  31. * --------------------------------------------------------------------
  32. *
  33. * Inquiries regarding the linux-wlan Open Source project can be
  34. * made directly to:
  35. *
  36. * AbsoluteValue Systems Inc.
  37. * info@linux-wlan.com
  38. * http://www.linux-wlan.com
  39. *
  40. * --------------------------------------------------------------------
  41. *
  42. * Portions of the development of this software were funded by 
  43. * Intersil Corporation as part of PRISM(R) chipset product development.
  44. *
  45. * --------------------------------------------------------------------
  46. *
  47. * This file contains the constants and data structures for interaction
  48. * with the hfa384x Wireless LAN (WLAN) Media Access Contoller (MAC).  
  49. * The hfa384x is a portion of the Harris PRISM(tm) WLAN chipset.
  50. *
  51. * [Implementation and usage notes]
  52. *
  53. * [References]
  54. *   CW10 Programmer's Manual v1.5
  55. *   IEEE 802.11 D10.0
  56. *
  57. *    --------------------------------------------------------------------
  58. */
  59.  
  60. #ifndef _PRISM2MGMT_H
  61. #define _PRISM2MGMT_H
  62.  
  63.  
  64. /*=============================================================*/
  65. /*------ Constants --------------------------------------------*/
  66.  
  67. /*=============================================================*/
  68. /*------ Macros -----------------------------------------------*/
  69.  
  70. /*=============================================================*/
  71. /*------ Types and their related constants --------------------*/
  72.  
  73. /*=============================================================*/
  74. /*------ Static variable externs ------------------------------*/
  75.  
  76. #if (WLAN_HOSTIF != WLAN_USB)
  77. extern int      prism2_bap_timeout;
  78. extern int    prism2_irq_evread_max;
  79. #endif
  80. extern int    prism2_debug;
  81. extern int      prism2_reset_holdtime;
  82. extern int      prism2_reset_settletime;
  83. /*=============================================================*/
  84. /*--- Function Declarations -----------------------------------*/
  85. /*=============================================================*/
  86.  
  87. UINT32
  88. prism2sta_ifstate(wlandevice_t *wlandev, UINT32 ifstate);
  89.  
  90. void
  91. prism2sta_ev_dtim(wlandevice_t *wlandev);
  92. void
  93. prism2sta_ev_infdrop(wlandevice_t *wlandev);
  94. void
  95. prism2sta_ev_info(wlandevice_t *wlandev, hfa384x_InfFrame_t *inf);
  96. void
  97. prism2sta_ev_txexc(wlandevice_t *wlandev, UINT16 status);
  98. void
  99. prism2sta_ev_tx(wlandevice_t *wlandev, UINT16 status);
  100. void
  101. prism2sta_ev_rx(wlandevice_t *wlandev, struct sk_buff *skb);
  102. void
  103. prism2sta_ev_alloc(wlandevice_t *wlandev);
  104.  
  105.  
  106. int prism2mgmt_mibset_mibget(wlandevice_t *wlandev, void *msgp);
  107. int prism2mgmt_powermgmt(wlandevice_t *wlandev, void *msgp);
  108. int prism2mgmt_scan(wlandevice_t *wlandev, void *msgp);
  109. int prism2mgmt_scan_results(wlandevice_t *wlandev, void *msgp);
  110. int prism2mgmt_join(wlandevice_t *wlandev, void *msgp);
  111. int prism2mgmt_p2_join(wlandevice_t *wlandev, void *msgp);
  112. int prism2mgmt_authenticate(wlandevice_t *wlandev, void *msgp);
  113. int prism2mgmt_deauthenticate(wlandevice_t *wlandev, void *msgp);
  114. int prism2mgmt_associate(wlandevice_t *wlandev, void *msgp);
  115. int prism2mgmt_reassociate(wlandevice_t *wlandev, void *msgp);
  116. int prism2mgmt_disassociate(wlandevice_t *wlandev, void *msgp);
  117. int prism2mgmt_reset(wlandevice_t *wlandev, void *msgp);
  118. int prism2mgmt_start(wlandevice_t *wlandev, void *msgp);
  119. int prism2mgmt_wlansniff(wlandevice_t *wlandev, void *msgp);
  120. int prism2mgmt_readpda(wlandevice_t *wlandev, void *msgp);
  121. int prism2mgmt_readcis(wlandevice_t *wlandev, void *msgp);
  122. int prism2mgmt_auxport_state(wlandevice_t *wlandev, void *msgp);
  123. int prism2mgmt_auxport_read(wlandevice_t *wlandev, void *msgp);
  124. int prism2mgmt_auxport_write(wlandevice_t *wlandev, void *msgp);
  125. int prism2mgmt_low_level(wlandevice_t *wlandev, void *msgp);
  126. int prism2mgmt_test_command(wlandevice_t *wlandev, void *msgp);
  127. int prism2mgmt_mmi_read(wlandevice_t *wlandev, void *msgp);
  128. int prism2mgmt_mmi_write(wlandevice_t *wlandev, void *msgp);
  129. int prism2mgmt_ramdl_state(wlandevice_t *wlandev, void *msgp);
  130. int prism2mgmt_ramdl_write(wlandevice_t *wlandev, void *msgp);
  131. int prism2mgmt_flashdl_state(wlandevice_t *wlandev, void *msgp);
  132. int prism2mgmt_flashdl_write(wlandevice_t *wlandev, void *msgp);
  133. int prism2mgmt_mm_state(wlandevice_t *wlandev, void *msgp);
  134. int prism2mgmt_dump_state(wlandevice_t *wlandev, void *msgp);
  135. int prism2mgmt_enable(wlandevice_t *wlandev, void *msgp);
  136. int prism2mgmt_channel_info(wlandevice_t *wlandev, void *msgp);
  137. int prism2mgmt_channel_info_results(wlandevice_t *wlandev, void *msgp);
  138. int prism2mgmt_autojoin(wlandevice_t *wlandev, void *msgp);
  139.  
  140. /*---------------------------------------------------------------
  141. * conversion functions going between wlan message data types and
  142. * Prism2 data types 
  143. ---------------------------------------------------------------*/
  144. /* byte area conversion functions*/
  145. void prism2mgmt_pstr2bytearea(UINT8 *bytearea, p80211pstrd_t *pstr);
  146. void prism2mgmt_bytearea2pstr(UINT8 *bytearea, p80211pstrd_t *pstr, int len);
  147.  
  148. /* byte string conversion functions*/
  149. void prism2mgmt_pstr2bytestr(hfa384x_bytestr_t *bytestr, p80211pstrd_t *pstr);
  150. void prism2mgmt_bytestr2pstr(hfa384x_bytestr_t *bytestr, p80211pstrd_t *pstr);
  151.  
  152. /* integer conversion functions */
  153. void prism2mgmt_prism2int2p80211int(UINT16 *prism2int, UINT32 *wlanint);
  154. void prism2mgmt_p80211int2prism2int(UINT16 *prism2int, UINT32 *wlanint);
  155.  
  156. /* enumerated integer conversion functions */
  157. void prism2mgmt_prism2enum2p80211enum(UINT16 *prism2enum, UINT32 *wlanenum, UINT16 rid);
  158. void prism2mgmt_p80211enum2prism2enum(UINT16 *prism2enum, UINT32 *wlanenum, UINT16 rid);
  159.  
  160. /* functions to convert a bit area to/from an Operational Rate Set */
  161. void prism2mgmt_get_oprateset(UINT16 *rate, p80211pstrd_t *pstr);
  162. void prism2mgmt_set_oprateset(UINT16 *rate, p80211pstrd_t *pstr);
  163.  
  164. /* functions to convert Group Addresses */
  165. void prism2mgmt_get_grpaddr(UINT32 did, 
  166.     p80211pstrd_t *pstr, hfa384x_t *priv );
  167. int prism2mgmt_set_grpaddr(UINT32 did, 
  168.     UINT8 *prism2buf, p80211pstrd_t *pstr, hfa384x_t *priv );
  169. int prism2mgmt_get_grpaddr_index( UINT32 did );
  170.  
  171. void prism2sta_processing_defer(void *data);
  172.  
  173. void prism2sta_commsqual_defer(void *data);
  174. void prism2sta_commsqual_timer(unsigned long data);
  175.  
  176. /*=============================================================*/
  177. /*--- Inline Function Definitions (if supported) --------------*/
  178. /*=============================================================*/
  179.  
  180.  
  181.  
  182. #endif
  183.