/** * * This function disables the interrupts * * @param ReadIntrId is interrupt ID associated w/ DMA read channel * @param WriteIntrId is interrupt ID associated w/ DMA write channel * * @return None. * * @note None. * ******************************************************************************/ static void DisableIntrSystem(u16 ReadIntrId, u16 WriteIntrId) { /* Disconnect the interrupts for the DMA TX and RX channels */ XIntc_Disconnect(&Intc, ReadIntrId); XIntc_Disconnect(&Intc, WriteIntrId); }
/** * * This function disables the interrupts * * @param ReadIntrId is interrupt ID associated w/ DMA read channel * @param WriteIntrId is interrupt ID associated w/ DMA write channel * * @return None. * * @note None. * ******************************************************************************/ static void DisableIntrSystem(u16 ReadIntrId, u16 WriteIntrId) { xil_printf("\r\nDisabling interrupts..."); XIntc *IntcInstancePtr = &Intc; /* Disconnect the interrupts for the DMA TX and RX channels */ XIntc_Disconnect(IntcInstancePtr, ReadIntrId); XIntc_Disconnect(IntcInstancePtr, WriteIntrId); xil_printf("done"); }
/** * * This function disables the interrupts for DMA engine. * * @param IntcInstancePtr is the pointer to the INTC component instance * @param TxIntrId is interrupt ID associated w/ DMA TX channel * @param RxIntrId is interrupt ID associated w/ DMA RX channel * * @return None. * * @note None. * ******************************************************************************/ static void DisableIntrSystem(INTC * IntcInstancePtr, u16 TxIntrId, u16 RxIntrId) { #ifdef XPAR_INTC_0_DEVICE_ID /* Disconnect the interrupts for the DMA TX and RX channels */ XIntc_Disconnect(IntcInstancePtr, TxIntrId); XIntc_Disconnect(IntcInstancePtr, RxIntrId); #else XScuGic_Disconnect(IntcInstancePtr, TxIntrId); XScuGic_Disconnect(IntcInstancePtr, RxIntrId); #endif }
/** * * This function disables the interrupts for Traffic Generator. * * @param IntcInstancePtr is the pointer to the INTC component instance * @param CmpIntrId is interrupt ID associated w/ Master logic * compleetion * @param ErrIntrId is interrupt ID associated w/ Master or Slave * errors. * * @return None * * @note None * ******************************************************************************/ static void DisableIntrSystem(INTC * IntcInstancePtr, u16 CmpIntrId, u16 ErrIntrId) { #ifdef XPAR_INTC_0_DEVICE_ID /* Disconnect the interrupts for the Master complete and error */ XIntc_Disconnect(IntcInstancePtr, CmpIntrId); XIntc_Disconnect(IntcInstancePtr, ErrIntrId); #else XScuGic_Disconnect(IntcInstancePtr, CmpIntrId); XScuGic_Disconnect(IntcInstancePtr, ErrIntrId); #endif }
/** * * This function disables the interrupts that occur for Temac. * * @param IntcInstancePtr is the pointer to the instance of the Intc * component. * @param TemacIntrId is interrupt ID and is typically * XPAR_<INTC_instance>_<TEMAC_instance>_IP2INTC_IRPT_INTR * value from xparameters.h. * * @return None. * * @note None. * ******************************************************************************/ static void TemacDisableIntrSystem(XIntc *IntcInstancePtr, u16 TemacIntrId, u16 DmaRxIntrId, u16 DmaTxIntrId) { /* Disconnect the interrupts for the DMA TX and RX channels */ XIntc_Disconnect(IntcInstancePtr, DmaTxIntrId); XIntc_Disconnect(IntcInstancePtr, DmaRxIntrId); /* * Disconnect and disable the interrupt for the Temac device */ XIntc_Disconnect(IntcInstancePtr, TemacIntrId); }
static void DisableIntrSystem(XIntc *IntcInstancePtr, u32 IntrId) { /* Disconnect the interrupt */ XIntc_Disconnect(IntcInstancePtr, IntrId); }
/** * * This function disables the interrupts that occur for the Spi device. * * @param IntcInstancePtr is the pointer to the instance of the INTC * component. * @param SpiIntrId is the interrupt Id and is typically * XPAR_<INTC_instance>_<SPI_instance>_VEC_ID value from * xparameters.h * * @return None * * @note None * ******************************************************************************/ static void SpiDisableIntrSystem(XIntc *IntcInstancePtr, u16 SpiIntrId) { /* * Disconnect and disable the interrupt for the Spi device. */ XIntc_Disconnect(IntcInstancePtr, SpiIntrId); }
/** * * This function disables the interrupts that occur for the UartNs550 device. * * @param IntcInstancePtr is the pointer to the instance of the Interrupt * Controller. * @param UartIntrId is the interrupt Id and is typically * XPAR_<INTC_instance>_<UARTNS550_instance>_VEC_ID * value from xparameters.h. * * @return None. * * @note None. * ******************************************************************************/ static void UartNs550DisableIntrSystem(XIntc *IntcInstancePtr, u16 UartIntrId) { /* * Disconnect and disable the interrupt for the UartNs550 device. */ XIntc_Disconnect(IntcInstancePtr, UartIntrId); }
/** * * This function disables the interrupts that occur for the EmacLite device. * * @param IntcInstancePtr is the pointer to the instance of the INTC * component. * @param EmacLiteIntrId is the interrupt ID and is typically * XPAR_<INTC_instance>_<EMACLITE_instance>_VEC_ID * value from xparameters.h. * * @return None. * * @note None. * ******************************************************************************/ static void EmacLiteDisableIntrSystem(XIntc *IntcInstancePtr, u16 EmacLiteIntrId) { /* * Disconnect and disable the interrupts for the EmacLite device. */ XIntc_Disconnect(IntcInstancePtr, EmacLiteIntrId); }
/** * * This function disables the interrupts for the AXI FIFO device. * * @param IntcInstancePtr is the pointer to the INTC component instance * @param FifoIntrId is interrupt ID associated for the FIFO component * * @return None * * @note None * ******************************************************************************/ static void DisableIntrSystem(INTC *IntcInstancePtr, u16 FifoIntrId) { #ifdef XPAR_INTC_0_DEVICE_ID /* Disconnect the interrupts */ XIntc_Disconnect(IntcInstancePtr, FifoIntrId); #else XScuGic_Disconnect(IntcInstancePtr, FifoIntrId); #endif }
//----------------------------------------------------------------------------------------------------// // @func - sys_unregister_int_handler //! @desc //! Unregister a handler with the interrupt controller for the specified interrupt //! @param //! - intr_id is the zero based ID of the interrupt //! @return //! - Nothing //! @note //! - None //----------------------------------------------------------------------------------------------------// void sys_unregister_int_handler (int_id_t intr_id) { #ifdef MB_XILKERNEL // Disallow playing with timer interrupt if (intr_id == SYSTMR_INTR_ID ) return; #endif XIntc_Disconnect (&sys_intc, intr_id); }
/** * * This function disables the interrupts that occur for the EmacLite device. * * @param IntcInstancePtr is the pointer to the instance of the INTC * component. * @param EmacLiteIntrId is the interrupt ID and is typically * XPAR_<INTC_instance>_<EMACLITE_instance>_VEC_ID * value from xparameters.h. * * @return None. * * @note None. * ******************************************************************************/ static void EmacLiteDisableIntrSystem(INTC *IntcInstancePtr, u16 EmacLiteIntrId) { /* * Disconnect and disable the interrupts for the EmacLite device. */ #ifdef XPAR_INTC_0_DEVICE_ID XIntc_Disconnect(IntcInstancePtr, EmacLiteIntrId); #else XScuGic_Disable(IntcInstancePtr, EmacLiteIntrId); XScuGic_Disconnect(IntcInstancePtr, EmacLiteIntrId); #endif }