MOXA linux-2.6.x / linux-2.6.9-uc0 from sdlinux-moxaart.tgz
[linux-2.6.9-moxart.git] / drivers / net / wireless / rtlink.org / rt_config.h
blobc88787999b5d2e312ebe56b91b55f820cabb6e5b
1 /*
2 ***************************************************************************
3 * Ralink Tech Inc.
4 * 4F, No. 2 Technology 5th Rd.
5 * Science-based Industrial Park
6 * Hsin-chu, Taiwan, R.O.C.
8 * (c) Copyright 2002, Ralink Technology, Inc.
10 * All rights reserved. Ralink's source code is an unpublished work and the
11 * use of a copyright notice does not imply otherwise. This source code
12 * contains confidential trade secret material of Ralink Tech. Any attemp
13 * or participation in deciphering, decoding, reverse engineering or in any
14 * way altering the source code is stricitly prohibited, unless the prior
15 * written consent of Ralink Technology, Inc. is obtained.
16 ***************************************************************************
18 Module Name:
19 rt_config.h
21 Abstract:
22 Central header file to maintain all include files for all NDIS
23 miniport driver routines.
25 Revision History:
26 Who When What
27 -------- ---------- ----------------------------------------------
28 Rory Chen 12-21-2002 created
32 #ifndef __RT_CONFIG_H__
33 #define __RT_CONFIG_H__
35 #define PROFILE_PATH "/etc/Wireless/RT2500STA/RT2500STA.dat"
36 #define NIC_DEVICE_NAME "RT2500STA"
38 /* Operational parameters that are set at compile time. */
39 #if !defined(__OPTIMIZE__) || !defined(__KERNEL__)
40 #warning You must compile this file with the correct options!
41 #warning See the last lines of the source file.
42 #error You must compile this driver with "-O".
43 #endif
45 #include <linux/config.h>
46 #include <linux/module.h>
47 #include <linux/version.h>
48 #include <linux/kernel.h>
49 #include <linux/string.h>
50 #include <linux/timer.h>
51 #include <linux/errno.h>
52 #include <linux/ioport.h>
53 #include <linux/slab.h>
54 #include <linux/interrupt.h>
55 #include <linux/pci.h>
56 #include <linux/netdevice.h>
57 #include <linux/etherdevice.h>
58 #include <linux/skbuff.h>
59 #include <linux/init.h>
60 #include <linux/delay.h>
61 #include <linux/ethtool.h>
62 #include <linux/wireless.h>
63 #include <linux/proc_fs.h>
64 #include <linux/delay.h>
65 #include <linux/if_arp.h>
66 #include <linux/ctype.h>
68 #if LINUX_VERSION_CODE >= 0x20407
69 #include <linux/mii.h>
70 #endif
71 #include <asm/processor.h> /* Processor type for cache alignment. */
72 #include <asm/bitops.h>
73 #include <asm/io.h>
74 #include <asm/irq.h>
75 #include <asm/uaccess.h>
77 // The type definition has to be placed before including rt2460.h
78 #ifndef ULONG
79 #define CHAR char
80 #define INT int
81 #define UINT u32
82 #define ULONG u32
83 #define USHORT u16
84 #define UCHAR u8
86 #define BOOLEAN u8
87 //#define LARGE_INTEGER s64
88 #define VOID void
89 #define LONG int
90 #define ULONGLONG u64
91 typedef VOID *PVOID;
92 typedef CHAR *PCHAR;
93 typedef UCHAR *PUCHAR;
94 typedef LONG *PLONG;
95 typedef ULONG *PULONG;
97 typedef union _LARGE_INTEGER {
98 #if 0 // mask by Victor Yu. 05-23-2006
99 struct {
100 ULONG LowPart;
101 LONG HighPart;
102 }vv;
103 #endif
104 struct {
105 ULONG LowPart;
106 LONG HighPart;
107 } u;
108 s64 QuadPart;
109 } LARGE_INTEGER;
111 #endif
113 #define IN
114 #define OUT
115 #define TRUE 1
116 #define FALSE 0
118 #define ETH_LENGTH_OF_ADDRESS 6
119 #define NDIS_STATUS INT
120 #define NDIS_STATUS_SUCCESS 0x00
121 #define NDIS_STATUS_FAILURE 0x01
122 #define NDIS_STATUS_RESOURCES 0x03
123 #define NDIS_STATUS_MEDIA_DISCONNECT 0x04
124 #define NDIS_STATUS_MEDIA_CONNECT 0x05
126 #include "rtmp_type.h"
127 #include "rtmp_def.h"
128 #include "rt2560.h"
129 #include "rtmp.h"
130 #include "mlme.h"
131 #include "oid.h"
132 #include "wpa.h"
133 #include "md5.h"
135 #define DEBUG_TASK_DELAY 2000
137 enum rt2560_chips {
138 RT2560A = 0,
141 #endif // __RT_CONFIG_H__