-/* $OpenBSD: adb.c,v 1.7 1997/02/23 06:04:52 briggs Exp $ */
+/* $OpenBSD: adb.c,v 1.8 1997/03/12 13:36:56 briggs Exp $ */
/* $NetBSD: adb.c,v 1.13 1996/12/16 16:17:02 scottr Exp $ */
/*-
/*
* Function declarations.
*/
-static int adbmatch __P((struct device *, struct cfdata *, void *));
+static int adbmatch __P((struct device *, void *, void *));
static void adbattach __P((struct device *, struct device *, void *));
/*
};
static int
-adbmatch(parent, cf, aux)
+adbmatch(parent, vcf, aux)
struct device *parent;
- struct cfdata *cf;
+ void *vcf;
void *aux;
{
return 1;
-/* $OpenBSD: grf.c,v 1.6 1997/03/08 16:16:50 briggs Exp $ */
+/* $OpenBSD: grf.c,v 1.7 1997/03/12 13:36:57 briggs Exp $ */
/* $NetBSD: grf.c,v 1.41 1997/02/24 06:20:04 scottr Exp $ */
/*
#define iteoff(u,f)
#endif
-int grfmatch __P((struct device *, struct cfdata *, void *));
+int grfmatch __P((struct device *, void *, void *));
void grfattach __P((struct device *, struct device *, void *));
struct cfdriver grf_cd = {
#endif
int
-grfmatch(parent, cf, aux)
+grfmatch(parent, vcf, aux)
struct device *parent;
- struct cfdata *cf;
+ void *vcf;
void *aux;
{
struct grfbus_attach_args *ga = aux;
-/* $OpenBSD: grf_mv.c,v 1.7 1997/03/08 16:16:51 briggs Exp $ */
+/* $OpenBSD: grf_mv.c,v 1.8 1997/03/12 13:36:57 briggs Exp $ */
/* $NetBSD: grf_mv.c,v 1.17 1997/02/24 06:20:06 scottr Exp $ */
/*
static int grfmv_mode __P((struct grf_softc *gp, int cmd, void *arg));
static caddr_t grfmv_phys __P((struct grf_softc *gp, vm_offset_t addr));
-static int grfmv_match __P((struct device *, struct cfdata *, void *));
+static int grfmv_match __P((struct device *, void *, void *));
static void grfmv_attach __P((struct device *, struct device *, void *));
struct cfdriver macvid_cd = {
}
static int
-grfmv_match(parent, cf, aux)
+grfmv_match(parent, vcf, aux)
struct device *parent;
- struct cfdata *cf;
+ void *vcf;
void *aux;
{
struct nubus_attach_args *na = (struct nubus_attach_args *) aux;
/* $NetBSD: if_ae_nubus.c,v 1.5 1997/02/28 08:56:06 scottr Exp $ */
+/* $OpenBSD: if_ae_nubus.c,v 1.2 1997/03/12 13:36:58 briggs Exp $ */
/*
* Copyright (C) 1997 Scott Reynolds
bus_space_unmap(na->na_tag, bsh, NBMEMSIZE);
-printf("ae_nubus_match returning %d\n", rv);
return rv;
}
int i;
#endif
-printf("ae_nubus_attach\n");
bst = na->na_tag;
if (bus_space_map(bst, NUBUS_SLOT2PA(na->slot), NBMEMSIZE,
0, &bsh)) {
success = 0;
-printf("ae_nubus_attach vendor switch\n");
switch (sc->vendor) {
case AE_VENDOR_APPLE: /* Apple-compatible cards */
case AE_VENDOR_ASANTE:
default:
break;
}
-printf("ae_nubus_attach vendor switch done\n");
if (!success) {
bus_space_unmap(bst, bsh, NBMEMSIZE);
-/* $OpenBSD: obio.c,v 1.3 1997/03/08 16:16:57 briggs Exp $ */
+/* $OpenBSD: obio.c,v 1.4 1997/03/12 13:36:58 briggs Exp $ */
/* $NetBSD: obio.c,v 1.7 1997/02/13 19:01:07 scottr Exp $ */
/*
#include <mac68k/dev/obiovar.h>
-static int obio_match __P((struct device *, struct cfdata *, void *));
+static int obio_match __P((struct device *, void *, void *));
static void obio_attach __P((struct device *, struct device *, void *));
static int obio_print __P((void *, const char *));
-static int obio_search __P((struct device *, struct cfdata *, void *));
+static int obio_search __P((struct device *, void *, void *));
struct cfattach obio_ca = {
sizeof(struct device), obio_match, obio_attach
};
static int
-obio_match(parent, cf, aux)
+obio_match(parent, vcf, aux)
struct device *parent;
- struct cfdata *cf;
+ void *vcf;
void *aux;
{
static int obio_matched = 0;
}
int
-obio_search(parent, cf, aux)
+obio_search(parent, vcf, aux)
struct device *parent;
- struct cfdata *cf;
+ void *vcf;
void *aux;
{
struct obio_attach_args oa;
+ struct cfdata *cf = (struct cfdata *) vcf;
oa.oa_addr = cf->cf_loc[0];
oa.oa_drq = cf->cf_loc[1];
-/* $OpenBSD: z8530tty.c,v 1.7 1997/03/11 21:03:02 gene Exp $ */
+/* $OpenBSD: z8530tty.c,v 1.8 1997/03/12 13:36:58 briggs Exp $ */
/* $NetBSD: z8530tty.c,v 1.10 1996/12/18 05:17:44 scottr Exp $ */
/*
void *vcf;
void *aux;
{
+ struct cfdata *cf = (struct cfdata *) vcf;
struct zsc_attach_args *args = aux;
struct cfdata *cf = vcf;
-/* $OpenBSD: zs.c,v 1.8 1997/03/11 21:03:03 gene Exp $ */
+/* $OpenBSD: zs.c,v 1.9 1997/03/12 13:36:59 briggs Exp $ */
/* $NetBSD: zs.c,v 1.12 1996/12/18 05:04:22 scottr Exp $ */
/*
* Is the zs chip present?
*/
static int
-zsc_match(parent, cf, aux)
+zsc_match(parent, vcf, aux)
struct device *parent;
- void *cf;
+ void *vcf;
void *aux;
{
return 1;
-/* $OpenBSD: fpu.c,v 1.8 1997/03/11 21:03:04 gene Exp $ */
+/* $OpenBSD: fpu.c,v 1.9 1997/03/12 13:37:00 briggs Exp $ */
/* $NetBSD: fpu.c,v 1.21 1996/12/16 16:17:16 scottr Exp $ */
/*-
};
static int
-fpu_match(parent, cf, aux)
+fpu_match(parent, vcf, aux)
struct device *parent;
- void *cf;
+ void *vcf;
void *aux;
{
return 1;
-/* $OpenBSD: machdep.c,v 1.31 1997/03/08 16:17:04 briggs Exp $ */
+/* $OpenBSD: machdep.c,v 1.32 1997/03/12 13:37:00 briggs Exp $ */
/* $NetBSD: machdep.c,v 1.134 1997/02/14 06:15:30 scottr Exp $ */
/*
break;
case MACH_CLASSQ:
case MACH_CLASSQ2:
+ mac68k_vidlog = mac68k_vidphys = 0xf9000000;
+ /* Not really, but using too little memory would be wrong */
+ mac68k_vidlen = 2 * 1024 * 1024;
case MACH_CLASSAV:
VIA2 = 1;
IOBase = 0x50f00000;
mac68k_machine.sccClkConst = 115200;
via_reg(VIA1, vIER) = 0x7f; /* disable VIA1 int */
via_reg(VIA2, vIER) = 0x7f; /* disable VIA2 int */
- if (cpui->machineid == MACH_MACQ700) {
- mac68k_vidlog = mac68k_vidphys = 0xf9000000;
- mac68k_vidlen = 2 * 1024 * 1024;
- }
break;
case MACH_CLASSIIci:
VIA2 = 0x13;
-/* $OpenBSD: mainbus.c,v 1.5 1997/03/11 21:03:04 gene Exp $ */
+/* $OpenBSD: mainbus.c,v 1.6 1997/03/12 13:37:01 briggs Exp $ */
/* $NetBSD: mainbus.c,v 1.7 1996/12/17 06:47:41 scottr Exp $ */
/*
};
static int
-mainbus_match(parent, cf, aux)
+mainbus_match(parent, vcf, aux)
struct device *parent;
- void *cf;
+ void *vcf;
void *aux;
{
static int mainbus_matched = 0;
void *vcf;
void *aux;
{
- struct cfdata *cf = vcf;
+ struct cfdata *cf = (struct cfdata *) vcf;
if ((*cf->cf_attach->ca_match)(parent, cf, NULL) > 0)
config_attach(parent, cf, NULL, NULL);