Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/i2o __'ify MACHINE_ARCH names.



details:   https://anonhg.NetBSD.org/src/rev/5968838117f6
branches:  trunk
changeset: 543027:5968838117f6
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Fri Feb 14 18:29:05 2003 +0000

description:
__'ify MACHINE_ARCH names.

diffstat:

 sys/dev/i2o/dpti.c |  20 ++++++++++----------
 1 files changed, 10 insertions(+), 10 deletions(-)

diffs (67 lines):

diff -r 281189250d05 -r 5968838117f6 sys/dev/i2o/dpti.c
--- a/sys/dev/i2o/dpti.c        Fri Feb 14 18:25:34 2003 +0000
+++ b/sys/dev/i2o/dpti.c        Fri Feb 14 18:29:05 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: dpti.c,v 1.10 2002/12/06 11:22:25 ad Exp $     */
+/*     $NetBSD: dpti.c,v 1.11 2003/02/14 18:29:05 thorpej Exp $        */
 
 /*-
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -64,7 +64,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: dpti.c,v 1.10 2002/12/06 11:22:25 ad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dpti.c,v 1.11 2003/02/14 18:29:05 thorpej Exp $");
 
 #include "opt_i2o.h"
 
@@ -82,7 +82,7 @@
 #include <uvm/uvm_extern.h>
 
 #include <machine/bus.h>
-#ifdef i386
+#ifdef __i386__
 #include <machine/pio.h>
 #endif
 
@@ -101,18 +101,18 @@
 static struct dpt_sig dpti_sig = {
        { 'd', 'P', 't', 'S', 'i', 'G'},
        SIG_VERSION,
-#if defined(i386)
+#if defined(__i386__)
        PROC_INTEL,
-#elif defined(powerpc)
+#elif defined(__powerpc__)
        PROC_POWERPC,
-#elif defined(alpha)
+#elif defined(__alpha__)
        PROC_ALPHA,
 #elif defined(__mips__)
        PROC_MIPS,
-#elif defined(sparc64)
+#elif defined(__sparc64__)
        PROC_ULTRASPARC,
 #endif
-#if defined(i386)
+#if defined(__i386__)
        PROC_386 | PROC_486 | PROC_PENTIUM | PROC_SEXIUM,
 #else
        0,
@@ -349,13 +349,13 @@
 {
        struct dpt_sysinfo info;
        int rv;
-#ifdef i386
+#ifdef __i386__
        int i, j;
 #endif
 
        memset(&info, 0, sizeof(info));
 
-#ifdef i386
+#ifdef __i386__
        outb (0x70, 0x12);
        i = inb(0x71);
        j = i >> 4;



Home | Main Index | Thread Index | Old Index