Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/marvell use interface attribute / locator passing ve...



details:   https://anonhg.NetBSD.org/src/rev/bbb0f2324a01
branches:  trunk
changeset: 569837:bbb0f2324a01
user:      drochner <drochner%NetBSD.org@localhost>
date:      Wed Sep 08 20:08:46 2004 +0000

description:
use interface attribute / locator passing versions
of config_search()

diffstat:

 sys/dev/marvell/obio.c |  13 +++++++------
 1 files changed, 7 insertions(+), 6 deletions(-)

diffs (46 lines):

diff -r 6038319061cc -r bbb0f2324a01 sys/dev/marvell/obio.c
--- a/sys/dev/marvell/obio.c    Wed Sep 08 19:59:15 2004 +0000
+++ b/sys/dev/marvell/obio.c    Wed Sep 08 20:08:46 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: obio.c,v 1.3 2003/07/14 15:47:18 lukem Exp $   */
+/*     $NetBSD: obio.c,v 1.4 2004/09/08 20:08:46 drochner Exp $        */
 
 /*
  * Copyright (c) 2002 Allegro Networks, Inc., Wasabi Systems, Inc.
@@ -42,7 +42,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: obio.c,v 1.3 2003/07/14 15:47:18 lukem Exp $");
+__KERNEL_RCSID(0, "$NetBSD: obio.c,v 1.4 2004/09/08 20:08:46 drochner Exp $");
 
 #include "opt_marvell.h"
 
@@ -71,7 +71,8 @@
 
 static int obio_cfprint(void *, const char *);
 static int obio_cfmatch(struct device *, struct cfdata *, void *);
-static int obio_cfsearch(struct device *, struct cfdata *, void *);
+static int obio_cfsearch(struct device *, struct cfdata *,
+                        const locdesc_t *, void *);
 static void obio_cfattach(struct device *, struct device *, void *);
 
 struct obio_softc {
@@ -116,7 +117,8 @@
 
 
 int
-obio_cfsearch(struct device *parent, struct cfdata *cf, void *aux)
+obio_cfsearch(struct device *parent, struct cfdata *cf,
+             const locdesc_t *ldesc, void *aux)
 {
        struct obio_softc *sc = (struct obio_softc *) parent;
        struct obio_attach_args oa;
@@ -172,6 +174,5 @@
            GT_LowAddr_GET(datal), GT_HighAddr_GET(datah),
            GT_PCISwap_GET(datal) == 1 ? "little" : "big");
 
-        config_search(obio_cfsearch, &sc->sc_dev, NULL);
+        config_search_ia(obio_cfsearch, &sc->sc_dev, "obio", NULL);
 }
-



Home | Main Index | Thread Index | Old Index