diff options
author | Andy Fleming <afleming@freescale.com> | 2006-10-19 20:52:26 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2006-11-12 22:48:52 -0500 |
commit | a9b14973a8c42b2aecc968851372203c6567e196 (patch) | |
tree | aa18a83855bbe5977504ceb3ab5efde89d5eb2d6 /include/asm-powerpc/prom.h | |
parent | c37858d333a50815c74349396e31a535f4128e0b (diff) |
[PATCH] Slight refactor of interrupt mapping for FSL parts
* Cleaned up interrupt mapping a little by adding a helper
function which parses the irq out of the device-tree, and puts
it into a resource.
* Changed the arch/ppc platform files to specify PHY_POLL, instead of -1
* Changed the fixed phy to use PHY_IGNORE_INTERRUPT
* Added ethtool.h and mii.h to phy.h includes
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'include/asm-powerpc/prom.h')
-rw-r--r-- | include/asm-powerpc/prom.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/asm-powerpc/prom.h b/include/asm-powerpc/prom.h index 52462976933..39f04ef96f3 100644 --- a/include/asm-powerpc/prom.h +++ b/include/asm-powerpc/prom.h | |||
@@ -17,6 +17,7 @@ | |||
17 | */ | 17 | */ |
18 | #include <linux/types.h> | 18 | #include <linux/types.h> |
19 | #include <linux/proc_fs.h> | 19 | #include <linux/proc_fs.h> |
20 | #include <linux/platform_device.h> | ||
20 | #include <asm/atomic.h> | 21 | #include <asm/atomic.h> |
21 | 22 | ||
22 | /* Definitions used by the flattened device tree */ | 23 | /* Definitions used by the flattened device tree */ |
@@ -331,6 +332,12 @@ extern int of_irq_map_one(struct device_node *device, int index, | |||
331 | struct pci_dev; | 332 | struct pci_dev; |
332 | extern int of_irq_map_pci(struct pci_dev *pdev, struct of_irq *out_irq); | 333 | extern int of_irq_map_pci(struct pci_dev *pdev, struct of_irq *out_irq); |
333 | 334 | ||
335 | static inline void of_irq_to_resource(struct device_node *dev, int index, struct resource *r) | ||
336 | { | ||
337 | r->start = r->end = irq_of_parse_and_map(dev, index); | ||
338 | r->flags = IORESOURCE_IRQ; | ||
339 | } | ||
340 | |||
334 | 341 | ||
335 | #endif /* __KERNEL__ */ | 342 | #endif /* __KERNEL__ */ |
336 | #endif /* _POWERPC_PROM_H */ | 343 | #endif /* _POWERPC_PROM_H */ |