mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-01 17:26:39 +07:00
d22ce25f87
The PCI controllers in the AR71XX and in the AR724X SoCs are different, and both of them uses different IRQ wiring. The patch modifies the 'pcibios_map_irq' function in order to allow to use different IRQ maps for the different SoCs. The patch also adds a function, which lets the board setup code to override the default IRQ map. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> Cc: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/3500/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
39 lines
969 B
C
39 lines
969 B
C
/*
|
|
* Atheros 724x PCI support
|
|
*
|
|
* Copyright (C) 2011 René Bolldorf <xsecute@googlemail.com>
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify it
|
|
* under the terms of the GNU General Public License version 2 as published
|
|
* by the Free Software Foundation.
|
|
*/
|
|
|
|
#ifndef _ATH79_PCI_H
|
|
#define _ATH79_PCI_H
|
|
|
|
struct ar724x_pci_data {
|
|
int irq;
|
|
};
|
|
|
|
struct ath79_pci_irq {
|
|
u8 slot;
|
|
u8 pin;
|
|
int irq;
|
|
};
|
|
|
|
void ar724x_pci_add_data(struct ar724x_pci_data *data, int size);
|
|
|
|
#ifdef CONFIG_PCI
|
|
void ath79_pci_set_irq_map(unsigned nr_irqs, const struct ath79_pci_irq *map);
|
|
void ath79_pci_set_plat_dev_init(int (*func)(struct pci_dev *dev));
|
|
int ath79_register_pci(void);
|
|
#else
|
|
static inline void
|
|
ath79_pci_set_irq_map(unsigned nr_irqs, const struct ath79_pci_irq *map) {}
|
|
static inline void
|
|
ath79_pci_set_plat_dev_init(int (*func)(struct pci_dev *)) {}
|
|
static inline int ath79_register_pci(void) { return 0; }
|
|
#endif
|
|
|
|
#endif /* _ATH79_PCI_H */
|