Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/algor/pci Define, and hook into the isa_chipset_tag...



details:   https://anonhg.NetBSD.org/src/rev/a2f6a77a0f49
branches:  trunk
changeset: 746772:a2f6a77a0f49
user:      dyoung <dyoung%NetBSD.org@localhost>
date:      Wed Aug 19 15:17:00 2009 +0000

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

diffstat:

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

diffs (48 lines):

diff -r 663e77db6a7a -r a2f6a77a0f49 sys/arch/algor/pci/pcib.c
--- a/sys/arch/algor/pci/pcib.c Wed Aug 19 15:16:09 2009 +0000
+++ b/sys/arch/algor/pci/pcib.c Wed Aug 19 15:17:00 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pcib.c,v 1.20 2009/03/14 15:35:59 dsl Exp $    */
+/*     $NetBSD: pcib.c,v 1.21 2009/08/19 15:17:00 dyoung Exp $ */
 
 /*-
  * Copyright (c) 2000, 2001 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
 
 #include <sys/cdefs.h>                 /* RCS ID & Copyright macro defns */
 
-__KERNEL_RCSID(0, "$NetBSD: pcib.c,v 1.20 2009/03/14 15:35:59 dsl Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pcib.c,v 1.21 2009/08/19 15:17:00 dyoung Exp $");
 
 #include "opt_algor_p5064.h" 
 #include "opt_algor_p6032.h"
@@ -119,6 +119,7 @@
 
 void   pcib_isa_attach_hook(struct device *, struct device *,
            struct isabus_attach_args *);
+void   pcib_isa_detach_hook(isa_chipset_tag_t, device_t);
 
 int    pcib_intr(void *);
 
@@ -316,6 +317,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;
 
        (void) config_found_ia(&sc->sc_dev, "isabus", &iba, isabusprint);
 }
@@ -329,6 +331,13 @@
 }
 
 void
+pcib_isa_detach_hook(isa_chipset_tag_t ic, device_t self)
+{
+
+       /* Nothing to do. */
+}
+
+void
 pcib_set_icus(struct pcib_softc *sc)
 {
 



Home | Main Index | Thread Index | Old Index