added 2.6.29.6 aldebaran kernel
[nao-ulib.git] / kernel / 2.6.29.6-aldebaran-rt / drivers / staging / wlan-ng / prism2mgmt.h
blobcaf808d579666b0d73681bd80a0c4936275f2c09
1 /* prism2mgmt.h
3 * Declares the mgmt command handler functions
5 * Copyright (C) 1999 AbsoluteValue Systems, Inc. All Rights Reserved.
6 * --------------------------------------------------------------------
8 * linux-wlan
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/
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.
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.
31 * --------------------------------------------------------------------
33 * Inquiries regarding the linux-wlan Open Source project can be
34 * made directly to:
36 * AbsoluteValue Systems Inc.
37 * info@linux-wlan.com
38 * http://www.linux-wlan.com
40 * --------------------------------------------------------------------
42 * Portions of the development of this software were funded by
43 * Intersil Corporation as part of PRISM(R) chipset product development.
45 * --------------------------------------------------------------------
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.
51 * [Implementation and usage notes]
53 * [References]
54 * CW10 Programmer's Manual v1.5
55 * IEEE 802.11 D10.0
57 * --------------------------------------------------------------------
60 #ifndef _PRISM2MGMT_H
61 #define _PRISM2MGMT_H
64 /*=============================================================*/
65 /*------ Constants --------------------------------------------*/
67 /*=============================================================*/
68 /*------ Macros -----------------------------------------------*/
70 /*=============================================================*/
71 /*------ Types and their related constants --------------------*/
73 /*=============================================================*/
74 /*------ Static variable externs ------------------------------*/
76 extern int prism2_debug;
77 extern int prism2_reset_holdtime;
78 extern int prism2_reset_settletime;
79 /*=============================================================*/
80 /*--- Function Declarations -----------------------------------*/
81 /*=============================================================*/
83 u32
84 prism2sta_ifstate(wlandevice_t *wlandev, u32 ifstate);
86 void
87 prism2sta_ev_dtim(wlandevice_t *wlandev);
88 void
89 prism2sta_ev_infdrop(wlandevice_t *wlandev);
90 void
91 prism2sta_ev_info(wlandevice_t *wlandev, hfa384x_InfFrame_t *inf);
92 void
93 prism2sta_ev_txexc(wlandevice_t *wlandev, u16 status);
94 void
95 prism2sta_ev_tx(wlandevice_t *wlandev, u16 status);
96 void
97 prism2sta_ev_rx(wlandevice_t *wlandev, struct sk_buff *skb);
98 void
99 prism2sta_ev_alloc(wlandevice_t *wlandev);
101 int prism2mgmt_mibset_mibget(wlandevice_t *wlandev, void *msgp);
102 int prism2mgmt_scan(wlandevice_t *wlandev, void *msgp);
103 int prism2mgmt_scan_results(wlandevice_t *wlandev, void *msgp);
104 int prism2mgmt_start(wlandevice_t *wlandev, void *msgp);
105 int prism2mgmt_wlansniff(wlandevice_t *wlandev, void *msgp);
106 int prism2mgmt_readpda(wlandevice_t *wlandev, void *msgp);
107 int prism2mgmt_ramdl_state(wlandevice_t *wlandev, void *msgp);
108 int prism2mgmt_ramdl_write(wlandevice_t *wlandev, void *msgp);
109 int prism2mgmt_flashdl_state(wlandevice_t *wlandev, void *msgp);
110 int prism2mgmt_flashdl_write(wlandevice_t *wlandev, void *msgp);
111 int prism2mgmt_autojoin(wlandevice_t *wlandev, void *msgp);
113 /*---------------------------------------------------------------
114 * conversion functions going between wlan message data types and
115 * Prism2 data types
116 ---------------------------------------------------------------*/
117 /* byte area conversion functions*/
118 void prism2mgmt_pstr2bytearea(u8 *bytearea, p80211pstrd_t *pstr);
119 void prism2mgmt_bytearea2pstr(u8 *bytearea, p80211pstrd_t *pstr, int len);
121 /* byte string conversion functions*/
122 void prism2mgmt_pstr2bytestr(hfa384x_bytestr_t *bytestr, p80211pstrd_t *pstr);
123 void prism2mgmt_bytestr2pstr(hfa384x_bytestr_t *bytestr, p80211pstrd_t *pstr);
125 /* integer conversion functions */
126 void prism2mgmt_prism2int2p80211int(u16 *prism2int, u32 *wlanint);
127 void prism2mgmt_p80211int2prism2int(u16 *prism2int, u32 *wlanint);
129 /* enumerated integer conversion functions */
130 void prism2mgmt_prism2enum2p80211enum(u16 *prism2enum, u32 *wlanenum, u16 rid);
131 void prism2mgmt_p80211enum2prism2enum(u16 *prism2enum, u32 *wlanenum, u16 rid);
133 /* functions to convert a bit area to/from an Operational Rate Set */
134 void prism2mgmt_get_oprateset(u16 *rate, p80211pstrd_t *pstr);
135 void prism2mgmt_set_oprateset(u16 *rate, p80211pstrd_t *pstr);
137 /* functions to convert Group Addresses */
138 void prism2mgmt_get_grpaddr(u32 did,
139 p80211pstrd_t *pstr, hfa384x_t *priv );
140 int prism2mgmt_set_grpaddr(u32 did,
141 u8 *prism2buf, p80211pstrd_t *pstr, hfa384x_t *priv );
142 int prism2mgmt_get_grpaddr_index( u32 did );
144 void prism2sta_processing_defer(struct work_struct *data);
146 void prism2sta_commsqual_defer(struct work_struct *data);
147 void prism2sta_commsqual_timer(unsigned long data);
149 /*=============================================================*/
150 /*--- Inline Function Definitions (if supported) --------------*/
151 /*=============================================================*/
155 #endif