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

📄 ge_init.h

📁 程序是一个vxworks下对PMC公司3386千兆MAC芯片的驱动和配置
💻 H
字号:
/**-**-**-**-**-**-**-**-**-**-**-**-**-**-**-**-**-**-**-**-**-**-**-**-**-**-
*	GE_Init.h - Ethernet 1000M code. . 
*
*	Copyright 2001-12 by GDT, Inc
*
*	modification history
*	--------------------
*       2001-12-14,yxy created.
*
*/

#ifndef GE_INIT_H
#define GE_INIT_H

#include <vxWorks.h>
#include "GE_Global.h"

/*function */
extern  STATUS	GE_Init();
extern  STATUS  GE_InitStart ();
extern  STATUS 	GE_ConfigLoad(unsigned char* pBuf);
extern  STATUS 	GE_InitHardware();
extern  STATUS  GE_InitPM3386();
extern  STATUS 	GE_InitInfpga();
extern  STATUS  GE_InitOutfpga();
extern  void 	GE_Cmd_to_down();
extern  void 	GE_Cmd_to_up();
extern  void 	GE_FpgaInit();

typedef struct
{	
	unsigned int  	type;      	/* 数据类型 */
	unsigned int  	len;       	/*  数据长度 */ 
	
	unsigned char 	exPort;
	unsigned char 	initType;
	unsigned char 	boardNum;  	/* 板号 */
	unsigned char 	boardType; 	/* 板类型 */
	unsigned char 	macAdd[MAC_ADD_SIZ];  /* 860以太网口MAC地址 */
	unsigned char 	pad2[2];              /* 数据域填充 */
	unsigned int	selfTestResult; /*自测结果*/
	unsigned char	lnPortNum;	/*线路接口个数*/
	unsigned char	macAddr[2*MAC_ADD_SIZ];  /*MAC地址*/
}GE_BOARDINFO_STRUCRURE;

typedef struct
{
	unsigned char	unit;
	unsigned char	adminStatus; /* enable/disable */
	unsigned short	mtu;         /*MTU */

	unsigned int    ipAddr;	     /* IP address*/
	unsigned int	ipMask;      /*IP mask */
	unsigned short	statFreq;    /* statistics report frequency */
	unsigned short	arpFreq;     /*ARP refresh frequency */

}GE_CONFIGLOAD_STRUCTURE;	

#endif   /*GE_INIT_H*/	

/* end of GE_Init.h */

⌨️ 快捷键说明

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