Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/sbus Fix fall-out from previous change: the map's DM...
details: https://anonhg.NetBSD.org/src/rev/662cd85dfbec
branches: trunk
changeset: 507347:662cd85dfbec
user: pk <pk%NetBSD.org@localhost>
date: Tue Mar 20 15:39:20 2001 +0000
description:
Fix fall-out from previous change: the map's DMA address is valid only
after bus_dmamap_load().
diffstat:
sys/dev/sbus/be.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (25 lines):
diff -r fab37cce42ab -r 662cd85dfbec sys/dev/sbus/be.c
--- a/sys/dev/sbus/be.c Tue Mar 20 15:39:16 2001 +0000
+++ b/sys/dev/sbus/be.c Tue Mar 20 15:39:20 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: be.c,v 1.25 2001/03/08 02:20:39 thorpej Exp $ */
+/* $NetBSD: be.c,v 1.26 2001/03/20 15:39:20 pk Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -335,7 +335,6 @@
self->dv_xname, error);
return;
}
- sc->sc_rb.rb_dmabase = sc->sc_dmamap->dm_segs[0].ds_addr;
/* Map DMA memory in CPU addressable space */
if ((error = bus_dmamem_map(sa->sa_dmatag, &seg, rseg, size,
@@ -357,6 +356,7 @@
bus_dmamem_free(dmatag, &seg, rseg);
return;
}
+ sc->sc_rb.rb_dmabase = sc->sc_dmamap->dm_segs[0].ds_addr;
/*
* Initialize our media structures and MII info.
Home |
Main Index |
Thread Index |
Old Index