2 * arch/ppc/kernel/mpc10x_common.c
4 * Common routines for the Motorola SPS MPC106, MPC107 and MPC8240 Host bridge,
7 * Author: Mark A. Greer
10 * Copyright 2001 MontaVista Software Inc.
12 * This program is free software; you can redistribute it and/or modify it
13 * under the terms of the GNU General Public License as published by the
14 * Free Software Foundation; either version 2 of the License, or (at your
15 * option) any later version.
22 #include <asm/processor.h>
27 void pci_mpc824x_init (struct pci_controller *hose)
29 hose->first_busno = 0;
30 hose->last_busno = 0xff;
32 /* System memory space */
33 pci_set_region(hose->regions + 0,
37 PCI_REGION_MEM | PCI_REGION_MEMORY);
39 /* PCI memory space */
40 pci_set_region(hose->regions + 1,
46 /* ISA/PCI memory space */
47 pci_set_region(hose->regions + 2,
54 pci_set_region(hose->regions + 3,
60 /* ISA/PCI I/O space */
61 pci_set_region(hose->regions + 4,
67 hose->region_count = 5;
69 pci_setup_indirect(hose,
73 pci_register_hose(hose);
75 hose->last_busno = pci_hose_scan(hose);