]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
[PATCH] powerpc: Add OF address parsing code (#2)
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 23 Nov 2005 06:53:42 +0000 (17:53 +1100)
committerPaul Mackerras <paulus@samba.org>
Mon, 9 Jan 2006 03:49:46 +0000 (14:49 +1100)
commitd1405b869850982f05c7ec0d3f137ca27588192f
treeb95b4e6e36f654205ad720609734a5b2ca549de0
parentbcb05504edf0e27a648aa1059cbb71e8746758a1
[PATCH] powerpc: Add OF address parsing code (#2)

Parsing addresses extracted from Open Firmware isn't a simple matter. We
have various bits of code that try to do it in various place, including
some heuristics in prom.c that pre-parse addresses at boot and fill
device-nodes "addrs", but those are dodgy at best and I want to
deprecate them. So this patch introduces a new set of routines that
should be capable of parsing most types of addresses and translating
them into CPU physical addresses. It currently works for things on PCI
busses and ISA busses and should work on "standard" busses like the root
bus or the MacIO bus that don't put funky flags in addresses. If you
have other bus types that do use funky flags, you'll have to add new bus
type translators, which is fairly easy.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/kernel/Makefile
arch/powerpc/kernel/prom_parse.c [new file with mode: 0644]
include/asm-powerpc/mmu.h
include/asm-powerpc/prom.h
include/asm-ppc/prom.h