RTEMS  5.1
Macros | Functions | Variables
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)   if ( ((int)_irq < 0) ||((int)_irq > 16)) return 1;
 
#define PCI__GEN(bus, off, num)   (((off)^((bus) << 7))+((num) << 4))
 
#define PCI_INTR_ACK(bus)   PCI__GEN(bus, 0x0c34, 0)
 

Functions

int BSP_irq_disable_at_i8259s (const rtems_irq_number irqLine)
 function to disable a particular irq at 8259 level. More...
 
int BSP_irq_enable_at_i8259s (const rtems_irq_number irqLine)
 function to enable a particular irq at 8259 level. More...
 
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. More...
 
void BSP_i8259s_init (void)
 
void bsp_show_interrupt_regs (void)
 
int BSP_i8259s_int_process ()
 

Variables

volatile rtems_i8259_masks i8259s_cache = 0xfffb
 
volatile uint8_t master
 
volatile uint8_t slave
 
volatile uint8_t temp
 

Detailed Description

This file was based upon the powerpc and the i386.