summaryrefslogtreecommitdiff
path: root/sys/arch/mvme68k/dev/vme.h
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/vme.h
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/vme.h')
-rw-r--r--sys/arch/mvme68k/dev/vme.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/sys/arch/mvme68k/dev/vme.h b/sys/arch/mvme68k/dev/vme.h
index 171b1a67cd0..7cd8c651450 100644
--- a/sys/arch/mvme68k/dev/vme.h
+++ b/sys/arch/mvme68k/dev/vme.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: vme.h,v 1.11 2004/07/30 22:29:45 miod Exp $ */
+/* $OpenBSD: vme.h,v 1.12 2005/11/24 22:43:16 miod Exp $ */
/*
* Copyright (c) 1995 Theo de Raadt
@@ -27,7 +27,7 @@
struct vmesoftc {
struct device sc_dev;
- void * sc_vaddr;
+ vaddr_t sc_vaddr;
struct intrhand sc_abih; /* `abort' switch */
};
@@ -327,10 +327,8 @@ struct vme2reg {
#define VME2_A16BASE 0xffff0000UL
#define VME2_A24BASE 0xff000000UL
-void * vmepmap(struct vmesoftc *sc, void * vmeaddr, int len,
- int bustype);
-void * vmemap(struct vmesoftc *sc, void * vmeaddr, int len,
- int bustype);
+paddr_t vmepmap(struct vmesoftc *sc, paddr_t vmeaddr, int len, int bustype);
+vaddr_t vmemap(struct vmesoftc *sc, paddr_t vmeaddr, int len, int bustype);
int vmerw(struct vmesoftc *sc, struct uio *uio, int flags, int bus);
int vmeintr_establish(int, struct intrhand *, const char *);