summaryrefslogtreecommitdiffstats
path: root/include/xen
diff options
context:
space:
mode:
authorStefano Stabellini <stefano.stabellini@eu.citrix.com>2013-10-09 18:56:32 +0200
committerStefano Stabellini <stefano.stabellini@eu.citrix.com>2013-10-09 18:56:32 +0200
commit69908907b02efee31377af0cefbcd5a3ba66334a (patch)
tree7348359ef60c91ca9edfd71680a858f28a7d156e /include/xen
parentxen/x86: allow __set_phys_to_machine for autotranslate guests (diff)
downloadlinux-69908907b02efee31377af0cefbcd5a3ba66334a.tar.xz
linux-69908907b02efee31377af0cefbcd5a3ba66334a.zip
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.h3
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);