Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 186954
b: refs/heads/master
c: 9325a28
h: refs/heads/master
v: v3
  • Loading branch information
Thomas Gleixner authored and H. Peter Anvin committed Feb 20, 2010
1 parent f113bd7 commit d591750
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ab3b37937e8f4fb38dc9780b7bc3fd3c5195cca3
refs/heads/master: 9325a28ce2fa7c597e5ed41455a06c30b82b5710
3 changes: 3 additions & 0 deletions trunk/arch/x86/include/asm/pci_x86.h
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ extern int __init pci_acpi_init(void);
extern void __init pcibios_irq_init(void);
extern int __init pcibios_init(void);
extern int pci_legacy_init(void);
extern void pcibios_fixup_irqs(void);

/* pci-mmconfig.c */

Expand Down Expand Up @@ -188,7 +189,9 @@ static inline void mmio_config_writel(void __iomem *pos, u32 val)
# define x86_default_pci_init pci_legacy_init
# endif
# define x86_default_pci_init_irq pcibios_irq_init
# define x86_default_pci_fixup_irqs pcibios_fixup_irqs
#else
# define x86_default_pci_init NULL
# define x86_default_pci_init_irq NULL
# define x86_default_pci_fixup_irqs NULL
#endif
2 changes: 2 additions & 0 deletions trunk/arch/x86/include/asm/x86_init.h
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,12 @@ struct x86_init_iommu {
* struct x86_init_pci - platform specific pci init functions
* @init: platform specific pci init
* @init_irq: platform specific pci irq init
* @fixup_irqs: platform specific pci irq fixup
*/
struct x86_init_pci {
int (*init)(void);
void (*init_irq)(void);
void (*fixup_irqs)(void);
};

/**
Expand Down
2 changes: 2 additions & 0 deletions trunk/arch/x86/kernel/x86_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* For licencing details see kernel-base/COPYING
*/
#include <linux/init.h>
#include <linux/ioport.h>

#include <asm/bios_ebda.h>
#include <asm/paravirt.h>
Expand Down Expand Up @@ -75,6 +76,7 @@ struct x86_init_ops x86_init __initdata = {
.pci = {
.init = x86_default_pci_init,
.init_irq = x86_default_pci_init_irq,
.fixup_irqs = x86_default_pci_fixup_irqs,
},
};

Expand Down
4 changes: 2 additions & 2 deletions trunk/arch/x86/pci/irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -1016,7 +1016,7 @@ static int pcibios_lookup_irq(struct pci_dev *dev, int assign)
return 1;
}

static void __init pcibios_fixup_irqs(void)
void __init pcibios_fixup_irqs(void)
{
struct pci_dev *dev = NULL;
u8 pin;
Expand Down Expand Up @@ -1142,7 +1142,7 @@ void __init pcibios_irq_init(void)
pirq_table = NULL;
}

pcibios_fixup_irqs();
x86_init.pci.fixup_irqs();

if (io_apic_assign_pci_irqs && pci_routeirq) {
struct pci_dev *dev = NULL;
Expand Down

0 comments on commit d591750

Please sign in to comment.