-/* $OpenBSD: z8530tty.c,v 1.6 1997/01/24 01:35:38 briggs Exp $ */
+/* $OpenBSD: z8530tty.c,v 1.7 1997/03/11 21:03:02 gene Exp $ */
/* $NetBSD: z8530tty.c,v 1.10 1996/12/18 05:17:44 scottr Exp $ */
/*
/* Definition of the driver for autoconfig. */
-static int zstty_match(struct device *, struct cfdata *, void *);
+static int zstty_match(struct device *, void *, void *);
static void zstty_attach(struct device *, struct device *, void *);
struct cfattach zstty_ca = {
* zstty_match: how is this zs channel configured?
*/
int
-zstty_match(parent, cf, aux)
+zstty_match(parent, vcf, aux)
struct device *parent;
- struct cfdata *cf;
+ void *vcf;
void *aux;
{
struct zsc_attach_args *args = aux;
+ struct cfdata *cf = vcf;
/* Exact match is better than wildcard. */
if (cf->cf_loc[0] == args->channel)
tp->t_state |= TS_FLUSH;
}
splx(s);
+ return(0);
}
#ifndef ZS_TOLERANCE
-/* $OpenBSD: zs.c,v 1.7 1997/01/24 01:35:39 briggs Exp $ */
+/* $OpenBSD: zs.c,v 1.8 1997/03/11 21:03:03 gene Exp $ */
/* $NetBSD: zs.c,v 1.12 1996/12/18 05:04:22 scottr Exp $ */
/*
****************************************************************/
/* Definition of the driver for autoconfig. */
-static int zsc_match __P((struct device *, struct cfdata *, void *));
+static int zsc_match __P((struct device *, void *, void *));
static void zsc_attach __P((struct device *, struct device *, void *));
static int zsc_print __P((void *aux, const char *name));
static int
zsc_match(parent, cf, aux)
struct device *parent;
- struct cfdata *cf;
+ void *cf;
void *aux;
{
return 1;
-/* $OpenBSD: fpu.c,v 1.7 1997/01/24 01:35:45 briggs Exp $ */
+/* $OpenBSD: fpu.c,v 1.8 1997/03/11 21:03:04 gene Exp $ */
/* $NetBSD: fpu.c,v 1.21 1996/12/16 16:17:16 scottr Exp $ */
/*-
extern int *nofault;
-static int fpu_match __P((struct device *, struct cfdata *, void *));
+static int fpu_match __P((struct device *, void *, void *));
static void fpu_attach __P((struct device *, struct device *, void *));
static int fpu_probe __P((void));
static int
fpu_match(parent, cf, aux)
struct device *parent;
- struct cfdata *cf;
+ void *cf;
void *aux;
{
return 1;
-/* $OpenBSD: mainbus.c,v 1.4 1997/01/24 01:35:49 briggs Exp $ */
+/* $OpenBSD: mainbus.c,v 1.5 1997/03/11 21:03:04 gene Exp $ */
/* $NetBSD: mainbus.c,v 1.7 1996/12/17 06:47:41 scottr Exp $ */
/*
#include <sys/device.h>
#include <sys/systm.h>
-static int mainbus_match __P((struct device *, struct cfdata *, void *));
+static int mainbus_match __P((struct device *, void *, void *));
static void mainbus_attach __P((struct device *, struct device *, void *));
-static int mainbus_search __P((struct device *, struct cfdata *, void *));
+static int mainbus_search __P((struct device *, void *, void *));
struct cfattach mainbus_ca = {
sizeof(struct device), mainbus_match, mainbus_attach
static int
mainbus_match(parent, cf, aux)
struct device *parent;
- struct cfdata *cf;
+ void *cf;
void *aux;
{
static int mainbus_matched = 0;
}
static int
-mainbus_search(parent, cf, aux)
+mainbus_search(parent, vcf, aux)
struct device *parent;
- struct cfdata *cf;
+ void *vcf;
void *aux;
{
+ struct cfdata *cf = vcf;
+
if ((*cf->cf_attach->ca_match)(parent, cf, NULL) > 0)
config_attach(parent, cf, NULL, NULL);
return 0;