summaryrefslogtreecommitdiff
path: root/sys/arch/mvme68k/dev/if_ie.c
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2005-11-24 22:43:20 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2005-11-24 22:43:20 +0000
commit1b1b775efbf1ce5de10a4e90ce6f1b8fef11cf6d (patch)
tree8f11d2dab7028064b566ebe83b7f71890c6f1224 /sys/arch/mvme68k/dev/if_ie.c
parent3b6fc494d6c3ea81b031d03cd56c0569869c875f (diff)
Prefer vaddr_t and paddr_t types in device softc, instead of void * and
heavy casts. Improves readability, no functional change.
Diffstat (limited to 'sys/arch/mvme68k/dev/if_ie.c')
-rw-r--r--sys/arch/mvme68k/dev/if_ie.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/arch/mvme68k/dev/if_ie.c b/sys/arch/mvme68k/dev/if_ie.c
index a50fcd5c92a..708a68ff125 100644
--- a/sys/arch/mvme68k/dev/if_ie.c
+++ b/sys/arch/mvme68k/dev/if_ie.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_ie.c,v 1.29 2005/07/31 03:52:18 pascoe Exp $ */
+/* $OpenBSD: if_ie.c,v 1.30 2005/11/24 22:43:16 miod Exp $ */
/*-
* Copyright (c) 1999 Steve Murphree, Jr.
@@ -174,7 +174,7 @@ struct ie_softc {
caddr_t sc_iobase; /* KVA of base of 24 bit addr space */
caddr_t sc_maddr; /* KVA of base of chip's RAM (16bit addr sp.)*/
u_int sc_msize; /* how much RAM we have/use */
- caddr_t sc_reg; /* KVA of car's register */
+ vaddr_t sc_reg; /* KVA of car's register */
int sc_bustype;
struct arpcom sc_arpcom;/* system arpcom structure */
@@ -356,7 +356,7 @@ ie_obreset(arg)
void *arg;
{
struct ie_softc *sc = (struct ie_softc *)arg;
- volatile struct ieob *ieo = (struct ieob *) sc->sc_reg;
+ volatile struct ieob *ieo = (struct ieob *)sc->sc_reg;
volatile int t;
u_long a;
@@ -379,7 +379,7 @@ ie_obattend(arg)
void *arg;
{
struct ie_softc *sc = (struct ie_softc *)arg;
- volatile struct ieob *ieo = (struct ieob *) sc->sc_reg;
+ volatile struct ieob *ieo = (struct ieob *)sc->sc_reg;
ieo->attn = 1;
}
@@ -414,7 +414,7 @@ ieattach(parent, self, aux)
sc->memzero = bzero;
sc->sc_msize = etherlen;
sc->sc_reg = ca->ca_vaddr;
- ieo = (volatile struct ieob *) sc->sc_reg;
+ ieo = (volatile struct ieob *)sc->sc_reg;
/* Are we the boot device? */
if (ca->ca_paddr == bootaddr)