summaryrefslogtreecommitdiff
path: root/sys/dev/pci/if_txp.c
diff options
context:
space:
mode:
authorJason Wright <jason@cvs.openbsd.org>2001-05-09 02:25:10 +0000
committerJason Wright <jason@cvs.openbsd.org>2001-05-09 02:25:10 +0000
commitdb3ddfef927f4a1092cea3ad37f1673ec2689964 (patch)
treed611c03c14efb2753acad4fb8967e7219c84e8a9 /sys/dev/pci/if_txp.c
parenta51d1143e2e6d1f92adc7d67d63dacf4794fcca7 (diff)
revert reverted patch now that bus_dma has been updated on i386
Diffstat (limited to 'sys/dev/pci/if_txp.c')
-rw-r--r--sys/dev/pci/if_txp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/pci/if_txp.c b/sys/dev/pci/if_txp.c
index 134b930918d..82ba5503897 100644
--- a/sys/dev/pci/if_txp.c
+++ b/sys/dev/pci/if_txp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_txp.c,v 1.25 2001/05/08 05:22:01 jason Exp $ */
+/* $OpenBSD: if_txp.c,v 1.26 2001/05/09 02:25:08 jason Exp $ */
/*
* Copyright (c) 2001
@@ -1004,7 +1004,7 @@ txp_dma_malloc(sc, size, dma, mapflags)
}
dma->dma_paddr = dma->dma_map->dm_segs[0].ds_addr;
- dma->dma_size = size;
+
return (0);
}
@@ -1013,7 +1013,7 @@ txp_dma_free(sc, dma)
struct txp_softc *sc;
struct txp_dma_alloc *dma;
{
- bus_dmamem_unmap(sc->sc_dmat, dma->dma_vaddr, dma->dma_size);
+ bus_dmamem_unmap(sc->sc_dmat, dma->dma_vaddr, dma->dma_map->dm_mapsize);
bus_dmamem_free(sc->sc_dmat, dma->dma_map->dm_segs, dma->dma_map->dm_nsegs);
bus_dmamap_unload(sc->sc_dmat, dma->dma_map);
bus_dmamap_destroy(sc->sc_dmat, dma->dma_map);