Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arc/isa Define, and hook into the isa_chipset_tag_t...



details:   https://anonhg.NetBSD.org/src/rev/663e77db6a7a
branches:  trunk
changeset: 746771:663e77db6a7a
user:      dyoung <dyoung%NetBSD.org@localhost>
date:      Wed Aug 19 15:16:09 2009 +0000

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

diffstat:

 sys/arch/arc/isa/isabus.c |  13 +++++++++++--
 1 files changed, 11 insertions(+), 2 deletions(-)

diffs (48 lines):

diff -r f1ad3e0da1e0 -r 663e77db6a7a sys/arch/arc/isa/isabus.c
--- a/sys/arch/arc/isa/isabus.c Wed Aug 19 15:14:59 2009 +0000
+++ b/sys/arch/arc/isa/isabus.c Wed Aug 19 15:16:09 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: isabus.c,v 1.44 2008/07/05 08:46:25 tsutsui Exp $      */
+/*     $NetBSD: isabus.c,v 1.45 2009/08/19 15:16:09 dyoung Exp $       */
 /*     $OpenBSD: isabus.c,v 1.15 1998/03/16 09:38:46 pefo Exp $        */
 /*     NetBSD: isa.c,v 1.33 1995/06/28 04:30:51 cgd Exp        */
 
@@ -120,7 +120,7 @@
 */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: isabus.c,v 1.44 2008/07/05 08:46:25 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: isabus.c,v 1.45 2009/08/19 15:16:09 dyoung Exp $");
 
 #include <sys/param.h>
 #include <sys/proc.h>
@@ -166,6 +166,7 @@
 
 static void isabr_attach_hook(device_t , device_t,
     struct isabus_attach_args *);
+static void isabr_detach_hook(isa_chipset_tag_t, device_t);
 static const struct evcnt *isabr_intr_evcnt(isa_chipset_tag_t, int);
 static void *isabr_intr_establish(isa_chipset_tag_t, int, int, int,
     int (*)(void *), void *);
@@ -193,6 +194,7 @@
        isabr_initicu();
 
        sc->arc_isa_cs.ic_attach_hook = isabr_attach_hook;
+       sc->arc_isa_cs.ic_detach_hook = isabr_detach_hook;
        sc->arc_isa_cs.ic_intr_evcnt = isabr_intr_evcnt;
        sc->arc_isa_cs.ic_intr_establish = isabr_intr_establish;
        sc->arc_isa_cs.ic_intr_disestablish = isabr_intr_disestablish;
@@ -314,6 +316,13 @@
        /* Nothing to do. */
 }
 
+static void
+isabr_detach_hook(isa_chipset_tag_t ic, device_t self)
+{
+
+       /* Nothing to do. */
+}
+
 static const struct evcnt *
 isabr_intr_evcnt(isa_chipset_tag_t ic, int irq)
 {



Home | Main Index | Thread Index | Old Index