/******************************************************************************* * drvEventsInit * * 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 ) { GT_UNUSED_PARAM(dev); GT_UNUSED_PARAM(intVecNum); GT_UNUSED_PARAM(isrFunc); #if 0 return osInterruptConnect(intVecNum,isrFunc,0); #endif return GT_OK; }
/******************************************************************************* * driverEnable * * DESCRIPTION: * This function enables the switch for full operation, after the driver * Config function was called. * * INPUTS: * None. * * OUTPUTS: * None. * * RETURNS: * GT_OK on success, * GT_FAIL othrwise. * * COMMENTS: * None. * *******************************************************************************/ GT_STATUS driverEnable ( IN GT_QD_DEV *dev ) { GT_UNUSED_PARAM(dev); return GT_OK; }
GT_BOOL defaultMiiWrite (unsigned int portNumber , unsigned int miiReg, unsigned int value) { GT_UNUSED_PARAM(miiReg); if (portNumber > GLOBAL_REGS_START_ADDR) portNumber -= GLOBAL_REGS_START_ADDR; if (portNumber > GLOBAL_REGS_START_ADDR) return GT_FALSE; value = value; return GT_TRUE; }
/* DbgPrint(dbgStr);*/ #elif defined(LINUX) printk("%s",dbgStr); #endif return; } #else void gtDbgPrint(char* format, ...) { GT_UNUSED_PARAM(format); } #endif #else /* DEBUG_QD not defined */ void gtDbgPrint(char* format, ...) { GT_UNUSED_PARAM(format); }