diff options
author | Stefano Stabellini <stefano.stabellini@eu.citrix.com> | 2013-10-09 20:56:32 +0400 |
---|---|---|
committer | Stefano Stabellini <stefano.stabellini@eu.citrix.com> | 2013-10-09 20:56:32 +0400 |
commit | 69908907b02efee31377af0cefbcd5a3ba66334a (patch) | |
tree | 7348359ef60c91ca9edfd71680a858f28a7d156e /include/xen | |
parent | 2f558d40911c1b8f929b8a382833ae1da5df3293 (diff) | |
download | linux-69908907b02efee31377af0cefbcd5a3ba66334a.tar.xz |
xen: make xen_create_contiguous_region return the dma address
Modify xen_create_contiguous_region to return the dma address of the
newly contiguous buffer.
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Acked-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Reviewed-by: David Vrabel <david.vrabel@citrix.com>
Changes in v4:
- use virt_to_machine instead of virt_to_bus.
Diffstat (limited to 'include/xen')
-rw-r--r-- | include/xen/xen-ops.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/xen/xen-ops.h b/include/xen/xen-ops.h index d6fe062cad6b..9ef704d3a9dd 100644 --- a/include/xen/xen-ops.h +++ b/include/xen/xen-ops.h @@ -20,7 +20,8 @@ int xen_setup_shutdown_event(void); extern unsigned long *xen_contiguous_bitmap; int xen_create_contiguous_region(unsigned long vstart, unsigned int order, - unsigned int address_bits); + unsigned int address_bits, + dma_addr_t *dma_handle); void xen_destroy_contiguous_region(unsigned long vstart, unsigned int order); |