|
@@ -34,11 +34,25 @@ u64 xen_steal_clock(int cpu);
|
|
int xen_setup_shutdown_event(void);
|
|
int xen_setup_shutdown_event(void);
|
|
|
|
|
|
extern unsigned long *xen_contiguous_bitmap;
|
|
extern unsigned long *xen_contiguous_bitmap;
|
|
|
|
+
|
|
|
|
+#ifdef CONFIG_XEN_PV
|
|
int xen_create_contiguous_region(phys_addr_t pstart, unsigned int order,
|
|
int xen_create_contiguous_region(phys_addr_t pstart, unsigned int order,
|
|
unsigned int address_bits,
|
|
unsigned int address_bits,
|
|
dma_addr_t *dma_handle);
|
|
dma_addr_t *dma_handle);
|
|
|
|
|
|
void xen_destroy_contiguous_region(phys_addr_t pstart, unsigned int order);
|
|
void xen_destroy_contiguous_region(phys_addr_t pstart, unsigned int order);
|
|
|
|
+#else
|
|
|
|
+static inline int xen_create_contiguous_region(phys_addr_t pstart,
|
|
|
|
+ unsigned int order,
|
|
|
|
+ unsigned int address_bits,
|
|
|
|
+ dma_addr_t *dma_handle)
|
|
|
|
+{
|
|
|
|
+ return 0;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+static inline void xen_destroy_contiguous_region(phys_addr_t pstart,
|
|
|
|
+ unsigned int order) { }
|
|
|
|
+#endif
|
|
|
|
|
|
struct vm_area_struct;
|
|
struct vm_area_struct;
|
|
|
|
|