Date: Wed, 24 May 2006 00:47:35 GMT From: John-Mark Gurney <jmg@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 97708 for review Message-ID: <200605240047.k4O0lZCT029363@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=97708 Change 97708 by jmg@jmg_carbon-60 on 2006/05/24 00:46:52 make ahc and ahd sun4v friendly by properly pulling in the necessary parent tag... Affected files ... .. //depot/projects/kmacy_sun4v/src/sys/dev/aic7xxx/ahc_eisa.c#3 edit .. //depot/projects/kmacy_sun4v/src/sys/dev/aic7xxx/ahc_isa.c#3 edit .. //depot/projects/kmacy_sun4v/src/sys/dev/aic7xxx/ahc_pci.c#3 edit .. //depot/projects/kmacy_sun4v/src/sys/dev/aic7xxx/ahd_pci.c#3 edit Differences ... ==== //depot/projects/kmacy_sun4v/src/sys/dev/aic7xxx/ahc_eisa.c#3 (text+ko) ==== @@ -131,8 +131,8 @@ /* Allocate a dmatag for our SCB DMA maps */ /* XXX Should be a child of the PCI bus dma tag */ - error = aic_dma_tag_create(ahc, /*parent*/NULL, /*alignment*/1, - /*boundary*/0, + error = aic_dma_tag_create(ahc, /*parent*/bus_get_dma_tag(dev), + /*alignment*/1, /*boundary*/0, /*lowaddr*/BUS_SPACE_MAXADDR_32BIT, /*highaddr*/BUS_SPACE_MAXADDR, /*filter*/NULL, /*filterarg*/NULL, ==== //depot/projects/kmacy_sun4v/src/sys/dev/aic7xxx/ahc_isa.c#3 (text+ko) ==== @@ -254,8 +254,8 @@ /* Allocate a dmatag for our SCB DMA maps */ /* XXX Should be a child of the VLB/ISA bus dma tag */ - error = aic_dma_tag_create(ahc, /*parent*/NULL, /*alignment*/1, - /*boundary*/0, + error = aic_dma_tag_create(ahc, /*parent*/bus_get_dma_tag(dev), + /*alignment*/1, /*boundary*/0, /*lowaddr*/BUS_SPACE_MAXADDR_32BIT, /*highaddr*/BUS_SPACE_MAXADDR, /*filter*/NULL, /*filterarg*/NULL, ==== //depot/projects/kmacy_sun4v/src/sys/dev/aic7xxx/ahc_pci.c#3 (text+ko) ==== @@ -107,8 +107,8 @@ /* Allocate a dmatag for our SCB DMA maps */ /* XXX Should be a child of the PCI bus dma tag */ - error = aic_dma_tag_create(ahc, /*parent*/NULL, /*alignment*/1, - /*boundary*/0, + error = aic_dma_tag_create(ahc, /*parent*/bus_get_dma_tag(dev), + /*alignment*/1, /*boundary*/0, (ahc->flags & AHC_39BIT_ADDRESSING) ? 0x7FFFFFFFFFLL : BUS_SPACE_MAXADDR_32BIT, ==== //depot/projects/kmacy_sun4v/src/sys/dev/aic7xxx/ahd_pci.c#3 (text+ko) ==== @@ -109,8 +109,8 @@ /* Allocate a dmatag for our SCB DMA maps */ /* XXX Should be a child of the PCI bus dma tag */ - error = aic_dma_tag_create(ahd, /*parent*/NULL, /*alignment*/1, - /*boundary*/0, + error = aic_dma_tag_create(ahd, /*parent*/bus_get_dma_tag(dev), + /*alignment*/1, /*boundary*/0, (ahd->flags & AHD_39BIT_ADDRESSING) ? 0x7FFFFFFFFF : BUS_SPACE_MAXADDR_32BIT,
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200605240047.k4O0lZCT029363>