]> git.karo-electronics.de Git - karo-tx-uboot.git/commit
Introduce virt_to_phys()
authorKumar Gala <galak@kernel.crashing.org>
Sat, 13 Dec 2008 23:20:27 +0000 (17:20 -0600)
committerWolfgang Denk <wd@denx.de>
Mon, 15 Dec 2008 21:04:29 +0000 (22:04 +0100)
commit65e43a10631537dcb92c302d36301a12308216c3
tree68b2712c8c277d0489768ecbff8ed031dde00a3f
parent45845301af3de8675c1f7bbc815c6de35452605a
Introduce virt_to_phys()

virt_to_phys() returns the physical address given a virtual. In most
cases this will be just the input value as the vast majority of
systems run in a 1:1 mode.

However in systems that are not running this way it should report the
physical address or ~0 if no mapping exists for the given virtual
address.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
12 files changed:
include/asm-arm/io.h
include/asm-avr32/io.h
include/asm-blackfin/io.h
include/asm-i386/io.h
include/asm-m68k/io.h
include/asm-microblaze/io.h
include/asm-mips/io.h
include/asm-nios/io.h
include/asm-nios2/io.h
include/asm-ppc/io.h
include/asm-sh/io.h
include/asm-sparc/io.h