Back to home page

LXR

 
 

    


File indexing completed on 2025-05-11 08:23:51

0001 /**
0002  * @file
0003  *
0004  * @ingroup OR1K_IRQ
0005  *
0006  * @brief Interrupt definitions.
0007  */
0008 
0009 /**
0010  * COPYRIGHT (c) 2014-2015 Hesham ALMatary <heshamelmatary@gmail.com>
0011  *
0012  * The license and distribution terms for this file may be
0013  * found in the file LICENSE in this distribution or at
0014  * http://www.rtems.org/license/LICENSE
0015  */
0016 
0017 #ifndef LIBBSP_GENERIC_OR1K_IRQ_H
0018 #define LIBBSP_GENERIC_OR1K_IRQ_H
0019 
0020 #ifndef ASM
0021 
0022 #include <rtems.h>
0023 #include <rtems/irq.h>
0024 #include <rtems/irq-extension.h>
0025 
0026 #include <bsp/irq-default.h>
0027 
0028 /* Interrupt Identification Register */
0029 #define OR1K_BSP_UART_REG_INT_ID_MSI    (0x00)
0030 #define OR1K_BSP_UART_REG_INT_ID_NO_INT (0x01)
0031 #define OR1K_BSP_UART_REG_INT_ID_THRI   (0x02)
0032 #define OR1K_BSP_UART_REG_INT_ID_RDI    (0x04)
0033 #define OR1K_BSP_UART_REG_INT_ID_ID     (0x06)
0034 #define OR1K_BSP_UART_REG_INT_ID_RLSI   (0x06)
0035 #define OR1K_BSP_UART_REG_INT_ID_TOI    (0x0c)
0036 
0037 /* Interrupt Enable Register */
0038 #define OR1K_BSP_UART_REG_INT_ENABLE_RDI  (0x01)
0039 #define OR1K_BSP_UART_REG_INT_ENABLE_THRI (0x02)
0040 #define OR1K_BSP_UART_REG_INT_ENABLE_RLSI (0x04)
0041 #define OR1K_BSP_UART_REG_INT_ENABLE_MSI  (0x08)
0042 
0043 #endif /* ASM */
0044 #endif /* LIBBSP_GENERIC_OR1K_IRQ_H */