[POWERPC] Add function to check if address is an IO port
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 26 Jul 2007 04:07:13 +0000 (14:07 +1000)
committerPaul Mackerras <paulus@samba.org>
Thu, 26 Jul 2007 06:17:47 +0000 (16:17 +1000)
commit6dfbde209171cd15407e7540d363a434a489aaca
tree0db7a89f32b3b61d3334085b67c276945dd6560f
parentf5d834fc34e61f1a40435981062000e5d2b2baa8
[POWERPC] Add function to check if address is an IO port

This adds a function that tells you if a given kernel virtual address
is hitting a PCI or ISA IO port permanent mapping or not. This is to
be used in the next patch to fix iomap APIs to properly unmap things.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/kernel/pci-common.c
include/asm-powerpc/pci-bridge.h