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

📄 confignet.h

📁 cpc-1631的BSP包for VxWorks操作系统
💻 H
字号:
/* configNet.h - network configuration header */

/* Copyright 1984-1999 Wind River Systems, Inc. */

/*
modification history
--------------------
01b,12jun02,kab  SPR 74987: cplusplus protection
01a,10oct99,mtl   written from yk 750 by teamF1

*/
 
#if (defined(INCLUDE_END) && defined(INCLUDE_NETWORK))

#ifndef INCnetConfigh
#define INCnetConfigh

#ifdef __cplusplus
    extern "C" {
#endif

/* includes */

#include "vxWorks.h"
#include "end.h"

/* defines */

/* Primary network device */
#define END_LOAD_FUNC_PRI       SYS_END_LOAD_FUNC_PRI   /* sp.h */
#define END_BUFF_LOAN_PRI       SYS_END_BUFF_LOAN_PRI   /* sp.h */

/* Secondary network device */
/* secondary devices are currently unsupported in this release */

/* The END_LOAD_STRING is defined empty and created dynamicaly */

#define END_LOAD_STRING ""      /* created in sys<device>End.c */

/* define IP_MAX_UNITS to the actual number in the table. */


#ifndef IP_MAX_UNITS 
#define IP_MAX_UNITS            (NELEMENTS(endDevTbl) - 1)
#endif  /* ifndef IP_MAX_UNITS */

#undef IP_MAX_UNITS

#define IP_MAX_UNITS 2

#if defined(INCLUDE_PRIMARY_END)
IMPORT END_OBJ * END_LOAD_FUNC_PRI (char *, void*);
#endif

/*RealTek RTL81x9*/
#ifdef INCLUDE_RTL_81X9_END
 
/*
 * load string format
 * <devMemAddr>:<devIoAddr>:<pciMemBase:<vecnum>:<intLvl>:<memAdrs>:
 * <memSize>:<memWidth>:<csr3b>:<offset>:<flags>
 */
 
#define RTL_81X9_BUFF_LOAN_0      1
#define RTL_81X9_LOAD_FUNC        sysRtl81x9EndLoad
#define RTL_81X9_LOAD_STR_0       endLoadStr[0] /* First entry loc */
#define RTL_81X9_LOAD_COUNT       4

IMPORT END_OBJ * RTL_81X9_LOAD_FUNC (char *, void *);

char endLoadStr [RTL_81X9_LOAD_COUNT] [END_DESC_MAX]; 
  
#endif /* INCLUDE_RTL_81X9_END */

/* each entry will be processed by muxDevLoad() */

END_TBL_ENTRY endDevTbl [] =
    {
#if defined(INCLUDE_PRIMARY_END)
    {0, END_LOAD_FUNC_PRI, END_LOAD_STRING, END_BUFF_LOAN_PRI, NULL,FALSE},
#endif

#ifdef INCLUDE_RTL_81X9_END
#ifdef BOOTROM
    {0, RTL_81X9_LOAD_FUNC, RTL_81X9_LOAD_STR_0, TRUE, NULL, FALSE},
#else
    {0, RTL_81X9_LOAD_FUNC, RTL_81X9_LOAD_STR_0, TRUE, NULL, FALSE},
    {1, RTL_81X9_LOAD_FUNC, RTL_81X9_LOAD_STR_0, TRUE, NULL, FALSE},
#endif /*BOOTROM*/
#endif /* INCLUDE_RTL_81X9_END */

    {0, END_TBL_END, NULL, 0, NULL,FALSE}, 	/* must be last */
    };
#endif /* INCnetConfigh */

#ifdef __cplusplus
    }
#endif

#endif /* (defined (INCLUDE_END) && defined (INCLUDE_NETWORK)) */

⌨️ 快捷键说明

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