Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/isa Make it compilable with AI_DEBUG.



details:   https://anonhg.NetBSD.org/src/rev/6111643108e7
branches:  trunk
changeset: 455651:6111643108e7
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Tue Apr 09 05:25:14 2019 +0000

description:
Make it compilable with AI_DEBUG.

diffstat:

 sys/dev/isa/if_ai.c |  12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diffs (54 lines):

diff -r 240c60ed9263 -r 6111643108e7 sys/dev/isa/if_ai.c
--- a/sys/dev/isa/if_ai.c       Tue Apr 09 05:24:07 2019 +0000
+++ b/sys/dev/isa/if_ai.c       Tue Apr 09 05:25:14 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_ai.c,v 1.34 2019/04/09 05:24:07 msaitoh Exp $       */
+/*     $NetBSD: if_ai.c,v 1.35 2019/04/09 05:25:14 msaitoh Exp $       */
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_ai.c,v 1.34 2019/04/09 05:24:07 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_ai.c,v 1.35 2019/04/09 05:25:14 msaitoh Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -249,7 +249,7 @@
                          AI_IOSIZE, 0, &ioh) != 0) {
 
                DPRINTF(("ai_match: cannot map %d IO ports @ 0x%x\n",
-                        AI_IOSIZE, ia->ia_iobase));
+                        AI_IOSIZE, ia->ia_io[0].ir_addr));
                return 0;
        }
 
@@ -259,7 +259,7 @@
        if (type != SL10_BOARD && type != EN100_BOARD &&
            type != SLFIBER_BOARD) {
                DPRINTF(("ai_match: unknown board code 0x%02x @ 0x%x\n",
-                        type, ia->ia_iobase));
+                        type, ia->ia_io[0].ir_addr));
                goto out;
        }
 
@@ -282,7 +282,7 @@
            ia->ia_iomem[0].ir_size != memsize) {
                DPRINTF((
                   "ai_match: memsize of board @ 0x%x doesn't match config\n",
-                  ia->ia_iobase));
+                  ia->ia_io[0].ir_addr));
                goto out;
        }
 
@@ -298,7 +298,7 @@
 
        ia->ia_ndrq = 0;
 
-       DPRINTF(("ai_match: found board @ 0x%x\n", ia->ia_iobase));
+       DPRINTF(("ai_match: found board @ 0x%x\n", ia->ia_io[0].ir_addr));
 
 out:
        bus_space_unmap(iot, ioh, AI_IOSIZE);



Home | Main Index | Thread Index | Old Index