page.h 450 B

123456789101112131415161718192021222324
  1. #ifndef _XEN_PAGE_H
  2. #define _XEN_PAGE_H
  3. #include <asm/xen/page.h>
  4. static inline unsigned long page_to_mfn(struct page *page)
  5. {
  6. return pfn_to_mfn(page_to_pfn(page));
  7. }
  8. struct xen_memory_region {
  9. phys_addr_t start;
  10. phys_addr_t size;
  11. };
  12. #define XEN_EXTRA_MEM_MAX_REGIONS 128 /* == E820MAX */
  13. extern __initdata
  14. struct xen_memory_region xen_extra_mem[XEN_EXTRA_MEM_MAX_REGIONS];
  15. extern unsigned long xen_released_pages;
  16. #endif /* _XEN_PAGE_H */