if_sm.h

来自「vxworks源码源码解读是学习vxworks的最佳途径」· C头文件 代码 · 共 75 行

H
75
字号
/* if_sm.h - WRS backplane driver header file *//* Copyright 1984-1992 Wind River Systems, Inc. *//*modification history--------------------01f,22sep92,rrr  added support for c++01e,16jun92,elh  clean up.  Added numLoan to smIfAttach.01d,02jun92,elh  the tree shuffle01c,27may92,elh  Incorperated the changes caused from restructuring the		 shared memory libraries.01b,10apr92,elh  added masterAddr to store master address.01a,17nov90,elh  written.*/#ifndef __INCif_smh#define __INCif_smh#ifdef __cplusplusextern "C" {#endif#include "smPktLib.h"/* defines */#define xs_if			xs_ac.ac_if	/* interface structure */#define xs_enaddr		xs_ac.ac_enaddr	/* ethernet address */#define smIfInputCount(xs, cpu) 		\	(xs)->smPktDesc.cpuLocalAdrs [(cpu)].inputList.count/* typedefs */#if ((CPU_FAMILY==I960) && (defined __GNUC__))#pragma align 1                 /* tell gcc960 not to optimize alignments */#endif  /* CPU_FAMILY==I960 */typedef struct sm_softc    {    struct arpcom	xs_ac;			/* common ethernet structure*/    SM_PKT_DESC		smPktDesc;		/* shared mem packet desc */    int			taskRecvActive;		/* recv task active */    u_long		masterAddr;		/* master address */    int			bufFree;		/* buffer loaning info */    } SM_SOFTC;#if ((CPU_FAMILY==I960) && (defined __GNUC__))#pragma align 0                 /* turn off alignment requirement */#endif  /* CPU_FAMILY==I960 *//* function prototypes */#if defined(__STDC__) || defined(__cplusplus)extern STATUS smIfAttach (int unit, SM_ANCHOR * pAnchor, int maxInputPkts,			  int intType, int intArg1, int intArg2, int intArg3,			  int ticksPerBeat, int numLoan);extern void smIfInput (SM_SOFTC * xs);extern void smIfLoanReturn (SM_SOFTC * xs, SM_PKT * pPkt);#elseextern STATUS 		smIfAttach ();extern void		smIfInput ();extern void		smIfLoanReturn ();#endif	/* __STDC__ */#ifdef __cplusplus}#endif#endif /* __INCif_smh */

⌨️ 快捷键说明

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