summaryrefslogtreecommitdiffstats
path: root/sys/sys/bus_dma.h
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2012-03-01 19:58:34 +0000
committerjhb <jhb@FreeBSD.org>2012-03-01 19:58:34 +0000
commit5013ab31bdd0c853bd73031dd2246844cd9f9cfe (patch)
treec681791d9aa316edfa305bde95f3cea4802aee56 /sys/sys/bus_dma.h
parentfbe3c228aa921805fe715fd6cd18c7f02d936815 (diff)
downloadFreeBSD-src-5013ab31bdd0c853bd73031dd2246844cd9f9cfe.zip
FreeBSD-src-5013ab31bdd0c853bd73031dd2246844cd9f9cfe.tar.gz
- 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
Diffstat (limited to 'sys/sys/bus_dma.h')
-rw-r--r--sys/sys/bus_dma.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/sys/bus_dma.h b/sys/sys/bus_dma.h
index 0dad326..915d065 100644
--- a/sys/sys/bus_dma.h
+++ b/sys/sys/bus_dma.h
@@ -169,7 +169,7 @@ void busdma_lock_mutex(void *arg, bus_dma_lock_op_t op);
*/
/* XXX Should probably allow specification of alignment */
int bus_dma_tag_create(bus_dma_tag_t parent, bus_size_t alignment,
- bus_size_t boundary, bus_addr_t lowaddr,
+ bus_addr_t boundary, bus_addr_t lowaddr,
bus_addr_t highaddr, bus_dma_filter_t *filtfunc,
void *filtfuncarg, bus_size_t maxsize, int nsegments,
bus_size_t maxsegsz, int flags, bus_dma_lock_t *lockfunc,
OpenPOWER on IntegriCloud