41 #define ISA8259_M_ELCR 0x4d0 42 #define ISA8259_S_ELCR 0x4d1 45 #define ELCRS_INT15_LVL 0x80 46 #define ELCRS_INT14_LVL 0x40 47 #define ELCRS_INT13_LVL 0x20 48 #define ELCRS_INT12_LVL 0x10 49 #define ELCRS_INT11_LVL 0x08 50 #define ELCRS_INT10_LVL 0x04 51 #define ELCRS_INT9_LVL 0x02 52 #define ELCRS_INT8_LVL 0x01 53 #define ELCRM_INT7_LVL 0x80 54 #define ELCRM_INT6_LVL 0x40 55 #define ELCRM_INT5_LVL 0x20 56 #define ELCRM_INT4_LVL 0x10 57 #define ELCRM_INT3_LVL 0x8 58 #define ELCRM_INT2_LVL 0x4 59 #define ELCRM_INT1_LVL 0x2 60 #define ELCRM_INT0_LVL 0x1 69 #define PIC_MASTER_COMMAND_IO_PORT 0x20 70 #define PIC_SLAVE_COMMAND_IO_PORT 0xa0 71 #define PIC_MASTER_IMR_IO_PORT 0x21 72 #define PIC_SLAVE_IMR_IO_PORT 0xa1 82 #define SLAVE_PIC_EOSI 0x62 103 #define BSP_ISA_IRQ_NUMBER (16) 104 #define BSP_ISA_IRQ_LOWEST_OFFSET (0) 105 #define BSP_ISA_IRQ_MAX_OFFSET (BSP_ISA_IRQ_LOWEST_OFFSET + BSP_ISA_IRQ_NUMBER - 1) 110 #define BSP_PCI_IRQ_NUMBER (16) 112 #define BSP_PCI_IRQ_NUMBER (0) 114 #define BSP_PCI_IRQ_LOWEST_OFFSET (BSP_ISA_IRQ_NUMBER) 115 #define BSP_PCI_IRQ_MAX_OFFSET (BSP_PCI_IRQ_LOWEST_OFFSET + BSP_PCI_IRQ_NUMBER - 1) 121 #define BSP_PROCESSOR_IRQ_NUMBER (1) 122 #define BSP_PROCESSOR_IRQ_LOWEST_OFFSET (BSP_PCI_IRQ_MAX_OFFSET + 1) 123 #define BSP_PROCESSOR_IRQ_MAX_OFFSET (BSP_PROCESSOR_IRQ_LOWEST_OFFSET + BSP_PROCESSOR_IRQ_NUMBER - 1) 127 #define BSP_MISC_IRQ_NUMBER (8) 129 #define BSP_MISC_IRQ_NUMBER (0) 132 #define BSP_MISC_IRQ_LOWEST_OFFSET (BSP_PROCESSOR_IRQ_MAX_OFFSET + 1) 133 #define BSP_MISC_IRQ_MAX_OFFSET (BSP_MISC_IRQ_LOWEST_OFFSET + BSP_MISC_IRQ_NUMBER - 1) 140 #define BSP_IRQ_NUMBER (BSP_MISC_IRQ_MAX_OFFSET + 1) 141 #define BSP_LOWEST_OFFSET (BSP_ISA_IRQ_LOWEST_OFFSET) 142 #define BSP_MAX_OFFSET (BSP_MISC_IRQ_MAX_OFFSET) 151 #define BSP_ISA_PERIODIC_TIMER (0) 152 #define BSP_ISA_KEYBOARD (1) 153 #define BSP_ISA_UART_COM2_IRQ (3) 154 #define BSP_ISA_UART_COM1_IRQ (4) 155 #define BSP_ISA_RT_TIMER1 (8) 156 #define BSP_ISA_RT_TIMER3 (10) 165 #define BSP_PCI_IRQ0 (BSP_PCI_IRQ_LOWEST_OFFSET) 166 #if BSP_PCI_IRQ_NUMBER > 0 167 #define BSP_PCI_ISA_BRIDGE_IRQ (BSP_PCI_IRQ0) 172 #if defined(mvme2100) 173 #define BSP_DEC21143_IRQ (BSP_PCI_IRQ_LOWEST_OFFSET + 1) 174 #define BSP_PMC_PCMIP_TYPE1_SLOT0_IRQ (BSP_PCI_IRQ_LOWEST_OFFSET + 2) 175 #define BSP_PCMIP_TYPE1_SLOT1_IRQ (BSP_PCI_IRQ_LOWEST_OFFSET + 3) 176 #define BSP_PCMIP_TYPE2_SLOT0_IRQ (BSP_PCI_IRQ_LOWEST_OFFSET + 4) 177 #define BSP_PCMIP_TYPE2_SLOT1_IRQ (BSP_PCI_IRQ_LOWEST_OFFSET + 5) 178 #define BSP_PCI_INTA_UNIVERSE_LINT0_IRQ (BSP_PCI_IRQ_LOWEST_OFFSET + 7) 179 #define BSP_PCI_INTB_UNIVERSE_LINT1_IRQ (BSP_PCI_IRQ_LOWEST_OFFSET + 8) 180 #define BSP_PCI_INTC_UNIVERSE_LINT2_IRQ (BSP_PCI_IRQ_LOWEST_OFFSET + 9) 181 #define BSP_PCI_INTD_UNIVERSE_LINT3_IRQ (BSP_PCI_IRQ_LOWEST_OFFSET + 10) 182 #define BSP_UART_COM1_IRQ (BSP_PCI_IRQ_LOWEST_OFFSET + 13) 183 #define BSP_FRONT_PANEL_ABORT_IRQ (BSP_PCI_IRQ_LOWEST_OFFSET + 14) 184 #define BSP_RTC_IRQ (BSP_PCI_IRQ_LOWEST_OFFSET + 15) 186 #define BSP_UART_COM1_IRQ BSP_ISA_UART_COM1_IRQ 187 #define BSP_UART_COM2_IRQ BSP_ISA_UART_COM2_IRQ 193 #define BSP_DECREMENTER (BSP_PROCESSOR_IRQ_LOWEST_OFFSET) 202 extern volatile rtems_i8259_masks i8259s_cache;
218 void BSP_i8259s_init(
void);
255 int BSP_i8259s_int_process(
void);
257 extern void BSP_rtems_irq_mng_init(
unsigned cpuId);
258 extern void BSP_i8259s_init(
void);
unsigned short rtems_i8259_masks
Type definition for RTEMS managed interrupts.
Definition: irq.h:88
int BSP_irq_enable_at_i8259s(const rtems_irq_number irqLine)
function to enable a particular irq at 8259 level.
Definition: i8259.c:91
int BSP_irq_enabled_at_i8259s(const rtems_irq_number irqLine)
function to check if a particular irq is enabled at 8259 level.
Definition: i8259.c:125
int BSP_irq_ack_at_i8259s(const rtems_irq_number irqLine)
function to acknowledge a particular irq at 8259 level.
Definition: i8259.c:143
int BSP_irq_disable_at_i8259s(const rtems_irq_number irqLine)
function to disable a particular irq at 8259 level.
Definition: i8259.c:49