MOXA linux-2.6.x / linux-2.6.9-uc0 from sdlinux-moxaart.tgz
[linux-2.6.9-moxart.git] / drivers / net / wireless / rtlink / Module / rt_config.h
blob27b6192fc102ba3497253044ba5432d3057e1e6e
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 struct {
117 ULONG LowPart;
118 LONG HighPart;
119 }vv;
120 struct {
121 ULONG LowPart;
122 LONG HighPart;
123 } u;
124 s64 QuadPart;
125 } LARGE_INTEGER;
127 #endif
129 #define IN
130 #define OUT
132 #define TRUE 1
133 #define FALSE 0
135 #define ETH_LENGTH_OF_ADDRESS 6
137 #define NDIS_STATUS INT
138 #define NDIS_STATUS_SUCCESS 0x00
139 #define NDIS_STATUS_FAILURE 0x01
140 #define NDIS_STATUS_RESOURCES 0x03
141 #define NDIS_STATUS_MEDIA_DISCONNECT 0x04
142 #define NDIS_STATUS_MEDIA_CONNECT 0x05
144 #include "rtmp_type.h"
145 #include "rtmp_def.h"
146 #include "rt2560.h"
147 #include "rtmp.h"
148 #include "mlme.h"
149 #include "oid.h"
150 #include "wpa.h"
151 #include "md5.h"
153 #define DEBUG_TASK_DELAY 2000
155 enum rt2560_chips {
156 RT2560A = 0,
159 #if 1 //#ifdef RTMP_EMBEDDED
160 #undef GFP_KERNEL
161 #define GFP_KERNEL (GFP_DMA | GFP_ATOMIC)
162 #endif
164 #endif // __RT_CONFIG_H__