aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/asm-x86/io.h
diff options
context:
space:
mode:
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>2006-02-01 16:28:50 +0100
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>2006-02-01 16:28:50 +0100
commitd8b61b1e9f8b719376779b41f29e01ca971c653d (patch)
tree1a4cac162f47222b184dad65cf3e90d942d93197 /xen/include/asm-x86/io.h
parent01f7c3a66cc11ac92bffc302e30053b5491884dc (diff)
downloadxen-d8b61b1e9f8b719376779b41f29e01ca971c653d.tar.gz
xen-d8b61b1e9f8b719376779b41f29e01ca971c653d.tar.bz2
xen-d8b61b1e9f8b719376779b41f29e01ca971c653d.zip
Rename physical-address-related variables and functions
to follow a new ocnsistent naming scheme. gpfn is a guest pseudophys frame number. gmfn is a machine frame number (from guest p.o.v.) mfn is a real bona fide machine number. pfn is an arbitrary frame number (used in general-purpose 'polymorphic' functions). pfn_info now called page_info. Signed-off-by: Keir Fraser <keir@xensource.com>
Diffstat (limited to 'xen/include/asm-x86/io.h')
-rw-r--r--xen/include/asm-x86/io.h53
1 files changed, 0 insertions, 53 deletions
diff --git a/xen/include/asm-x86/io.h b/xen/include/asm-x86/io.h
index 8f8abf65c5..d393c1b606 100644
--- a/xen/include/asm-x86/io.h
+++ b/xen/include/asm-x86/io.h
@@ -5,52 +5,6 @@
#include <xen/types.h>
#include <asm/page.h>
-#define IO_SPACE_LIMIT 0xffff
-
-/**
- * virt_to_phys - map virtual addresses to physical
- * @address: address to remap
- *
- * The returned physical address is the physical (CPU) mapping for
- * the memory address given. It is only valid to use this function on
- * addresses directly mapped or allocated via xmalloc.
- *
- * This function does not give bus mappings for DMA transfers. In
- * almost all conceivable cases a device driver should not be using
- * this function
- */
-
-static inline unsigned long virt_to_phys(volatile void * address)
-{
- return __pa(address);
-}
-
-/**
- * phys_to_virt - map physical address to virtual
- * @address: address to remap
- *
- * The returned virtual address is a current CPU mapping for
- * the memory address given. It is only valid to use this function on
- * addresses that have a kernel mapping
- *
- * This function does not handle bus mappings for DMA transfers. In
- * almost all conceivable cases a device driver should not be using
- * this function
- */
-
-static inline void * phys_to_virt(unsigned long address)
-{
- return __va(address);
-}
-
-/*
- * Change "struct pfn_info" to physical address.
- */
-#define page_to_phys(page) ((physaddr_t)(page - frame_table) << PAGE_SHIFT)
-
-#define page_to_pfn(_page) ((unsigned long)((_page) - frame_table))
-#define page_to_virt(_page) phys_to_virt(page_to_phys(_page))
-
/* We don't need real ioremap() on Xen/x86. */
#define ioremap(x,l) (__va(x))
@@ -61,13 +15,6 @@ static inline void * phys_to_virt(unsigned long address)
#define writew(d,x) (*(volatile short *)(x) = (d))
#define writel(d,x) (*(volatile int *)(x) = (d))
-/*
- * IO bus memory addresses are also 1:1 with the physical address
- */
-#define virt_to_bus virt_to_phys
-#define bus_to_virt phys_to_virt
-#define page_to_bus page_to_phys
-
#define __OUT1(s,x) \
static inline void out##s(unsigned x value, unsigned short port) {