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_setup.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_setup.c')
-rw-r--r-- | arch/ppc/platforms/prep_setup.c | 44 |
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 */ |
176 | static void __prep | 176 | static void |
177 | prep_ibm_cpuinfo(struct seq_file *m) | 177 | prep_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 | ||
212 | static int __prep | 212 | static int |
213 | prep_gen_cpuinfo(struct seq_file *m) | 213 | prep_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 | ||
219 | static int __prep | 219 | static int |
220 | prep_sandalfoot_cpuinfo(struct seq_file *m) | 220 | prep_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 | ||
246 | static int __prep | 246 | static int |
247 | prep_thinkpad_cpuinfo(struct seq_file *m) | 247 | prep_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 | ||
317 | static int __prep | 317 | static int |
318 | prep_carolina_cpuinfo(struct seq_file *m) | 318 | prep_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 | ||
353 | static int __prep | 353 | static int |
354 | prep_tiger1_cpuinfo(struct seq_file *m) | 354 | prep_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 */ |
396 | static int __prep | 396 | static int |
397 | prep_mot_cpuinfo(struct seq_file *m) | 397 | prep_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 | ||
457 | static void __prep | 457 | static void |
458 | prep_restart(char *cmd) | 458 | prep_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 | ||
476 | static void __prep | 476 | static void |
477 | prep_halt(void) | 477 | prep_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 | */ |
491 | static void __prep | 491 | static void |
492 | prep_carrera_poweroff(void) | 492 | prep_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 | */ |
504 | static void __prep | 504 | static void |
505 | utah_sig87c750_setbit(unsigned int bytenum, unsigned int bitnum, int value) | 505 | utah_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 | ||
542 | static void __prep | 542 | static void |
543 | prep_sig750_poweroff(void) | 543 | prep_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 | ||
557 | static int __prep | 557 | static int |
558 | prep_show_percpuinfo(struct seq_file *m, int i) | 558 | prep_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 | */ |
703 | static unsigned int ibm_statusled_base __prepdata; | 703 | static unsigned int ibm_statusled_base; |
704 | 704 | ||
705 | static void __prep | 705 | static void |
706 | ibm_statusled_progress(char *s, unsigned short hex); | 706 | ibm_statusled_progress(char *s, unsigned short hex); |
707 | 707 | ||
708 | static int __prep | 708 | static int |
709 | ibm_statusled_panic(struct notifier_block *dummy1, unsigned long dummy2, | 709 | ibm_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 | ||
716 | static struct notifier_block ibm_statusled_block __prepdata = { | 716 | static 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 | ||
722 | static void __prep | 722 | static void |
723 | ibm_statusled_progress(char *s, unsigned short hex) | 723 | ibm_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 | ||
948 | static unsigned int __prep | 948 | static unsigned int |
949 | prep_irq_canonicalize(u_int irq) | 949 | prep_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 | */ |
999 | static int __prep | 999 | static int |
1000 | prep_ide_default_irq(unsigned long base) | 1000 | prep_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 | ||
1013 | static unsigned long __prep | 1013 | static unsigned long |
1014 | prep_ide_default_io_base(int index) | 1014 | prep_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 | ||
1058 | static struct smp_ops_t prep_smp_ops __prepdata = { | 1058 | static 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, |