diff options
author | jb <jb@FreeBSD.org> | 2006-11-15 21:41:59 +0000 |
---|---|---|
committer | jb <jb@FreeBSD.org> | 2006-11-15 21:41:59 +0000 |
commit | 57b7e176e9dfff64efee81320736ed9b362e2743 (patch) | |
tree | 8e5f178c4000ac4ebd03ed8fffd2658cfa862c4a /sys/dev/mpt/mpt_pci.c | |
parent | fa8eeee427c0d5a631c16971895f656030b56dc2 (diff) | |
download | FreeBSD-src-57b7e176e9dfff64efee81320736ed9b362e2743.zip FreeBSD-src-57b7e176e9dfff64efee81320736ed9b362e2743.tar.gz |
Get the parent dma tag if one exists. This is required on sun4v. Other
arches will default to NULL if they have no parent.
Reviewed by: mjacob
Diffstat (limited to 'sys/dev/mpt/mpt_pci.c')
-rw-r--r-- | sys/dev/mpt/mpt_pci.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/mpt/mpt_pci.c b/sys/dev/mpt/mpt_pci.c index 0243d1f..a4c027f 100644 --- a/sys/dev/mpt/mpt_pci.c +++ b/sys/dev/mpt/mpt_pci.c @@ -723,8 +723,8 @@ mpt_dma_mem_alloc(struct mpt_softc *mpt) * Align at byte boundaries, * Limit to 32-bit addressing for request/reply queues. */ - if (mpt_dma_tag_create(mpt, /*parent*/NULL, /*alignment*/1, - /*boundary*/0, /*lowaddr*/BUS_SPACE_MAXADDR, + if (mpt_dma_tag_create(mpt, /*parent*/bus_get_dma_tag(mpt->dev), + /*alignment*/1, /*boundary*/0, /*lowaddr*/BUS_SPACE_MAXADDR, /*highaddr*/BUS_SPACE_MAXADDR, /*filter*/NULL, /*filterarg*/NULL, /*maxsize*/BUS_SPACE_MAXSIZE_32BIT, /*nsegments*/BUS_SPACE_MAXSIZE_32BIT, |