gtdrvevents.h

来自「MarVel交换机的开发包。用于开发可网管的交换机软年。」· C头文件 代码 · 共 88 行

H
88
字号
#include <Copyright.h>

/********************************************************************************
* gtDrvEvents.h
*
* DESCRIPTION:
*       This file includes function declarations for QuarterDeck interrupts
*       configuration and handling.
*
* DEPENDENCIES:
*       None.
*
* FILE REVISION NUMBER:
*       $Revision: 1 $
*
*******************************************************************************/

#ifndef __gtDrvEventsh
#define __gtDrvEventsh

#include <msApi.h>

#ifdef __cplusplus
extern "C" {
#endif

/*******************************************************************************
* drvEventInit
*
* DESCRIPTION:
*       This function initializes the driver's interrupt handling mechanism.
*
* INPUTS:
*       intVecNum   - The interrupt vector the switch is connected to.
*       isrFunc     - A pointer to the Interrupt Service Routine to be
*                     connected to the given interrupt vector.
*
* OUTPUTS:
*       None.
*
* RETURNS:
*       GT_OK   - on success,
*       GT_FAIL - otherwise.
*
* COMMENTS:
*       None.
*
*******************************************************************************/
GT_STATUS drvEventsInit
(
    IN  GT_QD_DEV     *dev,
    IN GT_U32         intVecNum,
    IN GT_VOIDFUNCPTR isrFunc
);



/*******************************************************************************
* eventQdSr
*
* DESCRIPTION:
*       QuarterDeck interrupt service routine.
*
* INPUTS:
*       None.
*
* OUTPUTS:
*       None.
*
* RETURNS:
*       None.
*
* COMMENTS:
*       None.
*
*******************************************************************************/
GT_BOOL eventQdSr
(
	IN  GT_QD_DEV  *dev,
	OUT GT_U16*    intCause
);

#ifdef __cplusplus
}
#endif

#endif /* __gtDrvEventsh */

⌨️ 快捷键说明

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