⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 stoe_cfg.h

📁 台湾亚信电子ASIX11015以太网驱动.AX系列单片机带TCP/IP协议栈,和适合网络应用.希望和大家一起探讨
💻 H
字号:
/*
 ******************************************************************************
 *     Copyright (c) 2006	ASIX Electronic Corporation      All rights reserved.
 *
 *     This is unpublished proprietary source code of ASIX Electronic Corporation
 *
 *     The copyright notice above does not evidence any actual or intended
 *     publication of such source code.
 ******************************************************************************
 */
/*=============================================================================
 * Module Name: stoe_cfg.h
 * Purpose: 
 * Author:
 * Date:
 * Notes:
 * $Log: stoe_cfg.h,v $
 * Revision 1.1.1.1  2006/02/23 00:55:10  borbin
 * no message
 *
 *=============================================================================
 */

#ifndef __STOE_CFG_H__
#define __STOE_CFG_H__


/* INCLUDE FILE DECLARATIONS */


/* for STOE module */
/* BDP --------------------------------------------------------*/
#define PAGES_OF_XMIT				16	/* pages, 4k */
#define PAGES_OF_RCV				32	/* pages, 8k */

/*-------------------------------------------------------------*/
#define STOE_ARP_TIMEOUT			16	/* hardware arp table timeout is 128 sec. */

/*-------------------------------------------------------------*/
/* NAMING CONSTANT DECLARATIONS */
#define STOE_NON_TRANSPARENT_MODE	0	/* non-transparent mode, hardware remove
											ethernet header and entire ARP packets
											and not being passed up to SW. */
#define STOE_TRANSPARENT_MODE		1	/* transparent mode, hardware allows entire
											frame and ARP packets to be	passed up
											to SW. */
#define STOE_TRANSPARENT		(STOE_NON_TRANSPARENT_MODE)

/*-------------------------------------------------------------*/
/* NAMING CONSTANT DECLARATIONS */
#define STOE_HW_CHECKSUN_DISABLE	0	/*	0: disable stoe checksum offload engine */
#define STOE_HW_CHECKSUN_ENABLE		1	/*	1: enable stoe checksum offload engine. */

#define STOE_CHECKSUM_OFFLOAD	(STOE_HW_CHECKSUN_ENABLE)

/*-------------------------------------------------------------*/
/* NAMING CONSTANT DECLARATIONS */
#define STOE_INTERRUPT_MODE			0	/* driver get stoe-interrupt-status from
											interrupt routine, and this routine will
											set flag when interrupt had be trigged.
											The main function must read the flag to
											decide what events had happened.*/
#define STOE_POLLING_MODE			1	/* deiver get stoe-interrupt-status from
											polling	routine, The main function must
											call function to read STOE register 0x30
											to decide what events had happened.*/

#define STOE_GET_INTSTATUS_MODE	(STOE_POLLING_MODE)

/*-------------------------------------------------------------*/
/* for MAC module */
/* NAMING CONSTANT DECLARATIONS */
#define MAC_INTERRUPT_MODE			0	/* driver get mac-interrupt-status from
											interrupt routine, and this routine will
											set flag when interrupt had be trigged.
											The main function must read the flag to
											decide what events had happened.*/
#define MAC_POLLING_MODE			1	/* deiver get mac-interrupt-status from
											polling	routine, The main function must
											call function to read MAC register 0x28
											to decide what events had happened.*/

#define MAC_GET_INTSTATUS_MODE	(MAC_INTERRUPT_MODE)

/*-------------------------------------------------------------*/
/* NAMING CONSTANT DECLARATIONS */
#define MAC_NOT_SUPPORT				0
#define MAC_SUPPORT					1

#define MAC_REMOTE_WAKEUP		(MAC_NOT_SUPPORT)

/*-------------------------------------------------------------*/
#define MAC_MULTICAST_FILTER	(MAC_NOT_SUPPORT)

/*-------------------------------------------------------------*/

#endif	/* End of __STOE_CFG_H__ */


/* End of stoe_cfg.h */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -