diff options
author | juhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2009-07-05 08:06:24 +0000 |
---|---|---|
committer | juhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2009-07-05 08:06:24 +0000 |
commit | 191909b36e827ee338a367044652c3cd56c86517 (patch) | |
tree | dadc8c744d56403887646d16cda2ed42625d4278 /target/linux/ar71xx/files/arch/mips/include | |
parent | 8bed46152973fc1996eeb49a21769cd9f76f0569 (diff) |
[ar71xx] add AR7240 specific PCI code
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16674 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ar71xx/files/arch/mips/include')
-rw-r--r-- | target/linux/ar71xx/files/arch/mips/include/asm/mach-ar71xx/ar71xx.h | 4 | ||||
-rw-r--r-- | target/linux/ar71xx/files/arch/mips/include/asm/mach-ar71xx/pci.h | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/include/asm/mach-ar71xx/ar71xx.h b/target/linux/ar71xx/files/arch/mips/include/asm/mach-ar71xx/ar71xx.h index 7ce34b2cc..448699730 100644 --- a/target/linux/ar71xx/files/arch/mips/include/asm/mach-ar71xx/ar71xx.h +++ b/target/linux/ar71xx/files/arch/mips/include/asm/mach-ar71xx/ar71xx.h @@ -345,8 +345,8 @@ void ar71xx_ddr_flush(u32 reg); #define PCI_IDSEL_ADL_START 17 -#define AR7240_PCI_CFG_BASE (AR71XX_PCI_MEM_BASE + PCI_WIN4_OFFS) -#define AR7240_PCI_CFG_SIZE 0x100 +#define AR724X_PCI_CFG_BASE (AR71XX_PCI_MEM_BASE + 0x4000000) +#define AR724X_PCI_CFG_SIZE 0x1000 #define AR724X_PCI_REG_INT_STATUS 0x4c #define AR724X_PCI_REG_INT_MASK 0x50 diff --git a/target/linux/ar71xx/files/arch/mips/include/asm/mach-ar71xx/pci.h b/target/linux/ar71xx/files/arch/mips/include/asm/mach-ar71xx/pci.h index 9de4e02d9..c5352ce57 100644 --- a/target/linux/ar71xx/files/arch/mips/include/asm/mach-ar71xx/pci.h +++ b/target/linux/ar71xx/files/arch/mips/include/asm/mach-ar71xx/pci.h @@ -30,6 +30,10 @@ int ar71xx_pcibios_init(void) __init; int ar71xx_pci_be_handler(int is_fixup); +int ar724x_pcibios_map_irq(const struct pci_dev *dev, + uint8_t slot, uint8_t pin) __init; +int ar724x_pcibios_init(void) __init; + int ar71xx_pci_init(unsigned nr_irqs, struct ar71xx_pci_irq *map) __init; #endif /* __ASM_MACH_AR71XX_PCI_H */ |