Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 104391
b: refs/heads/master
c: 3cabf37
h: refs/heads/master
i:
  104389: f8457f3
  104387: b89fffd
  104383: 9eb4f0f
v: v3
  • Loading branch information
Robert Richter authored and Ingo Molnar committed Jul 11, 2008
1 parent 6c90c36 commit fe6dc7d
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 17 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: e27cf3a2e151b79375efadf71a5d383ad416fb44
refs/heads/master: 3cabf37f6167125cb5185db05f5061650f685ab7
3 changes: 3 additions & 0 deletions trunk/arch/x86/pci/legacy.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ int __init pci_subsys_init(void)
#endif
#ifdef CONFIG_ACPI
pci_acpi_init();
#endif
#ifdef CONFIG_X86_VISWS
pci_visws_init();
#endif
pci_legacy_init();
pcibios_irq_init();
Expand Down
1 change: 1 addition & 0 deletions trunk/arch/x86/pci/pci.h
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ extern void __init dmi_check_skip_isa_align(void);
/* some common used subsys_initcalls */
extern int __init pci_acpi_init(void);
extern int __init pcibios_irq_init(void);
extern int __init pci_visws_init(void);
extern int __init pci_numaq_init(void);
extern int __init pcibios_init(void);

Expand Down
23 changes: 7 additions & 16 deletions trunk/arch/x86/pci/visws.c
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,14 @@ void __init pcibios_update_irq(struct pci_dev *dev, int irq)
pci_write_config_byte(dev, PCI_INTERRUPT_LINE, irq);
}

static int __init pci_visws_init(void)
int __init pci_visws_init(void)
{
if (!is_visws_box())
return -1;

pcibios_enable_irq = &pci_visws_enable_irq;
pcibios_disable_irq = &pci_visws_disable_irq;

/* The VISWS supports configuration access type 1 only */
pci_probe = (pci_probe | PCI_PROBE_CONF1) &
~(PCI_PROBE_BIOS | PCI_PROBE_CONF2);
Expand All @@ -105,18 +111,3 @@ static int __init pci_visws_init(void)
pcibios_resource_survey();
return 0;
}

static __init int pci_subsys_init(void)
{
if (!is_visws_box())
return -1;

pcibios_enable_irq = &pci_visws_enable_irq;
pcibios_disable_irq = &pci_visws_disable_irq;

pci_visws_init();
pcibios_init();

return 0;
}
subsys_initcall(pci_subsys_init);

0 comments on commit fe6dc7d

Please sign in to comment.