1/* SPDX-License-Identifier: (GPL-2.0 OR MPL-1.1) */
2/*
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 * --------------------------------------------------------------------
12 *
13 * Inquiries regarding the linux-wlan Open Source project can be
14 * made directly to:
15 *
16 * AbsoluteValue Systems Inc.
17 * info@linux-wlan.com
18 * http://www.linux-wlan.com
19 *
20 * --------------------------------------------------------------------
21 *
22 * Portions of the development of this software were funded by
23 * Intersil Corporation as part of PRISM(R) chipset product development.
24 *
25 * --------------------------------------------------------------------
26 *
27 * This file contains the constants and data structures for interaction
28 * with the hfa384x Wireless LAN (WLAN) Media Access Controller (MAC).
29 * The hfa384x is a portion of the Harris PRISM(tm) WLAN chipset.
30 *
31 * [Implementation and usage notes]
32 *
33 * [References]
34 *   CW10 Programmer's Manual v1.5
35 *   IEEE 802.11 D10.0
36 *
37 *    --------------------------------------------------------------------
38 */
39
40#ifndef _PRISM2MGMT_H
41#define _PRISM2MGMT_H
42
43extern int prism2_reset_holdtime;
44extern int prism2_reset_settletime;
45
46u32 prism2sta_ifstate(struct wlandevice *wlandev, u32 ifstate);
47
48void prism2sta_ev_info(struct wlandevice *wlandev, struct hfa384x_inf_frame *inf);
49void prism2sta_ev_tx(struct wlandevice *wlandev, u16 status);
50void prism2sta_ev_alloc(struct wlandevice *wlandev);
51
52int prism2mgmt_mibset_mibget(struct wlandevice *wlandev, void *msgp);
53int prism2mgmt_scan(struct wlandevice *wlandev, void *msgp);
54int prism2mgmt_scan_results(struct wlandevice *wlandev, void *msgp);
55int prism2mgmt_start(struct wlandevice *wlandev, void *msgp);
56int prism2mgmt_wlansniff(struct wlandevice *wlandev, void *msgp);
57int prism2mgmt_readpda(struct wlandevice *wlandev, void *msgp);
58int prism2mgmt_ramdl_state(struct wlandevice *wlandev, void *msgp);
59int prism2mgmt_ramdl_write(struct wlandevice *wlandev, void *msgp);
60int prism2mgmt_flashdl_state(struct wlandevice *wlandev, void *msgp);
61int prism2mgmt_flashdl_write(struct wlandevice *wlandev, void *msgp);
62int prism2mgmt_autojoin(struct wlandevice *wlandev, void *msgp);
63
64/*---------------------------------------------------------------
65 * conversion functions going between wlan message data types and
66 * Prism2 data types
67 *---------------------------------------------------------------
68 */
69
70/* byte area conversion functions*/
71void prism2mgmt_bytearea2pstr(u8 *bytearea, struct p80211pstrd *pstr, int len);
72
73/* byte string conversion functions*/
74void prism2mgmt_pstr2bytestr(struct hfa384x_bytestr *bytestr,
75			     struct p80211pstrd *pstr);
76void prism2mgmt_bytestr2pstr(struct hfa384x_bytestr *bytestr,
77			     struct p80211pstrd *pstr);
78
79void prism2sta_processing_defer(struct work_struct *data);
80
81void prism2sta_commsqual_defer(struct work_struct *data);
82void prism2sta_commsqual_timer(struct timer_list *t);
83
84/* Interface callback functions, passing data back up to the cfg80211 layer */
85void prism2_connect_result(struct wlandevice *wlandev, u8 failed);
86void prism2_disconnected(struct wlandevice *wlandev);
87void prism2_roamed(struct wlandevice *wlandev);
88
89#endif
90