www.pudn.com > vXworksBSPfors3c44b0.rar > configNet.h


/* configNet.h - network configuration header */ 
 
 
/* Copyright 1984-2001 Wind River Systems, Inc. */ 
#include "copyright_wrs.h" 
 
/* 
modification history 
-------------------- 
01o,23jul04,a_m  BSP定制 for 多刃剑开发板 
01c,16jul02,m_h  C++ protection 
01b,26apr01,m_h  convert tabs to spaces for readability 
01a,12apr01,m_h  created from snds100 template. 
*/ 
 
#ifndef INCnetConfigh 
#define INCnetConfigh 
 
#ifdef __cplusplus 
extern "C" { 
#endif 
 
#include "vxWorks.h" 
#include "end.h" 
 
#define SBCARM7_LOAD_FUNC_0    sngks32cEndLoad 
#define SBCARM7_LOAN           1 
#define SBCARM7_LOAD_FUNC_1    sngks32cHdlcEndLoad 
#define SBCARM7_LOAD_FUNC_2    sngks32cHdlcEndLoad 
 
/* 
 * The initialization string format for Ethernet (unit = 0) is: 
 * 
 *  "::" 
 * Speed can be 10 or 100.  For duplex mode, 1 is for FDX and 0 for HDX 
 * If autoneg is 1, autonegotiation is enabled, and speed and duplex mode are ignored 
 * 
 * The initialization string format for HDLC (unit = 1, 2) is: 
 * 
 *  "::" 
 * Channel A = 0, Channel B = 1; NRZ = 0, NRZI = 1, FM0 = 2, FM1 = 3, and Manchester = 4 
 */ 
 
#define SBCARM7_LOAD_STRING_0 "100:1:1"  
#define SBCARM7_LOAD_STRING_1 "0:38400:0" 
#define SBCARM7_LOAD_STRING_2 "1:38400:0" 
 
 
#define BSP_SBCARM7    NULL  
 
IMPORT END_OBJ * SBCARM7_LOAD_FUNC_0 (char *, void *); 
IMPORT END_OBJ * SBCARM7_LOAD_FUNC_1 (char *, void *); 
IMPORT END_OBJ * SBCARM7_LOAD_FUNC_2 (char *, void *); 
/*  : added */ 
IMPORT END_OBJ * ne2000EndLoad (char *, void *); 
 
END_TBL_ENTRY endDevTbl [] = 
{ 
/*  : added */ 
/* :  ::::: */ 
/* "0x060A0000:INT_VEC_EXTINT1:INT_LVL_EXTINT1:0:0:0" */ 
/* Note: 由muxDevLoad添加,数值都采用16进制表示,宏定义使用有问题 */ 
#ifdef INCLUDE_NE2000_END 
    { 0, ne2000EndLoad, "0x06000000:0x17:0x17:1:0:2", 1 , NULL, FALSE}, 
#endif /* INCLUDE_NE2000_END */ 
 
#ifdef INCLUDE_SNGKS32C_END 
    { 0, SBCARM7_LOAD_FUNC_0, SBCARM7_LOAD_STRING_0, SBCARM7_LOAN , NULL, FALSE}, 
#endif /* INCLUDE_SNGKS32C_END */ 
#ifdef INCLUDE_SNGKS32C_HDLC_END 
    { 1, SBCARM7_LOAD_FUNC_1, SBCARM7_LOAD_STRING_1, SBCARM7_LOAN , NULL, FALSE}, 
    { 2, SBCARM7_LOAD_FUNC_2, SBCARM7_LOAD_STRING_2, SBCARM7_LOAN , NULL, FALSE}, 
#endif /* INCLUDE_SNGKS32C_HDLC_END */ 
    { 0, END_TBL_END, NULL, 0, NULL, FALSE}, 
};      
 
#ifdef __cplusplus 
} 
#endif 
 
#endif /* INCnetConfigh */