diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2005-11-24 22:43:20 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2005-11-24 22:43:20 +0000 |
commit | 1b1b775efbf1ce5de10a4e90ce6f1b8fef11cf6d (patch) | |
tree | 8f11d2dab7028064b566ebe83b7f71890c6f1224 /sys/arch/mvme68k/dev/ipic.c | |
parent | 3b6fc494d6c3ea81b031d03cd56c0569869c875f (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/ipic.c')
-rw-r--r-- | sys/arch/mvme68k/dev/ipic.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/arch/mvme68k/dev/ipic.c b/sys/arch/mvme68k/dev/ipic.c index ff766a2c20c..d707f80b9f7 100644 --- a/sys/arch/mvme68k/dev/ipic.c +++ b/sys/arch/mvme68k/dev/ipic.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ipic.c,v 1.15 2004/07/30 22:29:45 miod Exp $ */ +/* $OpenBSD: ipic.c,v 1.16 2005/11/24 22:43:16 miod Exp $ */ /* * Copyright (c) 1995 Theo de Raadt @@ -98,7 +98,8 @@ ipicscan(parent, child, args) struct ipicsoftc *sc = (struct ipicsoftc *)parent; struct confargs oca; int slot, n = 0; - caddr_t ipv, ipp; + vaddr_t ipv; + paddr_t ipp; struct ipid *ipid; /* XXX can we determine IPIC_IPSPACE automatically? */ @@ -108,7 +109,7 @@ ipicscan(parent, child, args) continue; ipv = mapiodev(ipp, NBPG); - if (ipv == NULL) + if (ipv == 0) continue; ipid = (struct ipid *)(ipv + IPIC_IP_IDOFFSET); @@ -152,7 +153,7 @@ ipicattach(parent, self, args) struct confargs *ca = args; sc->sc_ipic = (struct ipicreg *)ca->ca_vaddr; - sc->sc_ipspace = (caddr_t)IPIC_IPSPACE; + sc->sc_ipspace = IPIC_IPSPACE; sc->sc_nip = 2; /* |