summaryrefslogtreecommitdiff
path: root/sys/dev/pci/bktr/bktr_os.c
diff options
context:
space:
mode:
authorFederico G. Schwindt <fgsch@cvs.openbsd.org>2001-05-16 07:15:43 +0000
committerFederico G. Schwindt <fgsch@cvs.openbsd.org>2001-05-16 07:15:43 +0000
commitc230719d3e8efbfb19246c75c50d10162a4cfd97 (patch)
treea5868542163ae66c21222d698d5b51d0ad992ffd /sys/dev/pci/bktr/bktr_os.c
parenta40b50aa26a5e0e6ecabe96e627ee8677ae06c63 (diff)
use dma_mapsize now that's available.
Diffstat (limited to 'sys/dev/pci/bktr/bktr_os.c')
-rw-r--r--sys/dev/pci/bktr/bktr_os.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/sys/dev/pci/bktr/bktr_os.c b/sys/dev/pci/bktr/bktr_os.c
index 0a758773159..ca33efe3dbf 100644
--- a/sys/dev/pci/bktr/bktr_os.c
+++ b/sys/dev/pci/bktr/bktr_os.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bktr_os.c,v 1.1 2001/03/28 03:27:09 fgsch Exp $ */
+/* $OpenBSD: bktr_os.c,v 1.2 2001/05/16 07:15:41 fgsch Exp $ */
/* $FreeBSD: src/sys/dev/bktr/bktr_os.c,v 1.20 2000/10/20 08:16:53 roger Exp $ */
/*
@@ -1499,9 +1499,6 @@ get_bktr_mem(bktr, dmapp, size)
bus_dmamem_free(dmat, &seg, rseg);
return 0;
}
-#ifdef __OpenBSD__
- bktr->dm_mapsize = size;
-#endif
/*
* Create and locd the DMA map for the DMA area
*/
@@ -1531,11 +1528,7 @@ free_bktr_mem(bktr, dmap, kva)
{
bus_dma_tag_t dmat = bktr->dmat;
-#ifdef __NetBSD__
bus_dmamem_unmap(dmat, (caddr_t)kva, dmap->dm_mapsize);
-#else
- bus_dmamem_unmap(dmat, (caddr_t)kva, bktr->dm_mapsize);
-#endif
bus_dmamem_free(dmat, dmap->dm_segs, 1);
bus_dmamap_destroy(dmat, dmap);
}