Lines Matching refs:off
144 io_write_1( struct am79c930_softc *sc, u_int32_t off, u_int8_t val)
148 ((off>>8)& 0x7f));
150 bus_space_write_1(sc->sc_iot, sc->sc_ioh, AM79C930_LMA_LO, (off&0xff));
157 io_write_2(struct am79c930_softc *sc, u_int32_t off, u_int16_t val)
161 ((off>>8)& 0x7f));
163 bus_space_write_1(sc->sc_iot,sc->sc_ioh,AM79C930_LMA_LO, (off&0xff));
172 io_write_4(struct am79c930_softc *sc, u_int32_t off, u_int32_t val)
176 ((off>>8)& 0x7f));
178 bus_space_write_1(sc->sc_iot,sc->sc_ioh,AM79C930_LMA_LO, (off&0xff));
191 io_write_bytes(struct am79c930_softc *sc, u_int32_t off, u_int8_t *ptr,
198 ((off>>8)& 0x7f));
200 bus_space_write_1(sc->sc_iot,sc->sc_ioh,AM79C930_LMA_LO, (off&0xff));
207 io_read_1(struct am79c930_softc *sc, u_int32_t off)
212 ((off>>8)& 0x7f));
214 bus_space_write_1(sc->sc_iot, sc->sc_ioh, AM79C930_LMA_LO, (off&0xff));
222 io_read_2(struct am79c930_softc *sc, u_int32_t off)
227 ((off>>8)& 0x7f));
229 bus_space_write_1(sc->sc_iot, sc->sc_ioh, AM79C930_LMA_LO, (off&0xff));
239 io_read_4(struct am79c930_softc *sc, u_int32_t off)
244 ((off>>8)& 0x7f));
246 bus_space_write_1(sc->sc_iot, sc->sc_ioh, AM79C930_LMA_LO, (off&0xff));
260 io_read_bytes(struct am79c930_softc *sc, u_int32_t off, u_int8_t *ptr,
266 ((off>>8)& 0x7f));
268 bus_space_write_1(sc->sc_iot, sc->sc_ioh, AM79C930_LMA_LO, (off&0xff));
276 mem_write_1(struct am79c930_softc *sc, u_int32_t off, u_int8_t val)
278 bus_space_write_1(sc->sc_memt, sc->sc_memh, off, val);
282 mem_write_2(struct am79c930_softc *sc, u_int32_t off, u_int16_t val)
288 if ((off & 0x1) == 0)
289 bus_space_write_stream_2(t, h, off, htole16(val));
291 bus_space_write_1(t, h, off, val & 0xff);
292 bus_space_write_1(t, h, off+1, (val >> 8) & 0xff);
297 mem_write_4(struct am79c930_softc *sc, u_int32_t off, u_int32_t val)
303 if ((off & 0x3) == 0)
304 bus_space_write_stream_4(t, h, off, htole32(val));
306 bus_space_write_1(t, h, off, val & 0xff);
307 bus_space_write_1(t, h, off+1, (val >> 8) & 0xff);
308 bus_space_write_1(t, h, off+2, (val >> 16) & 0xff);
309 bus_space_write_1(t, h, off+3, (val >> 24) & 0xff);
314 mem_write_bytes(struct am79c930_softc *sc, u_int32_t off, u_int8_t *ptr,
317 bus_space_write_region_1 (sc->sc_memt, sc->sc_memh, off, ptr, len);
321 mem_read_1(struct am79c930_softc *sc, u_int32_t off)
323 return bus_space_read_1(sc->sc_memt, sc->sc_memh, off);
327 mem_read_2(struct am79c930_softc *sc, u_int32_t off)
330 if ((off & 0x1) == 0)
332 sc->sc_memh, off));
335 bus_space_read_1(sc->sc_memt, sc->sc_memh, off ) |
336 (bus_space_read_1(sc->sc_memt, sc->sc_memh, off+1) << 8);
340 mem_read_4(struct am79c930_softc *sc, u_int32_t off)
343 if ((off & 0x3) == 0)
345 off));
348 bus_space_read_1(sc->sc_memt, sc->sc_memh, off ) |
349 (bus_space_read_1(sc->sc_memt, sc->sc_memh, off+1) << 8) |
350 (bus_space_read_1(sc->sc_memt, sc->sc_memh, off+2) <<16) |
351 (bus_space_read_1(sc->sc_memt, sc->sc_memh, off+3) <<24);
355 mem_read_bytes(struct am79c930_softc *sc, u_int32_t off, u_int8_t *ptr,
358 bus_space_read_region_1 (sc->sc_memt, sc->sc_memh, off, ptr, len);