From 30b2ebc07de7ae4804d8ac9f0689be9ffea493cf Mon Sep 17 00:00:00 2001 From: imp Date: Tue, 28 Aug 2012 03:27:48 +0000 Subject: Style: Move these routines to be before the forward declared functions as is the normal practice. --- sys/arm/at91/at91_mci.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'sys/arm/at91/at91_mci.c') diff --git a/sys/arm/at91/at91_mci.c b/sys/arm/at91/at91_mci.c index 55044e3..8c448cc 100644 --- a/sys/arm/at91/at91_mci.c +++ b/sys/arm/at91/at91_mci.c @@ -161,18 +161,6 @@ struct at91_mci_softc { uint32_t xfer_offset; /* offset so far into caller's buf */ }; -static inline uint32_t -RD4(struct at91_mci_softc *sc, bus_size_t off) -{ - return (bus_read_4(sc->mem_res, off)); -} - -static inline void -WR4(struct at91_mci_softc *sc, bus_size_t off, uint32_t val) -{ - bus_write_4(sc->mem_res, off, val); -} - /* bus entry points */ static int at91_mci_probe(device_t dev); static int at91_mci_attach(device_t dev); @@ -193,6 +181,18 @@ static int at91_mci_is_mci1rev2xx(void); #define AT91_MCI_ASSERT_LOCKED(_sc) mtx_assert(&_sc->sc_mtx, MA_OWNED); #define AT91_MCI_ASSERT_UNLOCKED(_sc) mtx_assert(&_sc->sc_mtx, MA_NOTOWNED); +static inline uint32_t +RD4(struct at91_mci_softc *sc, bus_size_t off) +{ + return (bus_read_4(sc->mem_res, off)); +} + +static inline void +WR4(struct at91_mci_softc *sc, bus_size_t off, uint32_t val) +{ + bus_write_4(sc->mem_res, off, val); +} + static void at91_bswap_buf(struct at91_mci_softc *sc, void * dptr, void * sptr, uint32_t memsize) { -- cgit v1.1