Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
i8259.h File Reference
#include <linux/compiler.h>
#include <linux/spinlock.h>
#include <asm/io.h>
#include <irq.h>

Go to the source code of this file.

Macros

#define PIC_MASTER_CMD   0x20
 
#define PIC_MASTER_IMR   0x21
 
#define PIC_MASTER_ISR   PIC_MASTER_CMD
 
#define PIC_MASTER_POLL   PIC_MASTER_ISR
 
#define PIC_MASTER_OCW3   PIC_MASTER_ISR
 
#define PIC_SLAVE_CMD   0xa0
 
#define PIC_SLAVE_IMR   0xa1
 
#define PIC_CASCADE_IR   2
 
#define MASTER_ICW4_DEFAULT   0x01
 
#define SLAVE_ICW4_DEFAULT   0x01
 
#define PIC_ICW4_AEOI   2
 

Functions

int i8259A_irq_pending (unsigned int irq)
 
void make_8259A_irq (unsigned int irq)
 
void init_i8259_irqs (void)
 

Variables

raw_spinlock_t i8259A_lock
 

Macro Definition Documentation

#define MASTER_ICW4_DEFAULT   0x01

Definition at line 34 of file i8259.h.

#define PIC_CASCADE_IR   2

Definition at line 33 of file i8259.h.

#define PIC_ICW4_AEOI   2

Definition at line 36 of file i8259.h.

#define PIC_MASTER_CMD   0x20

Definition at line 24 of file i8259.h.

#define PIC_MASTER_IMR   0x21

Definition at line 25 of file i8259.h.

#define PIC_MASTER_ISR   PIC_MASTER_CMD

Definition at line 26 of file i8259.h.

#define PIC_MASTER_OCW3   PIC_MASTER_ISR

Definition at line 28 of file i8259.h.

#define PIC_MASTER_POLL   PIC_MASTER_ISR

Definition at line 27 of file i8259.h.

#define PIC_SLAVE_CMD   0xa0

Definition at line 29 of file i8259.h.

#define PIC_SLAVE_IMR   0xa1

Definition at line 30 of file i8259.h.

#define SLAVE_ICW4_DEFAULT   0x01

Definition at line 35 of file i8259.h.

Function Documentation

int i8259A_irq_pending ( unsigned int  irq)

Definition at line 92 of file i8259.c.

void init_i8259_irqs ( void  )

Definition at line 320 of file i8259.c.

void make_8259A_irq ( unsigned int  irq)

Definition at line 110 of file i8259.c.

Variable Documentation

raw_spinlock_t i8259A_lock