kvm: rename pfn_t to kvm_pfn_t
[deliverable/linux.git] / include / linux / pfn.h
CommitLineData
22a9835c
DH
1#ifndef _LINUX_PFN_H_
2#define _LINUX_PFN_H_
3
947d0496
JF
4#ifndef __ASSEMBLY__
5#include <linux/types.h>
6#endif
7
22a9835c
DH
8#define PFN_ALIGN(x) (((unsigned long)(x) + (PAGE_SIZE - 1)) & PAGE_MASK)
9#define PFN_UP(x) (((x) + PAGE_SIZE-1) >> PAGE_SHIFT)
10#define PFN_DOWN(x) ((x) >> PAGE_SHIFT)
947d0496 11#define PFN_PHYS(x) ((phys_addr_t)(x) << PAGE_SHIFT)
8f235d1a 12#define PHYS_PFN(x) ((unsigned long)((x) >> PAGE_SHIFT))
22a9835c
DH
13
14#endif
This page took 1.092828 seconds and 5 git commands to generate.