summaryrefslogtreecommitdiffstats
path: root/bsd_eth_drivers/libbsdport/bus.h
diff options
context:
space:
mode:
authorTill Straumann <strauman@slac.stanford.edu>2009-05-13 01:33:55 +0000
committerTill Straumann <strauman@slac.stanford.edu>2009-05-13 01:33:55 +0000
commitd24c36f76ba090714fb7b84abd210935a8aeba8e (patch)
tree597dd1d660e29b759f3b0836a29d4ca0b79beea6 /bsd_eth_drivers/libbsdport/bus.h
parent - had lost a few bits during the merge... (diff)
downloadlibbsdport-d24c36f76ba090714fb7b84abd210935a8aeba8e.tar.bz2
2009/05/12 (TS)
- bugfix: bus_write_2() must map to bus_space_write_2 (not 4)
Diffstat (limited to 'bsd_eth_drivers/libbsdport/bus.h')
-rw-r--r--bsd_eth_drivers/libbsdport/bus.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/bsd_eth_drivers/libbsdport/bus.h b/bsd_eth_drivers/libbsdport/bus.h
index a5b1eda..0593d9c 100644
--- a/bsd_eth_drivers/libbsdport/bus.h
+++ b/bsd_eth_drivers/libbsdport/bus.h
@@ -236,7 +236,7 @@ static inline void bus_write_1(struct resource *r, bus_size_t o, u_int8_t v)
static inline void bus_write_2(struct resource *r, bus_size_t o, u_int16_t v)
{
- bus_space_write_4(rman_get_bustag(r), rman_get_bushandle(r), o, v);
+ bus_space_write_2(rman_get_bustag(r), rman_get_bushandle(r), o, v);
}
static inline void bus_write_4(struct resource *r, bus_size_t o, u_int32_t v)