summaryrefslogtreecommitdiffstats
path: root/sys/dev/bm
diff options
context:
space:
mode:
authornwhitehorn <nwhitehorn@FreeBSD.org>2008-09-23 02:12:47 +0000
committernwhitehorn <nwhitehorn@FreeBSD.org>2008-09-23 02:12:47 +0000
commit4c77244de081407f9c0ca3df71360f80e6a0edd2 (patch)
treec455aad037341a9253ffbfdee47dc3338ecbc2ca /sys/dev/bm
parent3c671d9bb6a8e709ab8fd0a8e3b874acf6ea4fac (diff)
downloadFreeBSD-src-4c77244de081407f9c0ca3df71360f80e6a0edd2.zip
FreeBSD-src-4c77244de081407f9c0ca3df71360f80e6a0edd2.tar.gz
Change the DBDMA API to allow DBDMA registers in a subregion of a resource. This is necessary to allow future support of DMA for the various Apple on-board ATA controllers.
MFC after: 1 week
Diffstat (limited to 'sys/dev/bm')
-rw-r--r--sys/dev/bm/if_bm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/bm/if_bm.c b/sys/dev/bm/if_bm.c
index 9f881e6..6c3789c 100644
--- a/sys/dev/bm/if_bm.c
+++ b/sys/dev/bm/if_bm.c
@@ -488,9 +488,9 @@ bm_attach(device_t dev)
return (ENXIO);
}
- error = dbdma_allocate_channel(sc->sc_txdmar, bus_get_dma_tag(dev),
+ error = dbdma_allocate_channel(sc->sc_txdmar, 0, bus_get_dma_tag(dev),
BM_MAX_DMA_COMMANDS, &sc->sc_txdma);
- error += dbdma_allocate_channel(sc->sc_rxdmar, bus_get_dma_tag(dev),
+ error += dbdma_allocate_channel(sc->sc_rxdmar, 0, bus_get_dma_tag(dev),
BM_MAX_DMA_COMMANDS, &sc->sc_rxdma);
if (error) {
OpenPOWER on IntegriCloud