RTEMS 6.3
Loading...
Searching...
No Matches
i8259.c File Reference
#include <bsp.h>
#include <bsp/irq.h>
#include <bsp/i8259.h>
#include <bsp/pci.h>
#include <bsp/irq-generic.h>
#include <rtems/bspIo.h>

Macros

#define DEBUG_8259   1
#define ValidateIrqLine(_irq)
#define PCI__GEN(bus, off, num)
#define PCI_INTR_ACK(bus)

Functions

int BSP_irq_disable_at_i8259s (const rtems_irq_number irqLine)
 function to disable a particular irq at 8259 level.
int BSP_irq_enable_at_i8259s (const rtems_irq_number irqLine)
 function to enable a particular irq at 8259 level.
int BSP_irq_enabled_at_i8259s (const rtems_irq_number irqLine)
 function to check if a particular irq is enabled at 8259 level.
int BSP_irq_ack_at_i8259s (const rtems_irq_number irqLine)
 function to acknowledge a particular irq at 8259 level.
void BSP_i8259s_init (void)
void bsp_show_interrupt_regs (void)
int BSP_i8259s_int_process ()

Variables

volatile rtems_i8259_masks i8259s_cache = 0xfffb

Detailed Description

This file was based upon the powerpc and the i386.

Macro Definition Documentation

◆ PCI__GEN

#define PCI__GEN ( bus,
off,
num )
Value:
(((off)^((bus) << 7))+((num) << 4))

◆ PCI_INTR_ACK

#define PCI_INTR_ACK ( bus)
Value:
PCI__GEN(bus, 0x0c34, 0)

◆ ValidateIrqLine

#define ValidateIrqLine ( _irq)
Value:
if ( ((int)_irq < 0) ||((int)_irq > 16)) return 1;