Exemple #1
0
static int __init bcm947xx_pcibios_init(void)
{
	ulong flags;
	extern int pci_probe_only;

	pci_probe_only = 1;
	if (!(sbh = sb_kattach()))
		panic("sb_kattach failed");
	spin_lock_init(&sbh_lock);
	spin_lock_irqsave(&sbh_lock, flags);
	sbpci_init(sbh);
	spin_unlock_irqrestore(&sbh_lock, flags);
	set_io_port_base((unsigned long)
			 ioremap_nocache(SB_PCI_MEM, 0x04000000));
	register_pci_controller(&bcm947xx_controller);
	return 0;
}
Exemple #2
0
void __init
pcibios_init(void)
{
	ulong flags;

	if (!(sbh = sb_kattach()))
		panic("sb_kattach failed");
	spin_lock_init(&sbh_lock);

	spin_lock_irqsave(&sbh_lock, flags);
	sbpci_init(sbh);
	spin_unlock_irqrestore(&sbh_lock, flags);

	set_io_port_base((unsigned long) ioremap_nocache(SB_PCI_MEM, 0x04000000));

	/* Scan the SB bus */
	pci_scan_bus(0, &pcibios_ops, NULL);

}