Line | Count | Source |
1 | #ifndef __XEN_PFN_H__ | |
2 | #define __XEN_PFN_H__ | |
3 | ||
4 | #include <asm/page.h> | |
5 | ||
6 | 188k | #define PFN_DOWN(x) ((x) >> PAGE_SHIFT) |
7 | 125 | #define PFN_UP(x) (((x) + PAGE_SIZE-1) >> PAGE_SHIFT) |
8 | ||
9 | 26 | #define round_pgup(p) (((p) + (PAGE_SIZE - 1)) & PAGE_MASK) |
10 | 26 | #define round_pgdown(p) ((p) & PAGE_MASK) |
11 | ||
12 | #endif /* __XEN_PFN_H__ */ |