]>
Commit | Line | Data |
---|---|---|
9be4d457 JF |
1 | #ifndef _XEN_PAGE_H |
2 | #define _XEN_PAGE_H | |
3 | ||
20e71f2e | 4 | #include <asm/xen/page.h> |
9be4d457 | 5 | |
0df4f266 | 6 | static inline unsigned long xen_page_to_gfn(struct page *page) |
28e98c2c | 7 | { |
0df4f266 | 8 | return pfn_to_gfn(page_to_pfn(page)); |
28e98c2c DV |
9 | } |
10 | ||
8b5d44a5 | 11 | struct xen_memory_region { |
626d7508 JG |
12 | unsigned long start_pfn; |
13 | unsigned long n_pfns; | |
8b5d44a5 DV |
14 | }; |
15 | ||
16 | #define XEN_EXTRA_MEM_MAX_REGIONS 128 /* == E820MAX */ | |
17 | ||
18 | extern __initdata | |
19 | struct xen_memory_region xen_extra_mem[XEN_EXTRA_MEM_MAX_REGIONS]; | |
9be4d457 | 20 | |
aa24411b DV |
21 | extern unsigned long xen_released_pages; |
22 | ||
9be4d457 | 23 | #endif /* _XEN_PAGE_H */ |