summaryrefslogtreecommitdiff
path: root/sys/arch/amiga/dev/ite.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1996-04-21 22:33:19 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1996-04-21 22:33:19 +0000
commit67d88b0a9910a68bb666b448d2dac29cb4d3d8c2 (patch)
tree967b89f6e07398a22bd8c76d30179b648776542d /sys/arch/amiga/dev/ite.c
parentba95d3c1d69cdb251d15a12ebf70f50b0ea2019b (diff)
partial sync with netbsd 960418, more to come
Diffstat (limited to 'sys/arch/amiga/dev/ite.c')
-rw-r--r--sys/arch/amiga/dev/ite.c23
1 files changed, 13 insertions, 10 deletions
diff --git a/sys/arch/amiga/dev/ite.c b/sys/arch/amiga/dev/ite.c
index 6f4f812ea16..4293975c9b2 100644
--- a/sys/arch/amiga/dev/ite.c
+++ b/sys/arch/amiga/dev/ite.c
@@ -1,5 +1,5 @@
-/* $OpenBSD: ite.c,v 1.4 1996/03/30 22:18:20 niklas Exp $ */
-/* $NetBSD: ite.c,v 1.36 1996/03/16 08:19:43 mhitch Exp $ */
+/* $OpenBSD: ite.c,v 1.5 1996/04/21 22:15:30 deraadt Exp $ */
+/* $NetBSD: ite.c,v 1.38 1996/03/17 05:58:48 mhitch Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@@ -115,21 +115,24 @@ static void ite_sifilter __P((void *, void *));
void iteputchar __P((int c, struct ite_softc *ip));
void ite_putstr __P((const char * s, int len, dev_t dev));
void iteattach __P((struct device *, struct device *, void *));
-int itematch __P((struct device *, struct cfdata *, void *));
+int itematch __P((struct device *, void *, void *));
static void iteprecheckwrap __P((struct ite_softc *));
static void itecheckwrap __P((struct ite_softc *));
+struct cfattach ite_ca = {
+ sizeof(struct ite_softc), itematch, iteattach
+};
-struct cfdriver itecd = {
- NULL, "ite", (cfmatch_t)itematch, iteattach, DV_DULL,
- sizeof(struct ite_softc), NULL, 0 };
+struct cfdriver ite_cd = {
+ NULL, "ite", DV_DULL, NULL, 0
+};
int
-itematch(pdp, cdp, auxp)
+itematch(pdp, match, auxp)
struct device *pdp;
- struct cfdata *cdp;
- void *auxp;
+ void *match, *auxp;
{
+ struct cfdata *cdp = match;
struct grf_softc *gp;
int maj;
@@ -212,7 +215,7 @@ getitesp(dev)
dev_t dev;
{
if (amiga_realconfig && con_itesoftc.grf == NULL)
- return(itecd.cd_devs[ITEUNIT(dev)]);
+ return(ite_cd.cd_devs[ITEUNIT(dev)]);
if (con_itesoftc.grf == NULL)
panic("no ite_softc for console");