summaryrefslogtreecommitdiffstats
path: root/sys/i386/isa/intr_machdep.h
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1998-02-13 06:59:22 +0000
committerbde <bde@FreeBSD.org>1998-02-13 06:59:22 +0000
commitef1ebbaf544bfd66e1302dba72162b92fa40f018 (patch)
treeabff304cf21d9ade04fb8c09bda35496ea59549f /sys/i386/isa/intr_machdep.h
parent6ef28c2f031a8b4cda21d173b1a044dccdf77cfd (diff)
downloadFreeBSD-src-ef1ebbaf544bfd66e1302dba72162b92fa40f018.zip
FreeBSD-src-ef1ebbaf544bfd66e1302dba72162b92fa40f018.tar.gz
Ifdefed SMP-only declarations.
Diffstat (limited to 'sys/i386/isa/intr_machdep.h')
-rw-r--r--sys/i386/isa/intr_machdep.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/sys/i386/isa/intr_machdep.h b/sys/i386/isa/intr_machdep.h
index 81a875f..fd0e9e7 100644
--- a/sys/i386/isa/intr_machdep.h
+++ b/sys/i386/isa/intr_machdep.h
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* from: @(#)isa_device.h 7.1 (Berkeley) 5/9/91
- * $Id: intr_machdep.h,v 1.7 1997/08/29 18:45:21 fsmp Exp $
+ * $Id: intr_machdep.h,v 1.8 1997/12/08 22:59:39 fsmp Exp $
*/
#ifndef _I386_ISA_INTR_MACHDEP_H_
@@ -43,6 +43,7 @@
#ifdef KERNEL
+#if defined(SMP) || defined(APIC_IO)
/*
* XXX FIXME: rethink location for all IPI vectors.
*/
@@ -121,6 +122,7 @@
*/
#define XSPURIOUSINT_OFFSET (ICU_OFFSET + 223)
+#endif /* SMP || APIC_IO */
#ifndef LOCORE
@@ -154,7 +156,7 @@ inthand_t
IDTVEC(intr8), IDTVEC(intr9), IDTVEC(intr10), IDTVEC(intr11),
IDTVEC(intr12), IDTVEC(intr13), IDTVEC(intr14), IDTVEC(intr15);
-/* these functions ONLY exist in an SMP/APIC_IO kernel: */
+#if defined(SMP) || defined(APIC_IO)
inthand_t
IDTVEC(fastintr16), IDTVEC(fastintr17),
IDTVEC(fastintr18), IDTVEC(fastintr19),
@@ -177,12 +179,15 @@ inthand_t
inthand_t
Xtest1; /* 'fake' HWI at top of APIC prio 0x3x, 32+31 = 0x3f */
#endif /** TEST_TEST1 */
+#endif /* SMP || APIC_IO */
struct isa_device;
void isa_defaultirq __P((void));
int isa_irq_pending __P((struct isa_device *dvp));
-int icu_irq_pending __P((struct isa_device *dvp)); /* APIC_IO kernel */
+#if defined(SMP) || defined(APIC_IO)
+int icu_irq_pending __P((struct isa_device *dvp));
+#endif
int isa_nmi __P((int cd));
void update_intrname __P((int intr, int device_id));
int icu_setup __P((int intr, inthand2_t *func, void *arg,
OpenPOWER on IntegriCloud