From 831ce4cb3d9dbbf5cfcdb6956004479d52ce6c4d Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Thu, 1 Mar 2012 19:58:34 +0000 Subject: - Change contigmalloc() to use the vm_paddr_t type instead of an unsigned long for specifying a boundary constraint. - Change bus_dma tags to use bus_addr_t instead of bus_size_t for boundary constraints. These allow boundary constraints to be fully expressed for cases where sizeof(bus_addr_t) != sizeof(bus_size_t). Specifically, it allows a driver to properly specify a 4GB boundary in a PAE kernel. Note that this cannot be safely MFC'd without a lot of compat shims due to KBI changes, so I do not intend to merge it. Reviewed by: scottl --- sys/sparc64/include/bus_dma.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/sparc64/include/bus_dma.h') diff --git a/sys/sparc64/include/bus_dma.h b/sys/sparc64/include/bus_dma.h index 9e069df9874e..5f981a7c1abf 100644 --- a/sys/sparc64/include/bus_dma.h +++ b/sys/sparc64/include/bus_dma.h @@ -103,7 +103,7 @@ struct bus_dma_tag { void *dt_cookie; /* cookie used in the guts */ bus_dma_tag_t dt_parent; bus_size_t dt_alignment; - bus_size_t dt_boundary; + bus_addr_t dt_boundary; bus_addr_t dt_lowaddr; bus_addr_t dt_highaddr; bus_dma_filter_t *dt_filter; -- cgit v1.2.3