Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/sbus It is no longer necessary to protect bus_dma_[u...
details: https://anonhg.NetBSD.org/src/rev/973b546be16d
branches: trunk
changeset: 472218:973b546be16d
user: pk <pk%NetBSD.org@localhost>
date: Sun Apr 25 10:40:53 1999 +0000
description:
It is no longer necessary to protect bus_dma_[un]load() at splbio, since
sparc bus_dma*() functions now protect their own internals..
diffstat:
sys/dev/sbus/isp_sbus.c | 8 +-------
1 files changed, 1 insertions(+), 7 deletions(-)
diffs (48 lines):
diff -r ed51559376d8 -r 973b546be16d sys/dev/sbus/isp_sbus.c
--- a/sys/dev/sbus/isp_sbus.c Sun Apr 25 10:30:02 1999 +0000
+++ b/sys/dev/sbus/isp_sbus.c Sun Apr 25 10:40:53 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: isp_sbus.c,v 1.10 1999/03/26 22:45:17 mjacob Exp $ */
+/* $NetBSD: isp_sbus.c,v 1.11 1999/04/25 10:40:53 pk Exp $ */
/* release_03_25_99 */
/*
* SBus specific probe and attach routines for Qlogic ISP SCSI adapters.
@@ -312,7 +312,6 @@
{
struct isp_sbussoftc *sbc = (struct isp_sbussoftc *) isp;
bus_dmamap_t dmamap;
- int s;
int dosleep = (xs->flags & SCSI_NOSLEEP) != 0;
if (xs->datalen == 0) {
@@ -331,14 +330,12 @@
panic("%s: dma map already allocated\n", isp->isp_name);
/* NOTREACHED */
}
- s = splbio();
if (bus_dmamap_load(sbc->sbus_dmatag, dmamap,
xs->data, xs->datalen, NULL,
dosleep ? BUS_DMA_WAITOK : BUS_DMA_NOWAIT) != 0) {
XS_SETERR(xs, HBA_BOTCH);
return (CMD_COMPLETE);
}
- splx(s);
bus_dmamap_sync(sbc->sbus_dmatag, dmamap,
dmamap->dm_segs[0].ds_addr, xs->datalen,
(xs->flags & SCSI_DATA_IN)
@@ -364,7 +361,6 @@
{
struct isp_sbussoftc *sbc = (struct isp_sbussoftc *) isp;
bus_dmamap_t dmamap;
- int s;
if (handle >= RQUEST_QUEUE_LEN) {
panic("%s: bad handle (%d) in isp_sbus_dmateardown\n",
@@ -382,7 +378,5 @@
(xs->flags & SCSI_DATA_IN)
? BUS_DMASYNC_POSTREAD
: BUS_DMASYNC_POSTWRITE);
- s = splbio();
bus_dmamap_unload(sbc->sbus_dmatag, dmamap);
- splx(s);
}
Home |
Main Index |
Thread Index |
Old Index