1 /*******************************************************************************
3 * Wireless device driver for Linux (wlags49).
5 * Copyright (c) 1998-2003 Agere Systems Inc.
9 * Initially developed by TriplePoint, Inc.
10 * http://www.triplepoint.com
12 *------------------------------------------------------------------------------
14 * Header describing information required by the network layerentry points
17 *------------------------------------------------------------------------------
21 * This software is provided subject to the following terms and conditions,
22 * which you should read carefully before using the software. Using this
23 * software indicates your acceptance of these terms and conditions. If you do
24 * not agree with these terms and conditions, do not use the software.
26 * Copyright © 2003 Agere Systems Inc.
27 * All rights reserved.
29 * Redistribution and use in source or binary forms, with or without
30 * modifications, are permitted provided that the following conditions are met:
32 * . Redistributions of source code must retain the above copyright notice, this
33 * list of conditions and the following Disclaimer as comments in the code as
34 * well as in the documentation and/or other materials provided with the
37 * . Redistributions in binary form must reproduce the above copyright notice,
38 * this list of conditions and the following Disclaimer in the documentation
39 * and/or other materials provided with the distribution.
41 * . Neither the name of Agere Systems Inc. nor the names of the contributors
42 * may be used to endorse or promote products derived from this software
43 * without specific prior written permission.
47 * THIS SOFTWARE IS PROVIDED
\93AS IS
\94 AND ANY EXPRESS OR IMPLIED WARRANTIES,
48 * INCLUDING, BUT NOT LIMITED TO, INFRINGEMENT AND THE IMPLIED WARRANTIES OF
49 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. ANY
50 * USE, MODIFICATION OR DISTRIBUTION OF THIS SOFTWARE IS SOLELY AT THE USERS OWN
51 * RISK. IN NO EVENT SHALL AGERE SYSTEMS INC. OR CONTRIBUTORS BE LIABLE FOR ANY
52 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
53 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
54 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
55 * ON ANY THEORY OF LIABILITY, INCLUDING, BUT NOT LIMITED TO, CONTRACT, STRICT
56 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
57 * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
60 ******************************************************************************/
65 /*******************************************************************************
66 * VERSION CONTROL INFORMATION
67 *******************************************************************************
70 * $Date: 2004/07/19 08:16:15 $
72 * $Source: /usr/local/cvs/wl_lkm/include/wireless/wl_netdev.h,v $
74 ******************************************************************************/
79 #ifndef __WL_NETDEV_H__
80 #define __WL_NETDEV_H__
85 /*******************************************************************************
87 ******************************************************************************/
88 int wl_init( struct net_device *dev );
90 int wl_config( struct net_device *dev, struct ifmap *map );
92 struct net_device *wl_device_alloc( void );
94 void wl_device_dealloc( struct net_device *dev );
96 int wl_open( struct net_device *dev );
98 int wl_close( struct net_device *dev );
100 int wl_ioctl( struct net_device *dev, struct ifreq *rq, int cmd );
102 int wl_tx( struct sk_buff *skb, struct net_device *dev, int port );
104 int wl_send( struct wl_private *lp );
106 int wl_rx( struct net_device *dev );
108 void wl_tx_timeout( struct net_device *dev );
110 struct net_device_stats *wl_stats( struct net_device *dev );
114 int wl_send_dma( struct wl_private *lp, struct sk_buff *skb, int port );
115 int wl_rx_dma( struct net_device *dev );
119 void wl_multicast( struct net_device *dev );
121 void wl_multicast( struct net_device *dev, int num_addrs, void *addrs );
122 #endif // NEW_MULTICAST
125 int wl_tx_port0( struct sk_buff *skb, struct net_device *dev );
130 int wl_tx_port1( struct sk_buff *skb, struct net_device *dev );
131 int wl_tx_port2( struct sk_buff *skb, struct net_device *dev );
132 int wl_tx_port3( struct sk_buff *skb, struct net_device *dev );
133 int wl_tx_port4( struct sk_buff *skb, struct net_device *dev );
134 int wl_tx_port5( struct sk_buff *skb, struct net_device *dev );
135 int wl_tx_port6( struct sk_buff *skb, struct net_device *dev );
137 void wl_wds_device_alloc( struct wl_private *lp );
138 void wl_wds_device_dealloc( struct wl_private *lp );
139 void wl_wds_netif_start_queue( struct wl_private *lp );
140 void wl_wds_netif_stop_queue( struct wl_private *lp );
141 void wl_wds_netif_wake_queue( struct wl_private *lp );
142 void wl_wds_netif_carrier_on( struct wl_private *lp );
143 void wl_wds_netif_carrier_off( struct wl_private *lp );
150 #define WL_WDS_DEVICE_ALLOC( ARG ) wl_wds_device_alloc( ARG )
151 #define WL_WDS_DEVICE_DEALLOC( ARG ) wl_wds_device_dealloc( ARG )
152 #define WL_WDS_NETIF_START_QUEUE( ARG ) wl_wds_netif_start_queue( ARG )
153 #define WL_WDS_NETIF_STOP_QUEUE( ARG ) wl_wds_netif_stop_queue( ARG )
154 #define WL_WDS_NETIF_WAKE_QUEUE( ARG ) wl_wds_netif_wake_queue( ARG )
155 #define WL_WDS_NETIF_CARRIER_ON( ARG ) wl_wds_netif_carrier_on( ARG )
156 #define WL_WDS_NETIF_CARRIER_OFF( ARG ) wl_wds_netif_carrier_off( ARG )
160 #define WL_WDS_DEVICE_ALLOC( ARG )
161 #define WL_WDS_DEVICE_DEALLOC( ARG )
162 #define WL_WDS_NETIF_START_QUEUE( ARG )
163 #define WL_WDS_NETIF_STOP_QUEUE( ARG )
164 #define WL_WDS_NETIF_WAKE_QUEUE( ARG )
165 #define WL_WDS_NETIF_CARRIER_ON( ARG )
166 #define WL_WDS_NETIF_CARRIER_OFF( ARG )
171 #endif // __WL_NETDEV_H__