blob: c5ed20bb3fe96d5f309c5299a55a7ba3b7a140bd [file] [log] [blame]
Jeremy Fitzhardinge9be4d452010-08-31 15:01:16 -07001#ifndef _XEN_PAGE_H
2#define _XEN_PAGE_H
3
Isaku Yamahata20e71f2e2008-04-02 10:53:58 -07004#include <asm/xen/page.h>
Jeremy Fitzhardinge9be4d452010-08-31 15:01:16 -07005
David Vrabel28e98c22015-01-13 17:16:42 +00006static inline unsigned long page_to_mfn(struct page *page)
7{
8 return pfn_to_mfn(page_to_pfn(page));
9}
10
David Vrabel8b5d44a2011-09-28 17:46:34 +010011struct xen_memory_region {
12 phys_addr_t start;
13 phys_addr_t size;
14};
15
16#define XEN_EXTRA_MEM_MAX_REGIONS 128 /* == E820MAX */
17
18extern __initdata
19struct xen_memory_region xen_extra_mem[XEN_EXTRA_MEM_MAX_REGIONS];
Jeremy Fitzhardinge9be4d452010-08-31 15:01:16 -070020
David Vrabelaa244112011-09-28 17:46:32 +010021extern unsigned long xen_released_pages;
22
Jeremy Fitzhardinge9be4d452010-08-31 15:01:16 -070023#endif /* _XEN_PAGE_H */