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

📄 ei82596hkvend.c

📁 Tornado 2.0.2 source code!vxworks的源代码
💻 C
字号:
/* ei82596hkvEnd.c - Intel 82596 END driver for hkv3500 board *//* Copyright 1989-1998 Wind River Systems, Inc. */#include "copyright_wrs.h"/*modification history--------------------01c,09jun98,dat  changed API (no workaround avail)01b,14dec97,jdi  doc: added xref to ei82596End01a,18apr97,map  created*//*This module defines a specific interface to the Intel 82596 ethernetchip on an hkv3500 board.NOTICE:The API for this driver has changed.  The function sys596Init, which is definedin the BSP, must use a single argument, 'unit'.  Previous versions of this driver for R3000 only, used a different argument list.  All R3000 users mustupdate their BSP code for this new API.This module also adds 2 additional BSP routines, sys596IntConnect() andsys596IntDisconnect().  .CS    STATUS sys596IntConnect (int unit, FUNCPTR rtn, ULONG arg)    STATUS sys596IntDisconnect (int unit).CESEE ALSO: ei82596End*/#include "vxWorks.h"#define ei82596EndLoad	ei82596hkvEndLoad#define	DRV_NAME	"eihkv"#define	DRV_NAME_LEN	6		/* strlen() + 1 */IMPORT void   sys596Init (int);IMPORT STATUS sys596IntConnect (int, FUNCPTR, int);IMPORT STATUS sys596IntDisconnect (int);#ifndef	SYS_INT_CONNECT#define	SYS_INT_CONNECT(pDrvCtrl,rtn,arg,pResult)                       \    {                                                                   \    sys596Init ((pDrvCtrl)->unit);                                      \    *pResult = sys596IntConnect ((pDrvCtrl)->unit, (FUNCPTR)rtn, arg);  \    }#endif /* SYS_INT_CONNECT */#ifndef	SYS_INT_DISCONNECT#define SYS_INT_DISCONNECT(pDrvCtrl,rtn,arg,pResult)                    \    {                                                                   \    *pResult = sys596IntDisconnect ((pDrvCtrl)->unit);                  \    }#endif /* SYS_INT_DISCONNECT */#include "ei82596End.c"

⌨️ 快捷键说明

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