aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include/asm/prom.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc/include/asm/prom.h')
-rw-r--r--arch/powerpc/include/asm/prom.h27
1 files changed, 1 insertions, 26 deletions
diff --git a/arch/powerpc/include/asm/prom.h b/arch/powerpc/include/asm/prom.h
index ddd408a93b5a..47d41b67c94d 100644
--- a/arch/powerpc/include/asm/prom.h
+++ b/arch/powerpc/include/asm/prom.h
@@ -18,6 +18,7 @@
18 */ 18 */
19#include <linux/types.h> 19#include <linux/types.h>
20#include <linux/of_fdt.h> 20#include <linux/of_fdt.h>
21#include <linux/of_irq.h>
21#include <linux/proc_fs.h> 22#include <linux/proc_fs.h>
22#include <linux/platform_device.h> 23#include <linux/platform_device.h>
23#include <asm/irq.h> 24#include <asm/irq.h>
@@ -108,18 +109,6 @@ extern const void *of_get_mac_address(struct device_node *np);
108 * OF interrupt mapping 109 * OF interrupt mapping
109 */ 110 */
110 111
111/* This structure is returned when an interrupt is mapped. The controller
112 * field needs to be put() after use
113 */
114
115#define OF_MAX_IRQ_SPEC 4 /* We handle specifiers of at most 4 cells */
116
117struct of_irq {
118 struct device_node *controller; /* Interrupt controller node */
119 u32 size; /* Specifier size */
120 u32 specifier[OF_MAX_IRQ_SPEC]; /* Specifier copy */
121};
122
123/** 112/**
124 * of_irq_map_init - Initialize the irq remapper 113 * of_irq_map_init - Initialize the irq remapper
125 * @flags: flags defining workarounds to enable 114 * @flags: flags defining workarounds to enable
@@ -154,20 +143,6 @@ extern int of_irq_map_raw(struct device_node *parent, const u32 *intspec,
154 u32 ointsize, const u32 *addr, 143 u32 ointsize, const u32 *addr,
155 struct of_irq *out_irq); 144 struct of_irq *out_irq);
156 145
157
158/**
159 * of_irq_map_one - Resolve an interrupt for a device
160 * @device: the device whose interrupt is to be resolved
161 * @index: index of the interrupt to resolve
162 * @out_irq: structure of_irq filled by this function
163 *
164 * This function resolves an interrupt, walking the tree, for a given
165 * device-tree node. It's the high level pendant to of_irq_map_raw().
166 * It also implements the workarounds for OldWolrd Macs.
167 */
168extern int of_irq_map_one(struct device_node *device, int index,
169 struct of_irq *out_irq);
170
171/** 146/**
172 * of_irq_map_pci - Resolve the interrupt for a PCI device 147 * of_irq_map_pci - Resolve the interrupt for a PCI device
173 * @pdev: the device whose interrupt is to be resolved 148 * @pdev: the device whose interrupt is to be resolved