Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/qbus use interface attribute / locator passing versions
details: https://anonhg.NetBSD.org/src/rev/ea7706dac151
branches: trunk
changeset: 569839:ea7706dac151
user: drochner <drochner%NetBSD.org@localhost>
date: Wed Sep 08 20:13:52 2004 +0000
description:
use interface attribute / locator passing versions
of config_search()
diffstat:
sys/dev/qbus/uba.c | 12 +++++++-----
1 files changed, 7 insertions(+), 5 deletions(-)
diffs (47 lines):
diff -r e3016883b71b -r ea7706dac151 sys/dev/qbus/uba.c
--- a/sys/dev/qbus/uba.c Wed Sep 08 20:12:20 2004 +0000
+++ b/sys/dev/qbus/uba.c Wed Sep 08 20:13:52 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uba.c,v 1.68 2003/08/28 14:59:06 ragge Exp $ */
+/* $NetBSD: uba.c,v 1.69 2004/09/08 20:13:52 drochner Exp $ */
/*
* Copyright (c) 1982, 1986 The Regents of the University of California.
* All rights reserved.
@@ -69,7 +69,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uba.c,v 1.68 2003/08/28 14:59:06 ragge Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uba.c,v 1.69 2004/09/08 20:13:52 drochner Exp $");
#include <sys/param.h>
#include <sys/time.h>
@@ -93,7 +93,8 @@
#include "ioconf.h"
-static int ubasearch (struct device *, struct cfdata *, void *);
+static int ubasearch (struct device *, struct cfdata *,
+ const locdesc_t *, void *);
static int ubaprint (void *, const char *);
/*
@@ -276,7 +277,7 @@
/*
* Now start searching for devices.
*/
- config_search(ubasearch,(struct device *)sc, NULL);
+ config_search_ia(ubasearch,(struct device *)sc, "uba", NULL);
if (sc->uh_afterscan)
(*sc->uh_afterscan)(sc);
@@ -285,7 +286,8 @@
}
int
-ubasearch(struct device *parent, struct cfdata *cf, void *aux)
+ubasearch(struct device *parent, struct cfdata *cf,
+ const locdesc_t *ldesc, void *aux)
{
struct uba_softc *sc = (struct uba_softc *)parent;
struct uba_attach_args ua;
Home |
Main Index |
Thread Index |
Old Index