Jeremy Fitzhardinge | 9be4d45 | 2010-08-31 15:01:16 -0700 | [diff] [blame] | 1 | #ifndef _XEN_PAGE_H |
| 2 | #define _XEN_PAGE_H |
| 3 | |
Isaku Yamahata | 20e71f2e | 2008-04-02 10:53:58 -0700 | [diff] [blame] | 4 | #include <asm/xen/page.h> |
Jeremy Fitzhardinge | 9be4d45 | 2010-08-31 15:01:16 -0700 | [diff] [blame] | 5 | |
Julien Grall | 0df4f26 | 2015-08-07 17:34:37 +0100 | [diff] [blame] | 6 | static inline unsigned long xen_page_to_gfn(struct page *page) |
David Vrabel | 28e98c2 | 2015-01-13 17:16:42 +0000 | [diff] [blame] | 7 | { |
Julien Grall | 0df4f26 | 2015-08-07 17:34:37 +0100 | [diff] [blame] | 8 | return pfn_to_gfn(page_to_pfn(page)); |
David Vrabel | 28e98c2 | 2015-01-13 17:16:42 +0000 | [diff] [blame] | 9 | } |
| 10 | |
David Vrabel | 8b5d44a | 2011-09-28 17:46:34 +0100 | [diff] [blame] | 11 | struct xen_memory_region { |
Juergen Gross | 626d750 | 2015-09-04 14:05:51 +0200 | [diff] [blame] | 12 | unsigned long start_pfn; |
| 13 | unsigned long n_pfns; |
David Vrabel | 8b5d44a | 2011-09-28 17:46:34 +0100 | [diff] [blame] | 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]; |
Jeremy Fitzhardinge | 9be4d45 | 2010-08-31 15:01:16 -0700 | [diff] [blame] | 20 | |
David Vrabel | aa24411 | 2011-09-28 17:46:32 +0100 | [diff] [blame] | 21 | extern unsigned long xen_released_pages; |
| 22 | |
Jeremy Fitzhardinge | 9be4d45 | 2010-08-31 15:01:16 -0700 | [diff] [blame] | 23 | #endif /* _XEN_PAGE_H */ |