prism2mgmt.h 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. /* SPDX-License-Identifier: (GPL-2.0 OR MPL-1.1) */
  2. /* prism2mgmt.h
  3. *
  4. * Declares the mgmt command handler functions
  5. *
  6. * Copyright (C) 1999 AbsoluteValue Systems, Inc. All Rights Reserved.
  7. * --------------------------------------------------------------------
  8. *
  9. * linux-wlan
  10. *
  11. * The contents of this file are subject to the Mozilla Public
  12. * License Version 1.1 (the "License"); you may not use this file
  13. * except in compliance with the License. You may obtain a copy of
  14. * the License at http://www.mozilla.org/MPL/
  15. *
  16. * Software distributed under the License is distributed on an "AS
  17. * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
  18. * implied. See the License for the specific language governing
  19. * rights and limitations under the License.
  20. *
  21. * Alternatively, the contents of this file may be used under the
  22. * terms of the GNU Public License version 2 (the "GPL"), in which
  23. * case the provisions of the GPL are applicable instead of the
  24. * above. If you wish to allow the use of your version of this file
  25. * only under the terms of the GPL and not to allow others to use
  26. * your version of this file under the MPL, indicate your decision
  27. * by deleting the provisions above and replace them with the notice
  28. * and other provisions required by the GPL. If you do not delete
  29. * the provisions above, a recipient may use your version of this
  30. * file under either the MPL or the GPL.
  31. *
  32. * --------------------------------------------------------------------
  33. *
  34. * Inquiries regarding the linux-wlan Open Source project can be
  35. * made directly to:
  36. *
  37. * AbsoluteValue Systems Inc.
  38. * info@linux-wlan.com
  39. * http://www.linux-wlan.com
  40. *
  41. * --------------------------------------------------------------------
  42. *
  43. * Portions of the development of this software were funded by
  44. * Intersil Corporation as part of PRISM(R) chipset product development.
  45. *
  46. * --------------------------------------------------------------------
  47. *
  48. * This file contains the constants and data structures for interaction
  49. * with the hfa384x Wireless LAN (WLAN) Media Access Controller (MAC).
  50. * The hfa384x is a portion of the Harris PRISM(tm) WLAN chipset.
  51. *
  52. * [Implementation and usage notes]
  53. *
  54. * [References]
  55. * CW10 Programmer's Manual v1.5
  56. * IEEE 802.11 D10.0
  57. *
  58. * --------------------------------------------------------------------
  59. */
  60. #ifndef _PRISM2MGMT_H
  61. #define _PRISM2MGMT_H
  62. extern int prism2_reset_holdtime;
  63. extern int prism2_reset_settletime;
  64. u32 prism2sta_ifstate(struct wlandevice *wlandev, u32 ifstate);
  65. void prism2sta_ev_info(struct wlandevice *wlandev,
  66. struct hfa384x_inf_frame *inf);
  67. void prism2sta_ev_txexc(struct wlandevice *wlandev, u16 status);
  68. void prism2sta_ev_tx(struct wlandevice *wlandev, u16 status);
  69. void prism2sta_ev_alloc(struct wlandevice *wlandev);
  70. int prism2mgmt_mibset_mibget(struct wlandevice *wlandev, void *msgp);
  71. int prism2mgmt_scan(struct wlandevice *wlandev, void *msgp);
  72. int prism2mgmt_scan_results(struct wlandevice *wlandev, void *msgp);
  73. int prism2mgmt_start(struct wlandevice *wlandev, void *msgp);
  74. int prism2mgmt_wlansniff(struct wlandevice *wlandev, void *msgp);
  75. int prism2mgmt_readpda(struct wlandevice *wlandev, void *msgp);
  76. int prism2mgmt_ramdl_state(struct wlandevice *wlandev, void *msgp);
  77. int prism2mgmt_ramdl_write(struct wlandevice *wlandev, void *msgp);
  78. int prism2mgmt_flashdl_state(struct wlandevice *wlandev, void *msgp);
  79. int prism2mgmt_flashdl_write(struct wlandevice *wlandev, void *msgp);
  80. int prism2mgmt_autojoin(struct wlandevice *wlandev, void *msgp);
  81. /*---------------------------------------------------------------
  82. * conversion functions going between wlan message data types and
  83. * Prism2 data types
  84. *---------------------------------------------------------------
  85. */
  86. /* byte area conversion functions*/
  87. void prism2mgmt_bytearea2pstr(u8 *bytearea, struct p80211pstrd *pstr, int len);
  88. /* byte string conversion functions*/
  89. void prism2mgmt_pstr2bytestr(struct hfa384x_bytestr *bytestr,
  90. struct p80211pstrd *pstr);
  91. void prism2mgmt_bytestr2pstr(struct hfa384x_bytestr *bytestr,
  92. struct p80211pstrd *pstr);
  93. /* functions to convert Group Addresses */
  94. void prism2mgmt_get_grpaddr(u32 did, struct p80211pstrd *pstr,
  95. struct hfa384x *priv);
  96. int prism2mgmt_set_grpaddr(u32 did,
  97. u8 *prism2buf, struct p80211pstrd *pstr,
  98. struct hfa384x *priv);
  99. int prism2mgmt_get_grpaddr_index(u32 did);
  100. void prism2sta_processing_defer(struct work_struct *data);
  101. void prism2sta_commsqual_defer(struct work_struct *data);
  102. void prism2sta_commsqual_timer(struct timer_list *t);
  103. /* Interface callback functions, passing data back up to the cfg80211 layer */
  104. void prism2_connect_result(struct wlandevice *wlandev, u8 failed);
  105. void prism2_disconnected(struct wlandevice *wlandev);
  106. void prism2_roamed(struct wlandevice *wlandev);
  107. #endif