aboutsummaryrefslogtreecommitdiffstats
path: root/arch/ppc/platforms/prep_setup.c
diff options
context:
space:
mode:
authorJon Loeliger <linuxppc@jdl.com>2005-09-17 11:35:08 -0400
committerPaul Mackerras <paulus@samba.org>2005-09-18 19:38:49 -0400
commitf495a8bfd6a52cf32859f93d5320bb234d8a9560 (patch)
treeb3159974aa2dc6de8406af66bc3b1ac5b10e4f94 /arch/ppc/platforms/prep_setup.c
parent7da8f8600a4751d7f0248e00d973901b7371fabc (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_setup.c')
-rw-r--r--arch/ppc/platforms/prep_setup.c44
1 files changed, 22 insertions, 22 deletions
diff --git a/arch/ppc/platforms/prep_setup.c b/arch/ppc/platforms/prep_setup.c
index bc926be95472..fccafbcd4b58 100644
--- a/arch/ppc/platforms/prep_setup.c
+++ b/arch/ppc/platforms/prep_setup.c
@@ -173,7 +173,7 @@ prep_carolina_enable_l2(void)
173} 173}
174 174
175/* cpuinfo code common to all IBM PReP */ 175/* cpuinfo code common to all IBM PReP */
176static void __prep 176static void
177prep_ibm_cpuinfo(struct seq_file *m) 177prep_ibm_cpuinfo(struct seq_file *m)
178{ 178{
179 unsigned int equip_reg = inb(PREP_IBM_EQUIPMENT); 179 unsigned int equip_reg = inb(PREP_IBM_EQUIPMENT);
@@ -209,14 +209,14 @@ prep_ibm_cpuinfo(struct seq_file *m)
209 } 209 }
210} 210}
211 211
212static int __prep 212static int
213prep_gen_cpuinfo(struct seq_file *m) 213prep_gen_cpuinfo(struct seq_file *m)
214{ 214{
215 prep_ibm_cpuinfo(m); 215 prep_ibm_cpuinfo(m);
216 return 0; 216 return 0;
217} 217}
218 218
219static int __prep 219static int
220prep_sandalfoot_cpuinfo(struct seq_file *m) 220prep_sandalfoot_cpuinfo(struct seq_file *m)
221{ 221{
222 unsigned int equip_reg = inb(PREP_IBM_EQUIPMENT); 222 unsigned int equip_reg = inb(PREP_IBM_EQUIPMENT);
@@ -243,7 +243,7 @@ prep_sandalfoot_cpuinfo(struct seq_file *m)
243 return 0; 243 return 0;
244} 244}
245 245
246static int __prep 246static int
247prep_thinkpad_cpuinfo(struct seq_file *m) 247prep_thinkpad_cpuinfo(struct seq_file *m)
248{ 248{
249 unsigned int equip_reg = inb(PREP_IBM_EQUIPMENT); 249 unsigned int equip_reg = inb(PREP_IBM_EQUIPMENT);
@@ -314,7 +314,7 @@ prep_thinkpad_cpuinfo(struct seq_file *m)
314 return 0; 314 return 0;
315} 315}
316 316
317static int __prep 317static int
318prep_carolina_cpuinfo(struct seq_file *m) 318prep_carolina_cpuinfo(struct seq_file *m)
319{ 319{
320 unsigned int equip_reg = inb(PREP_IBM_EQUIPMENT); 320 unsigned int equip_reg = inb(PREP_IBM_EQUIPMENT);
@@ -350,7 +350,7 @@ prep_carolina_cpuinfo(struct seq_file *m)
350 return 0; 350 return 0;
351} 351}
352 352
353static int __prep 353static int
354prep_tiger1_cpuinfo(struct seq_file *m) 354prep_tiger1_cpuinfo(struct seq_file *m)
355{ 355{
356 unsigned int l2_reg = inb(PREP_IBM_L2INFO); 356 unsigned int l2_reg = inb(PREP_IBM_L2INFO);
@@ -393,7 +393,7 @@ prep_tiger1_cpuinfo(struct seq_file *m)
393 393
394 394
395/* Used by all Motorola PReP */ 395/* Used by all Motorola PReP */
396static int __prep 396static int
397prep_mot_cpuinfo(struct seq_file *m) 397prep_mot_cpuinfo(struct seq_file *m)
398{ 398{
399 unsigned int cachew = *((unsigned char *)CACHECRBA); 399 unsigned int cachew = *((unsigned char *)CACHECRBA);
@@ -454,7 +454,7 @@ no_l2:
454 return 0; 454 return 0;
455} 455}
456 456
457static void __prep 457static void
458prep_restart(char *cmd) 458prep_restart(char *cmd)
459{ 459{
460#define PREP_SP92 0x92 /* Special Port 92 */ 460#define PREP_SP92 0x92 /* Special Port 92 */
@@ -473,7 +473,7 @@ prep_restart(char *cmd)
473#undef PREP_SP92 473#undef PREP_SP92
474} 474}
475 475
476static void __prep 476static void
477prep_halt(void) 477prep_halt(void)
478{ 478{
479 local_irq_disable(); /* no interrupts */ 479 local_irq_disable(); /* no interrupts */
@@ -488,7 +488,7 @@ prep_halt(void)
488/* Carrera is the power manager in the Thinkpads. Unfortunately not much is 488/* Carrera is the power manager in the Thinkpads. Unfortunately not much is
489 * known about it, so we can't power down. 489 * known about it, so we can't power down.
490 */ 490 */
491static void __prep 491static void
492prep_carrera_poweroff(void) 492prep_carrera_poweroff(void)
493{ 493{
494 prep_halt(); 494 prep_halt();
@@ -501,7 +501,7 @@ prep_carrera_poweroff(void)
501 * somewhat in the IBM Carolina Technical Specification. 501 * somewhat in the IBM Carolina Technical Specification.
502 * -Hollis 502 * -Hollis
503 */ 503 */
504static void __prep 504static void
505utah_sig87c750_setbit(unsigned int bytenum, unsigned int bitnum, int value) 505utah_sig87c750_setbit(unsigned int bytenum, unsigned int bitnum, int value)
506{ 506{
507 /* 507 /*
@@ -539,7 +539,7 @@ utah_sig87c750_setbit(unsigned int bytenum, unsigned int bitnum, int value)
539 udelay(100); /* important: let controller recover */ 539 udelay(100); /* important: let controller recover */
540} 540}
541 541
542static void __prep 542static void
543prep_sig750_poweroff(void) 543prep_sig750_poweroff(void)
544{ 544{
545 /* tweak the power manager found in most IBM PRePs (except Thinkpads) */ 545 /* tweak the power manager found in most IBM PRePs (except Thinkpads) */
@@ -554,7 +554,7 @@ prep_sig750_poweroff(void)
554 /* not reached */ 554 /* not reached */
555} 555}
556 556
557static int __prep 557static int
558prep_show_percpuinfo(struct seq_file *m, int i) 558prep_show_percpuinfo(struct seq_file *m, int i)
559{ 559{
560 /* PREP's without residual data will give incorrect values here */ 560 /* PREP's without residual data will give incorrect values here */
@@ -700,12 +700,12 @@ prep_set_bat(void)
700/* 700/*
701 * IBM 3-digit status LED 701 * IBM 3-digit status LED
702 */ 702 */
703static unsigned int ibm_statusled_base __prepdata; 703static unsigned int ibm_statusled_base;
704 704
705static void __prep 705static void
706ibm_statusled_progress(char *s, unsigned short hex); 706ibm_statusled_progress(char *s, unsigned short hex);
707 707
708static int __prep 708static int
709ibm_statusled_panic(struct notifier_block *dummy1, unsigned long dummy2, 709ibm_statusled_panic(struct notifier_block *dummy1, unsigned long dummy2,
710 void * dummy3) 710 void * dummy3)
711{ 711{
@@ -713,13 +713,13 @@ ibm_statusled_panic(struct notifier_block *dummy1, unsigned long dummy2,
713 return NOTIFY_DONE; 713 return NOTIFY_DONE;
714} 714}
715 715
716static struct notifier_block ibm_statusled_block __prepdata = { 716static struct notifier_block ibm_statusled_block = {
717 ibm_statusled_panic, 717 ibm_statusled_panic,
718 NULL, 718 NULL,
719 INT_MAX /* try to do it first */ 719 INT_MAX /* try to do it first */
720}; 720};
721 721
722static void __prep 722static void
723ibm_statusled_progress(char *s, unsigned short hex) 723ibm_statusled_progress(char *s, unsigned short hex)
724{ 724{
725 static int notifier_installed; 725 static int notifier_installed;
@@ -945,7 +945,7 @@ prep_calibrate_decr(void)
945 todc_calibrate_decr(); 945 todc_calibrate_decr();
946} 946}
947 947
948static unsigned int __prep 948static unsigned int
949prep_irq_canonicalize(u_int irq) 949prep_irq_canonicalize(u_int irq)
950{ 950{
951 if (irq == 2) 951 if (irq == 2)
@@ -996,7 +996,7 @@ prep_init_IRQ(void)
996/* 996/*
997 * IDE stuff. 997 * IDE stuff.
998 */ 998 */
999static int __prep 999static int
1000prep_ide_default_irq(unsigned long base) 1000prep_ide_default_irq(unsigned long base)
1001{ 1001{
1002 switch (base) { 1002 switch (base) {
@@ -1010,7 +1010,7 @@ prep_ide_default_irq(unsigned long base)
1010 } 1010 }
1011} 1011}
1012 1012
1013static unsigned long __prep 1013static unsigned long
1014prep_ide_default_io_base(int index) 1014prep_ide_default_io_base(int index)
1015{ 1015{
1016 switch (index) { 1016 switch (index) {
@@ -1055,7 +1055,7 @@ smp_prep_setup_cpu(int cpu_nr)
1055 do_openpic_setup_cpu(); 1055 do_openpic_setup_cpu();
1056} 1056}
1057 1057
1058static struct smp_ops_t prep_smp_ops __prepdata = { 1058static struct smp_ops_t prep_smp_ops = {
1059 smp_openpic_message_pass, 1059 smp_openpic_message_pass,
1060 smp_prep_probe, 1060 smp_prep_probe,
1061 smp_prep_kick_cpu, 1061 smp_prep_kick_cpu,