summaryrefslogtreecommitdiff
path: root/sys/dev/isa
diff options
context:
space:
mode:
authorOwain Ainsworth <oga@cvs.openbsd.org>2008-11-22 13:14:36 +0000
committerOwain Ainsworth <oga@cvs.openbsd.org>2008-11-22 13:14:36 +0000
commit2056bd4b305a27b57a0072c3f4d95d752d5e7822 (patch)
tree03798c094457418fda5ba818fc346f657f9487f7 /sys/dev/isa
parent078460bf16fe825001b2b5032a9015b17518b8c7 (diff)
cast pointer to correct type before passing it to bus space. Noticed while
de-inlining i386 bus_space. ok weingart@
Diffstat (limited to 'sys/dev/isa')
-rw-r--r--sys/dev/isa/if_ex.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/dev/isa/if_ex.c b/sys/dev/isa/if_ex.c
index 6ccec01b67f..0bb810f82c7 100644
--- a/sys/dev/isa/if_ex.c
+++ b/sys/dev/isa/if_ex.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_ex.c,v 1.33 2008/10/02 20:21:13 brad Exp $ */
+/* $OpenBSD: if_ex.c,v 1.34 2008/11/22 13:14:35 oga Exp $ */
/*
* Copyright (c) 1997, Donald A. Schmidt
* Copyright (c) 1996, Javier Martín Rueda (jmrueda@diatel.upm.es)
@@ -136,14 +136,16 @@ struct cfdriver ex_cd = {
#define CSR_READ_2(sc, off) \
bus_space_read_2((sc)->sc_iot, (sc)->sc_ioh, (off))
#define CSR_READ_MULTI_2(sc, off, addr, count) \
- bus_space_read_multi_2((sc)->sc_iot, (sc)->sc_ioh, (off), (addr), (count))
+ bus_space_read_multi_2((sc)->sc_iot, (sc)->sc_ioh, (off), \
+ (u_int16_t *)(addr), (count))
#define CSR_WRITE_1(sc, off, value) \
bus_space_write_1((sc)->sc_iot, (sc)->sc_ioh, (off), (value))
#define CSR_WRITE_2(sc, off, value) \
bus_space_write_2((sc)->sc_iot, (sc)->sc_ioh, (off), (value))
#define CSR_WRITE_MULTI_2(sc, off, addr, count) \
- bus_space_write_multi_2((sc)->sc_iot, (sc)->sc_ioh, (off), (addr), (count))
+ bus_space_write_multi_2((sc)->sc_iot, (sc)->sc_ioh, (off), \
+ (u_int16_t *)(addr), (count))
int
ex_look_for_card(struct isa_attach_args *ia, struct ex_softc *sc)