Author: jhb
Date: Wed Mar  7 18:52:46 2012
New Revision: 232668
URL: http://svn.freebsd.org/changeset/base/232668

Log:
  Use bus_get_dma_tag() to inherit the PCI bus' 4G boundary constraint.
  
  Tested by:    emaste

Modified:
  head/sys/dev/aac/aac_pci.c

Modified: head/sys/dev/aac/aac_pci.c
==============================================================================
--- head/sys/dev/aac/aac_pci.c  Wed Mar  7 18:50:33 2012        (r232667)
+++ head/sys/dev/aac/aac_pci.c  Wed Mar  7 18:52:46 2012        (r232668)
@@ -402,7 +402,7 @@ aac_pci_attach(device_t dev)
         *
         * Note that some of these controllers are 64-bit capable.
         */
-       if (bus_dma_tag_create(NULL,                    /* parent */
+       if (bus_dma_tag_create(bus_get_dma_tag(sc->aac_dev), /* parent */
                               PAGE_SIZE, 0,            /* algnmnt, boundary */
                               BUS_SPACE_MAXADDR,       /* lowaddr */
                               BUS_SPACE_MAXADDR,       /* highaddr */
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to