From ddfbf9d259145e3011f9af275d374ed5f470a3f9 Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Thu, 17 May 2001 22:24:17 +0000 Subject: [PATCH] - Axe the IMEN_BITS and APIC_IMEN_BITS constants. - Add back in a definition of NHWI which is preferred over ICU_LEN. Submitted by: bde --- sys/amd64/isa/icu.h | 7 +++---- sys/i386/isa/icu.h | 7 +++---- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/sys/amd64/isa/icu.h b/sys/amd64/isa/icu.h index 1c87d3f58b07..0176541caae8 100644 --- a/sys/amd64/isa/icu.h +++ b/sys/amd64/isa/icu.h @@ -61,10 +61,8 @@ void INTRDIS __P((u_int)); #ifdef APIC_IO extern unsigned apic_imen; /* APIC interrupt mask enable */ -#define APIC_IMEN_BITS 32 /* number of bits in apic_imen */ #else extern unsigned imen; /* interrupt mask enable */ -#define IMEN_BITS 16 /* number of bits in imen */ #endif #endif /* LOCORE */ @@ -108,7 +106,6 @@ extern unsigned imen; /* interrupt mask enable */ #define IRQ_SLAVE 0x0080 #endif - /* * Interrupt Control offset into Interrupt descriptor table (IDT) */ @@ -116,14 +113,16 @@ extern unsigned imen; /* interrupt mask enable */ #ifdef APIC_IO -/* 32-47: ISA IRQ0-IRQ15, 48-55: IO APIC IRQ16-IRQ31 */ +/* 32-47: ISA IRQ0-IRQ15, 48-63: IO APIC IRQ16-IRQ31 */ #define ICU_LEN 32 #define HWI_MASK 0xffffffff /* bits for h/w interrupts */ +#define NHWI 32 #else #define ICU_LEN 16 /* 32-47 are ISA interrupts */ #define HWI_MASK 0xffff /* bits for h/w interrupts */ +#define NHWI 16 #endif /* APIC_IO */ diff --git a/sys/i386/isa/icu.h b/sys/i386/isa/icu.h index 1c87d3f58b07..0176541caae8 100644 --- a/sys/i386/isa/icu.h +++ b/sys/i386/isa/icu.h @@ -61,10 +61,8 @@ void INTRDIS __P((u_int)); #ifdef APIC_IO extern unsigned apic_imen; /* APIC interrupt mask enable */ -#define APIC_IMEN_BITS 32 /* number of bits in apic_imen */ #else extern unsigned imen; /* interrupt mask enable */ -#define IMEN_BITS 16 /* number of bits in imen */ #endif #endif /* LOCORE */ @@ -108,7 +106,6 @@ extern unsigned imen; /* interrupt mask enable */ #define IRQ_SLAVE 0x0080 #endif - /* * Interrupt Control offset into Interrupt descriptor table (IDT) */ @@ -116,14 +113,16 @@ extern unsigned imen; /* interrupt mask enable */ #ifdef APIC_IO -/* 32-47: ISA IRQ0-IRQ15, 48-55: IO APIC IRQ16-IRQ31 */ +/* 32-47: ISA IRQ0-IRQ15, 48-63: IO APIC IRQ16-IRQ31 */ #define ICU_LEN 32 #define HWI_MASK 0xffffffff /* bits for h/w interrupts */ +#define NHWI 32 #else #define ICU_LEN 16 /* 32-47 are ISA interrupts */ #define HWI_MASK 0xffff /* bits for h/w interrupts */ +#define NHWI 16 #endif /* APIC_IO */