diff options
Diffstat (limited to 'arch/x86/include/asm')
| -rw-r--r-- | arch/x86/include/asm/io.h | 24 | ||||
| -rw-r--r-- | arch/x86/include/asm/xen/hypercall.h | 7 |
2 files changed, 9 insertions, 22 deletions
diff --git a/arch/x86/include/asm/io.h b/arch/x86/include/asm/io.h index 07227308252..d02804d650c 100644 --- a/arch/x86/include/asm/io.h +++ b/arch/x86/include/asm/io.h | |||
| @@ -38,7 +38,6 @@ | |||
| 38 | 38 | ||
| 39 | #include <linux/string.h> | 39 | #include <linux/string.h> |
| 40 | #include <linux/compiler.h> | 40 | #include <linux/compiler.h> |
| 41 | #include <asm-generic/int-ll64.h> | ||
| 42 | #include <asm/page.h> | 41 | #include <asm/page.h> |
| 43 | 42 | ||
| 44 | #include <xen/xen.h> | 43 | #include <xen/xen.h> |
| @@ -87,27 +86,6 @@ build_mmio_write(__writel, "l", unsigned int, "r", ) | |||
| 87 | build_mmio_read(readq, "q", unsigned long, "=r", :"memory") | 86 | build_mmio_read(readq, "q", unsigned long, "=r", :"memory") |
| 88 | build_mmio_write(writeq, "q", unsigned long, "r", :"memory") | 87 | build_mmio_write(writeq, "q", unsigned long, "r", :"memory") |
| 89 | 88 | ||
| 90 | #else | ||
| 91 | |||
| 92 | static inline __u64 readq(const volatile void __iomem *addr) | ||
| 93 | { | ||
| 94 | const volatile u32 __iomem *p = addr; | ||
| 95 | u32 low, high; | ||
| 96 | |||
| 97 | low = readl(p); | ||
| 98 | high = readl(p + 1); | ||
| 99 | |||
| 100 | return low + ((u64)high << 32); | ||
| 101 | } | ||
| 102 | |||
| 103 | static inline void writeq(__u64 val, volatile void __iomem *addr) | ||
| 104 | { | ||
| 105 | writel(val, addr); | ||
| 106 | writel(val >> 32, addr+4); | ||
| 107 | } | ||
| 108 | |||
| 109 | #endif | ||
| 110 | |||
| 111 | #define readq_relaxed(a) readq(a) | 89 | #define readq_relaxed(a) readq(a) |
| 112 | 90 | ||
| 113 | #define __raw_readq(a) readq(a) | 91 | #define __raw_readq(a) readq(a) |
| @@ -117,6 +95,8 @@ static inline void writeq(__u64 val, volatile void __iomem *addr) | |||
| 117 | #define readq readq | 95 | #define readq readq |
| 118 | #define writeq writeq | 96 | #define writeq writeq |
| 119 | 97 | ||
| 98 | #endif | ||
| 99 | |||
| 120 | /** | 100 | /** |
| 121 | * virt_to_phys - map virtual addresses to physical | 101 | * virt_to_phys - map virtual addresses to physical |
| 122 | * @address: address to remap | 102 | * @address: address to remap |
diff --git a/arch/x86/include/asm/xen/hypercall.h b/arch/x86/include/asm/xen/hypercall.h index 8508bfe5229..d240ea95051 100644 --- a/arch/x86/include/asm/xen/hypercall.h +++ b/arch/x86/include/asm/xen/hypercall.h | |||
| @@ -447,6 +447,13 @@ HYPERVISOR_hvm_op(int op, void *arg) | |||
| 447 | return _hypercall2(unsigned long, hvm_op, op, arg); | 447 | return _hypercall2(unsigned long, hvm_op, op, arg); |
| 448 | } | 448 | } |
| 449 | 449 | ||
| 450 | static inline int | ||
| 451 | HYPERVISOR_tmem_op( | ||
| 452 | struct tmem_op *op) | ||
| 453 | { | ||
| 454 | return _hypercall1(int, tmem_op, op); | ||
| 455 | } | ||
| 456 | |||
| 450 | static inline void | 457 | static inline void |
| 451 | MULTI_fpu_taskswitch(struct multicall_entry *mcl, int set) | 458 | MULTI_fpu_taskswitch(struct multicall_entry *mcl, int set) |
| 452 | { | 459 | { |
