Staging: wlags49_h2: add Agere driver for HERMES II and HERMES II.5 chipsets
[deliverable/linux.git] / drivers / staging / wlags49_h2 / wl_version.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 * 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.
16 *
17 *------------------------------------------------------------------------------
18 *
19 * SOFTWARE LICENSE
20 *
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.
25 *
26 * Copyright © 2003 Agere Systems Inc.
27 * All rights reserved.
28 *
29 * Redistribution and use in source or binary forms, with or without
30 * modifications, are permitted provided that the following conditions are met:
31 *
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.
36 *
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.
40 *
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.
44 *
45 * Disclaimer
46 *
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
58 * DAMAGE.
59 *
60 ******************************************************************************/
61
62
63
64
65 /*******************************************************************************
66 * VERSION CONTROL INFORMATION
67 *******************************************************************************
68 *
69 * $Author: nico $
70 * $Date: 2004/08/04 12:36:10 $
71 * $Revision: 1.7 $
72 * $Source: /usr/local/cvs/wl_lkm/include/wireless/wl_version.h,v $
73 *
74 ******************************************************************************/
75
76 #ifndef __WL_VERSION_H__
77 #define __WL_VERSION_H__
78
79 /*******************************************************************************
80 * include files
81 ******************************************************************************/
82 //#include <linux/config.h>
83 #include <linux/version.h>
84
85 #ifndef CONFIG_MODVERSIONS
86 #define __NO_VERSION__
87 #endif // CONFIG_MODVERSIONS
88
89 /*******************************************************************************
90 * constant definitions
91 ******************************************************************************/
92
93 #define VENDOR_NAME "Agere Systems, http://www.agere.com"
94
95 #define DRIVER_NAME "wlags49"
96 #define DRV_IDENTITY 49
97
98 #define DRV_MAJOR_VERSION 7
99 #define DRV_MINOR_VERSION 22
100 #define DRV_VERSION_STR "7.22"
101
102
103 #if defined BUS_PCMCIA
104 #define BUS_TYPE "PCMCIA"
105 #elif defined BUS_PCI
106 #define BUS_TYPE "PCI"
107 #else
108 err: define bus type;
109 #endif // BUS_XXX
110
111 #if defined HERMES25
112 #define HW_TYPE "HII.5"
113 #else
114 #define HW_TYPE "HII"
115 #endif // HERMES25
116
117 #if defined WARP
118 #define FW_TYPE "WARP"
119 #else
120 #define FW_TYPE "BEAGLE"
121 #endif // WARP
122
123 #if defined HERMES25
124 #if defined WARP
125 #define DRV_VARIANT 3
126 #else
127 #define DRV_VARIANT 4
128 #endif // WARP
129 #else
130 #define DRV_VARIANT 2
131 #endif // HERMES25
132
133 #ifdef BUS_PCMCIA
134 #if defined HERMES25
135 #define MODULE_NAME DRIVER_NAME "_h25_cs"
136 #else
137 #define MODULE_NAME DRIVER_NAME "_h2_cs"
138 #endif /* HERMES25 */
139 #elif defined BUS_PCI
140 #if defined HERMES25
141 #define MODULE_NAME DRIVER_NAME "_h25"
142 #else
143 #define MODULE_NAME DRIVER_NAME "_h2"
144 #endif /* HERMES25 */
145 #endif /* BUS_XXX */
146
147 #ifdef DBG
148 #define MODULE_DATE __DATE__ " " __TIME__
149 #else
150 #define MODULE_DATE "07/18/2004 13:30:00"
151 #endif // DBG
152
153 //#define STR2(m) #m
154 //#define STR1(m) STR2(m)
155 //#define MODULE_NAME STR1( MOD_NAME )
156
157 #define VERSION_INFO MODULE_NAME " v" DRV_VERSION_STR \
158 " for " BUS_TYPE ", " \
159 MODULE_DATE " by " VENDOR_NAME
160
161 #define WIRELESS_SUPPORT 15 // The version of wireless extensions we support
162
163 //#define DBG_MOD_NAME DRIVER_NAME ":" BUS_TYPE ":" HW_TYPE ":" FW_TYPE
164 #define DBG_MOD_NAME MODULE_NAME
165
166
167
168 /*******************************************************************************
169 * bus architechture specific defines, includes, etc.
170 ******************************************************************************/
171 /*
172 * There doesn't seem to be a difference for PCMCIA and PCI anymore, at least
173 * for PCMCIA the same defines are needed now as previously only used for PCI
174 */
175 #if USE_WEXT
176 #define HAS_WIRELESS_EXTENSIONS
177 #endif // USE_WEXT
178
179 #define NEW_MULTICAST
180 #define ALLOC_SKB(len) dev_alloc_skb(len+2)
181 #define GET_PACKET(dev, skb, count)\
182 skb_reserve((skb), 2); \
183 BLOCK_INPUT(skb_put((skb), (count)), (count)); \
184 (skb)->protocol = eth_type_trans((skb), (dev))
185 #define GET_PACKET_DMA(dev, skb, count)\
186 skb_reserve((skb), 2); \
187 BLOCK_INPUT_DMA(skb_put((skb), (count)), (count)); \
188 (skb)->protocol = eth_type_trans((skb), (dev))
189
190
191
192
193 #endif // __WL_VERSION_H__
This page took 0.046201 seconds and 5 git commands to generate.