RTEMS 5.2
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
irq.h
Go to the documentation of this file.
1
17#ifndef LIBBSP_GENERIC_OR1K_IRQ_H
18#define LIBBSP_GENERIC_OR1K_IRQ_H
19
20#ifndef ASM
21
22#include <rtems.h>
23#include <rtems/irq.h>
24#include <rtems/irq-extension.h>
25
26#define BSP_INTERRUPT_VECTOR_MIN 0x100
27#define BSP_INTERRUPT_VECTOR_MAX 0x1F00
28
29/* Interrupt Identification Register */
30#define OR1K_BSP_UART_REG_INT_ID_MSI (0x00)
31#define OR1K_BSP_UART_REG_INT_ID_NO_INT (0x01)
32#define OR1K_BSP_UART_REG_INT_ID_THRI (0x02)
33#define OR1K_BSP_UART_REG_INT_ID_RDI (0x04)
34#define OR1K_BSP_UART_REG_INT_ID_ID (0x06)
35#define OR1K_BSP_UART_REG_INT_ID_RLSI (0x06)
36#define OR1K_BSP_UART_REG_INT_ID_TOI (0x0c)
37
38/* Interrupt Enable Register */
39#define OR1K_BSP_UART_REG_INT_ENABLE_RDI (0x01)
40#define OR1K_BSP_UART_REG_INT_ENABLE_THRI (0x02)
41#define OR1K_BSP_UART_REG_INT_ENABLE_RLSI (0x04)
42#define OR1K_BSP_UART_REG_INT_ENABLE_MSI (0x08)
43
44#endif /* ASM */
45#endif /* LIBBSP_GENERIC_OR1K_IRQ_H */
Header file for the Interrupt Manager Extension.