www.pudn.com > DM9000.rar > config.h


/****************************************Copyright (c)**************************************************
**                               Guangzou ZLG-MCU Development Co.,LTD.
**                                      graduate school
**                                 http://www.zlgmcu.com
**
**--------------File Info-------------------------------------------------------------------------------
** File Name: config.h
** Last modified Date:  2004-09-17
** Last Version: 1.0
** Descriptions: User Configurable File
**
**------------------------------------------------------------------------------------------------------
** Created By: Chenmingji
** Created date:   2004-09-17
** Version: 1.0
** Descriptions: First version
**
**------------------------------------------------------------------------------------------------------
** Modified by:
** Modified date:
** Version:
** Descriptions:
**
********************************************************************************************************/
#ifndef __CONFIG_H
#define __CONFIG_H

//This segment should not be modified
#ifndef TRUE
#define TRUE  1
#endif

#ifndef FALSE
#define FALSE 0
#endif

#ifndef __KERNEL__
    #define __KERNEL__
#endif
#ifndef MODULE
    #define MODULE
#endif

#include 
#include 

#include        /* printk() */
//#include        /* kmalloc() */
#include          /* kmalloc() */
#include            /* everything... */
#include         /* error codes */
#include 
#include         /* O_ACCMODE */


#include          /* cli(), *_flags */
#include 
#include 
#include    /* struct device, and other headers */
#include  /* eth_type_trans */

//#include 
//#include           /* struct iphdr */
//#include          /* struct tcphdr */

typedef u8      uint8;          /* defined for unsigned 8-bits integer variable 	 无符号8位整型变量  */
typedef s8      int8;           /* defined for signed 8-bits integer variable		 有符号8位整型变量  */
typedef u16     uint16;         /* defined for unsigned 16-bits integer variable 	 无符号16位整型变量 */
typedef s16     int16;          /* defined for signed 16-bits integer variable 		 有符号16位整型变量 */
typedef u32     uint32;         /* defined for unsigned 32-bits integer variable 	 无符号32位整型变量 */
typedef s32     int32;          /* defined for signed 32-bits integer variable 		 有符号32位整型变量 */
typedef float   fp32;           /* single precision floating point variable (32bits) 单精度浮点数(32位长度) */
typedef double  fp64;           /* double precision floating point variable (64bits) 双精度浮点数(64位长度) */

/********************************/
/*Application Program Configurations*/
/*     应用程序配置             */
/********************************/
//This segment could be modified as needed.
//以下根据需要改动

#include 
#include 
#include 
#include 
#include 


#define IOaddress0		0x83000000

#define NET_RST0   		0X00000100//0X00000400


#define NET_TIMEOUT     10000       /* In jiffies */
#define NET_IRQ         IRQ_EXT3

#define	BUS_DELAY		200

#ifdef IN_DM9000
char MyMacID[] = {0x52, 0x54, 0x4c, 0x33, 0xf7, 0x42, 0x00};
#endif

#endif
/*********************************************************************************************************
**                            End Of File
********************************************************************************************************/