summaryrefslogtreecommitdiff
path: root/sys/arch/mvme68k/dev/pcc.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/pcc.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/pcc.c')
-rw-r--r--sys/arch/mvme68k/dev/pcc.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/arch/mvme68k/dev/pcc.c b/sys/arch/mvme68k/dev/pcc.c
index 45250dac7d7..793f3a9bd4d 100644
--- a/sys/arch/mvme68k/dev/pcc.c
+++ b/sys/arch/mvme68k/dev/pcc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pcc.c,v 1.14 2004/07/30 22:29:45 miod Exp $ */
+/* $OpenBSD: pcc.c,v 1.15 2005/11/24 22:43:16 miod Exp $ */
/*
* Copyright (c) 1995 Theo de Raadt
@@ -48,8 +48,8 @@
struct pccsoftc {
struct device sc_dev;
- void *sc_vaddr;
- void *sc_paddr;
+ vaddr_t sc_vaddr;
+ paddr_t sc_paddr;
struct pccreg *sc_pcc;
struct intrhand sc_nmiih;
};
@@ -113,8 +113,8 @@ pcc_scan(parent, child, args)
oca.ca_vaddr = sc->sc_vaddr + oca.ca_offset;
oca.ca_paddr = sc->sc_paddr + oca.ca_offset;
} else {
- oca.ca_vaddr = (void *)-1;
- oca.ca_paddr = (void *)-1;
+ oca.ca_vaddr = (vaddr_t)-1;
+ oca.ca_paddr = (paddr_t)-1;
}
oca.ca_bustype = BUS_PCC;
oca.ca_name = cf->cf_driver->cd_name;
@@ -140,7 +140,7 @@ pccattach(parent, self, args)
* we must adjust our address
*/
sc->sc_paddr = ca->ca_paddr;
- sc->sc_vaddr = (void *)IIOV(sc->sc_paddr);
+ sc->sc_vaddr = IIOV(sc->sc_paddr);
sc->sc_pcc = (struct pccreg *)(sc->sc_vaddr + PCCSPACE_PCCCHIP_OFF);
sys_pcc = sc->sc_pcc;