1 /*************************************************************************
3 * 4F, No. 2 Technology 5th Rd. *
4 * Science-based Industrial Park *
5 * Hsin-chu, Taiwan, R.O.C. *
7 * (c) Copyright 2002, Ralink Technology, Inc. *
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. *
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. *
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. *
24 *************************************************************************
30 Central header file to maintain all include files for all NDIS
31 miniport driver routines.
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"
47 #define DRV_MAJORVERSION 1
48 #define DRV_MINORVERSION 4
49 #define DRV_SUBVERSION 6
50 #define DRV_TESTVERSION 6
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".
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>
88 #include <asm/processor.h> /* Processor type for cache alignment. */
89 #include <asm/bitops.h>
92 #include <asm/uaccess.h>
94 // The type definition has to be placed before including rt2460.h
105 //#define LARGE_INTEGER s64
108 #define ULONGLONG u64
111 typedef UCHAR
*PUCHAR
;
113 typedef ULONG
*PULONG
;
115 typedef union _LARGE_INTEGER
{
116 #if 1 // mask by Victor Yu. 05-23-2006
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"
156 #define DEBUG_TASK_DELAY 2000
162 #if 1 //#ifdef RTMP_EMBEDDED
164 #define GFP_KERNEL (GFP_DMA | GFP_ATOMIC)
167 #endif // __RT_CONFIG_H__