From d24c36f76ba090714fb7b84abd210935a8aeba8e Mon Sep 17 00:00:00 2001 From: Till Straumann Date: Wed, 13 May 2009 01:33:55 +0000 Subject: 2009/05/12 (TS) - bugfix: bus_write_2() must map to bus_space_write_2 (not 4) --- bsd_eth_drivers/ChangeLog | 2 ++ bsd_eth_drivers/libbsdport/bus.h | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'bsd_eth_drivers') 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) -- cgit v1.2.3