summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2005-06-02 21:55:34 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2005-06-02 21:55:34 +0000
commit20ea8acc0ae749ecd0603b560f8ac0cd69263fa3 (patch)
tree63b96c20308136186d7d37ce9a491cc023f9a8e8 /sys/dev
parent1025340feba8e6cdb1e402f3fb0c0aa775f60389 (diff)
use much simpler switch for pci_machdep.h; ok drahn@ whatever tdr (;
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pci/pcivar.h36
1 files changed, 8 insertions, 28 deletions
diff --git a/sys/dev/pci/pcivar.h b/sys/dev/pci/pcivar.h
index a0dc1209041..b7714707cce 100644
--- a/sys/dev/pci/pcivar.h
+++ b/sys/dev/pci/pcivar.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pcivar.h,v 1.40 2004/12/07 02:11:24 brad Exp $ */
+/* $OpenBSD: pcivar.h,v 1.41 2005/06/02 21:55:33 mickey Exp $ */
/* $NetBSD: pcivar.h,v 1.23 1997/06/06 23:48:05 thorpej Exp $ */
/*
@@ -54,38 +54,18 @@ struct pcibus_attach_args;
/*
* Machine-dependent definitions.
*/
-#if (__alpha__ + __atari__ + __i386__ + __cats__ + __powerpc__ + __sparc64__ + __hppa__ +__amd64__ + __sgi__ != 1)
-#error COMPILING FOR UNSUPPORTED MACHINE, OR MORE THAN ONE.
-#endif
-#if __alpha__
+#if defined(__alpha__)
#include <alpha/pci/pci_machdep.h>
-#endif
-#if __atari__
-#include <atari/pci/pci_machdep.h>
-#endif
-#if __i386__
+#elif defined(__i386__)
#include <i386/pci/pci_machdep.h>
-#endif
-#if __cats__
+#elif defined(__cats__)
#include <cats/pci/pci_machdep.h>
-#endif
-#if __powerpc__
+#elif defined(__powerpc__)
#include <powerpc/pci/pci_machdep.h>
-#endif
-#if __sparc64__
-#include <sparc64/include/pci_machdep.h>
-#endif
-#if __hppa64__
-#include <hppa64/include/pci_machdep.h>
-#endif
-#if __hppa__
-#include <hppa/include/pci_machdep.h>
-#endif
-#if __amd64__
-#include <amd64/include/pci_machdep.h>
-#endif
-#if __sgi__
+#elif defined(__sgi__)
#include <sgi/pci/pci_machdep.h>
+#else
+#include <machine/pci_machdep.h>
#endif
/*