mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-04-21 12:27:27 +03:00
[adm5120] move pci_irq_map definitions into the board specific files
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9009 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user