use interface attribute / locator passing versions
of config_search()
This commit is contained in:
parent
bbd13d13d1
commit
27a661f0fb
|
@ -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 @@ __KERNEL_RCSID(0, "$NetBSD: uba.c,v 1.68 2003/08/28 14:59:06 ragge Exp $");
|
|||
|
||||
#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 @@ uba_attach(struct uba_softc *sc, paddr_t iopagephys)
|
|||
/*
|
||||
* 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 @@ uba_attach(struct uba_softc *sc, paddr_t iopagephys)
|
|||
}
|
||||
|
||||
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;
|
||||
|
|
Loading…
Reference in New Issue