aboutsummaryrefslogtreecommitdiffstats
path: root/include/xen
diff options
context:
space:
mode:
authorJeremy Fitzhardinge <jeremy@goop.org>2008-03-17 19:37:10 -0400
committerIngo Molnar <mingo@elte.hu>2008-04-24 17:57:31 -0400
commit3b4724b0e60cdfdc2679ee7135f3a234c74c2b83 (patch)
tree34fccfac439d63c9a75010733028b1c98a69df70 /include/xen
parent947a69c90c0d07ac7f214e46dabbe49f2a230e00 (diff)
xen: use phys_addr_t when referring to physical addresses
Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com> Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'include/xen')
-rw-r--r--include/xen/page.h16
1 files changed, 2 insertions, 14 deletions
diff --git a/include/xen/page.h b/include/xen/page.h
index 031ef22a971e..1742f60828f3 100644
--- a/include/xen/page.h
+++ b/include/xen/page.h
@@ -8,27 +8,15 @@
8 8
9#include <xen/features.h> 9#include <xen/features.h>
10 10
11#ifdef CONFIG_X86_PAE
12/* Xen machine address */ 11/* Xen machine address */
13typedef struct xmaddr { 12typedef struct xmaddr {
14 unsigned long long maddr; 13 phys_addr_t maddr;
15} xmaddr_t; 14} xmaddr_t;
16 15
17/* Xen pseudo-physical address */ 16/* Xen pseudo-physical address */
18typedef struct xpaddr { 17typedef struct xpaddr {
19 unsigned long long paddr; 18 phys_addr_t paddr;
20} xpaddr_t; 19} xpaddr_t;
21#else
22/* Xen machine address */
23typedef struct xmaddr {
24 unsigned long maddr;
25} xmaddr_t;
26
27/* Xen pseudo-physical address */
28typedef struct xpaddr {
29 unsigned long paddr;
30} xpaddr_t;
31#endif
32 20
33#define XMADDR(x) ((xmaddr_t) { .maddr = (x) }) 21#define XMADDR(x) ((xmaddr_t) { .maddr = (x) })
34#define XPADDR(x) ((xpaddr_t) { .paddr = (x) }) 22#define XPADDR(x) ((xpaddr_t) { .paddr = (x) })