]> bbs.cooldavid.org Git - net-next-2.6.git/blob - drivers/staging/wlags49_h2/wl_main.h
Staging: wlags49_h2: add Agere driver for HERMES II and HERMES II.5 chipsets
[net-next-2.6.git] / drivers / staging / wlags49_h2 / wl_main.h
1 /*******************************************************************************
2  * Agere Systems Inc.
3  * Wireless device driver for Linux (wlags49).
4  *
5  * Copyright (c) 1998-2003 Agere Systems Inc.
6  * All rights reserved.
7  *   http://www.agere.com
8  *
9  * Initially developed by TriplePoint, Inc.
10  *   http://www.triplepoint.com
11  *
12  *------------------------------------------------------------------------------
13  *
14  *   Header describing device specific routines and driver init/un-init.
15  *
16  *------------------------------------------------------------------------------
17  *
18  * SOFTWARE LICENSE
19  *
20  * This software is provided subject to the following terms and conditions,
21  * which you should read carefully before using the software.  Using this
22  * software indicates your acceptance of these terms and conditions.  If you do
23  * not agree with these terms and conditions, do not use the software.
24  *
25  * Copyright � 2003 Agere Systems Inc.
26  * All rights reserved.
27  *
28  * Redistribution and use in source or binary forms, with or without
29  * modifications, are permitted provided that the following conditions are met:
30  *
31  * . Redistributions of source code must retain the above copyright notice, this
32  *    list of conditions and the following Disclaimer as comments in the code as
33  *    well as in the documentation and/or other materials provided with the
34  *    distribution.
35  *
36  * . Redistributions in binary form must reproduce the above copyright notice,
37  *    this list of conditions and the following Disclaimer in the documentation
38  *    and/or other materials provided with the distribution.
39  *
40  * . Neither the name of Agere Systems Inc. nor the names of the contributors
41  *    may be used to endorse or promote products derived from this software
42  *    without specific prior written permission.
43  *
44  * Disclaimer
45  *
46  * THIS SOFTWARE IS PROVIDED �AS IS� AND ANY EXPRESS OR IMPLIED WARRANTIES,
47  * INCLUDING, BUT NOT LIMITED TO, INFRINGEMENT AND THE IMPLIED WARRANTIES OF
48  * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  ANY
49  * USE, MODIFICATION OR DISTRIBUTION OF THIS SOFTWARE IS SOLELY AT THE USERS OWN
50  * RISK. IN NO EVENT SHALL AGERE SYSTEMS INC. OR CONTRIBUTORS BE LIABLE FOR ANY
51  * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
52  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
53  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
54  * ON ANY THEORY OF LIABILITY, INCLUDING, BUT NOT LIMITED TO, CONTRACT, STRICT
55  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
56  * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
57  * DAMAGE.
58  *
59  ******************************************************************************/
60
61
62
63
64 /*******************************************************************************
65  * VERSION CONTROL INFORMATION
66  *******************************************************************************
67  *
68  * $Author: nico $
69  * $Date: 2004/07/23 04:51:21 $
70  * $Revision: 1.4 $
71  * $Source: /usr/local/cvs/wl_lkm/include/wireless/wl_main.h,v $
72  *
73  ******************************************************************************/
74
75
76
77
78 #ifndef __WL_MAIN_H__
79 #define __WL_MAIN_H__
80
81
82
83
84 /*******************************************************************************
85  *  function prototypes
86  ******************************************************************************/
87 int wl_insert( struct net_device *dev );
88
89 void wl_set_wep_keys( struct wl_private *lp );
90
91 int wl_put_ltv_init( struct wl_private *lp );
92
93 int wl_put_ltv( struct wl_private *lp );
94
95 p_u16 wl_get_irq_mask( void );
96
97 p_s8 * wl_get_irq_list( void );
98
99 int wl_reset( struct net_device *dev );
100
101 int wl_go( struct wl_private *lp );
102
103 int wl_apply( struct wl_private *lp );
104
105 irqreturn_t wl_isr( int irq, void *dev_id, struct pt_regs *regs );
106
107 void wl_remove( struct net_device *dev );
108
109 void wl_suspend( struct net_device *dev );
110
111 void wl_resume( struct net_device *dev );
112
113 void wl_release( struct net_device *dev );
114
115 int wl_enable( struct wl_private *lp );
116
117 int wl_connect( struct wl_private *lp );
118
119 int wl_disable( struct wl_private *lp );
120
121 int wl_disconnect( struct wl_private *lp );
122
123 void wl_enable_wds_ports( struct wl_private * lp );
124
125 void wl_disable_wds_ports( struct wl_private * lp );
126
127 #ifndef USE_MBOX_SYNC
128
129 int wl_mbx( struct wl_private *lp );
130 void wl_endian_translate_mailbox( ltv_t *ltv );
131 void wl_process_mailbox( struct wl_private *lp );
132
133 #endif  /* USE_MBOX_SYNC */
134
135
136 #ifdef USE_WDS
137
138 void wl_wds_netdev_register( struct wl_private *lp );
139 void wl_wds_netdev_deregister( struct wl_private *lp );
140
141 #endif  /* USE_WDS */
142
143
144 #ifdef USE_WDS
145
146 #define WL_WDS_NETDEV_REGISTER( ARG )   wl_wds_netdev_register( ARG )
147 #define WL_WDS_NETDEV_DEREGISTER( ARG ) wl_wds_netdev_deregister( ARG )
148
149 #else
150
151 #define WL_WDS_NETDEV_REGISTER( ARG )
152 #define WL_WDS_NETDEV_DEREGISTER( ARG )
153
154 #endif  /* USE_WDS */
155 #endif  // __WL_MAIN_H__