[POWERPC] Add a helper for calculating RTAS "config_addr" parameters
authorMichael Ellerman <michael@ellerman.id.au>
Wed, 16 Aug 2006 12:04:14 +0000 (22:04 +1000)
committerPaul Mackerras <paulus@samba.org>
Fri, 25 Aug 2006 03:27:35 +0000 (13:27 +1000)
commit6f3d5d3cc4b1447578ae8484166bbc34a64150c5
tree3641fb3b82081252fcb67cb8d2c66eb4d877e25c
parenta0a428e30077fd64c39aadf5221cf2c7a14dc281
[POWERPC] Add a helper for calculating RTAS "config_addr" parameters

Several RTAS calls take a "config_addr" parameter, which is a particular
way of specifying a PCI busno, devfn and register number into a 32-bit word.
Currently these are open-coded, and I'll be adding another soon, replace
them with a helper that encapsulates the logic. Be more strict about masking
the busno too, just in case.

Booted on P5 LPAR.

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/kernel/rtas_pci.c
include/asm-powerpc/rtas.h