diff options
author | Nathan Whitehorn <nwhitehorn@FreeBSD.org> | 2008-09-23 02:12:47 +0000 |
---|---|---|
committer | Nathan Whitehorn <nwhitehorn@FreeBSD.org> | 2008-09-23 02:12:47 +0000 |
commit | f1dea04adb18d8d7566a6931f5011f3df81eea6e (patch) | |
tree | c455aad037341a9253ffbfdee47dc3338ecbc2ca /sys/dev/bm | |
parent | 9f58ea1678fb2ef3fcf9434c74eb5d527201ed4c (diff) | |
download | src-f1dea04adb18d8d7566a6931f5011f3df81eea6e.tar.gz src-f1dea04adb18d8d7566a6931f5011f3df81eea6e.zip |
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
Notes
Notes:
svn path=/head/; revision=183288
Diffstat (limited to 'sys/dev/bm')
-rw-r--r-- | sys/dev/bm/if_bm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/bm/if_bm.c b/sys/dev/bm/if_bm.c index 9f881e6345f1..6c3789c9fa41 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) { |