Changeset View
Changeset View
Standalone View
Standalone View
sys/x86/isa/elcr.c
Show First 20 Lines • Show All 43 Lines • ▼ Show 20 Lines | |||||
* controls IRQ 0, bit 1 controls IRQ 1, etc. If the bit is zero, the | * controls IRQ 0, bit 1 controls IRQ 1, etc. If the bit is zero, the | ||||
* associated IRQ is edge triggered. If the bit is one, the IRQ is | * associated IRQ is edge triggered. If the bit is one, the IRQ is | ||||
* level triggered. | * level triggered. | ||||
*/ | */ | ||||
#include <sys/param.h> | #include <sys/param.h> | ||||
#include <sys/bus.h> | #include <sys/bus.h> | ||||
#include <sys/systm.h> | #include <sys/systm.h> | ||||
#include <machine/intr_machdep.h> | #include <machine/intr.h> | ||||
#define ELCR_PORT 0x4d0 | #define ELCR_PORT 0x4d0 | ||||
#define ELCR_MASK(irq) (1 << (irq)) | #define ELCR_MASK(irq) (1 << (irq)) | ||||
static int elcr_status; | static int elcr_status; | ||||
int elcr_found; | int elcr_found; | ||||
/* | /* | ||||
▲ Show 20 Lines • Show All 77 Lines • Show Last 20 Lines |