src/kernel/arch/i386/i8259.c File Reference

#include "../../kernel.h"
#include "../../proc.h"
#include "proto.h"
#include <minix/portio.h>
#include <ibm/cpu.h>

Go to the source code of this file.

Defines

#define ICW1_AT   0x11
#define ICW1_PC   0x13
#define ICW1_PS   0x19
#define ICW4_AT_SLAVE   0x01
#define ICW4_AT_MASTER   0x05
#define ICW4_PC_SLAVE   0x09
#define ICW4_PC_MASTER   0x0D
#define ICW4_AT_AEOI_SLAVE   0x03
#define ICW4_AT_AEOI_MASTER   0x07
#define ICW4_PC_AEOI_SLAVE   0x0B
#define ICW4_PC_AEOI_MASTER   0x0F

Functions

PUBLIC int intr_init (int mine, int auto_eoi)
PUBLIC int intr_disabled (void)
PUBLIC void irq_8259_unmask (int irq)
PUBLIC void irq_8259_mask (int irq)
PRIVATE void i8259_disable (void)


Define Documentation

#define ICW1_AT   0x11

Definition at line 14 of file i8259.c.

#define ICW1_PC   0x13

Definition at line 15 of file i8259.c.

#define ICW1_PS   0x19

Definition at line 16 of file i8259.c.

#define ICW4_AT_AEOI_MASTER   0x07

Definition at line 22 of file i8259.c.

#define ICW4_AT_AEOI_SLAVE   0x03

Definition at line 21 of file i8259.c.

#define ICW4_AT_MASTER   0x05

Definition at line 18 of file i8259.c.

#define ICW4_AT_SLAVE   0x01

Definition at line 17 of file i8259.c.

#define ICW4_PC_AEOI_MASTER   0x0F

Definition at line 24 of file i8259.c.

#define ICW4_PC_AEOI_SLAVE   0x0B

Definition at line 23 of file i8259.c.

#define ICW4_PC_MASTER   0x0D

Definition at line 20 of file i8259.c.

#define ICW4_PC_SLAVE   0x09

Definition at line 19 of file i8259.c.


Function Documentation

PRIVATE void i8259_disable ( void   ) 

Definition at line 99 of file i8259.c.

PUBLIC int intr_disabled ( void   ) 

Definition at line 79 of file i8259.c.

PUBLIC int intr_init ( int  mine,
int  auto_eoi 
)

Definition at line 29 of file i8259.c.

PUBLIC void irq_8259_mask ( int  irq  ) 

Definition at line 92 of file i8259.c.

PUBLIC void irq_8259_unmask ( int  irq  ) 

Definition at line 86 of file i8259.c.


Generated on Tue Mar 9 04:36:56 2010 for Minix by  doxygen 1.5.8