Patch from Eduardo Horvath: don't bus_dmamap_sync the script dma map if
it lives in the on-chip RAM !
This commit is contained in:
parent
c60ddc2403
commit
dbc130250d
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: siop.c,v 1.21 2000/06/13 13:59:17 bouyer Exp $ */
|
||||
/* $NetBSD: siop.c,v 1.22 2000/06/20 17:16:22 bouyer Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2000 Manuel Bouyer.
|
||||
@ -331,8 +331,10 @@ siop_reset(sc)
|
||||
htole32(sc->sc_scriptaddr + Ent_reselect);
|
||||
|
||||
/* start script */
|
||||
bus_dmamap_sync(sc->sc_dmat, sc->sc_scriptdma, 0, NBPG,
|
||||
BUS_DMASYNC_PREREAD | BUS_DMASYNC_PREWRITE);
|
||||
if ((sc->features & SF_CHIP_RAM) == 0) {
|
||||
bus_dmamap_sync(sc->sc_dmat, sc->sc_scriptdma, 0, NBPG,
|
||||
BUS_DMASYNC_PREREAD | BUS_DMASYNC_PREWRITE);
|
||||
}
|
||||
siop_shed_sync(sc, BUS_DMASYNC_PREREAD | BUS_DMASYNC_PREWRITE);
|
||||
bus_space_write_4(sc->sc_rt, sc->sc_rh, SIOP_DSP,
|
||||
sc->sc_scriptaddr + Ent_reselect);
|
||||
|
Loading…
Reference in New Issue
Block a user