Don't include <isa/isavar.h> or compile code depending on it when isa

is not configured.  Including <isa/isavar.h> when it is not used is
harmful as well as bogus, since it includes "isa_if.h" which is not
generated when isa is not configured.
This commit is contained in:
Bruce Evans 1999-12-26 16:21:19 +00:00
parent bcf269395d
commit 9bcde22f7a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=55117
8 changed files with 42 additions and 2 deletions

View File

@ -53,6 +53,8 @@
#include "opt_bus.h"
#include "opt_rootdevname.h"
#include "isa.h"
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/bus.h>
@ -74,9 +76,11 @@
#include <i386/isa/icu.h>
#endif /* APIC_IO */
#include "isa.h"
#if NISA > 0
#include <isa/isavar.h>
device_t isa_bus_device = 0;
#endif
static void configure_first __P((void *));
static void configure __P((void *));

View File

@ -33,6 +33,8 @@
#include "opt_pnp.h"
#include "isa.h"
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/kernel.h>
@ -47,7 +49,9 @@
#include <machine/pc/bios.h>
#include <isa/pnpreg.h>
#include <isa/pnpvar.h>
#if NISA > 0
#include <isa/isavar.h>
#endif
#define BIOS_START 0xe0000
#define BIOS_SIZE 0x20000

View File

@ -45,6 +45,8 @@
#include "opt_auto_eoi.h"
#include "isa.h"
#include <sys/param.h>
#ifndef SMP
#include <machine/lock.h>
@ -72,7 +74,9 @@
#endif
#include <i386/isa/icu.h>
#if NISA > 0
#include <isa/isavar.h>
#endif
#include <i386/isa/intr_machdep.h>
#include <sys/interrupt.h>
#ifdef APIC_IO
@ -304,6 +308,7 @@ isa_strayintr(vcookiep)
"too many stray irq %d's; not logging any more\n", intr);
}
#if NISA > 0
/*
* Return a bitmap of the current interrupt requests. This is 8259-specific
* and is only suitable for use at probe time.
@ -318,6 +323,7 @@ isa_irq_pending()
irr2 = inb(IO_ICU2);
return ((irr2 << 8) | irr1);
}
#endif
int
update_intr_masks(void)

View File

@ -45,6 +45,8 @@
#include "opt_auto_eoi.h"
#include "isa.h"
#include <sys/param.h>
#ifndef SMP
#include <machine/lock.h>
@ -72,7 +74,9 @@
#endif
#include <i386/isa/icu.h>
#if NISA > 0
#include <isa/isavar.h>
#endif
#include <i386/isa/intr_machdep.h>
#include <sys/interrupt.h>
#ifdef APIC_IO
@ -304,6 +308,7 @@ isa_strayintr(vcookiep)
"too many stray irq %d's; not logging any more\n", intr);
}
#if NISA > 0
/*
* Return a bitmap of the current interrupt requests. This is 8259-specific
* and is only suitable for use at probe time.
@ -318,6 +323,7 @@ isa_irq_pending()
irr2 = inb(IO_ICU2);
return ((irr2 << 8) | irr1);
}
#endif
int
update_intr_masks(void)

View File

@ -53,6 +53,8 @@
#include "opt_bus.h"
#include "opt_rootdevname.h"
#include "isa.h"
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/bus.h>
@ -74,9 +76,11 @@
#include <i386/isa/icu.h>
#endif /* APIC_IO */
#include "isa.h"
#if NISA > 0
#include <isa/isavar.h>
device_t isa_bus_device = 0;
#endif
static void configure_first __P((void *));
static void configure __P((void *));

View File

@ -33,6 +33,8 @@
#include "opt_pnp.h"
#include "isa.h"
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/kernel.h>
@ -47,7 +49,9 @@
#include <machine/pc/bios.h>
#include <isa/pnpreg.h>
#include <isa/pnpvar.h>
#if NISA > 0
#include <isa/isavar.h>
#endif
#define BIOS_START 0xe0000
#define BIOS_SIZE 0x20000

View File

@ -45,6 +45,8 @@
#include "opt_auto_eoi.h"
#include "isa.h"
#include <sys/param.h>
#ifndef SMP
#include <machine/lock.h>
@ -72,7 +74,9 @@
#endif
#include <i386/isa/icu.h>
#if NISA > 0
#include <isa/isavar.h>
#endif
#include <i386/isa/intr_machdep.h>
#include <sys/interrupt.h>
#ifdef APIC_IO
@ -304,6 +308,7 @@ isa_strayintr(vcookiep)
"too many stray irq %d's; not logging any more\n", intr);
}
#if NISA > 0
/*
* Return a bitmap of the current interrupt requests. This is 8259-specific
* and is only suitable for use at probe time.
@ -318,6 +323,7 @@ isa_irq_pending()
irr2 = inb(IO_ICU2);
return ((irr2 << 8) | irr1);
}
#endif
int
update_intr_masks(void)

View File

@ -45,6 +45,8 @@
#include "opt_auto_eoi.h"
#include "isa.h"
#include <sys/param.h>
#ifndef SMP
#include <machine/lock.h>
@ -72,7 +74,9 @@
#endif
#include <i386/isa/icu.h>
#if NISA > 0
#include <isa/isavar.h>
#endif
#include <i386/isa/intr_machdep.h>
#include <sys/interrupt.h>
#ifdef APIC_IO
@ -304,6 +308,7 @@ isa_strayintr(vcookiep)
"too many stray irq %d's; not logging any more\n", intr);
}
#if NISA > 0
/*
* Return a bitmap of the current interrupt requests. This is 8259-specific
* and is only suitable for use at probe time.
@ -318,6 +323,7 @@ isa_irq_pending()
irr2 = inb(IO_ICU2);
return ((irr2 << 8) | irr1);
}
#endif
int
update_intr_masks(void)