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/hatm/if_hatm.c | |
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/hatm/if_hatm.c')
-rw-r--r-- | sys/dev/hatm/if_hatm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/hatm/if_hatm.c b/sys/dev/hatm/if_hatm.c index bbeca8d..0aa090e 100644 --- a/sys/dev/hatm/if_hatm.c +++ b/sys/dev/hatm/if_hatm.c @@ -1722,7 +1722,7 @@ hatm_attach(device_t dev) /* * ALlocate a DMA tag for subsequent allocations */ - if (bus_dma_tag_create(NULL, 1, 0, + if (bus_dma_tag_create(bus_get_dma_tag(sc->dev), 1, 0, BUS_SPACE_MAXADDR_32BIT, BUS_SPACE_MAXADDR, NULL, NULL, BUS_SPACE_MAXSIZE_32BIT, 1, @@ -1751,7 +1751,7 @@ hatm_attach(device_t dev) * but this would not work. So make the maximum number of TPDs * occupied by one packet a configuration parameter. */ - if (bus_dma_tag_create(NULL, 1, 0, + if (bus_dma_tag_create(bus_get_dma_tag(sc->dev), 1, 0, BUS_SPACE_MAXADDR_32BIT, BUS_SPACE_MAXADDR, NULL, NULL, HE_MAX_PDU, 3 * HE_CONFIG_MAX_TPD_PER_PACKET, HE_MAX_PDU, 0, NULL, NULL, &sc->tx_tag)) { |