PERFORCE change 97708 for review
John-Mark Gurney
jmg at FreeBSD.org
Wed May 24 00:48:26 UTC 2006
http://perforce.freebsd.org/chv.cgi?CH=97708
Change 97708 by jmg at 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,
More information about the p4-projects
mailing list