aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-powerpc
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2006-11-11 01:24:56 -0500
committerPaul Mackerras <paulus@samba.org>2006-12-04 00:08:41 -0500
commita959ff56bbf07954ea4fa1cf72f99a38795eadb3 (patch)
tree85bd54ccfe77a9508a6cf2763d296ff988b9764f /include/asm-powerpc
parentfbf0274e43b7e17ee740fee2d693932be093d56d (diff)
[POWERPC] Improve MPIC driver auto-configuration from DT
This patch applies on top of the MPIC DCR support. It makes the MPIC driver capable of a lot more auto-configuration based on the device-tree, for example, it can retreive it's own physical address if not passed as an argument, find out if it's DCR or MMIO mapped, and set the BIG_ENDIAN flag automatically in the presence of a "big-endian" property in the device-tree node. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'include/asm-powerpc')
-rw-r--r--include/asm-powerpc/mpic.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/asm-powerpc/mpic.h b/include/asm-powerpc/mpic.h
index ad989d182fb4..b71e7b32a555 100644
--- a/include/asm-powerpc/mpic.h
+++ b/include/asm-powerpc/mpic.h
@@ -364,7 +364,7 @@ struct mpic
364 * that is senses[0] correspond to linux irq "irq_offset". 364 * that is senses[0] correspond to linux irq "irq_offset".
365 */ 365 */
366extern struct mpic *mpic_alloc(struct device_node *node, 366extern struct mpic *mpic_alloc(struct device_node *node,
367 unsigned long phys_addr, 367 phys_addr_t phys_addr,
368 unsigned int flags, 368 unsigned int flags,
369 unsigned int isu_size, 369 unsigned int isu_size,
370 unsigned int irq_count, 370 unsigned int irq_count,
@@ -377,7 +377,7 @@ extern struct mpic *mpic_alloc(struct device_node *node,
377 * @phys_addr: physical address of the ISU 377 * @phys_addr: physical address of the ISU
378 */ 378 */
379extern void mpic_assign_isu(struct mpic *mpic, unsigned int isu_num, 379extern void mpic_assign_isu(struct mpic *mpic, unsigned int isu_num,
380 unsigned long phys_addr); 380 phys_addr_t phys_addr);
381 381
382/* Set default sense codes 382/* Set default sense codes
383 * 383 *