Home | History | Annotate | Download | only in tc

Lines Matching refs:asc

127 	struct asc_softc *asc = device_private(self);
128 struct ncr53c9x_softc *sc = &asc->sc_ncr53c9x;
136 asc->sc_bst = ta->ta_memt;
137 asc->sc_dmat = ta->ta_dmat;
138 if (bus_space_map(asc->sc_bst, ta->ta_addr,
139 PMAZ_OFFSET_RAM + PMAZ_RAM_SIZE, 0, &asc->sc_bsh)) {
143 asc->sc_base = (void *)ta->ta_addr; /* XXX XXX XXX */
195 struct asc_softc *asc = (struct asc_softc *)sc;
197 asc->sc_active = 0;
203 struct asc_softc *asc = (struct asc_softc *)sc;
207 if (!asc->sc_ispullup &&
216 trans = asc->sc_dmasize - resid;
218 if (asc->sc_ispullup)
219 memcpy(asc->sc_target, asc->sc_bounce, trans);
220 *asc->sc_dmalen -= trans;
221 *asc->sc_dmaaddr += trans;
222 asc->sc_active = 0;
231 struct asc_softc *asc = (struct asc_softc *)sc;
235 asc->sc_dmaaddr = addr;
236 asc->sc_dmalen = len;
237 asc->sc_ispullup = datain;
239 NCR_DMA(("asc_tc_setup: start %ld@%p, %s\n", (long)*asc->sc_dmalen,
240 *asc->sc_dmaaddr, datain ? "IN" : "OUT"));
245 *dmasize = asc->sc_dmasize = size;
247 NCR_DMA(("asc_tc_setup: dmasize = %ld\n", (long)asc->sc_dmasize));
249 asc->sc_bounce = asc->sc_base + PMAZ_OFFSET_RAM;
250 asc->sc_bounce += PER_TGT_DMA_SIZE *
252 asc->sc_target = *addr;
254 if (!asc->sc_ispullup)
255 memcpy(asc->sc_bounce, asc->sc_target, size);
258 if (asc->sc_ispullup)
259 tc_dmar = PMAZ_DMA_ADDR(asc->sc_bounce);
261 tc_dmar = PMAZ_DMAR_WRITE | PMAZ_DMA_ADDR(asc->sc_bounce);
262 bus_space_write_4(asc->sc_bst, asc->sc_bsh, PMAZ_OFFSET_DMAR, tc_dmar);
263 asc->sc_active = 1;
272 struct asc_softc *asc = (struct asc_softc *)sc;
275 if (asc->sc_ispullup)
276 tc_dmar = PMAZ_DMA_ADDR(asc->sc_bounce);
278 tc_dmar = PMAZ_DMAR_WRITE | PMAZ_DMA_ADDR(asc->sc_bounce);
279 bus_space_write_4(asc->sc_bst, asc->sc_bsh, PMAZ_OFFSET_DMAR, tc_dmar);
280 asc->sc_active = 1;
289 struct asc_softc *asc = (struct asc_softc *)sc;
291 if (asc->sc_ispullup)
292 memcpy(asc->sc_target, asc->sc_bounce, asc->sc_dmasize);
293 asc->sc_active = 0;
303 struct asc_softc *asc = (struct asc_softc *)sc;
305 return bus_space_read_4(asc->sc_bst, asc->sc_bsh,
312 struct asc_softc *asc = (struct asc_softc *)sc;
314 bus_space_write_4(asc->sc_bst, asc->sc_bsh,
328 struct asc_softc *asc = (struct asc_softc *)sc;
330 return asc->sc_active;