summaryrefslogtreecommitdiff
path: root/sys/dev/isa
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/isa')
-rw-r--r--sys/dev/isa/aha.c4
-rw-r--r--sys/dev/isa/uha_isa.c4
-rw-r--r--sys/dev/isa/wds.c4
3 files changed, 6 insertions, 6 deletions
diff --git a/sys/dev/isa/aha.c b/sys/dev/isa/aha.c
index 7ab516489c6..a61279dd3e9 100644
--- a/sys/dev/isa/aha.c
+++ b/sys/dev/isa/aha.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: aha.c,v 1.53 2004/12/26 21:22:13 miod Exp $ */
+/* $OpenBSD: aha.c,v 1.54 2005/11/23 11:30:14 mickey Exp $ */
/* $NetBSD: aha.c,v 1.11 1996/05/12 23:51:23 mycroft Exp $ */
#undef AHADIAG
@@ -1147,7 +1147,7 @@ aha_init(sc)
/* Initialize mail box. */
mailbox.cmd.opcode = AHA_MBX_INIT;
mailbox.cmd.nmbx = AHA_MBX_SIZE;
- ltophys(vtophys(wmbx), mailbox.cmd.addr);
+ ltophys(vtophys((vaddr_t)wmbx), mailbox.cmd.addr);
aha_cmd(iobase, sc, sizeof(mailbox.cmd), (u_char *)&mailbox.cmd,
0, (u_char *)0);
}
diff --git a/sys/dev/isa/uha_isa.c b/sys/dev/isa/uha_isa.c
index 371c2d30f4d..684b44894c8 100644
--- a/sys/dev/isa/uha_isa.c
+++ b/sys/dev/isa/uha_isa.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uha_isa.c,v 1.6 2002/03/14 01:26:56 millert Exp $ */
+/* $OpenBSD: uha_isa.c,v 1.7 2005/11/23 11:30:14 mickey Exp $ */
/* $NetBSD: uha_isa.c,v 1.5 1996/10/21 22:41:21 thorpej Exp $ */
/*
@@ -63,7 +63,7 @@ struct cfattach uha_isa_ca = {
sizeof(struct uha_softc), uha_isa_probe, uha_isa_attach
};
-#define KVTOPHYS(x) vtophys(x)
+#define KVTOPHYS(x) vtophys((vaddr_t)(x))
int u14_find(bus_space_tag_t, bus_space_handle_t, struct uha_softc *);
void u14_start_mbox(struct uha_softc *, struct uha_mscp *);
diff --git a/sys/dev/isa/wds.c b/sys/dev/isa/wds.c
index 58b730a4d39..074b2804a2f 100644
--- a/sys/dev/isa/wds.c
+++ b/sys/dev/isa/wds.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: wds.c,v 1.20 2005/02/17 18:07:36 jfb Exp $ */
+/* $OpenBSD: wds.c,v 1.21 2005/11/23 11:30:14 mickey Exp $ */
/* $NetBSD: wds.c,v 1.13 1996/11/03 16:20:31 mycroft Exp $ */
#undef WDSDIAG
@@ -104,7 +104,7 @@ struct wds_mbx {
struct wds_mbx_in *tmbi; /* Target Mail Box in */
};
-#define KVTOPHYS(x) vtophys(x)
+#define KVTOPHYS(x) vtophys((vaddr_t)(x))
struct wds_softc {
struct device sc_dev;