TacOS  0.2
 Tout Structures de données Fichiers Fonctions Variables Définitions de type Énumérations Macros
Macros | Fonctions
Référence du fichier i8259.c
#include <types.h>
#include "ioports.h"
Graphe des dépendances par inclusion de i8259.c:

Macros

#define MASTER_PIC_ICW1   0x20
 
#define SLAVE_PIC_ICW1   0xa0
 
#define ICW_SELECT   (1 << 4)
 
#define OCW_SELECT   (0 << 4)
 
#define ADI   (1 << 2)
 
#define SNGL   (1 << 1)
 
#define IC4   (1 << 0)
 
#define MASTER_PIC_ICW2   0x21
 
#define SLAVE_PIC_ICW2   0xa1
 
#define INT_VECTOR_MASTER   0x20
 
#define IRQ0   0x00
 
#define IRQ1   0x01
 
#define INT_VECTOR_SLAVE   0x28
 
#define IRQ8   0x00
 
#define IRQ9   0x01
 
#define MASTER_PIC_ICW3   0x21
 
#define CASCADED_PIC   (1 << 2)
 
#define MASTER_PIC_ICW4   0x21
 
#define SLAVE_PIC_ICW4   0xa1
 
#define MICROPROCESSOR_MODE   (1 << 0)
 
#define SLAVE_PIC_ICW3   0xa1
 
#define SLAVE_ID   0x02
 
#define MASTER_PIC_OCW1   0x21
 
#define SLAVE_PIC_OCW1   0xa1
 
#define IRQ2   (1 << 2)
 
#define ALL_IRQS   0xff
 

Fonctions

void i8259_setup (void)
 
void i8259_enable_irq_line (uint8_t n)
 
void i8259_disable_irq_line (uint8_t n)
 

Description détaillée

Auteur
TacOS developers

LICENSE

Copyright (C) 2010-2014 TacOS developers.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details at http://www.gnu.org/copyleft/gpl.html

You should have received a copy of the GNU General Public License along with this program; if not, see http://www.gnu.org/licenses.

DESCRIPTION

Configuration du i8259 pour gérer les interruptions.

Voir également
http://www.etud.insa-toulouse.fr/~projet_tut_OS/w/Interruption