Commit 399fe2bd authored by Paul Mackerras's avatar Paul Mackerras

ppc: rename pci_assign_all_busses to pci_assign_all_buses

... for consistency with ppc64 and to make merging easier.
Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
parent ff065ddd
...@@ -608,7 +608,7 @@ static inline void grackle_set_loop_snoop(struct pci_controller *bp, int enable) ...@@ -608,7 +608,7 @@ static inline void grackle_set_loop_snoop(struct pci_controller *bp, int enable)
static int __init static int __init
setup_uninorth(struct pci_controller* hose, struct reg_property* addr) setup_uninorth(struct pci_controller* hose, struct reg_property* addr)
{ {
pci_assign_all_busses = 1; pci_assign_all_buses = 1;
has_uninorth = 1; has_uninorth = 1;
hose->ops = &macrisc_pci_ops; hose->ops = &macrisc_pci_ops;
hose->cfg_addr = ioremap(addr->address + 0x800000, 0x1000); hose->cfg_addr = ioremap(addr->address + 0x800000, 0x1000);
...@@ -640,7 +640,7 @@ static void __init setup_u3_agp(struct pci_controller* hose) ...@@ -640,7 +640,7 @@ static void __init setup_u3_agp(struct pci_controller* hose)
{ {
/* On G5, we move AGP up to high bus number so we don't need /* On G5, we move AGP up to high bus number so we don't need
* to reassign bus numbers for HT. If we ever have P2P bridges * to reassign bus numbers for HT. If we ever have P2P bridges
* on AGP, we'll have to move pci_assign_all_busses to the * on AGP, we'll have to move pci_assign_all_buses to the
* pci_controller structure so we enable it for AGP and not for * pci_controller structure so we enable it for AGP and not for
* HT childs. * HT childs.
* We hard code the address because of the different size of * We hard code the address because of the different size of
...@@ -1007,7 +1007,7 @@ void __init pmac_find_bridges(void) ...@@ -1007,7 +1007,7 @@ void __init pmac_find_bridges(void)
* some offset between bus number and domains for now when we * some offset between bus number and domains for now when we
* assign all busses should help for now * assign all busses should help for now
*/ */
if (pci_assign_all_busses) if (pci_assign_all_buses)
pcibios_assign_bus_offset = 0x10; pcibios_assign_bus_offset = 0x10;
} }
......
...@@ -54,7 +54,7 @@ static u8* pci_to_OF_bus_map; ...@@ -54,7 +54,7 @@ static u8* pci_to_OF_bus_map;
/* By default, we don't re-assign bus numbers. We do this only on /* By default, we don't re-assign bus numbers. We do this only on
* some pmacs * some pmacs
*/ */
int pci_assign_all_busses; int pci_assign_all_buses;
struct pci_controller* hose_head; struct pci_controller* hose_head;
struct pci_controller** hose_tail = &hose_head; struct pci_controller** hose_tail = &hose_head;
...@@ -827,7 +827,7 @@ EXPORT_SYMBOL(pci_device_to_OF_node); ...@@ -827,7 +827,7 @@ EXPORT_SYMBOL(pci_device_to_OF_node);
* PCI bus numbers have not yet been assigned, and you need to * PCI bus numbers have not yet been assigned, and you need to
* issue PCI config cycles to an OF device. * issue PCI config cycles to an OF device.
* It could also be used to "fix" RTAS config cycles if you want * It could also be used to "fix" RTAS config cycles if you want
* to set pci_assign_all_busses to 1 and still use RTAS for PCI * to set pci_assign_all_buses to 1 and still use RTAS for PCI
* config cycles. * config cycles.
*/ */
struct pci_controller* struct pci_controller*
...@@ -1270,12 +1270,12 @@ pcibios_init(void) ...@@ -1270,12 +1270,12 @@ pcibios_init(void)
/* Scan all of the recorded PCI controllers. */ /* Scan all of the recorded PCI controllers. */
for (next_busno = 0, hose = hose_head; hose; hose = hose->next) { for (next_busno = 0, hose = hose_head; hose; hose = hose->next) {
if (pci_assign_all_busses) if (pci_assign_all_buses)
hose->first_busno = next_busno; hose->first_busno = next_busno;
hose->last_busno = 0xff; hose->last_busno = 0xff;
bus = pci_scan_bus(hose->first_busno, hose->ops, hose); bus = pci_scan_bus(hose->first_busno, hose->ops, hose);
hose->last_busno = bus->subordinate; hose->last_busno = bus->subordinate;
if (pci_assign_all_busses || next_busno <= hose->last_busno) if (pci_assign_all_buses || next_busno <= hose->last_busno)
next_busno = hose->last_busno + pcibios_assign_bus_offset; next_busno = hose->last_busno + pcibios_assign_bus_offset;
} }
pci_bus_count = next_busno; pci_bus_count = next_busno;
...@@ -1284,7 +1284,7 @@ pcibios_init(void) ...@@ -1284,7 +1284,7 @@ pcibios_init(void)
* numbers vs. kernel bus numbers since we may have to * numbers vs. kernel bus numbers since we may have to
* remap them. * remap them.
*/ */
if (pci_assign_all_busses && have_of) if (pci_assign_all_buses && have_of)
pcibios_make_OF_bus_map(); pcibios_make_OF_bus_map();
/* Do machine dependent PCI interrupt routing */ /* Do machine dependent PCI interrupt routing */
......
...@@ -203,7 +203,7 @@ static void __init setup_peg2(struct pci_controller *hose, struct device_node *d ...@@ -203,7 +203,7 @@ static void __init setup_peg2(struct pci_controller *hose, struct device_node *d
printk ("RTAS supporting Pegasos OF not found, please upgrade" printk ("RTAS supporting Pegasos OF not found, please upgrade"
" your firmware\n"); " your firmware\n");
} }
pci_assign_all_busses = 1; pci_assign_all_buses = 1;
} }
void __init void __init
......
...@@ -575,7 +575,7 @@ pmac_find_bridges(void) ...@@ -575,7 +575,7 @@ pmac_find_bridges(void)
* some offset between bus number and domains for now when we * some offset between bus number and domains for now when we
* assign all busses should help for now * assign all busses should help for now
*/ */
if (pci_assign_all_busses) if (pci_assign_all_buses)
pcibios_assign_bus_offset = 0x10; pcibios_assign_bus_offset = 0x10;
#ifdef CONFIG_POWER4 #ifdef CONFIG_POWER4
...@@ -643,7 +643,7 @@ static inline void grackle_set_loop_snoop(struct pci_controller *bp, int enable) ...@@ -643,7 +643,7 @@ static inline void grackle_set_loop_snoop(struct pci_controller *bp, int enable)
static int __init static int __init
setup_uninorth(struct pci_controller* hose, struct reg_property* addr) setup_uninorth(struct pci_controller* hose, struct reg_property* addr)
{ {
pci_assign_all_busses = 1; pci_assign_all_buses = 1;
has_uninorth = 1; has_uninorth = 1;
hose->ops = &macrisc_pci_ops; hose->ops = &macrisc_pci_ops;
hose->cfg_addr = ioremap(addr->address + 0x800000, 0x1000); hose->cfg_addr = ioremap(addr->address + 0x800000, 0x1000);
...@@ -677,7 +677,7 @@ setup_u3_agp(struct pci_controller* hose, struct reg_property* addr) ...@@ -677,7 +677,7 @@ setup_u3_agp(struct pci_controller* hose, struct reg_property* addr)
{ {
/* On G5, we move AGP up to high bus number so we don't need /* On G5, we move AGP up to high bus number so we don't need
* to reassign bus numbers for HT. If we ever have P2P bridges * to reassign bus numbers for HT. If we ever have P2P bridges
* on AGP, we'll have to move pci_assign_all_busses to the * on AGP, we'll have to move pci_assign_all_buses to the
* pci_controller structure so we enable it for AGP and not for * pci_controller structure so we enable it for AGP and not for
* HT childs. * HT childs.
* We hard code the address because of the different size of * We hard code the address because of the different size of
......
...@@ -302,7 +302,7 @@ pq2ads_setup_pci(struct pci_controller *hose) ...@@ -302,7 +302,7 @@ pq2ads_setup_pci(struct pci_controller *hose)
void __init pq2_find_bridges(void) void __init pq2_find_bridges(void)
{ {
extern int pci_assign_all_busses; extern int pci_assign_all_buses;
struct pci_controller * hose; struct pci_controller * hose;
int host_bridge; int host_bridge;
......
...@@ -182,7 +182,7 @@ mpc52xx_find_bridges(void) ...@@ -182,7 +182,7 @@ mpc52xx_find_bridges(void)
struct mpc52xx_pci __iomem *pci_regs; struct mpc52xx_pci __iomem *pci_regs;
struct pci_controller *hose; struct pci_controller *hose;
pci_assign_all_busses = 1; pci_assign_all_buses = 1;
pci_regs = ioremap(MPC52xx_PA(MPC52xx_PCI_OFFSET), MPC52xx_PCI_SIZE); pci_regs = ioremap(MPC52xx_PA(MPC52xx_PCI_OFFSET), MPC52xx_PCI_SIZE);
if (!pci_regs) if (!pci_regs)
......
...@@ -275,7 +275,7 @@ static void __init setup_u3_agp(struct pci_controller* hose) ...@@ -275,7 +275,7 @@ static void __init setup_u3_agp(struct pci_controller* hose)
{ {
/* On G5, we move AGP up to high bus number so we don't need /* On G5, we move AGP up to high bus number so we don't need
* to reassign bus numbers for HT. If we ever have P2P bridges * to reassign bus numbers for HT. If we ever have P2P bridges
* on AGP, we'll have to move pci_assign_all_busses to the * on AGP, we'll have to move pci_assign_all_buses to the
* pci_controller structure so we enable it for AGP and not for * pci_controller structure so we enable it for AGP and not for
* HT childs. * HT childs.
* We hard code the address because of the different size of * We hard code the address because of the different size of
......
...@@ -381,7 +381,7 @@ static void __init setup_u3_agp(struct pci_controller* hose) ...@@ -381,7 +381,7 @@ static void __init setup_u3_agp(struct pci_controller* hose)
{ {
/* On G5, we move AGP up to high bus number so we don't need /* On G5, we move AGP up to high bus number so we don't need
* to reassign bus numbers for HT. If we ever have P2P bridges * to reassign bus numbers for HT. If we ever have P2P bridges
* on AGP, we'll have to move pci_assign_all_busses to the * on AGP, we'll have to move pci_assign_all_buses to the
* pci_controller structure so we enable it for AGP and not for * pci_controller structure so we enable it for AGP and not for
* HT childs. * HT childs.
* We hard code the address because of the different size of * We hard code the address because of the different size of
......
...@@ -24,9 +24,9 @@ struct pci_dev; ...@@ -24,9 +24,9 @@ struct pci_dev;
* Set this to 1 if you want the kernel to re-assign all PCI * Set this to 1 if you want the kernel to re-assign all PCI
* bus numbers * bus numbers
*/ */
extern int pci_assign_all_busses; extern int pci_assign_all_buses;
#define pcibios_assign_all_busses() (pci_assign_all_busses) #define pcibios_assign_all_busses() (pci_assign_all_buses)
#define pcibios_scan_all_fns(a, b) 0 #define pcibios_scan_all_fns(a, b) 0
#define PCIBIOS_MIN_IO 0x1000 #define PCIBIOS_MIN_IO 0x1000
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment