diff options
author | marius <marius@FreeBSD.org> | 2007-01-21 19:32:51 +0000 |
---|---|---|
committer | marius <marius@FreeBSD.org> | 2007-01-21 19:32:51 +0000 |
commit | 95a9b2142ae1f23ba99ffffc7acc4055f2c40cea (patch) | |
tree | 0022c3a9a6df560b7e242e09f139c9d0dd23011b /sys/dev/sk | |
parent | 32ccb0b9691d9721a82fc29bc9002a655b8622b6 (diff) | |
download | FreeBSD-src-95a9b2142ae1f23ba99ffffc7acc4055f2c40cea.zip FreeBSD-src-95a9b2142ae1f23ba99ffffc7acc4055f2c40cea.tar.gz |
Change the remainder of the drivers for DMA'ing devices enabled in the
sparc64 GENERIC and the sound device drivers known working on sparc64
to use bus_get_dma_tag() to obtain the parent DMA tag so we can get rid
of the sparc64_root_dma_tag kludge eventually. Except for ath(4), sk(4),
stge(4) and ti(4) these changes are runtime tested (unless I booted up
the wrong kernels again...).
Diffstat (limited to 'sys/dev/sk')
-rw-r--r-- | sys/dev/sk/if_sk.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/sk/if_sk.c b/sys/dev/sk/if_sk.c index 0f5d912..861707f 100644 --- a/sys/dev/sk/if_sk.c +++ b/sys/dev/sk/if_sk.c @@ -1945,7 +1945,8 @@ sk_dma_alloc(sc_if) * RAM. Until we have more clues of the breakage, disable DAC mode * by limiting DMA address to be in 32bit address space. */ - error = bus_dma_tag_create(NULL, /* parent */ + error = bus_dma_tag_create( + bus_get_dma_tag(sc_if->sk_if_dev),/* parent */ 1, 0, /* algnmnt, boundary */ BUS_SPACE_MAXADDR_32BIT, /* lowaddr */ BUS_SPACE_MAXADDR, /* highaddr */ |