x86: Move some contents of page_64_types.h into pgtable_64.h and page_64.h
[sfrench/cifs-2.6.git] / arch / x86 / include / asm / page_64.h
index 072694ed81a57317aff966a63ca778f2b2f4ba73..4150999fc20ed017537ab19c6ed080626a2c9b7e 100644 (file)
@@ -3,4 +3,23 @@
 
 #include <asm/page_64_types.h>
 
+#ifndef __ASSEMBLY__
+
+/* duplicated to the one in bootmem.h */
+extern unsigned long max_pfn;
+extern unsigned long phys_base;
+
+extern unsigned long __phys_addr(unsigned long);
+
+#define __phys_reloc_hide(x)   (x)
+
+#ifdef CONFIG_FLATMEM
+#define pfn_valid(pfn)          ((pfn) < max_pfn)
+#endif
+
+void clear_page(void *page);
+void copy_page(void *to, void *from);
+
+#endif /* !__ASSEMBLY__ */
+
 #endif /* _ASM_X86_PAGE_64_H */