void ata_bs_rm_2_s(void *t, bus_space_handle_t h, bus_size_t o, u_int16_t *d, bus_size_t c) { struct ata_avila_softc *sc = t; uint16_t v; bus_size_t i; enable_16(sc); #if 1 for (i = 0; i < c; i++) { v = bus_space_read_2(sc->sc_iot, h, o); d[i] = bswap16(v); } #else bus_space_read_multi_stream_2(sc->sc_iot, h, o, d, c); #endif disable_16(sc); }
static void cambria_bs_rm_2_s(void *t, bus_space_handle_t h, bus_size_t o, u_int16_t *d, bus_size_t c) { struct expbus_softc *exp = t; struct ixp425_softc *sc = exp->sc; uint16_t v; bus_size_t i; EXP_LOCK(exp); enable_16(sc, exp->csoff); #if 1 for (i = 0; i < c; i++) { v = bus_space_read_2(sc->sc_iot, h, o); d[i] = bswap16(v); } #else bus_space_read_multi_stream_2(sc->sc_iot, h, o, d, c); #endif disable_16(sc, exp->csoff); EXP_UNLOCK(exp); }
void bs_through_bs_rms_2(bus_space_tag_t t, bus_space_handle_t bsh, bus_size_t offset, u_int16_t *addr, bus_size_t count) { bus_space_read_multi_stream_2(t->bs_base, bsh, offset, addr, count); }