Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/evbmips/malta/pci Define, and hook into the isa_chi...



details:   https://anonhg.NetBSD.org/src/rev/27cc04afc85c
branches:  trunk
changeset: 746769:27cc04afc85c
user:      dyoung <dyoung%NetBSD.org@localhost>
date:      Wed Aug 19 15:13:56 2009 +0000

description:
Define, and hook into the isa_chipset_tag_t, pcib_isa_detach_hook().

diffstat:

 sys/arch/evbmips/malta/pci/pcib.c |  13 +++++++++++--
 1 files changed, 11 insertions(+), 2 deletions(-)

diffs (48 lines):

diff -r a3fa2d220263 -r 27cc04afc85c sys/arch/evbmips/malta/pci/pcib.c
--- a/sys/arch/evbmips/malta/pci/pcib.c Wed Aug 19 15:13:24 2009 +0000
+++ b/sys/arch/evbmips/malta/pci/pcib.c Wed Aug 19 15:13:56 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pcib.c,v 1.12 2006/05/12 10:58:12 tsutsui Exp $        */
+/*     $NetBSD: pcib.c,v 1.13 2009/08/19 15:13:56 dyoung Exp $ */
 
 /*
  * Copyright 2002 Wasabi Systems, Inc.
@@ -36,7 +36,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pcib.c,v 1.12 2006/05/12 10:58:12 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pcib.c,v 1.13 2009/08/19 15:13:56 dyoung Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -130,6 +130,7 @@
 static void    pcib_isa_intr_disestablish(void *, void *);
 static void    pcib_isa_attach_hook(struct device *, struct device *,
                    struct isabus_attach_args *);
+static void    pcib_isa_detach_hook(isa_chipset_tag_t, device_t);
 static int     pcib_isa_intr_alloc(void *, int, int, int *);
 static const char *
                pcib_isa_intr_string(void *, int);
@@ -324,6 +325,7 @@
 
        iba.iba_ic = &sc->sc_ic;
        iba.iba_ic->ic_attach_hook = pcib_isa_attach_hook;
+       iba.iba_ic->ic_detach_hook = pcib_isa_detach_hook;
 
        config_found_ia(&sc->sc_dev, "isabus", &iba, isabusprint);
 }
@@ -337,6 +339,13 @@
 }
 
 static void
+pcib_isa_detach_hook(isa_chipset_tag_t ic, device_t self)
+{
+
+       /* Nothing to do. */
+}
+
+static void
 pcib_set_icus(struct pcib_softc *sc)
 {
 



Home | Main Index | Thread Index | Old Index