summaryrefslogtreecommitdiffstats
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
parent210fe355d3c5234c1b07268015ac927d07531878 (diff)
downloadlibbsdport-d24c36f76ba090714fb7b84abd210935a8aeba8e.tar.bz2
2009/05/12 (TS)
- bugfix: bus_write_2() must map to bus_space_write_2 (not 4)
-rw-r--r--bsd_eth_drivers/ChangeLog2
-rw-r--r--bsd_eth_drivers/libbsdport/bus.h2
2 files changed, 3 insertions, 1 deletions
diff --git a/bsd_eth_drivers/ChangeLog b/bsd_eth_drivers/ChangeLog
index de70ce7..2b48187 100644
--- a/bsd_eth_drivers/ChangeLog
+++ b/bsd_eth_drivers/ChangeLog
@@ -1,3 +1,5 @@
+ 2009/05/12 (TS)
+ - bugfix: bus_write_2() must map to bus_space_write_2 (not 4)
2009/04/22 (TS)
- imported SLAC version into OAR repository; added FXP driver.
2008/03/22 (TS)
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)