/**  To Unregister the ISRs with the underlying OS, if previously registered. */
void unregisterEdma3Interrupts (unsigned int edma3Id)
    {
    static UInt32 cookie = 0;
    Int eventId = 0;	/* GEM event id */

    /* Disabling the global interrupts */
    cookie = Hwi_disable();

	/* Transfer completion ISR */
	CpIntc_disableHostInt(0, ccXferHostInt[edma3Id][dsp_num]);
    eventId = CpIntc_getEventId(ccXferHostInt[edma3Id][dsp_num]);
	EventCombiner_disableEvent(eventId);

	/* CC/TC Error ISR */
	CpIntc_disableHostInt(0, edma3ErrHostInt[edma3Id][dsp_num]);
    eventId = CpIntc_getEventId(edma3ErrHostInt[edma3Id][dsp_num]);
	EventCombiner_disableEvent(eventId);

    /* Restore interrupts */
    Hwi_restore(cookie);
    }
BOOL Intr_DisableEvent(Intr *pThis)
{
	//CSL_Status          intStat;

	//If CIC Event is provided in the Interrupt table
	if(pThis->oIntrTableParam.bCicRequired == TRUE)
	{

		CpIntc_disableHostInt(0, pThis->oIntrTableParam.HostInt);//newly added for new Chip

		CpIntc_disableSysInt(0,  pThis->oIntrTableParam.SysInt);//newly added for new Chip
		//intStat = CSL_cicHwControl(pThis->CicHandle, CSL_CIC_CMD_EVTDISABLE, NULL); //disabled for new Chip
    	//if(intStat != CSL_SOK)
		//{
		//	#ifdef _STE_APP
    	//	LOG_TRACE0( "INTR : CIC HwControl to disable event ... Failed.\n");
		//	#endif
		//	return FALSE;
		//}
	}
	
	#ifdef _STE_APP
	//Disable the Vector interrupt
	//C64_disableIER(1 << pThis->oIntrTableParam.eIntcVectorId );// DSP BIOS API

	Hwi_disableInterrupt(pThis->oIntrTableParam.eIntcVectorId);// SYS BIOS API
	#endif
	#ifdef _STE_BOOT
	intStat = CSL_intcHwControl(pThis->oIntcHandle, CSL_INTC_CMD_EVTDISABLE, NULL);
    if(intStat != CSL_SOK)
	{
    	#ifdef DEBUG
    	printf("INTR: HwControl to disable event ... Failed.\n");
		#endif
	}
	#endif

	return TRUE;
}