GUI: Fix Tomato RAF theme for all builds. Compilation typo.
[tomato.git] / release / src-rt-6.x.4708 / linux / linux-2.6.36 / drivers / staging / wlags49_h2 / wl_version.h
bloba5e604cd19833cc0f28b42cf7d93cf572f453e9e
1 /*******************************************************************************
2 * Agere Systems Inc.
3 * Wireless device driver for Linux (wlags49).
5 * Copyright (c) 1998-2003 Agere Systems Inc.
6 * All rights reserved.
7 * http://www.agere.com
9 * Initially developed by TriplePoint, Inc.
10 * http://www.triplepoint.com
12 *------------------------------------------------------------------------------
14 * This header file contains version information for the code base, as well as
15 * special definitions and macros needed by certain versions of the code.
17 *------------------------------------------------------------------------------
19 * SOFTWARE LICENSE
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
35 * distribution.
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.
45 * Disclaimer
47 * THIS SOFTWARE IS PROVIDED “AS IS” 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
58 * DAMAGE.
60 ******************************************************************************/
62 #ifndef __WL_VERSION_H__
63 #define __WL_VERSION_H__
65 /*******************************************************************************
66 * include files
67 ******************************************************************************/
68 //#include <linux/config.h>
69 #include <linux/version.h>
71 #ifndef CONFIG_MODVERSIONS
72 #define __NO_VERSION__
73 #endif // CONFIG_MODVERSIONS
75 /*******************************************************************************
76 * constant definitions
77 ******************************************************************************/
79 #define VENDOR_NAME "Agere Systems, http://www.agere.com"
81 #define DRIVER_NAME "wlags49"
82 #define DRV_IDENTITY 49
84 #define DRV_MAJOR_VERSION 7
85 #define DRV_MINOR_VERSION 22
86 #define DRV_VERSION_STR "7.22"
89 #if defined BUS_PCMCIA
90 #define BUS_TYPE "PCMCIA"
91 #elif defined BUS_PCI
92 #define BUS_TYPE "PCI"
93 #else
94 err: define bus type;
95 #endif // BUS_XXX
97 #if defined HERMES25
98 #define HW_TYPE "HII.5"
99 #else
100 #define HW_TYPE "HII"
101 #endif // HERMES25
103 #if defined WARP
104 #define FW_TYPE "WARP"
105 #else
106 #define FW_TYPE "BEAGLE"
107 #endif // WARP
109 #if defined HERMES25
110 #if defined WARP
111 #define DRV_VARIANT 3
112 #else
113 #define DRV_VARIANT 4
114 #endif // WARP
115 #else
116 #define DRV_VARIANT 2
117 #endif // HERMES25
119 #ifdef BUS_PCMCIA
120 #if defined HERMES25
121 #define MODULE_NAME DRIVER_NAME "_h25_cs"
122 #else
123 #define MODULE_NAME DRIVER_NAME "_h2_cs"
124 #endif /* HERMES25 */
125 #elif defined BUS_PCI
126 #if defined HERMES25
127 #define MODULE_NAME DRIVER_NAME "_h25"
128 #else
129 #define MODULE_NAME DRIVER_NAME "_h2"
130 #endif /* HERMES25 */
131 #endif /* BUS_XXX */
133 #ifdef DBG
134 #define MODULE_DATE __DATE__ " " __TIME__
135 #else
136 #define MODULE_DATE "07/18/2004 13:30:00"
137 #endif // DBG
139 //#define STR2(m) #m
140 //#define STR1(m) STR2(m)
141 //#define MODULE_NAME STR1( MOD_NAME )
143 #define VERSION_INFO MODULE_NAME " v" DRV_VERSION_STR \
144 " for " BUS_TYPE ", " \
145 MODULE_DATE " by " VENDOR_NAME
147 #define WIRELESS_SUPPORT 15 // The version of wireless extensions we support
149 //#define DBG_MOD_NAME DRIVER_NAME ":" BUS_TYPE ":" HW_TYPE ":" FW_TYPE
150 #define DBG_MOD_NAME MODULE_NAME
154 /*******************************************************************************
155 * bus architechture specific defines, includes, etc.
156 ******************************************************************************/
158 * There doesn't seem to be a difference for PCMCIA and PCI anymore, at least
159 * for PCMCIA the same defines are needed now as previously only used for PCI
161 #if USE_WEXT
162 #define HAS_WIRELESS_EXTENSIONS
163 #endif // USE_WEXT
165 #define NEW_MULTICAST
166 #define ALLOC_SKB(len) dev_alloc_skb(len+2)
167 #define GET_PACKET(dev, skb, count)\
168 skb_reserve((skb), 2); \
169 BLOCK_INPUT(skb_put((skb), (count)), (count)); \
170 (skb)->protocol = eth_type_trans((skb), (dev))
171 #define GET_PACKET_DMA(dev, skb, count)\
172 skb_reserve((skb), 2); \
173 BLOCK_INPUT_DMA(skb_put((skb), (count)), (count)); \
174 (skb)->protocol = eth_type_trans((skb), (dev))
179 #endif // __WL_VERSION_H__