Matt Rushton | 4fbb67e3 | 2014-08-11 11:57:57 -0700 | [diff] [blame] | 1 | #ifndef _XEN_P2M_H |
| 2 | #define _XEN_P2M_H |
| 3 | |
| 4 | #define P2M_PER_PAGE (PAGE_SIZE / sizeof(unsigned long)) |
| 5 | #define P2M_MID_PER_PAGE (PAGE_SIZE / sizeof(unsigned long *)) |
| 6 | #define P2M_TOP_PER_PAGE (PAGE_SIZE / sizeof(unsigned long **)) |
| 7 | |
| 8 | #define MAX_P2M_PFN (P2M_TOP_PER_PAGE * P2M_MID_PER_PAGE * P2M_PER_PAGE) |
| 9 | |
| 10 | #define MAX_REMAP_RANGES 10 |
| 11 | |
| 12 | extern unsigned long __init set_phys_range_identity(unsigned long pfn_s, |
| 13 | unsigned long pfn_e); |
| 14 | |
| 15 | #endif /* _XEN_P2M_H */ |