2 ***************************************************************************
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 ***************************************************************************
22 Central header file to maintain all include files for all NDIS
23 miniport driver routines.
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".
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>
71 #include <asm/processor.h> /* Processor type for cache alignment. */
72 #include <asm/bitops.h>
75 #include <asm/uaccess.h>
77 // The type definition has to be placed before including rt2460.h
87 //#define LARGE_INTEGER s64
93 typedef UCHAR
*PUCHAR
;
95 typedef ULONG
*PULONG
;
97 typedef union _LARGE_INTEGER
{
98 #if 0 // mask by Victor Yu. 05-23-2006
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"
135 #define DEBUG_TASK_DELAY 2000
141 #endif // __RT_CONFIG_H__