From: Michael Ellerman Date: Wed, 16 Aug 2006 12:04:14 +0000 (+1000) Subject: [POWERPC] Add a helper for calculating RTAS "config_addr" parameters X-Git-Tag: v2.6.19-rc1~1300^2~49 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6f3d5d3cc4b1447578ae8484166bbc34a64150c5;p=pandora-kernel.git [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 Signed-off-by: Paul Mackerras --- Reading git-diff-tree failed