From 95a9b2142ae1f23ba99ffffc7acc4055f2c40cea Mon Sep 17 00:00:00 2001 From: marius Date: Sun, 21 Jan 2007 19:32:51 +0000 Subject: 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...). --- sys/dev/stge/if_stge.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/dev/stge/if_stge.c') diff --git a/sys/dev/stge/if_stge.c b/sys/dev/stge/if_stge.c index 59711d0..61b5357 100644 --- a/sys/dev/stge/if_stge.c +++ b/sys/dev/stge/if_stge.c @@ -897,7 +897,7 @@ stge_dma_alloc(struct stge_softc *sc) int error, i; /* create parent tag. */ - error = bus_dma_tag_create(NULL, /* parent */ + error = bus_dma_tag_create(bus_get_dma_tag(sc->sc_dev),/* parent */ 1, 0, /* algnmnt, boundary */ STGE_DMA_MAXADDR, /* lowaddr */ BUS_SPACE_MAXADDR, /* highaddr */ -- cgit v1.1