x68k needs config_cfdriver_lookup() to initialize its console.

XXX ad-hoc way?
This commit is contained in:
isaki 2002-10-20 02:26:59 +00:00
parent 66711e8f5f
commit 49e7158ab9
3 changed files with 9 additions and 5 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: autoconf.c,v 1.36 2002/10/13 12:11:36 isaki Exp $ */
/* $NetBSD: autoconf.c,v 1.37 2002/10/20 02:26:59 isaki Exp $ */
/*
* Copyright (c) 1995 Leo Weppelman
@ -115,7 +115,10 @@ x68k_config_found(pcfp, pdp, auxp, pfn)
if (pdp == NULL)
pdp = &temp;
/* XXX Emulate 'struct device' of mainbus for cfparent_match() */
pdp->dv_cfdata = pcfp;
pdp->dv_cfdriver = config_cfdriver_lookup(pcfp->cf_name);
pdp->dv_unit = 0;
if ((cf = config_search((cfmatch_t)NULL, pdp, auxp)) != NULL) {
ca = config_cfattach_lookup(cf->cf_name, cf->cf_atname);
if (ca != NULL) {

View File

@ -1,4 +1,4 @@
/* $NetBSD: subr_autoconf.c,v 1.77 2002/10/09 02:59:55 thorpej Exp $ */
/* $NetBSD: subr_autoconf.c,v 1.78 2002/10/20 02:27:00 isaki Exp $ */
/*
* Copyright (c) 1996, 2000 Christopher G. Demetriou
@ -81,7 +81,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: subr_autoconf.c,v 1.77 2002/10/09 02:59:55 thorpej Exp $");
__KERNEL_RCSID(0, "$NetBSD: subr_autoconf.c,v 1.78 2002/10/20 02:27:00 isaki Exp $");
#include "opt_ddb.h"
@ -309,7 +309,7 @@ config_cfdriver_detach(struct cfdriver *cd)
/*
* Look up a cfdriver by name.
*/
static struct cfdriver *
struct cfdriver *
config_cfdriver_lookup(const char *name)
{
struct cfdriver *cd;

View File

@ -1,4 +1,4 @@
/* $NetBSD: device.h,v 1.61 2002/10/09 02:59:57 thorpej Exp $ */
/* $NetBSD: device.h,v 1.62 2002/10/20 02:27:01 isaki Exp $ */
/*
* Copyright (c) 1996, 2000 Christopher G. Demetriou
@ -310,6 +310,7 @@ int config_cfdriver_detach(struct cfdriver *);
int config_cfattach_attach(const char *, struct cfattach *);
int config_cfattach_detach(const char *, struct cfattach *);
struct cfdriver *config_cfdriver_lookup(const char *);
struct cfattach *config_cfattach_lookup(const char *, const char *);
struct cfdata *config_search(cfmatch_t, struct device *, void *);