diff options
author | Federico G. Schwindt <fgsch@cvs.openbsd.org> | 2001-05-16 07:15:43 +0000 |
---|---|---|
committer | Federico G. Schwindt <fgsch@cvs.openbsd.org> | 2001-05-16 07:15:43 +0000 |
commit | c230719d3e8efbfb19246c75c50d10162a4cfd97 (patch) | |
tree | a5868542163ae66c21222d698d5b51d0ad992ffd /sys/dev/pci/bktr | |
parent | a40b50aa26a5e0e6ecabe96e627ee8677ae06c63 (diff) |
use dma_mapsize now that's available.
Diffstat (limited to 'sys/dev/pci/bktr')
-rw-r--r-- | sys/dev/pci/bktr/bktr_os.c | 9 | ||||
-rw-r--r-- | sys/dev/pci/bktr/bktr_reg.h | 5 |
2 files changed, 2 insertions, 12 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); } diff --git a/sys/dev/pci/bktr/bktr_reg.h b/sys/dev/pci/bktr/bktr_reg.h index d29a1559ca3..645952dbf01 100644 --- a/sys/dev/pci/bktr/bktr_reg.h +++ b/sys/dev/pci/bktr/bktr_reg.h @@ -1,4 +1,4 @@ -/* $OpenBSD: bktr_reg.h,v 1.3 2001/03/28 07:13:43 fgsch Exp $ */ +/* $OpenBSD: bktr_reg.h,v 1.4 2001/05/16 07:15:42 fgsch Exp $ */ /* * $FreeBSD: src/sys/dev/bktr/bktr_reg.h,v 1.42 2000/10/31 13:09:56 roger Exp $ * @@ -518,9 +518,6 @@ struct bktr_softc { bus_dmamap_t dm_mem; bus_dmamap_t dm_vbidata; bus_dmamap_t dm_vbibuffer; -#ifdef __OpenBSD__ - size_t dm_mapsize; -#endif #endif #if defined (__FreeBSD__) |