MOXA linux-2.6.x / linux-2.6.9-uc0 from sdlinux-moxaart.tgz
[linux-2.6.9-moxart.git] / drivers / net / wireless / rtlink / rt_config.h
blob163d611f3deaebc117c212c744ef5ebf4a4b447c
1 /*************************************************************************
2 * Ralink Tech Inc. *
3 * 4F, No. 2 Technology 5th Rd. *
4 * Science-based Industrial Park *
5 * Hsin-chu, Taiwan, R.O.C. *
6 * *
7 * (c) Copyright 2002, Ralink Technology, Inc. *
8 * *
9 * This program is free software; you can redistribute it and/or modify *
10 * it under the terms of the GNU General Public License as published by *
11 * the Free Software Foundation; either version 2 of the License, or *
12 * (at your option) any later version. *
13 * *
14 * This program is distributed in the hope that it will be useful, *
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
17 * GNU General Public License for more details. *
18 * *
19 * You should have received a copy of the GNU General Public License *
20 * along with this program; if not, write to the *
21 * Free Software Foundation, Inc., *
22 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
23 * *
24 *************************************************************************
26 Module Name:
27 rt_config.h
29 Abstract:
30 Central header file to maintain all include files for all NDIS
31 miniport driver routines.
33 Revision History:
34 Who When What
35 -------- ---------- ----------------------------------------------
36 Rory Chen 12-21-2002 created
40 #ifndef __RT_CONFIG_H__
41 #define __RT_CONFIG_H__
43 #define PROFILE_PATH "/etc/Wireless/RT2500STA/RT2500STA.dat"
44 #define NIC_DEVICE_NAME "RT2500STA"
46 /* Version */
47 #define DRV_MAJORVERSION 1
48 #define DRV_MINORVERSION 4
49 #define DRV_SUBVERSION 6
50 #define DRV_TESTVERSION 6
51 #define DRV_YEAR 2006
52 #define DRV_MONTH 9
53 #define DRV_DAY 13
55 /* Operational parameters that are set at compile time. */
56 #if !defined(__OPTIMIZE__) || !defined(__KERNEL__)
57 #warning You must compile this file with the correct options!
58 #warning See the last lines of the source file.
59 #error You must compile this driver with "-O".
60 #endif
62 #include <linux/config.h> //can delete
63 #include <linux/module.h>
64 #include <linux/version.h>
65 #include <linux/kernel.h>
66 #include <linux/string.h>
67 #include <linux/timer.h>
68 #include <linux/errno.h> //can delete
69 #include <linux/ioport.h> // can delete
70 #include <linux/slab.h>
71 #include <linux/interrupt.h>
72 #include <linux/pci.h>
73 #include <linux/netdevice.h>
74 #include <linux/etherdevice.h>
75 #include <linux/skbuff.h>
76 #include <linux/init.h> //can delete
77 #include <linux/delay.h> // can delete
78 #include <linux/ethtool.h>
79 #include <linux/wireless.h>
80 #include <linux/proc_fs.h>
81 #include <linux/delay.h>
82 #include <linux/if_arp.h>
83 #include <linux/ctype.h>
85 #if LINUX_VERSION_CODE >= 0x20407
86 #include <linux/mii.h>
87 #endif
88 #include <asm/processor.h> /* Processor type for cache alignment. */
89 #include <asm/bitops.h>
90 #include <asm/io.h>
91 #include <asm/irq.h>
92 #include <asm/uaccess.h>
94 // The type definition has to be placed before including rt2460.h
95 #ifndef ULONG
96 #define CHAR char
97 #define INT int
98 #define SHORT int
99 #define UINT u32
100 #define ULONG u32
101 #define USHORT u16
102 #define UCHAR u8
104 #define BOOLEAN u8
105 //#define LARGE_INTEGER s64
106 #define VOID void
107 #define LONG int
108 #define ULONGLONG u64
109 typedef VOID *PVOID;
110 typedef CHAR *PCHAR;
111 typedef UCHAR *PUCHAR;
112 typedef LONG *PLONG;
113 typedef ULONG *PULONG;
115 typedef union _LARGE_INTEGER {
116 #if 1 // mask by Victor Yu. 05-23-2006
117 struct {
118 ULONG LowPart;
119 LONG HighPart;
120 }vv;
121 #else
122 struct {
123 ULONG LowPart;
124 LONG HighPart;
125 } u;
126 #endif
127 s64 QuadPart;
128 } LARGE_INTEGER;
130 #endif
132 #define IN
133 #define OUT
135 #define TRUE 1
136 #define FALSE 0
138 #define ETH_LENGTH_OF_ADDRESS 6
140 #define NDIS_STATUS INT
141 #define NDIS_STATUS_SUCCESS 0x00
142 #define NDIS_STATUS_FAILURE 0x01
143 #define NDIS_STATUS_RESOURCES 0x03
144 #define NDIS_STATUS_MEDIA_DISCONNECT 0x04
145 #define NDIS_STATUS_MEDIA_CONNECT 0x05
147 #include "rtmp_type.h"
148 #include "rtmp_def.h"
149 #include "rt2560.h"
150 #include "rtmp.h"
151 #include "mlme.h"
152 #include "oid.h"
153 #include "wpa.h"
154 #include "md5.h"
156 #define DEBUG_TASK_DELAY 2000
158 enum rt2560_chips {
159 RT2560A = 0,
162 #if 1 //#ifdef RTMP_EMBEDDED
163 #undef GFP_KERNEL
164 #define GFP_KERNEL (GFP_DMA | GFP_ATOMIC)
165 #endif
167 #endif // __RT_CONFIG_H__