Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/hpcmips/vr Make it compilable even if PCI wasn't co...



details:   https://anonhg.NetBSD.org/src/rev/92255e6f00ec
branches:  trunk
changeset: 522690:92255e6f00ec
user:      takemura <takemura%NetBSD.org@localhost>
date:      Sun Feb 24 09:16:07 2002 +0000

description:
Make it compilable even if PCI wasn't configured.

diffstat:

 sys/arch/hpcmips/vr/vrpciu.c |  12 +++++++-----
 1 files changed, 7 insertions(+), 5 deletions(-)

diffs (41 lines):

diff -r 43edb64bc679 -r 92255e6f00ec sys/arch/hpcmips/vr/vrpciu.c
--- a/sys/arch/hpcmips/vr/vrpciu.c      Sun Feb 24 03:18:44 2002 +0000
+++ b/sys/arch/hpcmips/vr/vrpciu.c      Sun Feb 24 09:16:07 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vrpciu.c,v 1.6 2002/01/27 14:18:13 takemura Exp $      */
+/*     $NetBSD: vrpciu.c,v 1.7 2002/02/24 09:16:07 takemura Exp $      */
 
 /*-
  * Copyright (c) 2001 Enami Tsugutomo.
@@ -145,10 +145,12 @@
        struct vrpciu_softc *sc = (struct vrpciu_softc *)self;
        pci_chipset_tag_t pc = &sc->sc_pc;
        struct vrip_attach_args *va = aux;
-       struct bus_space_tag_hpcmips *iot;
+#if defined(DEBUG) || NPCI > 0
        u_int32_t reg;
+#endif
+#if NPCI > 0
+       struct bus_space_tag_hpcmips *iot;
        char tmpbuf[16];
-#if NPCI > 0
        struct pcibus_attach_args pba;
 #endif
 
@@ -513,7 +515,7 @@
 
        if (ih == -1)
                return (NULL);
-       DPRINTF(("vrpciu_intr_establish: %p\n", sc));
+       DPRINTF(("vrpciu_intr_establish: %lx\n", ih));
 
        return (config_hook(CONFIG_HOOK_PCIINTR, ih, CONFIG_HOOK_EXCLUSIVE,
            (int (*)(void *, int, long, void *))func, arg));
@@ -523,6 +525,6 @@
 vrpciu_intr_disestablish(pci_chipset_tag_t pc, void *cookie)
 {
 
-       DPRINTF(("vrpciu_intr_disestablish: %p\n", sc));
+       DPRINTF(("vrpciu_intr_disestablish: %p\n", cookie));
        config_unhook(cookie);
 }



Home | Main Index | Thread Index | Old Index