diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2007-09-24 16:59:23 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2007-09-24 16:59:23 +0000 |
commit | 6e7fafe998104f1f9887a08a86afc701cd49dd4e (patch) | |
tree | c1f79c17ca9ab6cf2e93d12207b0d266a24d9a3a /target/linux/adm5120/files/include | |
parent | 6652c1fe0b30e5a0ca96530eabfd42d42280265e (diff) | |
download | mtk-20170518-6e7fafe998104f1f9887a08a86afc701cd49dd4e.zip mtk-20170518-6e7fafe998104f1f9887a08a86afc701cd49dd4e.tar.gz mtk-20170518-6e7fafe998104f1f9887a08a86afc701cd49dd4e.tar.bz2 |
move pci_irq_map definitions into the board specific files
SVN-Revision: 9009
Diffstat (limited to 'target/linux/adm5120/files/include')
-rw-r--r-- | target/linux/adm5120/files/include/asm-mips/mach-adm5120/adm5120_board.h | 2 | ||||
-rw-r--r-- | target/linux/adm5120/files/include/asm-mips/mach-adm5120/adm5120_platform.h | 15 |
2 files changed, 13 insertions, 4 deletions
diff --git a/target/linux/adm5120/files/include/asm-mips/mach-adm5120/adm5120_board.h b/target/linux/adm5120/files/include/asm-mips/mach-adm5120/adm5120_board.h index 23f62a2..d6ac096 100644 --- a/target/linux/adm5120/files/include/asm-mips/mach-adm5120/adm5120_board.h +++ b/target/linux/adm5120/files/include/asm-mips/mach-adm5120/adm5120_board.h @@ -41,6 +41,8 @@ struct adm5120_board { unsigned char *eth_vlans; unsigned int num_devices; struct platform_device **devices; + unsigned int pci_nr_irqs; + struct adm5120_pci_irq *pci_irq_map; struct list_head list; }; diff --git a/target/linux/adm5120/files/include/asm-mips/mach-adm5120/adm5120_platform.h b/target/linux/adm5120/files/include/asm-mips/mach-adm5120/adm5120_platform.h index 863d988..90c18ce 100644 --- a/target/linux/adm5120/files/include/asm-mips/mach-adm5120/adm5120_platform.h +++ b/target/linux/adm5120/files/include/asm-mips/mach-adm5120/adm5120_platform.h @@ -59,10 +59,17 @@ struct adm5120_pci_irq { unsigned irq; }; -struct adm5120_pci_platform_data { - unsigned int nr_irqs; - struct adm5120_pci_irq *irqs; -}; +#define PCIIRQ(s,f,p,i) {.slot = (s), .func = (f), .pin = (p), .irq = (i)} + +#ifdef CONFIG_PCI +extern void adm5120_pci_set_irq_map(unsigned int nr_irqs, + struct adm5120_pci_irq *map) __init; +#else +static inline void adm5120_pci_set_irq_map(unsigned int nr_irqs, + struct adm5120_pci_irq *map) +{ +} +#endif extern struct adm5120_flash_platform_data adm5120_flash0_data; extern struct adm5120_flash_platform_data adm5120_flash1_data; |