summaryrefslogtreecommitdiffstats
path: root/kernel/include/xen/page.h
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/include/xen/page.h')
-rw-r--r--kernel/include/xen/page.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/kernel/include/xen/page.h b/kernel/include/xen/page.h
new file mode 100644
index 000000000..c5ed20bb3
--- /dev/null
+++ b/kernel/include/xen/page.h
@@ -0,0 +1,23 @@
+#ifndef _XEN_PAGE_H
+#define _XEN_PAGE_H
+
+#include <asm/xen/page.h>
+
+static inline unsigned long page_to_mfn(struct page *page)
+{
+ return pfn_to_mfn(page_to_pfn(page));
+}
+
+struct xen_memory_region {
+ phys_addr_t start;
+ phys_addr_t size;
+};
+
+#define XEN_EXTRA_MEM_MAX_REGIONS 128 /* == E820MAX */
+
+extern __initdata
+struct xen_memory_region xen_extra_mem[XEN_EXTRA_MEM_MAX_REGIONS];
+
+extern unsigned long xen_released_pages;
+
+#endif /* _XEN_PAGE_H */