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
This commit is contained in:
John Birrell 2006-11-15 21:41:59 +00:00
parent 7eefbf10c8
commit c686bf2237
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=164314

View File

@ -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,