diff options
author | Steve Murphree <smurph@cvs.openbsd.org> | 1998-12-15 05:52:32 +0000 |
---|---|---|
committer | Steve Murphree <smurph@cvs.openbsd.org> | 1998-12-15 05:52:32 +0000 |
commit | be8c8622ef57b334e07dd5c0f36cdacbd0ba355a (patch) | |
tree | bd550e88fe9e76416d05e97d3152a6fe0bf0a3b8 /sys/arch/mvme88k/dev/vmes.c | |
parent | 2fb8d39328cdf8894f11b9eb00c06436c0677e5d (diff) |
Commit for the first real OpenBSD mvme88k port.
Diffstat (limited to 'sys/arch/mvme88k/dev/vmes.c')
-rw-r--r-- | sys/arch/mvme88k/dev/vmes.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/sys/arch/mvme88k/dev/vmes.c b/sys/arch/mvme88k/dev/vmes.c index 9bfa8c6dc84..dfe5a6cccb9 100644 --- a/sys/arch/mvme88k/dev/vmes.c +++ b/sys/arch/mvme88k/dev/vmes.c @@ -1,4 +1,4 @@ -/* $NetBSD$ */ +/* $OpenBSD: vmes.c,v 1.2 1998/12/15 05:52:31 smurph Exp $ */ /* * Copyright (c) 1995 Theo de Raadt @@ -50,11 +50,6 @@ void vmesattach __P((struct device *, struct device *, void *)); int vmesmatch __P((struct device *, void *, void *)); -struct vmessoftc { - struct device sc_dev; - struct vmesoftc *sc_vme; -}; - struct cfattach vmes_ca = { sizeof(struct vmessoftc), vmesmatch, vmesattach }; @@ -63,7 +58,6 @@ struct cfdriver vmes_cd = { NULL, "vmes", DV_DULL, 0 }; - int vmesmatch(parent, cf, args) struct device *parent; @@ -167,9 +161,9 @@ vmesmmap(dev, off, prot) { int unit = minor(dev); struct vmessoftc *sc = (struct vmessoftc *) vmes_cd.cd_devs[unit]; - caddr_t pa; + void * pa; - pa = vmepmap(sc->sc_vme, (caddr_t)off, NBPG, BUS_VMES); + pa = vmepmap(sc->sc_vme, (void *)off, NBPG, BUS_VMES); printf("vmes %x pa %x\n", off, pa); if (pa == NULL) return (-1); |