sysnet.h

来自「Freescale mpc827x 系列CPU的VxWorks平台的BSP源代码」· C头文件 代码 · 共 52 行

H
52
字号
/* sysNet.h - system-dependent Network Header File *//* Copyright 1984-2004 Wind River Systems, Inc. *//*modification history--------------------01c,19jul04,rec  unit test changes                 add sysMacIndex2Dev sysMacIndex2Unit needed by bootConfig.c01b,12jun02,kab  SPR 74987: cplusplus protection01a,13jun01,g_h	 adopted from T2 wrSbc8260/sysNet.h*/#ifndef  __INCsysNeth#define  __INCsysNeth #ifdef __cplusplus    extern "C" {#endif#include "vxWorks.h"#include "config.h"#define MAX_MAC_DEVS 2 /* two network devices (fcc, scc) */extern const char *sysNetDevName[MAX_MAC_DEVS];/* Prototypes */#define ENET_DEFAULT         0x1EA00000 /* WR fixed MAC addr; see WR_ENETx */int sysMacIndex2Dev (int index);int sysMacIndex2Unit (int index);STATUS sysMacOffsetGet (char *ifName, int ifUnit, char **ppEnet,                               int *	pOffset);			      STATUS sysNetMacNVRamAddrGet (char *ifName, int ifUnit, UINT8 *ifMacAddr,                               int ifMacAddrLen);STATUS sysNetMacAddrGet (char *ifName, int ifUnit, UINT8 *ifMacAddr,                               int ifMacAddrLen);STATUS sysNetMacAddrSet (char *ifName, int ifUnit, UINT8 *ifMacAddr,                               int ifMacAddrLen);#ifdef __cplusplus    }#endif#endif   /* __INCsysNeth  */

⌨️ 快捷键说明

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