diff options
author | scottl <scottl@FreeBSD.org> | 2012-03-12 19:29:35 +0000 |
---|---|---|
committer | scottl <scottl@FreeBSD.org> | 2012-03-12 19:29:35 +0000 |
commit | a0bfb3e1144a9ea426aa63807e11d0416ee2562d (patch) | |
tree | ef4c430962d44fc3002ab48dec204733b04ae37a /sys/dev/cesa | |
parent | 086b945161095994a02d90c5a819197e38c1404a (diff) | |
download | FreeBSD-src-a0bfb3e1144a9ea426aa63807e11d0416ee2562d.zip FreeBSD-src-a0bfb3e1144a9ea426aa63807e11d0416ee2562d.tar.gz |
Final pass at having devices use their bus parent for dma tags. The
remaining drivers that haven't been converted have various problems or
complexities that will be dealt with later. This list includes:
hptrr, hptmv, hpt27xx - device aggregation across multiple parents
drm - want to talk to the maintainer first
tsec, sec - Openfirmware devices, not sure if changes are warranted
fatm - Done except for unused testing code
usb - want to talk to the maintainer first
ce, cp, ctau, cx - Significant driver changes needed to convey parent info
There are also devices tucked into architecture subtrees that I'll leave
for the respective maintainers to deal with.
Diffstat (limited to 'sys/dev/cesa')
-rw-r--r-- | sys/dev/cesa/cesa.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/cesa/cesa.c b/sys/dev/cesa/cesa.c index 5d67fc6..9c758a4 100644 --- a/sys/dev/cesa/cesa.c +++ b/sys/dev/cesa/cesa.c @@ -157,7 +157,7 @@ cesa_alloc_dma_mem(struct cesa_softc *sc, struct cesa_dma_mem *cdm, KASSERT(cdm->cdm_vaddr == NULL, ("%s(): DMA memory descriptor in use.", __func__)); - error = bus_dma_tag_create(NULL, /* parent */ + error = bus_dma_tag_create(bus_get_dma_tag(sc->sc_dev), /* parent */ PAGE_SIZE, 0, /* alignment, boundary */ BUS_SPACE_MAXADDR_32BIT, /* lowaddr */ BUS_SPACE_MAXADDR, /* highaddr */ @@ -1046,7 +1046,7 @@ cesa_attach(device_t dev) } /* Create DMA tag for processed data */ - error = bus_dma_tag_create(NULL, /* parent */ + error = bus_dma_tag_create(bus_get_dma_tag(dev), /* parent */ 1, 0, /* alignment, boundary */ BUS_SPACE_MAXADDR_32BIT, /* lowaddr */ BUS_SPACE_MAXADDR, /* highaddr */ |