Source-Changes-HG archive

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

[src/trunk]: src/sys/arch adapt to ISA "unknown address" namespace separation...



details:   https://anonhg.NetBSD.org/src/rev/2e8394347aa6
branches:  trunk
changeset: 569972:2e8394347aa6
user:      drochner <drochner%NetBSD.org@localhost>
date:      Tue Sep 14 20:32:48 2004 +0000

description:
adapt to ISA "unknown address" namespace separation (purely mechanical,
as far as "grep" reaches)

diffstat:

 sys/arch/algor/isa/mcclock_isa.c   |  12 ++++++------
 sys/arch/arc/isa/mcclock_isa.c     |  12 ++++++------
 sys/arch/arc/isa/opms_isa.c        |   8 ++++----
 sys/arch/arc/isa/pccons_isa.c      |  12 ++++++------
 sys/arch/arc/isa/timer_isa.c       |  12 ++++++------
 sys/arch/atari/isa/fdcisa.c        |  10 +++++-----
 sys/arch/evbmips/isa/mcclock_isa.c |  12 ++++++------
 sys/arch/mvmeppc/isa/mkclock_isa.c |  12 ++++++------
 sys/arch/prep/isa/mcclock_isa.c    |  12 ++++++------
 sys/arch/prep/isa/mkclock_isa.c    |  12 ++++++------
 10 files changed, 57 insertions(+), 57 deletions(-)

diffs (truncated from 417 to 300 lines):

diff -r e426c2328c4c -r 2e8394347aa6 sys/arch/algor/isa/mcclock_isa.c
--- a/sys/arch/algor/isa/mcclock_isa.c  Tue Sep 14 20:30:57 2004 +0000
+++ b/sys/arch/algor/isa/mcclock_isa.c  Tue Sep 14 20:32:48 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mcclock_isa.c,v 1.5 2002/10/02 03:36:20 thorpej Exp $  */
+/*     $NetBSD: mcclock_isa.c,v 1.6 2004/09/14 20:32:48 drochner Exp $ */
 
 /*
  * Copyright (c) 1995, 1996 Carnegie-Mellon University.
@@ -29,7 +29,7 @@
 
 #include <sys/cdefs.h>                 /* RCS ID & Copyright macro defns */
 
-__KERNEL_RCSID(0, "$NetBSD: mcclock_isa.c,v 1.5 2002/10/02 03:36:20 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mcclock_isa.c,v 1.6 2004/09/14 20:32:48 drochner Exp $");
 
 #include <sys/param.h>
 #include <sys/kernel.h>
@@ -74,20 +74,20 @@
        bus_space_handle_t ioh;
 
        if (ia->ia_nio < 1 ||
-           (ia->ia_io[0].ir_addr != ISACF_PORT_DEFAULT &&
+           (ia->ia_io[0].ir_addr != ISA_UNKNOWN_PORT &&
             ia->ia_io[0].ir_addr != 0x70))
                return (0);
 
        if (ia->ia_niomem > 0 &&
-           (ia->ia_iomem[0].ir_addr != ISACF_IOMEM_DEFAULT))
+           (ia->ia_iomem[0].ir_addr != ISA_UNKNOWN_IOMEM))
                return (0);
 
        if (ia->ia_nirq > 0 &&
-           (ia->ia_irq[0].ir_irq != ISACF_IRQ_DEFAULT))
+           (ia->ia_irq[0].ir_irq != ISA_UNKNOWN_IRQ))
                return (0);
 
        if (ia->ia_ndrq > 0 &&
-           (ia->ia_drq[0].ir_drq != ISACF_DRQ_DEFAULT))
+           (ia->ia_drq[0].ir_drq != ISA_UNKNOWN_DRQ))
                return (0);
 
        if (bus_space_map(ia->ia_iot, 0x70, 0x2, 0, &ioh))
diff -r e426c2328c4c -r 2e8394347aa6 sys/arch/arc/isa/mcclock_isa.c
--- a/sys/arch/arc/isa/mcclock_isa.c    Tue Sep 14 20:30:57 2004 +0000
+++ b/sys/arch/arc/isa/mcclock_isa.c    Tue Sep 14 20:32:48 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mcclock_isa.c,v 1.7 2003/10/29 18:17:50 tsutsui Exp $  */
+/*     $NetBSD: mcclock_isa.c,v 1.8 2004/09/14 20:32:48 drochner Exp $ */
 /*     $OpenBSD: clock_mc.c,v 1.9 1998/03/16 09:38:26 pefo Exp $       */
 /*     NetBSD: clock_mc.c,v 1.2 1995/06/28 04:30:30 cgd Exp    */
 
@@ -79,7 +79,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mcclock_isa.c,v 1.7 2003/10/29 18:17:50 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mcclock_isa.c,v 1.8 2004/09/14 20:32:48 drochner Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -119,20 +119,20 @@
        bus_space_handle_t ioh;
 
        if (ia->ia_nio < 1 ||
-           (ia->ia_io[0].ir_addr != ISACF_PORT_DEFAULT &&
+           (ia->ia_io[0].ir_addr != ISA_UNKNOWN_PORT &&
             ia->ia_io[0].ir_addr != 0x70))
                return (0);
 
        if (ia->ia_niomem > 0 &&
-           (ia->ia_iomem[0].ir_addr != ISACF_IOMEM_DEFAULT))
+           (ia->ia_iomem[0].ir_addr != ISA_UNKNOWN_IOMEM))
                return (0);
 
        if (ia->ia_nirq > 0 &&
-           (ia->ia_irq[0].ir_irq != ISACF_IRQ_DEFAULT))
+           (ia->ia_irq[0].ir_irq != ISA_UNKNOWN_IRQ))
                return (0);
 
        if (ia->ia_ndrq > 0 &&
-           (ia->ia_drq[0].ir_drq != ISACF_DRQ_DEFAULT))
+           (ia->ia_drq[0].ir_drq != ISA_UNKNOWN_DRQ))
                return (0);
 
        if (!mcclock_isa_conf)
diff -r e426c2328c4c -r 2e8394347aa6 sys/arch/arc/isa/opms_isa.c
--- a/sys/arch/arc/isa/opms_isa.c       Tue Sep 14 20:30:57 2004 +0000
+++ b/sys/arch/arc/isa/opms_isa.c       Tue Sep 14 20:32:48 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: opms_isa.c,v 1.5 2003/07/15 00:04:47 lukem Exp $ */
+/* $NetBSD: opms_isa.c,v 1.6 2004/09/14 20:32:48 drochner Exp $ */
 
 /*
  * Copyright (c) 1995, 1996 Carnegie-Mellon University.
@@ -28,7 +28,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: opms_isa.c,v 1.5 2003/07/15 00:04:47 lukem Exp $");
+__KERNEL_RCSID(0, "$NetBSD: opms_isa.c,v 1.6 2004/09/14 20:32:48 drochner Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -64,13 +64,13 @@
 
        if (ia->ia_nio < 1)
                return (0);
-       if (ia->ia_io[0].ir_addr != ISACF_PORT_DEFAULT)
+       if (ia->ia_io[0].ir_addr != ISA_UNKNOWN_PORT)
                iobase = ia->ia_io[0].ir_addr;
 #if 0  /* XXX isa.c */
        if (ia->ia_iosize != 0)
                iosize = ia->ia_iosize;
 #endif
-       if (ia->ia_irq[0].ir_irq != ISACF_IRQ_DEFAULT)
+       if (ia->ia_irq[0].ir_irq != ISA_UNKNOWN_IRQ)
                irq = ia->ia_irq[0].ir_irq;
 
 #if 0
diff -r e426c2328c4c -r 2e8394347aa6 sys/arch/arc/isa/pccons_isa.c
--- a/sys/arch/arc/isa/pccons_isa.c     Tue Sep 14 20:30:57 2004 +0000
+++ b/sys/arch/arc/isa/pccons_isa.c     Tue Sep 14 20:32:48 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pccons_isa.c,v 1.5 2003/07/15 00:04:47 lukem Exp $ */
+/* $NetBSD: pccons_isa.c,v 1.6 2004/09/14 20:32:48 drochner Exp $ */
 /* NetBSD: vga_isa.c,v 1.4 2000/08/14 20:14:51 thorpej Exp  */
 
 /*
@@ -29,7 +29,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pccons_isa.c,v 1.5 2003/07/15 00:04:47 lukem Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pccons_isa.c,v 1.6 2004/09/14 20:32:48 drochner Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -65,7 +65,7 @@
 
        if (ia->ia_nio < 1)
                return (0);
-       if (ia->ia_io[0].ir_addr != ISACF_PORT_DEFAULT)
+       if (ia->ia_io[0].ir_addr != ISA_UNKNOWN_PORT)
                iobase = ia->ia_io[0].ir_addr;
 #if 0  /* XXX isa.c */
        if (ia->ia_iosize != 0)
@@ -73,14 +73,14 @@
 #endif
        if (ia->ia_niomem < 1)
                return (0);
-       if (ia->ia_iomem[0].ir_addr != ISACF_IOMEM_DEFAULT)
+       if (ia->ia_iomem[0].ir_addr != ISA_UNKNOWN_IOMEM)
                maddr = ia->ia_iomem[0].ir_addr;
-       if (ia->ia_iomem[0].ir_size != ISACF_IOSIZ_DEFAULT)
+       if (ia->ia_iomem[0].ir_size != ISA_UNKNOWN_IOSIZ)
                msize = ia->ia_iomem[0].ir_size;
 
        if (ia->ia_nirq < 1)
                return (0);
-       if (ia->ia_irq[0].ir_irq != ISACF_IRQ_DEFAULT)
+       if (ia->ia_irq[0].ir_irq != ISA_UNKNOWN_IRQ)
                irq = ia->ia_irq[0].ir_irq;
 
 #if 0
diff -r e426c2328c4c -r 2e8394347aa6 sys/arch/arc/isa/timer_isa.c
--- a/sys/arch/arc/isa/timer_isa.c      Tue Sep 14 20:30:57 2004 +0000
+++ b/sys/arch/arc/isa/timer_isa.c      Tue Sep 14 20:32:48 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: timer_isa.c,v 1.7 2003/08/07 16:26:50 agc Exp $        */
+/*     $NetBSD: timer_isa.c,v 1.8 2004/09/14 20:32:48 drochner Exp $   */
 /*     $OpenBSD: clock_mc.c,v 1.9 1998/03/16 09:38:26 pefo Exp $       */
 /*     NetBSD: clock_mc.c,v 1.2 1995/06/28 04:30:30 cgd Exp    */
 
@@ -79,7 +79,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: timer_isa.c,v 1.7 2003/08/07 16:26:50 agc Exp $");
+__KERNEL_RCSID(0, "$NetBSD: timer_isa.c,v 1.8 2004/09/14 20:32:48 drochner Exp $");
 
 #include <sys/param.h>
 #include <sys/kernel.h>
@@ -133,21 +133,21 @@
        bus_space_handle_t ioh;
 
        if (ia->ia_nio < 1 ||
-           (ia->ia_io[0].ir_addr != ISACF_PORT_DEFAULT &&
+           (ia->ia_io[0].ir_addr != ISA_UNKNOWN_PORT &&
             ia->ia_io[0].ir_addr != IO_TIMER1))
                return (0);
 
        if (ia->ia_niomem > 0 &&
-           (ia->ia_iomem[0].ir_addr != ISACF_IOMEM_DEFAULT))
+           (ia->ia_iomem[0].ir_addr != ISA_UNKNOWN_IOMEM))
                return (0);
 
        if (ia->ia_nirq > 0 &&
-           (ia->ia_irq[0].ir_irq != ISACF_IRQ_DEFAULT &&
+           (ia->ia_irq[0].ir_irq != ISA_UNKNOWN_IRQ &&
             ia->ia_irq[0].ir_irq != TIMER_IRQ))
                return (0);
 
        if (ia->ia_ndrq > 0 &&
-           (ia->ia_drq[0].ir_drq != ISACF_DRQ_DEFAULT))
+           (ia->ia_drq[0].ir_drq != ISA_UNKNOWN_DRQ))
                return (0);
 
        if (!timer_isa_conf)
diff -r e426c2328c4c -r 2e8394347aa6 sys/arch/atari/isa/fdcisa.c
--- a/sys/arch/atari/isa/fdcisa.c       Tue Sep 14 20:30:57 2004 +0000
+++ b/sys/arch/atari/isa/fdcisa.c       Tue Sep 14 20:32:48 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fdcisa.c,v 1.8 2003/09/25 19:06:19 mycroft Exp $       */
+/*     $NetBSD: fdcisa.c,v 1.9 2004/09/14 20:32:48 drochner Exp $      */
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -71,7 +71,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fdcisa.c,v 1.8 2003/09/25 19:06:19 mycroft Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fdcisa.c,v 1.9 2004/09/14 20:32:48 drochner Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -132,14 +132,14 @@
                return (0);
 
        /* Disallow wildcarded I/O addresses. */
-       if (ia->ia_io[0].ir_addr == ISACF_PORT_DEFAULT)
+       if (ia->ia_io[0].ir_addr == ISA_UNKNOWN_PORT)
                return (0);
 
        /* Don't allow wildcarded IRQ/DRQ. */
-       if (ia->ia_irq[0].ir_irq == ISACF_IRQ_DEFAULT)
+       if (ia->ia_irq[0].ir_irq == ISA_UNKNOWN_IRQ)
                return (0);
 
-       if (ia->ia_drq[0].ir_drq == ISACF_DRQ_DEFAULT)
+       if (ia->ia_drq[0].ir_drq == ISA_UNKNOWN_DRQ)
                return (0);
 
        /* Map the i/o space. */
diff -r e426c2328c4c -r 2e8394347aa6 sys/arch/evbmips/isa/mcclock_isa.c
--- a/sys/arch/evbmips/isa/mcclock_isa.c        Tue Sep 14 20:30:57 2004 +0000
+++ b/sys/arch/evbmips/isa/mcclock_isa.c        Tue Sep 14 20:32:48 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mcclock_isa.c,v 1.4 2002/10/02 05:12:54 thorpej Exp $  */
+/*     $NetBSD: mcclock_isa.c,v 1.5 2004/09/14 20:32:48 drochner Exp $ */
 
 /*
  * Copyright (c) 1995, 1996 Carnegie-Mellon University.
@@ -29,7 +29,7 @@
 
 #include <sys/cdefs.h>                 /* RCS ID & Copyright macro defns */
 
-__KERNEL_RCSID(0, "$NetBSD: mcclock_isa.c,v 1.4 2002/10/02 05:12:54 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mcclock_isa.c,v 1.5 2004/09/14 20:32:48 drochner Exp $");
 
 #include <sys/param.h>
 #include <sys/kernel.h>
@@ -73,20 +73,20 @@
        bus_space_handle_t ioh;
 
        if (ia->ia_nio < 1 ||
-           (ia->ia_io[0].ir_addr != ISACF_PORT_DEFAULT &&
+           (ia->ia_io[0].ir_addr != ISA_UNKNOWN_PORT &&
             ia->ia_io[0].ir_addr != IO_RTC))
                return (0);
 
        if (ia->ia_niomem > 0 &&
-           (ia->ia_iomem[0].ir_addr != ISACF_IOMEM_DEFAULT))
+           (ia->ia_iomem[0].ir_addr != ISA_UNKNOWN_IOMEM))
                return (0);
 
        if (ia->ia_nirq > 0 &&
-           (ia->ia_irq[0].ir_irq != ISACF_IRQ_DEFAULT))
+           (ia->ia_irq[0].ir_irq != ISA_UNKNOWN_IRQ))
                return (0);
 
        if (ia->ia_ndrq > 0 &&
-           (ia->ia_drq[0].ir_drq != ISACF_DRQ_DEFAULT))
+           (ia->ia_drq[0].ir_drq != ISA_UNKNOWN_DRQ))
                return (0);
 
        if (bus_space_map(ia->ia_iot, IO_RTC, 0x2, 0, &ioh))
diff -r e426c2328c4c -r 2e8394347aa6 sys/arch/mvmeppc/isa/mkclock_isa.c
--- a/sys/arch/mvmeppc/isa/mkclock_isa.c        Tue Sep 14 20:30:57 2004 +0000
+++ b/sys/arch/mvmeppc/isa/mkclock_isa.c        Tue Sep 14 20:32:48 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mkclock_isa.c,v 1.7 2003/11/01 22:48:58 tsutsui Exp $  */
+/*     $NetBSD: mkclock_isa.c,v 1.8 2004/09/14 20:32:48 drochner Exp $ */
 
 /*-
  * Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -42,7 +42,7 @@
  */
 



Home | Main Index | Thread Index | Old Index