diff options
author | Jon Loeliger <linuxppc@jdl.com> | 2005-09-17 11:35:08 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2005-09-18 19:38:49 -0400 |
commit | f495a8bfd6a52cf32859f93d5320bb234d8a9560 (patch) | |
tree | b3159974aa2dc6de8406af66bc3b1ac5b10e4f94 /arch/ppc/platforms/prep_pci.c | |
parent | 7da8f8600a4751d7f0248e00d973901b7371fabc (diff) |
[PATCH] powerpc: Remove sections use from ppc
Here is a new patch that removes all notion of the pmac, prep,
chrp and openfirmware initialization sections, and then unifies
the sections.h files without those __pmac, etc, sections identifiers
cluttering things up.
Signed-off-by: Jon Loeliger <jdl@freescale.com>
Signed-off-by: Kumar Gala <kumar.gala@freescale.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/ppc/platforms/prep_pci.c')
-rw-r--r-- | arch/ppc/platforms/prep_pci.c | 64 |
1 files changed, 32 insertions, 32 deletions
diff --git a/arch/ppc/platforms/prep_pci.c b/arch/ppc/platforms/prep_pci.c index 4760cb64251d..e50b9996848c 100644 --- a/arch/ppc/platforms/prep_pci.c +++ b/arch/ppc/platforms/prep_pci.c | |||
@@ -43,7 +43,7 @@ static unsigned long *ProcInfo; | |||
43 | /* Tables for known hardware */ | 43 | /* Tables for known hardware */ |
44 | 44 | ||
45 | /* Motorola PowerStackII - Utah */ | 45 | /* Motorola PowerStackII - Utah */ |
46 | static char Utah_pci_IRQ_map[23] __prepdata = | 46 | static char Utah_pci_IRQ_map[23] = |
47 | { | 47 | { |
48 | 0, /* Slot 0 - unused */ | 48 | 0, /* Slot 0 - unused */ |
49 | 0, /* Slot 1 - unused */ | 49 | 0, /* Slot 1 - unused */ |
@@ -72,7 +72,7 @@ static char Utah_pci_IRQ_map[23] __prepdata = | |||
72 | 0, /* Slot 22 - unused */ | 72 | 0, /* Slot 22 - unused */ |
73 | }; | 73 | }; |
74 | 74 | ||
75 | static char Utah_pci_IRQ_routes[] __prepdata = | 75 | static char Utah_pci_IRQ_routes[] = |
76 | { | 76 | { |
77 | 0, /* Line 0 - Unused */ | 77 | 0, /* Line 0 - Unused */ |
78 | 9, /* Line 1 */ | 78 | 9, /* Line 1 */ |
@@ -84,7 +84,7 @@ static char Utah_pci_IRQ_routes[] __prepdata = | |||
84 | 84 | ||
85 | /* Motorola PowerStackII - Omaha */ | 85 | /* Motorola PowerStackII - Omaha */ |
86 | /* no integrated SCSI or ethernet */ | 86 | /* no integrated SCSI or ethernet */ |
87 | static char Omaha_pci_IRQ_map[23] __prepdata = | 87 | static char Omaha_pci_IRQ_map[23] = |
88 | { | 88 | { |
89 | 0, /* Slot 0 - unused */ | 89 | 0, /* Slot 0 - unused */ |
90 | 0, /* Slot 1 - unused */ | 90 | 0, /* Slot 1 - unused */ |
@@ -111,7 +111,7 @@ static char Omaha_pci_IRQ_map[23] __prepdata = | |||
111 | 0, | 111 | 0, |
112 | }; | 112 | }; |
113 | 113 | ||
114 | static char Omaha_pci_IRQ_routes[] __prepdata = | 114 | static char Omaha_pci_IRQ_routes[] = |
115 | { | 115 | { |
116 | 0, /* Line 0 - Unused */ | 116 | 0, /* Line 0 - Unused */ |
117 | 9, /* Line 1 */ | 117 | 9, /* Line 1 */ |
@@ -121,7 +121,7 @@ static char Omaha_pci_IRQ_routes[] __prepdata = | |||
121 | }; | 121 | }; |
122 | 122 | ||
123 | /* Motorola PowerStack */ | 123 | /* Motorola PowerStack */ |
124 | static char Blackhawk_pci_IRQ_map[19] __prepdata = | 124 | static char Blackhawk_pci_IRQ_map[19] = |
125 | { | 125 | { |
126 | 0, /* Slot 0 - unused */ | 126 | 0, /* Slot 0 - unused */ |
127 | 0, /* Slot 1 - unused */ | 127 | 0, /* Slot 1 - unused */ |
@@ -144,7 +144,7 @@ static char Blackhawk_pci_IRQ_map[19] __prepdata = | |||
144 | 3, /* Slot P5 */ | 144 | 3, /* Slot P5 */ |
145 | }; | 145 | }; |
146 | 146 | ||
147 | static char Blackhawk_pci_IRQ_routes[] __prepdata = | 147 | static char Blackhawk_pci_IRQ_routes[] = |
148 | { | 148 | { |
149 | 0, /* Line 0 - Unused */ | 149 | 0, /* Line 0 - Unused */ |
150 | 9, /* Line 1 */ | 150 | 9, /* Line 1 */ |
@@ -154,7 +154,7 @@ static char Blackhawk_pci_IRQ_routes[] __prepdata = | |||
154 | }; | 154 | }; |
155 | 155 | ||
156 | /* Motorola Mesquite */ | 156 | /* Motorola Mesquite */ |
157 | static char Mesquite_pci_IRQ_map[23] __prepdata = | 157 | static char Mesquite_pci_IRQ_map[23] = |
158 | { | 158 | { |
159 | 0, /* Slot 0 - unused */ | 159 | 0, /* Slot 0 - unused */ |
160 | 0, /* Slot 1 - unused */ | 160 | 0, /* Slot 1 - unused */ |
@@ -182,7 +182,7 @@ static char Mesquite_pci_IRQ_map[23] __prepdata = | |||
182 | }; | 182 | }; |
183 | 183 | ||
184 | /* Motorola Sitka */ | 184 | /* Motorola Sitka */ |
185 | static char Sitka_pci_IRQ_map[21] __prepdata = | 185 | static char Sitka_pci_IRQ_map[21] = |
186 | { | 186 | { |
187 | 0, /* Slot 0 - unused */ | 187 | 0, /* Slot 0 - unused */ |
188 | 0, /* Slot 1 - unused */ | 188 | 0, /* Slot 1 - unused */ |
@@ -208,7 +208,7 @@ static char Sitka_pci_IRQ_map[21] __prepdata = | |||
208 | }; | 208 | }; |
209 | 209 | ||
210 | /* Motorola MTX */ | 210 | /* Motorola MTX */ |
211 | static char MTX_pci_IRQ_map[23] __prepdata = | 211 | static char MTX_pci_IRQ_map[23] = |
212 | { | 212 | { |
213 | 0, /* Slot 0 - unused */ | 213 | 0, /* Slot 0 - unused */ |
214 | 0, /* Slot 1 - unused */ | 214 | 0, /* Slot 1 - unused */ |
@@ -237,7 +237,7 @@ static char MTX_pci_IRQ_map[23] __prepdata = | |||
237 | 237 | ||
238 | /* Motorola MTX Plus */ | 238 | /* Motorola MTX Plus */ |
239 | /* Secondary bus interrupt routing is not supported yet */ | 239 | /* Secondary bus interrupt routing is not supported yet */ |
240 | static char MTXplus_pci_IRQ_map[23] __prepdata = | 240 | static char MTXplus_pci_IRQ_map[23] = |
241 | { | 241 | { |
242 | 0, /* Slot 0 - unused */ | 242 | 0, /* Slot 0 - unused */ |
243 | 0, /* Slot 1 - unused */ | 243 | 0, /* Slot 1 - unused */ |
@@ -264,13 +264,13 @@ static char MTXplus_pci_IRQ_map[23] __prepdata = | |||
264 | 0, /* Slot 22 - unused */ | 264 | 0, /* Slot 22 - unused */ |
265 | }; | 265 | }; |
266 | 266 | ||
267 | static char Raven_pci_IRQ_routes[] __prepdata = | 267 | static char Raven_pci_IRQ_routes[] = |
268 | { | 268 | { |
269 | 0, /* This is a dummy structure */ | 269 | 0, /* This is a dummy structure */ |
270 | }; | 270 | }; |
271 | 271 | ||
272 | /* Motorola MVME16xx */ | 272 | /* Motorola MVME16xx */ |
273 | static char Genesis_pci_IRQ_map[16] __prepdata = | 273 | static char Genesis_pci_IRQ_map[16] = |
274 | { | 274 | { |
275 | 0, /* Slot 0 - unused */ | 275 | 0, /* Slot 0 - unused */ |
276 | 0, /* Slot 1 - unused */ | 276 | 0, /* Slot 1 - unused */ |
@@ -290,7 +290,7 @@ static char Genesis_pci_IRQ_map[16] __prepdata = | |||
290 | 0, /* Slot 15 - unused */ | 290 | 0, /* Slot 15 - unused */ |
291 | }; | 291 | }; |
292 | 292 | ||
293 | static char Genesis_pci_IRQ_routes[] __prepdata = | 293 | static char Genesis_pci_IRQ_routes[] = |
294 | { | 294 | { |
295 | 0, /* Line 0 - Unused */ | 295 | 0, /* Line 0 - Unused */ |
296 | 10, /* Line 1 */ | 296 | 10, /* Line 1 */ |
@@ -299,7 +299,7 @@ static char Genesis_pci_IRQ_routes[] __prepdata = | |||
299 | 15 /* Line 4 */ | 299 | 15 /* Line 4 */ |
300 | }; | 300 | }; |
301 | 301 | ||
302 | static char Genesis2_pci_IRQ_map[23] __prepdata = | 302 | static char Genesis2_pci_IRQ_map[23] = |
303 | { | 303 | { |
304 | 0, /* Slot 0 - unused */ | 304 | 0, /* Slot 0 - unused */ |
305 | 0, /* Slot 1 - unused */ | 305 | 0, /* Slot 1 - unused */ |
@@ -327,7 +327,7 @@ static char Genesis2_pci_IRQ_map[23] __prepdata = | |||
327 | }; | 327 | }; |
328 | 328 | ||
329 | /* Motorola Series-E */ | 329 | /* Motorola Series-E */ |
330 | static char Comet_pci_IRQ_map[23] __prepdata = | 330 | static char Comet_pci_IRQ_map[23] = |
331 | { | 331 | { |
332 | 0, /* Slot 0 - unused */ | 332 | 0, /* Slot 0 - unused */ |
333 | 0, /* Slot 1 - unused */ | 333 | 0, /* Slot 1 - unused */ |
@@ -354,7 +354,7 @@ static char Comet_pci_IRQ_map[23] __prepdata = | |||
354 | 0, | 354 | 0, |
355 | }; | 355 | }; |
356 | 356 | ||
357 | static char Comet_pci_IRQ_routes[] __prepdata = | 357 | static char Comet_pci_IRQ_routes[] = |
358 | { | 358 | { |
359 | 0, /* Line 0 - Unused */ | 359 | 0, /* Line 0 - Unused */ |
360 | 10, /* Line 1 */ | 360 | 10, /* Line 1 */ |
@@ -364,7 +364,7 @@ static char Comet_pci_IRQ_routes[] __prepdata = | |||
364 | }; | 364 | }; |
365 | 365 | ||
366 | /* Motorola Series-EX */ | 366 | /* Motorola Series-EX */ |
367 | static char Comet2_pci_IRQ_map[23] __prepdata = | 367 | static char Comet2_pci_IRQ_map[23] = |
368 | { | 368 | { |
369 | 0, /* Slot 0 - unused */ | 369 | 0, /* Slot 0 - unused */ |
370 | 0, /* Slot 1 - unused */ | 370 | 0, /* Slot 1 - unused */ |
@@ -391,7 +391,7 @@ static char Comet2_pci_IRQ_map[23] __prepdata = | |||
391 | 0, | 391 | 0, |
392 | }; | 392 | }; |
393 | 393 | ||
394 | static char Comet2_pci_IRQ_routes[] __prepdata = | 394 | static char Comet2_pci_IRQ_routes[] = |
395 | { | 395 | { |
396 | 0, /* Line 0 - Unused */ | 396 | 0, /* Line 0 - Unused */ |
397 | 10, /* Line 1 */ | 397 | 10, /* Line 1 */ |
@@ -405,7 +405,7 @@ static char Comet2_pci_IRQ_routes[] __prepdata = | |||
405 | * This is actually based on the Carolina motherboard | 405 | * This is actually based on the Carolina motherboard |
406 | * -- Cort | 406 | * -- Cort |
407 | */ | 407 | */ |
408 | static char ibm8xx_pci_IRQ_map[23] __prepdata = { | 408 | static char ibm8xx_pci_IRQ_map[23] = { |
409 | 0, /* Slot 0 - unused */ | 409 | 0, /* Slot 0 - unused */ |
410 | 0, /* Slot 1 - unused */ | 410 | 0, /* Slot 1 - unused */ |
411 | 0, /* Slot 2 - unused */ | 411 | 0, /* Slot 2 - unused */ |
@@ -431,7 +431,7 @@ static char ibm8xx_pci_IRQ_map[23] __prepdata = { | |||
431 | 2, /* Slot 22 - PCI slot 1 PCIINTx# (See below) */ | 431 | 2, /* Slot 22 - PCI slot 1 PCIINTx# (See below) */ |
432 | }; | 432 | }; |
433 | 433 | ||
434 | static char ibm8xx_pci_IRQ_routes[] __prepdata = { | 434 | static char ibm8xx_pci_IRQ_routes[] = { |
435 | 0, /* Line 0 - unused */ | 435 | 0, /* Line 0 - unused */ |
436 | 15, /* Line 1 */ | 436 | 15, /* Line 1 */ |
437 | 15, /* Line 2 */ | 437 | 15, /* Line 2 */ |
@@ -443,7 +443,7 @@ static char ibm8xx_pci_IRQ_routes[] __prepdata = { | |||
443 | * a 6015 ibm board | 443 | * a 6015 ibm board |
444 | * -- Cort | 444 | * -- Cort |
445 | */ | 445 | */ |
446 | static char ibm6015_pci_IRQ_map[23] __prepdata = { | 446 | static char ibm6015_pci_IRQ_map[23] = { |
447 | 0, /* Slot 0 - unused */ | 447 | 0, /* Slot 0 - unused */ |
448 | 0, /* Slot 1 - unused */ | 448 | 0, /* Slot 1 - unused */ |
449 | 0, /* Slot 2 - unused */ | 449 | 0, /* Slot 2 - unused */ |
@@ -469,7 +469,7 @@ static char ibm6015_pci_IRQ_map[23] __prepdata = { | |||
469 | 2, /* Slot 22 - */ | 469 | 2, /* Slot 22 - */ |
470 | }; | 470 | }; |
471 | 471 | ||
472 | static char ibm6015_pci_IRQ_routes[] __prepdata = { | 472 | static char ibm6015_pci_IRQ_routes[] = { |
473 | 0, /* Line 0 - unused */ | 473 | 0, /* Line 0 - unused */ |
474 | 13, /* Line 1 */ | 474 | 13, /* Line 1 */ |
475 | 15, /* Line 2 */ | 475 | 15, /* Line 2 */ |
@@ -479,7 +479,7 @@ static char ibm6015_pci_IRQ_routes[] __prepdata = { | |||
479 | 479 | ||
480 | 480 | ||
481 | /* IBM Nobis and Thinkpad 850 */ | 481 | /* IBM Nobis and Thinkpad 850 */ |
482 | static char Nobis_pci_IRQ_map[23] __prepdata ={ | 482 | static char Nobis_pci_IRQ_map[23] ={ |
483 | 0, /* Slot 0 - unused */ | 483 | 0, /* Slot 0 - unused */ |
484 | 0, /* Slot 1 - unused */ | 484 | 0, /* Slot 1 - unused */ |
485 | 0, /* Slot 2 - unused */ | 485 | 0, /* Slot 2 - unused */ |
@@ -498,7 +498,7 @@ static char Nobis_pci_IRQ_map[23] __prepdata ={ | |||
498 | 0, /* Slot 15 - unused */ | 498 | 0, /* Slot 15 - unused */ |
499 | }; | 499 | }; |
500 | 500 | ||
501 | static char Nobis_pci_IRQ_routes[] __prepdata = { | 501 | static char Nobis_pci_IRQ_routes[] = { |
502 | 0, /* Line 0 - Unused */ | 502 | 0, /* Line 0 - Unused */ |
503 | 13, /* Line 1 */ | 503 | 13, /* Line 1 */ |
504 | 13, /* Line 2 */ | 504 | 13, /* Line 2 */ |
@@ -510,7 +510,7 @@ static char Nobis_pci_IRQ_routes[] __prepdata = { | |||
510 | * IBM RS/6000 43p/140 -- paulus | 510 | * IBM RS/6000 43p/140 -- paulus |
511 | * XXX we should get all this from the residual data | 511 | * XXX we should get all this from the residual data |
512 | */ | 512 | */ |
513 | static char ibm43p_pci_IRQ_map[23] __prepdata = { | 513 | static char ibm43p_pci_IRQ_map[23] = { |
514 | 0, /* Slot 0 - unused */ | 514 | 0, /* Slot 0 - unused */ |
515 | 0, /* Slot 1 - unused */ | 515 | 0, /* Slot 1 - unused */ |
516 | 0, /* Slot 2 - unused */ | 516 | 0, /* Slot 2 - unused */ |
@@ -536,7 +536,7 @@ static char ibm43p_pci_IRQ_map[23] __prepdata = { | |||
536 | 1, /* Slot 22 - PCI slot 1 PCIINTx# (See below) */ | 536 | 1, /* Slot 22 - PCI slot 1 PCIINTx# (See below) */ |
537 | }; | 537 | }; |
538 | 538 | ||
539 | static char ibm43p_pci_IRQ_routes[] __prepdata = { | 539 | static char ibm43p_pci_IRQ_routes[] = { |
540 | 0, /* Line 0 - unused */ | 540 | 0, /* Line 0 - unused */ |
541 | 15, /* Line 1 */ | 541 | 15, /* Line 1 */ |
542 | 15, /* Line 2 */ | 542 | 15, /* Line 2 */ |
@@ -559,7 +559,7 @@ struct powerplus_irq_list | |||
559 | * are routed to OpenPIC inputs 5-8. These values are offset by | 559 | * are routed to OpenPIC inputs 5-8. These values are offset by |
560 | * 16 in the table to reflect the Linux kernel interrupt value. | 560 | * 16 in the table to reflect the Linux kernel interrupt value. |
561 | */ | 561 | */ |
562 | struct powerplus_irq_list Powerplus_pci_IRQ_list __prepdata = | 562 | struct powerplus_irq_list Powerplus_pci_IRQ_list = |
563 | { | 563 | { |
564 | {25, 26, 27, 28}, | 564 | {25, 26, 27, 28}, |
565 | {21, 22, 23, 24} | 565 | {21, 22, 23, 24} |
@@ -572,7 +572,7 @@ struct powerplus_irq_list Powerplus_pci_IRQ_list __prepdata = | |||
572 | * are routed to OpenPIC inputs 12-15. These values are offset by | 572 | * are routed to OpenPIC inputs 12-15. These values are offset by |
573 | * 16 in the table to reflect the Linux kernel interrupt value. | 573 | * 16 in the table to reflect the Linux kernel interrupt value. |
574 | */ | 574 | */ |
575 | struct powerplus_irq_list Mesquite_pci_IRQ_list __prepdata = | 575 | struct powerplus_irq_list Mesquite_pci_IRQ_list = |
576 | { | 576 | { |
577 | {24, 25, 26, 27}, | 577 | {24, 25, 26, 27}, |
578 | {28, 29, 30, 31} | 578 | {28, 29, 30, 31} |
@@ -582,7 +582,7 @@ struct powerplus_irq_list Mesquite_pci_IRQ_list __prepdata = | |||
582 | * This table represents the standard PCI swizzle defined in the | 582 | * This table represents the standard PCI swizzle defined in the |
583 | * PCI bus specification. | 583 | * PCI bus specification. |
584 | */ | 584 | */ |
585 | static unsigned char prep_pci_intpins[4][4] __prepdata = | 585 | static unsigned char prep_pci_intpins[4][4] = |
586 | { | 586 | { |
587 | { 1, 2, 3, 4}, /* Buses 0, 4, 8, ... */ | 587 | { 1, 2, 3, 4}, /* Buses 0, 4, 8, ... */ |
588 | { 2, 3, 4, 1}, /* Buses 1, 5, 9, ... */ | 588 | { 2, 3, 4, 1}, /* Buses 1, 5, 9, ... */ |
@@ -622,7 +622,7 @@ static unsigned char prep_pci_intpins[4][4] __prepdata = | |||
622 | #define MIN_DEVNR 11 | 622 | #define MIN_DEVNR 11 |
623 | #define MAX_DEVNR 22 | 623 | #define MAX_DEVNR 22 |
624 | 624 | ||
625 | static int __prep | 625 | static int |
626 | prep_read_config(struct pci_bus *bus, unsigned int devfn, int offset, | 626 | prep_read_config(struct pci_bus *bus, unsigned int devfn, int offset, |
627 | int len, u32 *val) | 627 | int len, u32 *val) |
628 | { | 628 | { |
@@ -652,7 +652,7 @@ prep_read_config(struct pci_bus *bus, unsigned int devfn, int offset, | |||
652 | return PCIBIOS_SUCCESSFUL; | 652 | return PCIBIOS_SUCCESSFUL; |
653 | } | 653 | } |
654 | 654 | ||
655 | static int __prep | 655 | static int |
656 | prep_write_config(struct pci_bus *bus, unsigned int devfn, int offset, | 656 | prep_write_config(struct pci_bus *bus, unsigned int devfn, int offset, |
657 | int len, u32 val) | 657 | int len, u32 val) |
658 | { | 658 | { |
@@ -804,7 +804,7 @@ struct mot_info { | |||
804 | void (*map_non0_bus)(struct pci_dev *); /* For boards with more than bus 0 devices. */ | 804 | void (*map_non0_bus)(struct pci_dev *); /* For boards with more than bus 0 devices. */ |
805 | struct powerplus_irq_list *pci_irq_list; /* List of PCI MPIC inputs */ | 805 | struct powerplus_irq_list *pci_irq_list; /* List of PCI MPIC inputs */ |
806 | unsigned char secondary_bridge_devfn; /* devfn of secondary bus transparent bridge */ | 806 | unsigned char secondary_bridge_devfn; /* devfn of secondary bus transparent bridge */ |
807 | } mot_info[] __prepdata = { | 807 | } mot_info[] = { |
808 | {0x300, 0x00, 0x00, "MVME 2400", Genesis2_pci_IRQ_map, Raven_pci_IRQ_routes, Powerplus_Map_Non0, &Powerplus_pci_IRQ_list, 0xFF}, | 808 | {0x300, 0x00, 0x00, "MVME 2400", Genesis2_pci_IRQ_map, Raven_pci_IRQ_routes, Powerplus_Map_Non0, &Powerplus_pci_IRQ_list, 0xFF}, |
809 | {0x010, 0x00, 0x00, "Genesis", Genesis_pci_IRQ_map, Genesis_pci_IRQ_routes, Powerplus_Map_Non0, &Powerplus_pci_IRQ_list, 0x00}, | 809 | {0x010, 0x00, 0x00, "Genesis", Genesis_pci_IRQ_map, Genesis_pci_IRQ_routes, Powerplus_Map_Non0, &Powerplus_pci_IRQ_list, 0x00}, |
810 | {0x020, 0x00, 0x00, "Powerstack (Series E)", Comet_pci_IRQ_map, Comet_pci_IRQ_routes, NULL, NULL, 0x00}, | 810 | {0x020, 0x00, 0x00, "Powerstack (Series E)", Comet_pci_IRQ_map, Comet_pci_IRQ_routes, NULL, NULL, 0x00}, |