RTEMS 6.1-rc2
Loading...
Searching...
No Matches
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.
 
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.