diff options
author | scottl <scottl@FreeBSD.org> | 2012-03-12 18:15:08 +0000 |
---|---|---|
committer | scottl <scottl@FreeBSD.org> | 2012-03-12 18:15:08 +0000 |
commit | 2e7ae86807f43c9ea4f0469949d9d219439d4746 (patch) | |
tree | 4ced951e8f3d5eebc9a6faba8d843d83ec452288 /sys/dev/de | |
parent | 89dc636733d07508428d015c5099c0c98a11e8b8 (diff) | |
download | FreeBSD-src-2e7ae86807f43c9ea4f0469949d9d219439d4746.zip FreeBSD-src-2e7ae86807f43c9ea4f0469949d9d219439d4746.tar.gz |
More conversions of drivers to use the PCI parent DMA tag.
Diffstat (limited to 'sys/dev/de')
-rw-r--r-- | sys/dev/de/if_de.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/dev/de/if_de.c b/sys/dev/de/if_de.c index 5970bcd..2503961 100644 --- a/sys/dev/de/if_de.c +++ b/sys/dev/de/if_de.c @@ -4492,7 +4492,8 @@ tulip_busdma_allocring(device_t dev, tulip_softc_t * const sc, size_t count, /* First, setup a tag. */ ri->ri_max = count; size = count * sizeof(tulip_desc_t); - error = bus_dma_tag_create(NULL, 32, 0, BUS_SPACE_MAXADDR_32BIT, + error = bus_dma_tag_create(bus_get_dma_tag(dev), + 32, 0, BUS_SPACE_MAXADDR_32BIT, BUS_SPACE_MAXADDR, NULL, NULL, size, 1, size, 0, NULL, NULL, &ri->ri_ring_tag); if (error) { @@ -4520,7 +4521,7 @@ tulip_busdma_allocring(device_t dev, tulip_softc_t * const sc, size_t count, } /* Allocate a tag for the data buffers. */ - error = bus_dma_tag_create(NULL, align, 0, + error = bus_dma_tag_create(bus_get_dma_tag(dev), align, 0, BUS_SPACE_MAXADDR_32BIT, BUS_SPACE_MAXADDR, NULL, NULL, MCLBYTES * nsegs, nsegs, MCLBYTES, 0, NULL, NULL, &ri->ri_data_tag); if (error) { @@ -4600,7 +4601,7 @@ tulip_busdma_init(device_t dev, tulip_softc_t * const sc) /* * Allocate a DMA tag, memory, and map for setup descriptor */ - error = bus_dma_tag_create(NULL, 32, 0, + error = bus_dma_tag_create(bus_get_dma_tag(dev), 32, 0, BUS_SPACE_MAXADDR_32BIT, BUS_SPACE_MAXADDR, NULL, NULL, sizeof(sc->tulip_setupdata), 1, sizeof(sc->tulip_setupdata), 0, NULL, NULL, &sc->tulip_setup_tag); |